<?php
/*===================================================+
|| # Woodpecker Housekeeping
|+====================================================+
|| # Copyright © 2008 SuperFun. All rights reserved.
|| # http://www.superfunn.nl/
|+===================================================+
|| # Notice: This is free software.
|+===================================================+
|| # Versions.
|| # Housekeeping version: V3.5
|| # Version of this file: V1.3 (staff.php)
|+===================================================+
||
|| # Usage of this page:
|| # User management.
||
|+===================================================*/

include('inc/header.php');
if(min_fuse('housekeeping_userranks', $my_id)){
	$staff_a = mysql_query("SELECT * FROM users WHERE role >= '2' ORDER BY role, id");
	echo '<table border="1">';
	echo '<tr>';
	echo '<td><b>ID</b></td>';
	echo '<td><b>Naam</b></td>';
	echo '<td><b>Rank</b></td>';
	echo '</tr>';
	while($staff_b = mysql_fetch_assoc($staff_a)){
		echo '<tr>';
		echo '<td>'.$staff_b['id'].'</td>';
		echo '<td>'.$staff_b['username'].'</td>';
		echo '<td>'.role($staff_b['role']).'</td>';
		echo '</tr>';
	}
	echo '</table>';
}else{
	echo $acc_denied;
}
include('inc/footer.php');
?>