0 && $_GET['p'] < $aantal_paginas) { $huidige_pagina = $_GET['p']; } // items van de huidige pagina ophalen $offset = $huidige_pagina * $items_per_pagina; if(isset($_GET['x']) and $_GET['x'] == "contant") { $query = mysql_query("SELECT login, level, vipdagen, clan, attack, defence, cash, land, admin,rank, online, pimprecht, hulpadmin, pimpnaam, pimpkleur FROM `[users]` ORDER BY cash DESC, login ASC LIMIT ".$offset."," .$items_per_pagina) or die("res2:". mysql_error()); } if(isset($_GET['x']) and $_GET['x'] == "rank") { $query = mysql_query("SELECT login, level, vipdagen, clan, attack, defence, cash, land, admin,rank, online, pimprecht, hulpadmin, pimpnaam, pimpkleur FROM `[users]` ORDER BY rank DESC, login ASC LIMIT ".$offset."," .$items_per_pagina) or die("res2:". mysql_error()); } elseif(!isset($_GET['x']) or $_GET['x'] == "power") { $query = mysql_query("SELECT login, level, vipdagen, clan, attack, defence, cash, land, admin, rank , online, pimprecht, hulpadmin, pimpnaam, pimpkleur FROM `[users]` ORDER BY (attack + defence) DESC, login ASC LIMIT ".$offset."," .$items_per_pagina); }elseif($_GET['x'] == "online") { $query = mysql_query("SELECT login, level, vipdagen, clan, attack, defence, cash, land, admin, rank , online, pimprecht, hulpadmin, pimpnaam, pimpkleur FROM `[users]` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 AND showonline=1 ORDER BY (attack + defence) DESC, login ASC LIMIT ".$offset."," .$items_per_pagina); } if(!isset($_GET['p'])) { $aantal = 0; } else { $aantal = $_GET['p'] * 30; } while($info = mysql_fetch_assoc($query)) { $extra = ''; $aantal++; if($info['admin'] == 1) { $login2 = ''.$info['login'].''; $extra = 'admin '; } elseif($info['hulpadmin'] == 1) { $login2 = ''.$info['login'].''; } elseif($info['vipdagen'] > 0) { $login2 = ''.$info['login'].'Vip '; } else { $login2 = $info['login'].""; } $login3 = ''; $login3 = ($info['pimprecht'] == 1) ? " [Ownage]" : $login3; $login3 = ($info['pimprecht'] == 2) ? " [Pwnzor]" : $login3; $login3 = ($info['pimprecht'] == 3) ? " [Bitch]" : $login3; $login3 = ($info['pimprecht'] == 4) ? " [Mafia]": $login3; $login3 = ($info['pimprecht'] == 5) ? " [Devil]" : $login3; $login3 = ($info['pimprecht'] == 6) ? " [Afwezig]" : $login3; $login3 = ($info['pimprecht'] == 8) ? " [Lunchpauze]" : $login3; $login3 = ($info['pimprecht'] == 7) ? " [Bezet]" : $login3; $login3 = ($info['pimprecht'] == 9) ? " [Tv]" : $login3; $login3 = ($info['pimprecht'] == 10) ? " [Slaapt]" : $login3; $login3 = ($info['pimprecht'] == 12) ? " [Angel]" : $login3; $login3 = ($info['pimprecht'] == 13) ? " [Gangster]" : $login3; $login3 = ($info['pimprecht'] == 20) ? "".$info['pimpnaam']."" : $login3; if(empty($info['clan'])) { $clan = 'Geen'; } else { $clan = ''.$info['clan'].''; } ?>
# Naam Clan Contant Power Actie
Aanvallen !
Navigatie
Pagina van 1 || !in_array($nav_var, array_keys($_GET))) { // meer queryvariabelen te onthouden dan enkel $_GET[$nav_var] foreach($_GET as $k => $v) { if($k != $nav_var) { $qstring .= $k."=".$v."&"; } } } return $qstring; } $q = $_SERVER['PHP_SELF'].querystring("p"); for($i = 0; $i < $aantal_paginas; $i++) { if($huidige_pagina == $i) { // huidige pagina is niet klikbaar echo "".($i+1).""; } else { // een andere pagina - gebruik hier $q echo "".($i+1).""; } // deel-streepje tussen alle items if($i < $aantal_paginas - 1) { echo " - "; } } ?>

Legenda
Vip: Naam
Hulp admins: Naam
Admin: Naam