Changeset 251 for quests/statistic.php


Ignore:
Timestamp:
Jan 20, 2008, 8:44:37 PM (17 years ago)
Author:
maron
Message:

NPC_text

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quests/statistic.php

    r247 r251  
    55?>
    66
    7 <b>Statistika pøelo¾ených questù:</b><br>
     7<b>Statistika:</b><br>
    88 <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 />
    911<br />
    1012<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>
     
    3335
    3436  echo '<tr><th><a href="statistic.php?order=user&amp;desc='.$desc.'">Jméno</a></th>
    35   <th><a href="statistic.php?order=NumberTranslate&amp;desc='.$desc.'" Title="Poèet pøelo¾ených questù">Pøelo¾ených</a></th>
    36   <th><a href="statistic.php?order=vote&amp;desc='.$desc.'" Title="Prùmìrná známka questù">Známka</a></th>
     37  <th><a href="statistic.php?order=NumberTranslate&amp;desc='.$desc.'" Title="Poèet pøelo¾ených questù">Pøel. Q.</a></th>
     38  <th><a href="statistic.php?order=NumberTranslateNPC&amp;desc='.$desc.'" Title="Poèet pøelo¾ených NPC_textù">Pøel. N.</a></th>
     39  <th><a href="statistic.php?order=vote&amp;desc='.$desc.'" Title="Prùmìrná známka questù">Z. Q</a></th>
     40  <th><a href="statistic.php?order=voteNPC&amp;desc='.$desc.'" Title="Prùmìrná známka NPC_text">Z. N.</a></th>
    3741  <th><a href="statistic.php?order=GM&amp;desc='.$desc.'">Oprávnìní</a></th>
    3842  <th><a href="statistic.php?order=LastLogin&amp;desc='.$desc.'">Poslední pøipojení</a></th></tr>';
     
    4044  $ID = $Database->SQLCommand("SELECT user,Email,LastLogin,GM,
    4145  (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
    4349   FROM `user` ORDER BY $order $desc");
    4450      while ($Line = mysql_fetch_array($ID))
    4551        echo '<tr><td>'.$Line['user'].'</td>
    4652        <td>'.$Line['NumberTranslate'].'</td>
     53        <td>'.$Line['NumberTranslateNPC'].'</td>
    4754        <td>'.substr($Line['vote'], 0, 4).'</td>
     55        <td>'.substr($Line['voteNPC'], 0, 4).'</td>
    4856        <td>'.$Moderators[$Line['GM']].'</td>
    4957        <td>'.$Line['LastLogin'].'</td></tr>';
Note: See TracChangeset for help on using the changeset viewer.