From 5ceb711b64cb3d0d6d6783bb378e59c300be84ae Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Fri, 11 May 2012 02:09:07 +0200 Subject: [PATCH] Added user overview --- frontend/classes/class.user.php | 6 ++++++ frontend/css/cvm.css | 13 +++++++++---- frontend/module.admin.php | 3 ++- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/frontend/classes/class.user.php b/frontend/classes/class.user.php index 668f2be..f45b106 100644 --- a/frontend/classes/class.user.php +++ b/frontend/classes/class.user.php @@ -31,6 +31,12 @@ class User extends CPHPDatabaseRecordClass ) ); + public $prototype_export = array( + 'Username', + 'EmailAddress', + 'AccessLevel' + ); + public function GenerateSalt() { $this->uSalt = random_string(10); diff --git a/frontend/css/cvm.css b/frontend/css/cvm.css index 1fd936a..5f85ed6 100644 --- a/frontend/css/cvm.css +++ b/frontend/css/cvm.css @@ -81,14 +81,14 @@ table.vpsinfo th width: 150px; } -table.vpslist tr:hover +table.console th { - background-color: #BABAD0; + width: 120px; } -table.console th +table.userlist td { - width: 120px; + padding-bottom: 4px; } .clickable a @@ -97,6 +97,11 @@ table.console th text-decoration: none; } +tr.clickable:hover +{ + background-color: #BABAD0; +} + .clear { clear: both; diff --git a/frontend/module.admin.php b/frontend/module.admin.php index ac5bba1..e57972c 100644 --- a/frontend/module.admin.php +++ b/frontend/module.admin.php @@ -28,7 +28,8 @@ try $router->routes = array( 0 => array( - '^/admin/?$' => "module.admin.overview.php" + '^/admin/?$' => "module.admin.overview.php", + '^/admin/users/?$' => "module.admin.users.php" ) );