Changeset 376 for trunk/TranslationList.php
- Timestamp:
- Mar 11, 2010, 8:40:32 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/TranslationList.php
r366 r376 111 111 function UserTranslated() 112 112 { 113 global $GroupId, $Table ;113 global $GroupId, $Table, $User; 114 114 115 115 echo('<a title="Zobrazit texty podle vlastního filtru" href="?group='.$GroupId.'&action=filter">Filtr textů</a> -> 116 116 <a title="Přeložené questy přilášeného uživatele" href="?group='.$GroupId.'&action=my">Moje překlady</a><br /><br />'); 117 WriteQuests('SELECT `'.$Table.'`.*, `User`.`Name` AS `UserName` FROM `'.$Table.'` JOIN `User` ON `User`.`id` = `'.$Table.'`.`User` WHERE `'.$Table.'`.`User` = '.$ _SESSION['UserID']);117 WriteQuests('SELECT `'.$Table.'`.*, `User`.`Name` AS `UserName` FROM `'.$Table.'` JOIN `User` ON `User`.`id` = `'.$Table.'`.`User` WHERE `'.$Table.'`.`User` = '.$User->Id); 118 118 } 119 119 120 120 function UserUnfinished() 121 121 { 122 global $GroupId, $Table ;122 global $GroupId, $Table, $User; 123 123 124 124 echo('<a title="Zobrazit texty podle vlastního filtru" href="?group='.$GroupId.'&action=filter">Filtr textů</a> -> 125 125 <a title="Nedokončené texty" href="?group='.$GroupId.'&action=mydevelop">Rozepsané překlady</a><br /><br />'); 126 WriteQuests('SELECT *, (SELECT `User`.`Name` FROM `User` WHERE `User`.`ID` = `'.$Table.'`.`User`) AS `UserName` FROM `'.$Table.'` WHERE `User` = '.$ _SESSION['UserID'].' AND `Complete` = 0');126 WriteQuests('SELECT *, (SELECT `User`.`Name` FROM `User` WHERE `User`.`ID` = `'.$Table.'`.`User`) AS `UserName` FROM `'.$Table.'` WHERE `User` = '.$User->Id.' AND `Complete` = 0'); 127 127 } 128 128 … … 281 281 function TranslatedFilter() 282 282 { 283 global $Table, $GroupId, $Database ;283 global $Table, $GroupId, $Database, $User; 284 284 285 285 echo('<a title="Zobrazit texty podle vlastního filtru" href="?group='.$GroupId.'&action=filter">Filtr textů</a><br /><br /><br />'. … … 294 294 '<td>Texty označené jako rozpracované.</td></tr>'); 295 295 296 if( Licence(LICENCE_USER))296 if($User->Licence(LICENCE_USER)) 297 297 { 298 298 echo('<tr><td><a title="Nedokončené texty" href="?group='.$GroupId.'&action=mydevelop">Rozepsané texty</a></td> … … 350 350 else if($Action == 'nocomplete') Noncomplete(); 351 351 else if($Action == 'Translate') Translate(); 352 else if(($Action == 'my') and Licence(LICENCE_USER)) UserTranslated();353 else if(($Action == 'mydevelop') and Licence(LICENCE_USER)) UserUnfinished();352 else if(($Action == 'my') and $User->Licence(LICENCE_USER)) UserTranslated(); 353 else if(($Action == 'mydevelop') and $User->Licence(LICENCE_USER)) UserUnfinished(); 354 354 else if($Action == 'users') UserSelected(); 355 355 else if($Action == 'userall') UserAll();
Note:
See TracChangeset
for help on using the changeset viewer.