Changeset 245 for quests/statistic.php
- Timestamp:
- Jan 18, 2008, 4:07:44 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quests/statistic.php
r243 r245 18 18 </b><br /><br /> 19 19 <b>Seznam u¾ivatelù: </b> 20 <table border="1" cellpadding=" 1" cellspacing="0">20 <table border="1" cellpadding="2" cellspacing="0"> 21 21 <?php 22 22 … … 32 32 33 33 echo '<tr><th><a href="statistic.php?order=user&desc='.$desc.'">Jméno</a></th> 34 <th><a href="statistic.php?order=NumberTranslate&desc='.$desc.'">Poèet pøelo¾ených</a></th> 34 <th><a href="statistic.php?order=NumberTranslate&desc='.$desc.'" Title="Poèet pøelo¾ených questù">Pøelo¾ených</a></th> 35 <th><a href="statistic.php?order=vote&desc='.$desc.'" Title="Prùmìrná známka questù">Známka</a></th> 36 <th><a href="statistic.php?order=GM&desc='.$desc.'">Oprávnìní</a></th> 35 37 <th><a href="statistic.php?order=LastLogin&desc='.$desc.'">Poslední pøipojení</a></th></tr>'; 36 38 37 $ID = $Database->SQLCommand("SELECT user,Email,LastLogin,(SELECT count(*) FROM `quests` WHERE User = user.id AND User <> 0) as NumberTranslate FROM `user` ORDER BY $order $desc"); 39 $ID = $Database->SQLCommand("SELECT user,Email,LastLogin,GM, 40 (SELECT count(*) FROM `quests` WHERE User = user.id AND User <> 0) as NumberTranslate, 41 (SELECT avg(vote) FROM `quests` WHERE User = user.id AND Complete = 1) as vote 42 FROM `user` ORDER BY $order $desc"); 38 43 while ($Line = mysql_fetch_array($ID)) 39 echo '<tr><td>'.$Line['user'].'</td><td>'.$Line['NumberTranslate'].'</td><td>'.$Line['LastLogin'].'</td></tr>'; 44 echo '<tr><td>'.$Line['user'].'</td> 45 <td>'.$Line['NumberTranslate'].'</td> 46 <td>'.substr($Line['vote'], 0, 4).'</td> 47 <td>'.$Moderators[$Line['GM']].'</td> 48 <td>'.$Line['LastLogin'].'</td></tr>'; 40 49 41 50
Note:
See TracChangeset
for help on using the changeset viewer.