Changeset 365 for trunk/userlist.php
- Timestamp:
- Mar 9, 2010, 11:29:05 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/userlist.php
r352 r365 11 11 if(array_key_exists('search', $_GET)) 12 12 { 13 $_SESSION['Where'] = ' WHERE ` user`.`user` LIKE "%'.$_GET['search'].'%"';13 $_SESSION['Where'] = ' WHERE `User`.`User` LIKE "%'.$_GET['search'].'%"'; 14 14 } 15 15 if(array_key_exists('team', $_GET)) 16 16 { 17 $_SESSION['Where'] = ' WHERE team='.$_GET['team'];17 $_SESSION['Where'] = ' WHERE `Team`='.$_GET['team']; 18 18 if($_GET['team'] == '') $_SESSION['Where'] = ''; 19 19 } … … 26 26 //if($_SESSION['Where'] <> '') echo(' <a href="?action=nofilter">Zrušit filtr uživatelů</a><br />'); 27 27 28 $DbResult = $Database->SQLCommand('SELECT COUNT(*) FROM ` user`'.$_SESSION['Where']);28 $DbResult = $Database->SQLCommand('SELECT COUNT(*) FROM `User`'.$_SESSION['Where']); 29 29 $DbRow = mysql_fetch_row($DbResult); 30 30 $PageList = GetPageList($DbRow[0]); … … 34 34 35 35 $TableColumns = array( 36 array('Name' => ' user', 'Title' => 'Jméno'),36 array('Name' => 'User', 'Title' => 'Jméno'), 37 37 array('Name' => 'TranslatedCount', 'Title' => 'Přeložených'), 38 38 array('Name' => 'XP', 'Title' => 'Úroveň'), … … 44 44 45 45 46 $Query = 'SELECT `ID`, ` user`.`user`, `LastLogin`, `GM`, `TranslatedCount` FROM `user` '.$_SESSION['Where'].$Order['SQL'].$PageList['SQLLimit'];46 $Query = 'SELECT `ID`, `User`.`Name`, `LastLogin`, `GM`, `TranslatedCount` FROM `User` '.$_SESSION['Where'].$Order['SQL'].$PageList['SQLLimit']; 47 47 48 48 $ID = $Database->SQLCommand($Query); … … 50 50 { 51 51 if(Licence(LICENCE_MODERATOR)) 52 $Name = '<a href="user.php?user='.$Line['ID'].'">'.$Line[' user'].'</a>';53 else $Name = $Line[' user'];52 $Name = '<a href="user.php?user='.$Line['ID'].'">'.$Line['Name'].'</a>'; 53 else $Name = $Line['Name']; 54 54 55 55 echo('<tr><td>'.$Name.'</td> 56 56 <td style="text-align: center;"><a href="TranslationList.php?user='.$Line['ID'].'&action=userall" title="Zobrazit Všechny jeho přeložené texty">'.$Line['TranslatedCount'].'</a></td> 57 <td><img src="tmp/user/'.$Line[' user'].'/level.png" alt="Úroveň uživatele" /></td>57 <td><img src="tmp/user/'.$Line['Name'].'/level.png" alt="Úroveň uživatele" /></td> 58 58 <td>'.$Moderators[$Line['GM']].'</td> 59 59 <td>'.HumanDate($Line['LastLogin']).'</td></tr>');
Note:
See TracChangeset
for help on using the changeset viewer.