###LABEL###'; if(!is_numeric($page) || $page < 1){ $page = 0; } else if($page > $maxpages){ $page = $maxpages; } // Determine the importance of the Highscores (the less occurece, the more important) $qry = mysql_query('Select count(*) as anzahl, art from highscore where runde = '.($maxpages-$page).' group by art order by anzahl,art asc'); while($row = mysql_fetch_assoc($qry)){ $events[] = $row; } $qry = mysql_query('Select * from highscore where runde = '.($maxpages-$page).' order by art, datum'); echo ''."\n"; echo ''."\n"; echo ' '."\n"; echo ''."\n"; // Now generate the strings while($row = mysql_fetch_assoc($qry)){ if($old != $row['art']){ $eventhighscore[$row['art']] .= ''."\n"; $eventhighscore[$row['art']] .= ' '."\n"; $eventhighscore[$row['art']] .= ''."\n"; $eventhighscore[$row['art']] .= ''."\n"; $eventhighscore[$row['art']] .= ' '."\n"; $eventhighscore[$row['art']] .= ' '."\n"; $eventhighscore[$row['art']] .= ' '."\n"; $eventhighscore[$row['art']] .= ''."\n"; $old = $row['art']; } $eventhighscore[$row['art']] .= ''."\n"; $eventhighscore[$row['art']] .= ' '."\n"; if(!is_null($row['charid'])){ $eventhighscore[$row['art']] .= ' '."\n"; } else { $eventhighscore[$row['art']] .= ' '."\n"; } if(!is_null($row['userid'])){ $eventhighscore[$row['art']] .= ' '."\n"; } else{ $eventhighscore[$row['art']] .= ' '."\n"; } $eventhighscore[$row['art']] .= ''."\n"; } // Now echo the stuff!! for($i=0;$i'."\n"; echo ' '."\n"; echo ''."\n"; echo '
Halle der Helden aus Runde '.($maxpages - $page).'
'.$row['art'].'
DatumSiegerTrainer
'.$row['datum'].''.displayCharLink($row['charid'], $row['charname']).''.$row['charname'].''.displayUserLink($row['userid'], $row['username']).''.$row['username'].'
'."\n"; echo ' '."\n"; echo displayPagelinks($page, $maxpages, $url); echo '
'."\n"; echo '
'."\n";