Changeset 251 for quests/statistic.php
- Timestamp:
- Jan 20, 2008, 8:44:37 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quests/statistic.php
r247 r251 5 5 ?> 6 6 7 <b>Statistika pøelo¾ených questù:</b><br>7 <b>Statistika:</b><br> 8 8 <img alt="quests" src="quests_statistic.php" title="statistika pøekladu úkolù"><br /> 9 <br /> 10 <img alt="npc_text" src="npc_statistic.php" title="statistika pøekladu NPC_textù"><br /> 9 11 <br /> 10 12 <b>Statistika v závislosti na èase: </b><a href="http://game-server.zdechov.net/statistic/?Measure=18">Pøelo¾ených textù</a><br> … … 33 35 34 36 echo '<tr><th><a href="statistic.php?order=user&desc='.$desc.'">Jméno</a></th> 35 <th><a href="statistic.php?order=NumberTranslate&desc='.$desc.'" Title="Poèet pøelo¾ených questù">Pøelo¾ených</a></th> 36 <th><a href="statistic.php?order=vote&desc='.$desc.'" Title="Prùmìrná známka questù">Známka</a></th> 37 <th><a href="statistic.php?order=NumberTranslate&desc='.$desc.'" Title="Poèet pøelo¾ených questù">Pøel. Q.</a></th> 38 <th><a href="statistic.php?order=NumberTranslateNPC&desc='.$desc.'" Title="Poèet pøelo¾ených NPC_textù">Pøel. N.</a></th> 39 <th><a href="statistic.php?order=vote&desc='.$desc.'" Title="Prùmìrná známka questù">Z. Q</a></th> 40 <th><a href="statistic.php?order=voteNPC&desc='.$desc.'" Title="Prùmìrná známka NPC_text">Z. N.</a></th> 37 41 <th><a href="statistic.php?order=GM&desc='.$desc.'">Oprávnìní</a></th> 38 42 <th><a href="statistic.php?order=LastLogin&desc='.$desc.'">Poslední pøipojení</a></th></tr>'; … … 40 44 $ID = $Database->SQLCommand("SELECT user,Email,LastLogin,GM, 41 45 (SELECT count(*) FROM `quests` WHERE User = user.id AND User <> 0) as NumberTranslate, 42 (SELECT avg(vote) FROM `quests` WHERE User = user.id AND Complete = 1) as vote 46 (SELECT count(*) FROM `npc_text` WHERE User = user.id AND User <> 0) as NumberTranslateNPC, 47 (SELECT avg(vote) FROM `quests` WHERE User = user.id AND Complete = 1) as vote, 48 (SELECT avg(Vote) FROM `npc_text` WHERE User = user.id AND Complete = 1) as voteNPC 43 49 FROM `user` ORDER BY $order $desc"); 44 50 while ($Line = mysql_fetch_array($ID)) 45 51 echo '<tr><td>'.$Line['user'].'</td> 46 52 <td>'.$Line['NumberTranslate'].'</td> 53 <td>'.$Line['NumberTranslateNPC'].'</td> 47 54 <td>'.substr($Line['vote'], 0, 4).'</td> 55 <td>'.substr($Line['voteNPC'], 0, 4).'</td> 48 56 <td>'.$Moderators[$Line['GM']].'</td> 49 57 <td>'.$Line['LastLogin'].'</td></tr>';
Note:
See TracChangeset
for help on using the changeset viewer.