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 @@ + +
ID | +was | +wann | +wo | +kontakt | +
---|---|---|---|---|
ID | +was | +wann | +wo | +kontakt | +
+ | + | + | + | + + |
+ More table examples coming soon... +
+ +