Changeset 350 for trunk/userlist.php
- Timestamp:
- Mar 3, 2010, 12:50:21 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/userlist.php
r349 r350 35 35 $TableColumns = array( 36 36 array('Name' => 'user', 'Title' => 'Jméno'), 37 array('Name' => ' NumberTranslate', 'Title' => 'Přeložených'),37 array('Name' => 'TranslatedCount', 'Title' => 'Přeložených'), 38 38 array('Name' => 'XP', 'Title' => 'Úroveň'), 39 39 array('Name' => 'GM', 'Title' => 'Oprávnění'), … … 43 43 echo($Order['Output']); 44 44 45 $Columns = '';46 $Joins = '';47 foreach($TranslationTree as $Group)48 if($Group['TablePrefix'] != '')49 {50 $Columns .= 'COALESCE(T'.$Group['Id'].'.Count, 0) + ';51 $Joins .= ' LEFT JOIN (SELECT User, COUNT(User) as Count FROM `'.$Group['TablePrefix'].'` WHERE (Complete = 1) AND (Language <> 0) GROUP BY User) as T'.$Group['Id'].' ON user.ID=T'.$Group['Id'].'.User';52 }53 45 54 $Query = 'SELECT ID, user.user, LastLogin, GM, ('.substr($Columns, 0, -3).') as NumberTranslate FROM `user`'.$Joins.''.$_SESSION['Where'].$Order['SQL'].$PageList['SQLLimit'];46 $Query = 'SELECT `ID`, `user`.`user`, `LastLogin`, `GM`, `TranslatedCount` FROM `user` '.$_SESSION['Where'].$Order['SQL'].$PageList['SQLLimit']; 55 47 56 48 $ID = $Database->SQLCommand($Query); … … 62 54 63 55 echo('<tr><td>'.$Name.'</td> 64 <td style="text-align: center;"><a href="TranslationList.php?user='.$Line['ID'].'&action=userall" title="Zobrazit Všechny jeho přeložené texty">'.$Line[' NumberTranslate'].'</a></td>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> 65 57 <td><img src="tmp/user/'.$Line['user'].'/level.png" alt="Úroveň uživatele" /></td> 66 58 <td>'.$Moderators[$Line['GM']].'</td>
Note:
See TracChangeset
for help on using the changeset viewer.