From 72d3a5ad8a735687deab004a08633cff65537780 Mon Sep 17 00:00:00 2001 From: Hendrik Date: Thu, 12 Jan 2017 11:16:57 +0100 Subject: [PATCH 1/3] added adminpanel main layout/concept --- website/admin.php | 21 +++++++++ website/styles/adminpanel.css | 64 ++++++++++++++++++++++++++++ website/views/adminpanel.php | 80 +++++++++++++++++++++++++++++++++++ website/views/head.php | 2 +- 4 files changed, 166 insertions(+), 1 deletion(-) create mode 100644 website/admin.php create mode 100644 website/styles/adminpanel.css create mode 100644 website/views/adminpanel.php diff --git a/website/admin.php b/website/admin.php new file mode 100644 index 0000000..8d8f8b5 --- /dev/null +++ b/website/admin.php @@ -0,0 +1,21 @@ + + + + + + + diff --git a/website/styles/adminpanel.css b/website/styles/adminpanel.css new file mode 100644 index 0000000..0bd8f1c --- /dev/null +++ b/website/styles/adminpanel.css @@ -0,0 +1,64 @@ +.admin-panel { + margin: auto; + background-color: white; + border-radius: 10px; + padding: 15px; + box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); +} + +.admin-options { +} + +.admin-searchbar { + display: inline-block; + margin: 10px; + vertical-align: top; +} + +.admin-searchinput { + border: 2px solid #B78996; + border-radius: 2px; + margin-bottom: 10px; +} + +.admin-filter { + display: inline-block; + margin: 10px; + vertical-align: top; + margin-right: 100px; +} + +.admin-actions { + display: inline-block; + margin: 10px; + vertical-align: top; +} + +.admin-users { + margin: 10px; +} + +.usertable { + width: 100%; +} + +.usertable .table-checkbox {width: 20px} +.usertable .table-username {width: 150px} +.usertable .table-action {width: 200px} + +.usertable th, td { + border-bottom: 1px solid #ddd; + padding: 3px; +} + +.usertable tr { + text-align: left; +} + +.usertable tr:hover { + background-color: #f5f5f5; +} + +/*div { + border: 1px solid black; +}*/ diff --git a/website/views/adminpanel.php b/website/views/adminpanel.php new file mode 100644 index 0000000..1d7b509 --- /dev/null +++ b/website/views/adminpanel.php @@ -0,0 +1,80 @@ + + + + + + Admin Panel + + +
+
+
+
+ + +
+

Show users:

+ Active
+ Muted
+ Banned +
+ +
+

Actions:

+ Mute
+ Ban
+ Unban

+ +
+
+
+

Users:

+ + + + + + + + + + + + + + + + + + + + +
UserBan reasonAction
John Smithunregulated time travel +
+ + +
+
poey jokeaiml33t h4xx +
+ + +
+
+
+ +
+
+ + diff --git a/website/views/head.php b/website/views/head.php index 3266463..4444d97 100644 --- a/website/views/head.php +++ b/website/views/head.php @@ -13,7 +13,7 @@ @import url("styles/header.css"); @import url("styles/menu.css"); @import url("styles/footer.css"); - + @import url("styles/adminpanel.css"); @import url("styles/chat.css"); From cfa119fef0585306525f897e5e54fb7ea0ecb623 Mon Sep 17 00:00:00 2001 From: Hendrik Date: Thu, 12 Jan 2017 11:54:56 +0100 Subject: [PATCH 2/3] added check all box --- website/styles/adminpanel.css | 10 ++++------ website/views/adminpanel.php | 26 ++++++++++++++++++++------ 2 files changed, 24 insertions(+), 12 deletions(-) diff --git a/website/styles/adminpanel.css b/website/styles/adminpanel.css index 0bd8f1c..15ecfdc 100644 --- a/website/styles/adminpanel.css +++ b/website/styles/adminpanel.css @@ -6,7 +6,10 @@ box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); } -.admin-options { +.admin-actions { + display: inline-block; + margin: 10px; + vertical-align: top; } .admin-searchbar { @@ -28,11 +31,6 @@ margin-right: 100px; } -.admin-actions { - display: inline-block; - margin: 10px; - vertical-align: top; -} .admin-users { margin: 10px; diff --git a/website/views/adminpanel.php b/website/views/adminpanel.php index 1d7b509..1a9d90b 100644 --- a/website/views/adminpanel.php +++ b/website/views/adminpanel.php @@ -4,6 +4,17 @@ Admin Panel +
@@ -30,15 +41,18 @@ Unban

- + +

Users:

- - - - - + + + + + From 96c114cc103df2ee6ac5cca9853b0f1d0edc906b Mon Sep 17 00:00:00 2001 From: Hendrik Date: Thu, 12 Jan 2017 11:59:48 +0100 Subject: [PATCH 3/3] added ban status --- website/styles/adminpanel.css | 1 + website/views/adminpanel.php | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/website/styles/adminpanel.css b/website/styles/adminpanel.css index 15ecfdc..f22de20 100644 --- a/website/styles/adminpanel.css +++ b/website/styles/adminpanel.css @@ -42,6 +42,7 @@ .usertable .table-checkbox {width: 20px} .usertable .table-username {width: 150px} +.usertable .table-status {width: 100px} .usertable .table-action {width: 200px} .usertable th, td { diff --git a/website/views/adminpanel.php b/website/views/adminpanel.php index 1a9d90b..2723e40 100644 --- a/website/views/adminpanel.php +++ b/website/views/adminpanel.php @@ -51,12 +51,14 @@ - + + + +
UserBan reasonAction
+ + UserBan reasonAction
UserBan reasonStatusComment Action
John SmithBanned unregulated time travel
@@ -72,6 +74,7 @@
poey jokeaimBanned l33t h4xx