Changeset 245 for quests/statistic.php


Ignore:
Timestamp:
Jan 18, 2008, 4:07:44 PM (17 years ago)
Author:
maron
Message:

struktura, statistika, oprava zobrazení prioritních questů

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quests/statistic.php

    r243 r245  
    1818</b><br /><br />
    1919<b>Seznam u¾ivatelù: </b>
    20 <table border="1" cellpadding="1" cellspacing="0">
     20<table border="1" cellpadding="2" cellspacing="0">
    2121<?php 
    2222
     
    3232
    3333  echo '<tr><th><a href="statistic.php?order=user&amp;desc='.$desc.'">Jméno</a></th>
    34   <th><a href="statistic.php?order=NumberTranslate&amp;desc='.$desc.'">Poèet pøelo¾ených</a></th>
     34  <th><a href="statistic.php?order=NumberTranslate&amp;desc='.$desc.'" Title="Poèet pøelo¾ených questù">Pøelo¾ených</a></th>
     35  <th><a href="statistic.php?order=vote&amp;desc='.$desc.'" Title="Prùmìrná známka questù">Známka</a></th>
     36  <th><a href="statistic.php?order=GM&amp;desc='.$desc.'">Oprávnìní</a></th>
    3537  <th><a href="statistic.php?order=LastLogin&amp;desc='.$desc.'">Poslední pøipojení</a></th></tr>';
    3638
    37   $ID = $Database->SQLCommand("SELECT user,Email,LastLogin,(SELECT count(*) FROM `quests` WHERE User = user.id AND User <> 0) as NumberTranslate FROM `user` ORDER BY $order $desc");
     39  $ID = $Database->SQLCommand("SELECT user,Email,LastLogin,GM,
     40  (SELECT count(*) FROM `quests` WHERE User = user.id AND User <> 0) as NumberTranslate,
     41  (SELECT avg(vote) FROM `quests` WHERE User = user.id AND Complete = 1) as vote
     42   FROM `user` ORDER BY $order $desc");
    3843      while ($Line = mysql_fetch_array($ID))
    39         echo '<tr><td>'.$Line['user'].'</td><td>'.$Line['NumberTranslate'].'</td><td>'.$Line['LastLogin'].'</td></tr>';
     44        echo '<tr><td>'.$Line['user'].'</td>
     45        <td>'.$Line['NumberTranslate'].'</td>
     46        <td>'.substr($Line['vote'], 0, 4).'</td>
     47        <td>'.$Moderators[$Line['GM']].'</td>
     48        <td>'.$Line['LastLogin'].'</td></tr>';
    4049         
    4150         
Note: See TracChangeset for help on using the changeset viewer.