Changeset 293


Ignore:
Timestamp:
Jan 31, 2008, 9:47:31 PM (17 years ago)
Author:
maron
Message:

úprava statistiky

Location:
quests
Files:
1 added
3 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • quests/statistic.php

    r288 r293  
    66
    77<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 />
    1111
    1212<br>
     
    5757  $ID = $Database->SQLCommand("
    5858  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)
    6262   ) 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)
    6666     ) / (
    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)
    7070     ) AS Vote
    7171   FROM `user` ORDER BY $order $desc");
Note: See TracChangeset for help on using the changeset viewer.