Changeset 316
- Timestamp:
- Feb 1, 2010, 10:22:32 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/TranslationList.php
r315 r316 35 35 '<td>'.GetVersionWOW($Line['VersionStart']).'-'.GetVersionWOW($Line['VersionEnd']).'</td>'); 36 36 if($Action == 'selection') echo('<td>'.$Line['CountQuest'].'</td>'); 37 else if($Action <> 'notran') echo('<td>'.$Line['User '].'</td>');37 else if($Action <> 'notran') echo('<td>'.$Line['UserName'].'</td>'); 38 38 echo('</tr>'); 39 39 } … … 97 97 <strong>Vypsání nedokončených textů s limitem na stránku</strong><br /><br />'); 98 98 99 WriteQuests('SELECT * FROM '.$Table.' AS items WHERE (items.Language= 0) AND100 NOT EXISTS(SELECT 1 FROM '.$Table.' AS sub WHERE (sub.Language <> 0) AND (sub.entry = items.entry) AND (sub.Complete = 1) AND VersionEnd = "'.$BuildNumber_max.'") AND101 EXISTS(SELECT 1 FROM '.$Table.' AS sub WHERE (sub.Language <> 0) AND (sub.entry = items.entry) AND (sub.Complete = 0) AND VersionEnd = "'.$BuildNumber_max.'") AND VersionEnd = "'.$BuildNumber_max.'"');99 WriteQuests('SELECT `items`.*, `user`.`user` AS `UserName` FROM `'.$Table.'` AS `items` JOIN `user` ON `user`.`id` = `items`.`User` WHERE (`items`.`Language` = 0) AND 100 NOT EXISTS(SELECT 1 FROM `'.$Table.'` AS `sub` WHERE (`sub`.`Language` <> 0) AND (`sub`.`entry` = `items`.`entry`) AND (`sub`.`Complete` = 1) AND (`VersionEnd` = '.$BuildNumber_max.')) AND 101 EXISTS(SELECT 1 FROM `'.$Table.'` AS `sub2` WHERE (`sub2`.`Language` <> 0) AND (`sub2`.`entry` = `items`.`entry`) AND (`sub2`.`Complete` = 0) AND (`VersionEnd` = '.$BuildNumber_max.')) AND (`items`.`VersionEnd` = '.$BuildNumber_max.')'); 102 102 } 103 103 … … 118 118 echo('<a title="Zobrazit texty podle vlastního filtru" href="?group='.$GroupId.'&action=filter">Filtr textů</a> -> 119 119 <a title="Přeložené questy přilášeného uživatele" href="?group='.$GroupId.'&action=my">Moje překlady</a><br /><br />'); 120 WriteQuests('SELECT *, (SELECT `user`.`user` FROM `user` WHERE `user`.`id` = '.$Table.'.`user`) AS `UserName` FROM `'.$Table.'` Where`user` = '.$_SESSION['UserID']);120 WriteQuests('SELECT `'.$Table.'`.*, `user`.`user` AS `UserName` FROM `'.$Table.'` JOIN `user` ON `user`.`id` = `'.$Table.'`.`user` WHERE `'.$Table.'`.`user` = '.$_SESSION['UserID']); 121 121 } 122 122 … … 231 231 '<strong>Vypis překladů uživatele '.$Line[0].': </strong><br /><br />'); 232 232 if(array_key_exists('not', $_GET)) 233 WriteQuests('SELECT *, (SELECT `user`.`user` FROM `user` WHERE `user`.`id` = `'.$Table.'`.`user`) AS `UserName` FROM `'.$Table.'` W here `Complete` = 0 AND `user` = '.$_GET['user']);234 else WriteQuests('SELECT *, (SELECT `user`.`user` FROM `user` WHERE `user`.`id` = `'.$Table.'`.`user`) AS `UserName` FROM `'.$Table.'` W here`user` = '.$_GET['user']);233 WriteQuests('SELECT *, (SELECT `user`.`user` FROM `user` WHERE `user`.`id` = `'.$Table.'`.`user`) AS `UserName` FROM `'.$Table.'` WHERE (`Complete` = 0) AND (`user` = '.$_GET['user'].')'); 234 else WriteQuests('SELECT *, (SELECT `user`.`user` FROM `user` WHERE `user`.`id` = `'.$Table.'`.`user`) AS `UserName` FROM `'.$Table.'` WHERE `user` = '.$_GET['user']); 235 235 } else echo('Nebyl nalezen uživatel se zadaným id'); 236 236 } else echo('Je nutno zadat id uživatele.'); -
trunk/team.php
r310 r316 188 188 function TeamShow() 189 189 { 190 global $Database ;190 global $Database, $TranslationTree; 191 191 192 192 if(array_key_exists('id', $_GET)) … … 212 212 echo('<strong>Překladatelský tým '.$Team['Name'].'</strong><br />'. 213 213 'Webové stránky: <a href="http://'.$Team['URL'].'">'.$Team['URL'].'</a><br/>'. 214 'Vedoucí: '.$Leader.'<br/>'.215 $Team['Description'].'<br /><br />' .216 214 'Vedoucí: <strong>'.$Leader.'</strong><br/>'. 215 $Team['Description'].'<br /><br />'); 216 //echo('<a href="export/?team='.$Team['Id'].'">Exportovat překlad týmu</a> '); 217 217 if(Licence(LICENCE_USER)) echo('<a href="?action=gointeam&id='.$Team['Id'].'">Vstoupit do týmu</a><br /><br />'); 218 218 echo('<fieldset><legend>Statistika</legend>'.
Note:
See TracChangeset
for help on using the changeset viewer.