Changeset 295 for quests/statistic.php
- Timestamp:
- Feb 7, 2008, 5:27:54 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quests/statistic.php
r293 r295 6 6 7 7 <b>Statistika:</b><br> 8 <img alt="quests" src="img_statistic.php?TypeText=quests" title="statistika pøekladu úkolù" style="margin: 5px 0px 0px 0px;"><br /> 9 <img alt="npc_text" src="img_statistic.php?TypeText=npc_text" title="statistika pøekladu NPC_textù" style="margin: 5px 0px 0px 0px;"><br /> 10 <img alt="page_text" src="img_statistic.php?TypeText=page_text" title="statistika pøekladu page_textù" style="margin: 5px 0px 0px 0px;"><br /> 8 <img alt="quests" src="img_statistic.php?TypeText=quests" title="statistika pøekladu úkolù" style="margin: 2px 0px 0px 0px;"><br /> 9 <img alt="npc_text" src="img_statistic.php?TypeText=npc_text" title="statistika pøekladu NPC_textù" style="margin: 2px 0px 0px 0px;"><br /> 10 <img alt="page_text" src="img_statistic.php?TypeText=page_text" title="statistika pøekladu page_textù" style="margin: 2px 0px 0px 0px;"><br /> 11 <?php // <img alt="page_text" src="img_statistic.php?TypeText=client_text" title="statistika pøekladu client_textù" style="margin: 2px 0px 0px 0px;"><br /> 12 ?> 11 13 12 14 <br> … … 36 38 37 39 echo '<tr><th><a href="statistic.php?order=user&desc='.$desc.'">Jméno</a></th> 38 <th><a href="statistic.php?order=NumberTranslate&desc='.$desc.'" Title="Poèet pøelo¾ených questù">Pøelo¾ených</a></th>39 <th><a href="statistic.php?order=Vote&desc='.$desc.'" Title="Prùmìrná známka questù">Prùmìrná známka</a></th>40 <th><a href="statistic.php?order=NumberTranslate&desc='.$desc.'" Title="Poèet pøelo¾ených textù">Pøelo¾ených</a></th> 41 <th><a href="statistic.php?order=Vote&desc='.$desc.'" Title="Prùmìrná známka textù">Prùmìrná známka</a></th> 40 42 <th><a href="statistic.php?order=GM&desc='.$desc.'">Oprávnìní</a></th> 41 43 <th><a href="statistic.php?order=LastLogin&desc='.$desc.'">Poslední pøipojení</a></th></tr>'; … … 57 59 $ID = $Database->SQLCommand(" 58 60 SELECT ID,user, LastLogin, GM, ( 59 (SELECT count(*) FROM `quests` WHERE User = user.ID AND Complete = 1 AND Language <> 0) + 60 (SELECT count(*) FROM `npc_text` WHERE User = user.ID AND Complete = 1 AND Language <> 0) + 61 (SELECT count(*) FROM `page_text` WHERE User = user.ID AND Complete = 1 AND Language <> 0) 61 (SELECT count(*) FROM `quests` WHERE User = user.ID AND Complete = 1 AND Language <> 0) 62 + (SELECT count(*) FROM `npc_text` WHERE User = user.ID AND Complete = 1 AND Language <> 0) 63 + (SELECT count(*) FROM `page_text` WHERE User = user.ID AND Complete = 1 AND Language <> 0) 64 + (SELECT count(*) FROM `client_text` WHERE User = user.ID AND Complete = 1 AND Language <> 0) 62 65 ) as NumberTranslate, ( 63 66 IFNULL((SELECT sum(Vote) AS Vote FROM `quests` WHERE User = user.ID AND Complete =1 AND Language <> 0),0) 64 67 + IFNULL((SELECT sum(Vote) AS Vote FROM `page_text` WHERE User = user.ID AND Complete =1 AND Language <> 0),0) 65 68 + IFNULL((SELECT sum(Vote) AS Vote FROM `npc_text` WHERE User = user.ID AND Complete =1 AND Language <> 0),0) 69 + IFNULL((SELECT sum(Vote) AS Vote FROM `client_text` WHERE User = user.ID AND Complete =1 AND Language <> 0),0) 66 70 ) / ( 67 71 (SELECT count(Vote) AS Vote FROM `quests` WHERE User = user.ID AND Complete =1 AND Language <> 0) 68 72 + (SELECT count(Vote) AS Vote FROM `page_text` WHERE User = user.ID AND Complete =1 AND Language <> 0) 69 73 + (SELECT count(Vote) AS Vote FROM `npc_text` WHERE User = user.ID AND Complete =1 AND Language <> 0) 74 + (SELECT count(Vote) AS Vote FROM `client_text` WHERE User = user.ID AND Complete =1 AND Language <> 0) 70 75 ) AS Vote 71 76 FROM `user` ORDER BY $order $desc");
Note:
See TracChangeset
for help on using the changeset viewer.