From 07253dc75c69cf585ad39a218f3f2cf97b773987 Mon Sep 17 00:00:00 2001 From: jhunkeler Date: Sat, 26 Dec 2009 20:02:05 +0000 Subject: commit before joe fucks shit git-svn-id: http://svn.3rd-infantry-division.org/testing/branches/Bayonet CMS v2@401 c5b2fb0a-d05d-0410-98c8-828840a80ff6 --- admin/admins/functions.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'admin/admins/functions.php') diff --git a/admin/admins/functions.php b/admin/admins/functions.php index 68b9bc7..8987322 100644 --- a/admin/admins/functions.php +++ b/admin/admins/functions.php @@ -43,7 +43,7 @@ function ListAdmins() { global $db; - $result = $db->Query("SELECT `user_id`, `username`, `level` FROM `bayonet_users` ORDER BY `level` DESC"); + $result = $db->Query("SELECT `user_id`, `username`, `level` FROM `bayonet_users` ORDER BY `level` DESC, `username` ASC"); while(($rows = $db->fetch($result))!=false) { $admins[] = $rows; @@ -51,9 +51,13 @@ $num = 1; OpenTable("300px"); - echo "UsernameLevel"; + echo "UsernameLevel"; foreach($admins as $admin) { + if($admin['level'] != $level){ + $level = $admin['level']; + echo "
"; + } echo "{$num}.{$admin['username']}{$admin['level']}"; $num++; } @@ -127,10 +131,10 @@
- + - +
Username:
Username:*
First Name:
Last Name:
Email Address:
Email Address:*
Level: -- cgit