From 2db9e7ec6ae7cf73de015a1a29ad00368cbed83f Mon Sep 17 00:00:00 2001 From: Ruan Date: Wed, 8 Jul 2015 08:24:25 +0200 Subject: [PATCH] Clean up tables --- bans.php | 22 +--------------------- includes/page.php | 10 ++++++++++ mutes.php | 12 +----------- warnings.php | 21 +-------------------- 4 files changed, 13 insertions(+), 52 deletions(-) diff --git a/bans.php b/bans.php index 1510205..2e7e84e 100644 --- a/bans.php +++ b/bans.php @@ -36,27 +36,8 @@
- - - - - - - - - - fetch(PDO::FETCH_ASSOC)) { @@ -80,7 +61,6 @@ -
-
Name
-
-
Banned By
-
-
Reason
-
-
Banned On
-
-
Banned Until
-
diff --git a/includes/page.php b/includes/page.php index 01a675f..aa69284 100644 --- a/includes/page.php +++ b/includes/page.php @@ -77,4 +77,14 @@ function clean($text) { return $text; } +function print_table_headers($headers) { + echo(""); + foreach ($headers as $header) { + echo('
'); + echo($header); + echo('
'); + } + echo(""); +} + ?> diff --git a/mutes.php b/mutes.php index 47cdebc..0a22a5e 100644 --- a/mutes.php +++ b/mutes.php @@ -13,17 +13,8 @@
- - - - - - - - - - fetch(PDO::FETCH_ASSOC)) { @@ -48,7 +39,6 @@ -
NameMuted ByReasonMuted OnMuted Until
diff --git a/warnings.php b/warnings.php index 2ed556b..9209551 100644 --- a/warnings.php +++ b/warnings.php @@ -13,27 +13,8 @@
- - - - - - - - - - fetch(PDO::FETCH_ASSOC)) {
-
Name
-
-
Warned By
-
-
Reason
-
-
Warned Until
-
-
Received Warning?
-