1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
|
<div align="center"><td>
<p><img src="http://ms-freizeit.de/wbb2/images/logo.gif" border="0"></p>
<p><font size="5"><b>Statisktik der Popularität im Board</b></font></p>
<table border="0" width="400">
<tr>
<td>-Punkte-</td>
<td>-Username-</td>
<td>-Stimmenanzahl-</td>
</tr>
</table>
<hr>
</td>
</div>
<?php
$filename="popular.php";
require("./global.php");
$faktor = 11; // wie lang ein Balken sein soll
$result = $db->query("SELECT * FROM bb".$n."_users ORDER BY ratingpoints DESC");
for($class=0; $row = $db->fetch_array($result);$class++) {
if( empty($row['ratingpoints']) ) continue;
$userid = $row['userid'];
$username = $row['username'];
$poppunkte = $row['ratingpoints'];
$rcount = $row['ratingcount'];
$tableclass = ( $class%2 == 0 ) ? "tableb" : "tableb";
echo '<table border="0" width="98%"><tr>';
echo '<td bgcolor="blue" width="'.$poppunkte * $faktor.'"> </td><td bgcolor="silver">'.$username.'</td>';
echo '<td bgcolor="yellow" width="80">'.$rcount.' mal</td>';
echo '</td></table>';
}
// exit();
?>
|