Changeset 365 for trunk/userlist.php


Ignore:
Timestamp:
Mar 9, 2010, 11:29:05 AM (15 years ago)
Author:
george
Message:
  • Upraveno: Jména tabulek v databází upraveny na stejná s prvními velkými písmeny.
  • Upraveno: Doplněny SQL uvozovky do mnoha SQL dotazů.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/userlist.php

    r352 r365  
    1111if(array_key_exists('search', $_GET))
    1212{
    13   $_SESSION['Where'] = ' WHERE `user`.`user` LIKE "%'.$_GET['search'].'%"';
     13  $_SESSION['Where'] = ' WHERE `User`.`User` LIKE "%'.$_GET['search'].'%"';
    1414}
    1515if(array_key_exists('team', $_GET))
    1616{
    17   $_SESSION['Where'] = ' WHERE team='.$_GET['team'];
     17  $_SESSION['Where'] = ' WHERE `Team`='.$_GET['team'];
    1818  if($_GET['team'] == '') $_SESSION['Where'] = '';     
    1919}
     
    2626//if($_SESSION['Where'] <> '') echo(' <a href="?action=nofilter">Zrušit filtr uživatelů</a><br />');
    2727
    28 $DbResult = $Database->SQLCommand('SELECT COUNT(*) FROM `user`'.$_SESSION['Where']);
     28$DbResult = $Database->SQLCommand('SELECT COUNT(*) FROM `User`'.$_SESSION['Where']);
    2929$DbRow = mysql_fetch_row($DbResult);
    3030$PageList = GetPageList($DbRow[0]);   
     
    3434
    3535$TableColumns = array(
    36   array('Name' => 'user', 'Title' => 'Jméno'),
     36  array('Name' => 'User', 'Title' => 'Jméno'),
    3737  array('Name' => 'TranslatedCount', 'Title' => 'Přeložených'),
    3838  array('Name' => 'XP', 'Title' => 'Úroveň'),
     
    4444
    4545
    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'];
    4747
    4848$ID = $Database->SQLCommand($Query);
     
    5050{
    5151  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'];
    5454       
    5555    echo('<tr><td>'.$Name.'</td>
    5656      <td style="text-align: center;"><a href="TranslationList.php?user='.$Line['ID'].'&amp;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>
    5858      <td>'.$Moderators[$Line['GM']].'</td>
    5959      <td>'.HumanDate($Line['LastLogin']).'</td></tr>');
Note: See TracChangeset for help on using the changeset viewer.