From d3e0a8375554aeee036600032855bb1fad9f0866 Mon Sep 17 00:00:00 2001 From: Chrissi Tank Date: Thu, 22 Feb 2018 22:12:18 +0100 Subject: [PATCH] [+] Admin Include [+] Method showHeader for Admin Include --- admin/login.php | 2 +- admin/p/ambulance.php | 225 ++++++++++++++++++++++++++++++++++++- admin/p/ff.php | 12 +- admin/p/include/header.php | 101 +++++++++-------- admin/p/police.php | 225 ++++++++++++++++++++++++++++++++++++- admin/p/thw.php | 225 ++++++++++++++++++++++++++++++++++++- 6 files changed, 715 insertions(+), 75 deletions(-) diff --git a/admin/login.php b/admin/login.php index fb27c6f..baf937a 100644 --- a/admin/login.php +++ b/admin/login.php @@ -55,7 +55,7 @@ if ($_SESSION['status'] == 'login') { ?>
-

Willkommen im Status ACP, bitte melden Sie sich an.

+

BOS Funk Pinneberg - Admin Login

diff --git a/admin/p/ambulance.php b/admin/p/ambulance.php index 6eb363f..3bec72a 100644 --- a/admin/p/ambulance.php +++ b/admin/p/ambulance.php @@ -1,7 +1,220 @@ + + + + + + "; + return; +} +include '../config/config.inc.php'; +$data = new Config(); + + +// Create connection +$conn = new mysqli($data->getSQLHost(), $data->getSQLUser(), $data->getSQLPassword(), $data->getSQLDatabase()); +mysqli_set_charset($conn, "utf8"); + +// Check connection +if ($conn->connect_error) { + die("Connection failed: " . $conn->connect_error); +} +$result = $conn->query("SELECT * FROM `rettung_pi`"); + +include("include/header.php"); +$header = new Header(); +$header->showHeader("Rettungsdienst");?> + +
+
+
+ +
+ + + keyboard_arrow_down + +
    + num_rows > 0) { + // output data of each row + while ($row = $result->fetch_assoc()) { + ?> +
  • +
+
+ +
+ +
+ + +
+ +
+ +
+ + +
+ +
+ +
+ + +
+ +
+ + + +
+
+ + + + + + +
+
+
+
+

Updates

+
+
+ Non dolore elit adipisicing ea reprehenderit consectetur culpa. +
+
+ Read More +
+
+
+
+
+

View options

+
    +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • +
+
+
+ Change + location +
+ location_on +
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + 500 + + 400 + 300 + + 200 + 100 + + 1 + + 2 + + + 3 + + + 4 + + 5 + + + 6 + + + 7 + + + + + + + + + + + + + + diff --git a/admin/p/ff.php b/admin/p/ff.php index 3bc39a7..0f82a8d 100644 --- a/admin/p/ff.php +++ b/admin/p/ff.php @@ -1,12 +1,4 @@ connect_error) { } $result = $conn->query("SELECT * FROM `feuerwehr_pi`"); -include("include/header.php"); ?> +include("include/header.php"); +$header = new Header(); +$header->showHeader("Feuerwehr");?>
diff --git a/admin/p/include/header.php b/admin/p/include/header.php index f37ebbd..6868fa5 100644 --- a/admin/p/include/header.php +++ b/admin/p/include/header.php @@ -1,50 +1,50 @@ - + + + /** + * @param $name + */ + public function showHeader($name) + { + echo (" - + - - - - + + + + BOS Funk | Webinterface - + - - - - - - + + + + + + -
-
-
- -
-
-
-
- -
- -
-
-
\ No newline at end of file +
"; + + } + +} + + + diff --git a/admin/p/police.php b/admin/p/police.php index 7d672ca..3970cf5 100644 --- a/admin/p/police.php +++ b/admin/p/police.php @@ -1,7 +1,220 @@ + + + + + + "; + return; +} +include '../config/config.inc.php'; +$data = new Config(); + + +// Create connection +$conn = new mysqli($data->getSQLHost(), $data->getSQLUser(), $data->getSQLPassword(), $data->getSQLDatabase()); +mysqli_set_charset($conn, "utf8"); + +// Check connection +if ($conn->connect_error) { + die("Connection failed: " . $conn->connect_error); +} +$result = $conn->query("SELECT * FROM `polizei_pi`"); + +include("include/header.php"); +$header = new Header(); +$header->showHeader("Polizei");?> + +
+
+
+
+
+ + + keyboard_arrow_down + +
    + num_rows > 0) { + // output data of each row + while ($row = $result->fetch_assoc()) { + ?> +
  • +
+
+ +
+ +
+ + +
+ +
+ +
+ + +
+ +
+ +
+ + +
+ +
+ + +
+
+
+ + + + + + +
+
+
+
+

Updates

+
+
+ Non dolore elit adipisicing ea reprehenderit consectetur culpa. +
+
+ Read More +
+
+
+
+
+

View options

+
    +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • +
+
+
+ Change + location +
+ location_on +
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + 500 + + 400 + 300 + + 200 + 100 + + 1 + + 2 + + + 3 + + + 4 + + 5 + + + 6 + + + 7 + + + + + + + + + + + + + + diff --git a/admin/p/thw.php b/admin/p/thw.php index 6eb363f..af05fc8 100644 --- a/admin/p/thw.php +++ b/admin/p/thw.php @@ -1,7 +1,220 @@ + + + + + + "; + return; +} +include '../config/config.inc.php'; +$data = new Config(); + + +// Create connection +$conn = new mysqli($data->getSQLHost(), $data->getSQLUser(), $data->getSQLPassword(), $data->getSQLDatabase()); +mysqli_set_charset($conn, "utf8"); + +// Check connection +if ($conn->connect_error) { + die("Connection failed: " . $conn->connect_error); +} +$result = $conn->query("SELECT * FROM `polizei_pi`"); + +include("include/header.php"); +$header = new Header(); +$header->showHeader("THW");?> + +
+
+
+
+
+ + + keyboard_arrow_down + +
    + num_rows > 0) { + // output data of each row + while ($row = $result->fetch_assoc()) { + ?> +
  • +
+
+ +
+ +
+ + +
+ +
+ +
+ + +
+ +
+ +
+ + +
+ +
+ + +
+
+
+ + + + + + +
+
+
+
+

Updates

+
+
+ Non dolore elit adipisicing ea reprehenderit consectetur culpa. +
+
+ Read More +
+
+
+
+
+

View options

+
    +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • +
+
+
+ Change + location +
+ location_on +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + 500 + + 400 + 300 + + 200 + 100 + + 1 + + 2 + + + 3 + + + 4 + + 5 + + + 6 + + + 7 + + + + + + + + + + + + + +