From be8b5f50f22ba18b10b423590f1e5d330563f6fc Mon Sep 17 00:00:00 2001 From: /jedi/ Date: Thu, 27 Dec 2018 08:52:14 +0100 Subject: [PATCH] TAG 0 finetuning --- action.php | 1 - index.php | 12 +++++- templates/losttable.php | 94 +++++++++++++++++++++++++++++++++++++++++ templates/page.php | 4 +- templates/sidebar.php | 10 ++++- templates/table.php | 2 +- 6 files changed, 116 insertions(+), 7 deletions(-) create mode 100644 templates/losttable.php diff --git a/action.php b/action.php index cd58776..a6faa3d 100644 --- a/action.php +++ b/action.php @@ -42,7 +42,6 @@ switch($_GET["action"]) { } } break; - } header('Location: '.$_SERVER['HTTP_REFERER']); diff --git a/index.php b/index.php index 9d13383..7d5d37f 100644 --- a/index.php +++ b/index.php @@ -20,7 +20,7 @@ function auth(){ return true; } -function get_items(){ +function get_founditems(){ global $mysqli; $res = $mysqli->query("SELECT * FROM items ORDER BY id ASC"); $ret = array(); @@ -30,6 +30,16 @@ function get_items(){ return $ret; } +function get_lostitems(){ + global $mysqli; + $res = $mysqli->query("SELECT * FROM lost ORDER BY id ASC"); + $ret = array(); + while ($row = $res->fetch_assoc()) { + $ret[] = $row; + } + return $ret; +} + $page = isset($_GET["page"])?$_GET["page"]:"dashboard"; if (!auth()) { diff --git a/templates/losttable.php b/templates/losttable.php new file mode 100644 index 0000000..0d616b5 --- /dev/null +++ b/templates/losttable.php @@ -0,0 +1,94 @@ + +
+ +
+ + + + + +
+
+ + Data Table Example
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
IDwaswannwokontakt
IDwaswannwokontakt
+
+
+ +
+ +

+ More table examples coming soon... +

+ +
+ + + +
+
+ +
+
+ +
diff --git a/templates/page.php b/templates/page.php index 27c1b33..2c9fa3b 100644 --- a/templates/page.php +++ b/templates/page.php @@ -44,7 +44,7 @@ -
+