Changeset 398 for trunk/export/index.php
- Timestamp:
- Mar 19, 2010, 5:56:56 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/export/index.php
r376 r398 33 33 array('Name' => 'UserName', 'Title' => 'Překladatel'), 34 34 array('Name' => 'Title', 'Title' => 'Označení'), 35 // array('Name' => 'UserCount', 'Title' => 'Vybraných překladatelů'), 36 // array('Name' => 'GroupCount', 'Title' => 'Překladových skupin'), 37 array('Name' => 'OutputType', 'Title' => 'Typ výstupu'), 38 array('Name' => 'ClientVersion', 'Title' => 'Verze klienta'), 35 39 array('Name' => 'UsedCount', 'Title' => 'Prohlédnutí výstupu'), 36 array('Name' => 'UserCount', 'Title' => 'Vybraných překladatelů'),37 array('Name' => 'GroupCount', 'Title' => 'Překladových skupin'),38 40 array('Name' => '', 'Title' => 'Akce'), 39 41 ); … … 42 44 echo($Order['Output']); 43 45 44 $DbResult = $Database->SQLCommand('SELECT `User`.`Name` AS `UserName`, `Export`. *, (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']);46 $DbResult = $Database->SQLCommand('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']); 45 47 while($Export = mysql_fetch_assoc($DbResult)) 46 48 { 47 $Action = '<a href="?Action=View&ExportId='.$Export['Id'].' ">Zobrazit</a> <a href="?Action=View&ExportId='.$Export['Id'].'&Tab=6">Exportovat</a>';49 $Action = '<a href="?Action=View&ExportId='.$Export['Id'].'&Tab=0">Zobrazit</a> <a href="?Action=View&ExportId='.$Export['Id'].'&Tab=6">Exportovat</a>'; 48 50 if($Export['User'] == $User->Id) $Action .= ' <a href="?Action=Delete&ExportId='.$Export['Id'].'" onclick="return confirmAction(\'Opravdu smazat položku?\');">Smazat</a>'; 49 echo('<tr><td>'.HumanDate($Export['TimeCreate']).'</td><td>'.$Export['UserName'].'</td><td>'.$Export['Title'].'</td><td>'.$Export[' UsedCount'].'</td><td>'.$Export['UserCount'].'</td><td>'.$Export['GroupCount'].'</td><td>'.$Action.'</td></tr>');51 echo('<tr><td>'.HumanDate($Export['TimeCreate']).'</td><td>'.$Export['UserName'].'</td><td>'.$Export['Title'].'</td><td>'.$Export['OutputType'].'</td><td>'.$Export['ClientVersion'].'</td><td>'.$Export['UsedCount'].'</td><td>'.$Action.'</td></tr>'); 50 52 } 51 53 echo('</table>');
Note:
See TracChangeset
for help on using the changeset viewer.