Changeset 293
- Timestamp:
- Jan 31, 2008, 9:47:31 PM (17 years ago)
- Location:
- quests
- Files:
-
- 1 added
- 3 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quests/statistic.php
r288 r293 6 6 7 7 <b>Statistika:</b><br> 8 <img alt="quests" src=" quests_statistic.php" title="statistika pøekladu úkolù" style="margin: 5px 0px 0px 0px;"><br />9 <img alt="npc_text" src=" npc_statistic.php" title="statistika pøekladu NPC_textù" style="margin: 5px 0px 0px 0px;"><br />10 <img alt=" npc_text" src="page_statistic.php" 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: 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 /> 11 11 12 12 <br> … … 57 57 $ID = $Database->SQLCommand(" 58 58 SELECT ID,user, LastLogin, GM, ( 59 (SELECT count(*) FROM `quests` WHERE User = user.ID AND Complete = 1 ) +60 (SELECT count(*) FROM `npc_text` WHERE User = user.ID AND Complete = 1 ) +61 (SELECT count(*) FROM `page_text` WHERE User = user.ID AND Complete = 1 )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) 62 62 ) as NumberTranslate, ( 63 IFNULL((SELECT sum(Vote) AS Vote FROM `quests` WHERE User = user.ID AND Complete =1 ),0)64 + IFNULL((SELECT sum(Vote) AS Vote FROM `page_text` WHERE User = user.ID AND Complete =1 ),0)65 + IFNULL((SELECT sum(Vote) AS Vote FROM `npc_text` WHERE User = user.ID AND Complete =1 ),0)63 IFNULL((SELECT sum(Vote) AS Vote FROM `quests` WHERE User = user.ID AND Complete =1 AND Language <> 0),0) 64 + IFNULL((SELECT sum(Vote) AS Vote FROM `page_text` WHERE User = user.ID AND Complete =1 AND Language <> 0),0) 65 + IFNULL((SELECT sum(Vote) AS Vote FROM `npc_text` WHERE User = user.ID AND Complete =1 AND Language <> 0),0) 66 66 ) / ( 67 (SELECT count(Vote) AS Vote FROM `quests` WHERE User = user.ID AND Complete =1 )68 + (SELECT count(Vote) AS Vote FROM `page_text` WHERE User = user.ID AND Complete =1 )69 + (SELECT count(Vote) AS Vote FROM `npc_text` WHERE User = user.ID AND Complete =1 )67 (SELECT count(Vote) AS Vote FROM `quests` WHERE User = user.ID AND Complete =1 AND Language <> 0) 68 + (SELECT count(Vote) AS Vote FROM `page_text` WHERE User = user.ID AND Complete =1 AND Language <> 0) 69 + (SELECT count(Vote) AS Vote FROM `npc_text` WHERE User = user.ID AND Complete =1 AND Language <> 0) 70 70 ) AS Vote 71 71 FROM `user` ORDER BY $order $desc");
Note:
See TracChangeset
for help on using the changeset viewer.