<?
if(!isset($_GET['pagina']) { $pagina = 1; } if(!isset($_POST['sorteerop']) { $sorteerop = "name"; } else { $sorteerop = $_POST['sorteerop'];} if(!isset($_POST['volgorde']) { $volgorde = "ASC"; } else { $volgorde = $_POST['volgorde'];} if(!isset($_POST['perpagina']) { $perpagina = 20; } else { $perpagina = $_POST['aantalperpagina']; ?>
<style type="text/css">
<!--
.style10 {color: #000000; font-weight: bold; font-style: italic; }
.style11 {
color: #000000;
font-weight: bold;
}
.style12 {color: #000000}
-->
</style>
<table border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#000000">
<tr bordercolor="#000000">
<td width="150" bordercolor="#A5E48B" bgcolor="#A5E48B"><table border="0" align="center" cellpadding="0" cellspacing="0">
<tr bgcolor="#A5E48B">
<td bordercolor="#F0FEFF"><img src="afbeeldingen/account/buddy.gif"></td>
<td bordercolor="#F0FEFF"><span class="style11">Lid</span></td>
<td bordercolor="#F0FEFF"><img src="afbeeldingen/account/buddy_admin.gif"></td>
<td bordercolor="#F0FEFF"><span class="style11">Staff</span></td>
</tr>
</table></td>
<td width="150" bordercolor="#A5E48B" bgcolor="#A5E48B"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td bordercolor="#F0FEFF" bgcolor="#A5E48B"><img src="afbeeldingen/account/mail.gif" width="25" height="20"></td>
<td bordercolor="#F0FEFF" bgcolor="#A5E48B"><span class="style11">Privébericht verzenden </span></td>
</tr>
</table></td>
</tr>
</table>
<br>
<form name="form1" method="post" action="">
<table border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#000000">
<tr bordercolor="#000000">
<td width="150" height="21" bordercolor="#A5E48B" bgcolor="#A5E48B"> <span class="style12">Leden per pagina: </span><br>
<select name="aantalperpagina" id="aantalperpagina">
<option value="20" selected>20</option>
<option value="50">50</option>
<option value="100">100</option>
</select>
</td>
<td width="150" bordercolor="#A5E48B" bgcolor="#A5E48B"><span class="style12"> </span> <span class="style12">Sorteer op:</span><br>
<select name="sorteerop" id="sorteerop">
<option value="name"
<?php if($sorteerop == "name") {echo "selected";} ?>>Gebruikersnaam</option>
<option value="regdatum"
<?php if($sorteerop == "regdatum") {echo "selected";} ?>>Registratiedatum</option>
</select>
<select name="volgorde" id="volgorde">
<option value="ASC"
<?php if($volgorde == "ASC") {echo "selected";} ?>>Oplopend</option>
<option value="DESC"
<?php if($volgorde == "DESC") {echo "selected";} ?>>Aflopend</option>
</select>
</td>
</tr>
<tr bordercolor="#000000">
<td height="21" colspan="2" bordercolor="#A5E48B" bgcolor="#A5E48B"><div align="center">
<input type="submit" name="Submit" value="Vernieuwen">
</div></td>
</tr>
</table>
</form>
<br>
<table width="100%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#000000">
<tr bordercolor="#A5E48B" bgcolor="#A5E48B">
<td><span class="style10"> </span></td>
<td width="20"><span class="style10">PM</span></td>
<td bgcolor="#A5E48B"><span class="style10"> Gebruikersnaam </span></td>
<td width="150" bordercolor="#A5E48B"><span class="style10"> Geregistreerd sinds: </span></td>
</tr>
<?php
if($sorteerop == "regdatum") { $sorteerop = "'regjaar','regmaand','regdag'"; } else { $sorteerop = $sorteerop; }
$leden_statement = "SELECT * FROM users ORDER BY ".$sorteerop." ".$volgorde;
<tr>
<td width="23"><?php
if($ledenlijst['LEVEL'] !=1) { ?><img src="afbeeldingen/account/buddy_admin.gif" border="0"><?php } else { ?><img src="afbeeldingen/account/buddy.gif"><?php } ?></td>
<td><img src="afbeeldingen/account/mail_blue.jpg" width="22" height="24"></td>
<td><a href="index.php?pagina=profiel&gebruiker_id=
<?php echo $ledenlijst['id'] ?>&ri=1">
<?php echo $ledenlijst['name'] ?> </a></td>
<td width="150" align="left" >
<?php echo $ledenlijst['regdag'] ?>-
<?php echo $ledenlijst['regmaand'] ?>-
<?php echo $ledenlijst['regjaar'] ?></td>
</tr>
<?php }
</table>