Ignore:
Timestamp:
Jan 7, 2014, 10:17:46 PM (11 years ago)
Author:
chronos
Message:
  • Added: More client version value on pages as clickable link.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/User/Profile.php

    r636 r728  
    5050                                $Order['Output'];
    5151       
    52                 $DbResult = $this->System->Database->query('SELECT `User`.`Name` AS `UserName`, `Export`.`Id`, `Export`.`TimeCreate`, `Export`.`Title`, `Export`.`User`, `Export`.`UsedCount`, (SELECT Version FROM `ClientVersion` WHERE `ClientVersion`.`Id`=`Export`.`ClientVersion`) AS `ClientVersion`,(SELECT Name FROM `ExportOutputType` WHERE `ExportOutputType`.`Id`=`Export`.`OutputType`) AS `OutputType`, (SELECT COUNT(*) FROM `ExportGroup` WHERE `ExportGroup`.`Export`=`Export`.`Id`) AS `GroupCount`, (SELECT COUNT(*) FROM `ExportUser` WHERE `ExportUser`.`Export`=`Export`.`Id`) AS `UserCount` FROM `Export` LEFT JOIN `User` ON `User`.`ID`=`Export`.`User` '.$Filter.$Order['SQL'].$PageList['SQLLimit']);
     52                $DbResult = $this->System->Database->query('SELECT `User`.`Name` AS `UserName`, `Export`.`Id`, `Export`.`TimeCreate`, `Export`.`Title`, `Export`.`User`, `Export`.`UsedCount`, `Export`.`ClientVersion` AS `ClientVersionId`, '.
     53      '(SELECT Version FROM `ClientVersion` WHERE `ClientVersion`.`Id`=`Export`.`ClientVersion`) AS `ClientVersion`, '.
     54      '(SELECT Name FROM `ExportOutputType` WHERE `ExportOutputType`.`Id`=`Export`.`OutputType`) AS `OutputType`, '.
     55      '(SELECT COUNT(*) FROM `ExportGroup` WHERE `ExportGroup`.`Export`=`Export`.`Id`) AS `GroupCount`, '.
     56      '(SELECT COUNT(*) FROM `ExportUser` WHERE `ExportUser`.`Export`=`Export`.`Id`) AS `UserCount` FROM `Export` '.
     57      'LEFT JOIN `User` ON `User`.`ID`=`Export`.`User` '.$Filter.$Order['SQL'].$PageList['SQLLimit']);
    5358                while($Export = $DbResult->fetch_assoc())
    5459                {
     
    6065                                '<td>'.$Export['Title'].'</td>'.
    6166                                '<td>'.$Export['OutputType'].'</td>'.
    62                                 '<td>'.$Export['ClientVersion'].'</td>'.
     67                                '<td><a href="'.$this->System->Link('/client-version/?action=item&amp;id='.$Export['ClientVersionId']).'">'.$Export['ClientVersion'].'</a></td>'.
    6368                                '<td>'.$Export['UsedCount'].'</td>'.
    6469                          '<td>'.$Action.'</td></tr>';
     
    116121                $Output = '';
    117122                $Query = 'SELECT `User`.`Name`, `UserTrace`.`LastLogin`, `UserTrace`.`LastIP`, '.
    118                                 '`User`.`Email`, `UserTrace`.`UserAgent`, '.
     123                                '`User`.`Email`, `UserTrace`.`UserAgent`, `User`.`PreferredVersion`, '.
    119124                                '`User`.`TranslatedCount`, `User`.`Team`, `User`.`ID`, `User`.`Info`, '.
    120125                                '`Team`.`Name` AS `TeamName`, `Language`.`Name` AS `LanguageName`, '.
     
    133138                '<h3>Překladatel '.$UserLine['Name'].'</h3>'.
    134139                'Výchozí jazyk: <strong>'.$UserLine['LanguageName'].'</strong><br />'.
    135                 'Výchozí verze klienta: <strong>'.$UserLine['Version'].'</strong><br />'.
     140                'Výchozí verze klienta: <a href="'.$this->System->Link('/client-version/?action=item&amp;id='.$UserLine['PreferredVersion']).'"><strong>'.$UserLine['Version'].'</strong></a><br />'.
    136141                'Poslední připojení: <strong>'.HumanDateTime($UserLine['LastLogin']).'</strong><br />'.
    137142                'Počet přeložených: <a href="TranslationList.php?user='.$UserLine['ID'].'&amp;state=2&group=0" title="Zobrazit Všechny jeho přeložené texty"><strong>'.$UserLine['TranslatedCount'].'</strong></a><br />';
Note: See TracChangeset for help on using the changeset viewer.