$DB->query("SELECT p.ID,p.Name,p.Level,COUNT(u.ID) FROM permissions AS p LEFT JOIN users_main AS u ON u.PermissionID=p.ID GROUP BY p.ID ORDER BY p.Level ASC");
if($DB->record_count()) {
?>
Name |
Level |
User Count |
Actions |
while(list($ID,$Name,$Level,$UserCount)=$DB->next_record()) { ?>
=display_str($Name); ?> |
=$Level; ?> |
=number_format($UserCount); ?> |
[Edit | Remove] |
} ?>
} else { ?>
There are no permission classes.
} ?>
show_footer();
?>