Changeset 210 for trunk/TranslationList.php
- Timestamp:
- Jun 20, 2009, 10:24:11 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/TranslationList.php
r207 r210 7 7 $TranslationItemPerPage = 200; 8 8 if(array_key_exists('group', $_GET)) $GroupId = $_GET['group'] * 1; else $GroupId = 1; 9 if(($GroupId < 1) or ($GroupId > count($TranslationTree))) 9 $DbResult = $Database->SQLCommand('SELECT Id FROM `group` WHERE `Id`='.$GroupId); 10 if(mysql_num_rows($DbResult) == 0) 10 11 { 11 12 echo('Neexistující id překladové skupiny.'); … … 250 251 if($Action == 'userid') 251 252 { 252 $ID = $Database->SQLCommand('SELECT user FROM user WHERE id = '.($_GET['user'] * 1)); 253 if(mysql_num_rows($ID) > 0) 254 { 255 $Line = mysql_fetch_row($ID); 256 echo('<a title="Zobrazit texty podle vlastního filtru" href="?group='.$GroupId.'&action=filter">Filtr textů</a> -> '. 257 '<strong>Vypis překladů uživatele '.$Line[0].': </strong><br /><br />'); 258 if(array_key_exists('not', $_GET)) 259 WriteQuests('SELECT *, (SELECT user.user FROM user WHERE user.id = '.$Table.'.user) as User FROM '.$Table.' Where Complete = 0 AND user = '.$_GET['user'], '', 'userid'); 260 else WriteQuests('SELECT *, (SELECT user.user FROM user WHERE user.id = '.$Table.'.user) as User FROM '.$Table.' Where user = '.$_GET['user'], '', 'userid'); 261 } else echo('Nebyl nalezen uživatel se zadaným id'); 253 if(array_key_exists('user', $_GET)) 254 { 255 $ID = $Database->SQLCommand('SELECT user FROM user WHERE id = '.($_GET['user'] * 1)); 256 if(mysql_num_rows($ID) > 0) 257 { 258 $Line = mysql_fetch_row($ID); 259 echo('<a title="Zobrazit texty podle vlastního filtru" href="?group='.$GroupId.'&action=filter">Filtr textů</a> -> '. 260 '<strong>Vypis překladů uživatele '.$Line[0].': </strong><br /><br />'); 261 if(array_key_exists('not', $_GET)) 262 WriteQuests('SELECT *, (SELECT user.user FROM user WHERE user.id = '.$Table.'.user) as User FROM '.$Table.' Where Complete = 0 AND user = '.$_GET['user'], '', 'userid'); 263 else WriteQuests('SELECT *, (SELECT user.user FROM user WHERE user.id = '.$Table.'.user) as User FROM '.$Table.' Where user = '.$_GET['user'], '', 'userid'); 264 } else echo('Nebyl nalezen uživatel se zadaným id'); 265 } else echo('Je nutno zadat id uživatele.'); 262 266 } else 263 267 if($Action == 'search')
Note:
See TracChangeset
for help on using the changeset viewer.