3
0
mirror of http://git.frickel.earth/Tysox/BOS-Pinneberg.git synced 2025-05-21 08:14:32 +02:00

[+] Admin Include

[+] Method showHeader for Admin Include
This commit is contained in:
Chrissi Tank 2018-02-22 22:12:18 +01:00
parent 951e0e1148
commit d3e0a83755
6 changed files with 715 additions and 75 deletions

View File

@ -55,7 +55,7 @@ if ($_SESSION['status'] == 'login') { ?>
<div id="particles-js" class="background-site"></div> <div id="particles-js" class="background-site"></div>
<!--Login Screen--> <!--Login Screen-->
<form id="login_screen_panel" method="POST"> <form id="login_screen_panel" method="POST">
<p>Willkommen im Status ACP, bitte melden Sie sich an.</p> <p>BOS Funk Pinneberg - Admin Login</p>
<div class="input-group"> <div class="input-group">
<span class="input-group-addon glyphicon glyphicon-user" aria-hidden="true"></span> <span class="input-group-addon glyphicon glyphicon-user" aria-hidden="true"></span>
<input type="text" class="form-control" name="username" id="username" placeholder="Username"> <input type="text" class="form-control" name="username" id="username" placeholder="Username">

View File

@ -1,7 +1,220 @@
<?php <?php
/** session_start();
* Created by IntelliJ IDEA.
* User: Christoph if (empty($_SESSION['status'])) {
* Date: 12.02.2018 if (!file_exists('config/config.inc.php')) {
* Time: 23:33 $_SESSION['status'] = 'error';
*/ } else {
$_SESSION['status'] = 'login';
}
}
if ($_SESSION['status'] == "login") {
echo "<html>
<head>
<script>
setTimeout(\"window.location.href='../login.php'\", 0);
</script>
</head>
<body>
</body>
</html>";
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");?>
<main class="mdl-layout__content mdl-color--grey-100">
<div class="mdl-grid demo-content">
<div class="demo-charts mdl-color--white mdl-shadow--2dp mdl-cell mdl-cell--12-col mdl-grid">
<form>
<div class="mdl-textfield mdl-js-textfield getmdl-select getmdl-select__fix-height">
<input class="mdl-textfield__input" value="" id="ort" readonly/>
<input value="" type="hidden" name="ort"/>
<i class="mdl-icon-toggle__label material-icons">keyboard_arrow_down</i>
<label class="mdl-textfield__label" for="ort">Wache</label>
<ul for="ort" class="mdl-menu mdl-menu--bottom-left mdl-js-menu">
<?php
if ($result->num_rows > 0) {
// output data of each row
while ($row = $result->fetch_assoc()) {
?>
<li class="mdl-menu__item"
data-val="<?php echo($row['id']); ?>"> <?php echo($row['Ort']) ?></li> <?php
}
}
?>
</ul>
</div>
<br>
<div class="mdl-textfield mdl-js-textfield">
<input class="mdl-textfield__input" type="text" id="name">
<label class="mdl-textfield__label" for="name">Funkrufnummer</label>
</div>
<br>
<div class="mdl-textfield mdl-js-textfield">
<input class="mdl-textfield__input" type="text" id="number">
<label class="mdl-textfield__label" for="number">Funkname</label>
</div>
<br>
<div class="mdl-textfield mdl-js-textfield">
<input class="mdl-textfield__input" type="text" id="type">
<label class="mdl-textfield__label" for="type">Fahrzeug</label>
</div>
<br>
<button class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--colored">
OK
</button>
</form>
</div>
<div class="demo-graphs mdl-shadow--2dp mdl-color--white mdl-cell mdl-cell--8-col">
<svg fill="currentColor" viewBox="0 0 500 250" class="demo-graph">
<use xlink:href="#chart"/>
</svg>
<svg fill="currentColor" viewBox="0 0 500 250" class="demo-graph">
<use xlink:href="#chart"/>
</svg>
</div>
<div class="demo-cards mdl-cell mdl-cell--4-col mdl-cell--8-col-tablet mdl-grid mdl-grid--no-spacing">
<div class="demo-updates mdl-card mdl-shadow--2dp mdl-cell mdl-cell--4-col mdl-cell--4-col-tablet mdl-cell--12-col-desktop">
<div class="mdl-card__title mdl-card--expand mdl-color--teal-300">
<h2 class="mdl-card__title-text">Updates</h2>
</div>
<div class="mdl-card__supporting-text mdl-color-text--grey-600">
Non dolore elit adipisicing ea reprehenderit consectetur culpa.
</div>
<div class="mdl-card__actions mdl-card--border">
<a href="#" class="mdl-button mdl-js-button mdl-js-ripple-effect">Read More</a>
</div>
</div>
<div class="demo-separator mdl-cell--1-col"></div>
<div class="demo-options mdl-card mdl-color--deep-purple-500 mdl-shadow--2dp mdl-cell mdl-cell--4-col mdl-cell--3-col-tablet mdl-cell--12-col-desktop">
<div class="mdl-card__supporting-text mdl-color-text--blue-grey-50">
<h3>View options</h3>
<ul>
<li>
<label for="chkbox1" class="mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect">
<input type="checkbox" id="chkbox1" class="mdl-checkbox__input">
<span class="mdl-checkbox__label">Click per object</span>
</label>
</li>
<li>
<label for="chkbox2" class="mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect">
<input type="checkbox" id="chkbox2" class="mdl-checkbox__input">
<span class="mdl-checkbox__label">Views per object</span>
</label>
</li>
<li>
<label for="chkbox3" class="mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect">
<input type="checkbox" id="chkbox3" class="mdl-checkbox__input">
<span class="mdl-checkbox__label">Objects selected</span>
</label>
</li>
<li>
<label for="chkbox4" class="mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect">
<input type="checkbox" id="chkbox4" class="mdl-checkbox__input">
<span class="mdl-checkbox__label">Objects viewed</span>
</label>
</li>
</ul>
</div>
<div class="mdl-card__actions mdl-card--border">
<a href="#" class="mdl-button mdl-js-button mdl-js-ripple-effect mdl-color-text--blue-grey-50">Change
location</a>
<div class="mdl-layout-spacer"></div>
<i class="material-icons">location_on</i>
</div>
</div>
</div>
</div>
</main>
</div>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1"
style="position: fixed; left: -1000px; height: -1000px;">
<defs>
<mask id="piemask" maskContentUnits="objectBoundingBox">
<circle cx=0.5 cy=0.5 r=0.49 fill="white"/>
<circle cx=0.5 cy=0.5 r=0. 40 fill="black"/>
</mask>
<g id="piechart">
<circle cx=0.5 cy=0.5 r=0.5/>
<path d="M 0.5 0.5 0.5 0 A 0.5 0.5 0 0 1 0.95 0.28 z" stroke="none" fill="rgba(255, 255, 255, 0.75)"/>
</g>
</defs>
</svg>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 500 250"
style="position: fixed; left: -1000px; height: -1000px;">
<defs>
<g id="chart">
<g id="Gridlines">
<line fill="#888888" stroke="#888888" stroke-miterlimit="10" x1="0" y1="27.3" x2="468.3" y2="27.3"/>
<line fill="#888888" stroke="#888888" stroke-miterlimit="10" x1="0" y1="66.7" x2="468.3" y2="66.7"/>
<line fill="#888888" stroke="#888888" stroke-miterlimit="10" x1="0" y1="105.3" x2="468.3" y2="105.3"/>
<line fill="#888888" stroke="#888888" stroke-miterlimit="10" x1="0" y1="144.7" x2="468.3" y2="144.7"/>
<line fill="#888888" stroke="#888888" stroke-miterlimit="10" x1="0" y1="184.3" x2="468.3" y2="184.3"/>
</g>
<g id="Numbers">
<text transform="matrix(1 0 0 1 485 29.3333)" fill="#888888" font-family="'Roboto'" font-size="9">500
</text>
<text transform="matrix(1 0 0 1 485 69)" fill="#888888" font-family="'Roboto'" font-size="9">400</text>
<text transform="matrix(1 0 0 1 485 109.3333)" fill="#888888" font-family="'Roboto'" font-size="9">300
</text>
<text transform="matrix(1 0 0 1 485 149)" fill="#888888" font-family="'Roboto'" font-size="9">200</text>
<text transform="matrix(1 0 0 1 485 188.3333)" fill="#888888" font-family="'Roboto'" font-size="9">100
</text>
<text transform="matrix(1 0 0 1 0 249.0003)" fill="#888888" font-family="'Roboto'" font-size="9">1
</text>
<text transform="matrix(1 0 0 1 78 249.0003)" fill="#888888" font-family="'Roboto'" font-size="9">2
</text>
<text transform="matrix(1 0 0 1 154.6667 249.0003)" fill="#888888" font-family="'Roboto'" font-size="9">
3
</text>
<text transform="matrix(1 0 0 1 232.1667 249.0003)" fill="#888888" font-family="'Roboto'" font-size="9">
4
</text>
<text transform="matrix(1 0 0 1 309 249.0003)" fill="#888888" font-family="'Roboto'" font-size="9">5
</text>
<text transform="matrix(1 0 0 1 386.6667 249.0003)" fill="#888888" font-family="'Roboto'" font-size="9">
6
</text>
<text transform="matrix(1 0 0 1 464.3333 249.0003)" fill="#888888" font-family="'Roboto'" font-size="9">
7
</text>
</g>
<g id="Layer_5">
<polygon opacity="0.36" stroke-miterlimit="10" points="0,223.3 48,138.5 154.7,169 211,88.5
294.5,80.5 380,165.2 437,75.5 469.5,223.3 "/>
</g>
<g id="Layer_4">
<polygon stroke-miterlimit="10" points="469.3,222.7 1,222.7 48.7,166.7 155.7,188.3 212,132.7
296.7,128 380.7,184.3 436.7,125 "/>
</g>
</g>
</defs>
</svg>
<script src="https://code.getmdl.io/1.3.0/material.min.js"></script>
</body>
</html>

View File

@ -1,12 +1,4 @@
<?php <?php
class Header_inc
{
public $header = Feuerwher;
}
session_start(); session_start();
if (empty($_SESSION['status'])) { if (empty($_SESSION['status'])) {
@ -43,7 +35,9 @@ if ($conn->connect_error) {
} }
$result = $conn->query("SELECT * FROM `feuerwehr_pi`"); $result = $conn->query("SELECT * FROM `feuerwehr_pi`");
include("include/header.php"); ?> include("include/header.php");
$header = new Header();
$header->showHeader("Feuerwehr");?>
<main class="mdl-layout__content mdl-color--grey-100"> <main class="mdl-layout__content mdl-color--grey-100">
<div class="mdl-grid demo-content"> <div class="mdl-grid demo-content">

View File

@ -1,50 +1,50 @@
<?php <?php class Header
/** {
* Created by IntelliJ IDEA.
* User: Christoph
* Date: 05.02.2018
* Time: 18:09
*/
?>
<!doctype html>
/**
* @param $name
*/
public function showHeader($name)
{
echo ("<!doctype html>
<!-- <!--
Material Design Lite Material Design Lite
Copyright 2015 Google Inc. All rights reserved. Copyright 2015 Google Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the \"License\");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
You may obtain a copy of the License at You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0 https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, distributed under the License is distributed on an \"AS IS\" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License limitations under the License
--> -->
<html lang="de"> <html lang=\"de\">
<head> <head>
<meta charset="utf-8"> <meta charset=\"utf-8\">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
<meta name="description" content="A front-end template that helps you build fast, modern mobile web apps."> <meta name=\"description\" content=\"A front-end template that helps you build fast, modern mobile web apps.\">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0"> <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, minimum-scale=1.0\">
<title>BOS Funk | Webinterface</title> <title>BOS Funk | Webinterface</title>
<link rel="shortcut icon" href="../../images/favicon.png"> <link rel=\"shortcut icon\" href=\"../../images/favicon.png\">
<!-- SEO: If your mobile URL is different from the desktop URL, add a canonical link to the desktop page https://developers.google.com/webmasters/smartphone-sites/feature-phones --> <!-- SEO: If your mobile URL is different from the desktop URL, add a canonical link to the desktop page https://developers.google.com/webmasters/smartphone-sites/feature-phones -->
<!-- <!--
<link rel="canonical" href="http://www.example.com/"> <link rel=\"canonical\" href=\"http://www.example.com/\">
--> -->
<link rel="stylesheet" href="styles.css"> <link rel=\"stylesheet\" href=\"styles.css\">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:regular,bold,italic,thin,light,bolditalic,black,medium&amp;lang=en"> <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/css?family=Roboto:regular,bold,italic,thin,light,bolditalic,black,medium&amp;lang=en\">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"> <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\">
<link rel="stylesheet" href="https://code.getmdl.io/1.3.0/material.cyan-light_blue.min.css"> <link rel=\"stylesheet\" href=\"https://code.getmdl.io/1.3.0/material.cyan-light_blue.min.css\">
<link rel="stylesheet" href="../global/getmdl-select.min.css"> <link rel=\"stylesheet\" href=\"../global/getmdl-select.min.css\">
<script defer src="../global/js/getmdl-select.min.js"></script> <script defer src=\"../global/js/getmdl-select.min.js\"></script>
<style> <style>
@ -60,32 +60,39 @@ position: fixed;
</style> </style>
</head> </head>
<body> <body>
<div class="demo-layout mdl-layout mdl-js-layout mdl-layout--fixed-drawer mdl-layout--fixed-header"> <div class=\"demo-layout mdl-layout mdl-js-layout mdl-layout--fixed-drawer mdl-layout--fixed-header\">
<header class="demo-header mdl-layout__header mdl-color--grey-100 mdl-color-text--grey-600"> <header class=\"demo-header mdl-layout__header mdl-color--grey-100 mdl-color-text--grey-600\">
<div class="mdl-layout__header-row"> <div class=\"mdl-layout__header-row\">
<span class="mdl-layout-title"><?php $header = new Header_inc();?></span> <span class=\"mdl-layout-title\"> " . $name) . "</span>
<div class="mdl-layout-spacer"></div> <div class=\"mdl-layout-spacer\"></div>
<button onclick="window.location.href='../scripts/logout.php'" class="mdl-button mdl-js-button mdl-js-ripple-effect mdl-button--icon mdl-link--to" id="hdrbtn"> <button onclick=\"window.location.href='../scripts/logout.php'\" class=\"mdl-button mdl-js-button mdl-js-ripple-effect mdl-button--icon mdl-link--to\" id=\"hdrbtn\">
<i class="material-icons">power_settings_new</i> <i class=\"material-icons\">power_settings_new</i>
</button> </button>
</div> </div>
</header> </header>
<div class="demo-drawer mdl-layout__drawer mdl-color--blue-grey-900 mdl-color-text--blue-grey-50"> <div class=\"demo-drawer mdl-layout__drawer mdl-color--blue-grey-900 mdl-color-text--blue-grey-50\">
<header class="demo-drawer-header"> <header class=\"demo-drawer-header\">
<img src="../images/user.jpg" class="demo-avatar"> <img src=\"../images/user.jpg\" class=\"demo-avatar\">
<div class="demo-avatar-dropdown"> <div class=\"demo-avatar-dropdown\">
<span><?php echo $_SESSION['Name'] ?></span> <span>" . $_SESSION['Name'] . "</span>
<div class="mdl-layout-spacer"></div> <div class=\"mdl-layout-spacer\"></div>
<button id="accbtn" class="mdl-button mdl-js-button mdl-js-ripple-effect mdl-button--icon"> <button id=\"accbtn\" class=\"mdl-button mdl-js-button mdl-js-ripple-effect mdl-button--icon\">
<span class="visuallyhidden">Accounts</span> <span class=\"visuallyhidden\">Accounts</span>
</button> </button>
</div> </div>
</header> </header>
<nav class="demo-navigation mdl-navigation mdl-color--blue-grey-800"> <nav class=\"demo-navigation mdl-navigation mdl-color--blue-grey-800\">
<a class="mdl-navigation__link" href="../index.php"><i class="mdl-color-text--blue-grey-400 material-icons" role="presentation">home</i>Home</a> <a class=\"mdl-navigation__link\" href=\"../index.php\"><i class=\"mdl-color-text--blue-grey-400 material-icons\" role=\"presentation\">home</i>Home</a>
<a class="mdl-navigation__link" href="administration.php"><i class="mdl-color-text--blue-grey-400 material-icons" role="presentation">inbox</i>Verwaltung</a> <a class=\"mdl-navigation__link\" href=\"administration.php\"><i class=\"mdl-color-text--blue-grey-400 material-icons\" role=\"presentation\">inbox</i>Verwaltung</a>
<a class="mdl-navigation__link" href="ff.php"><i class="mdl-color-text--blue-grey-400 material-icons" role="presentation">directions_bus</i>Feuerwehr</a> <a class=\"mdl-navigation__link\" href=\"ff.php\"><i class=\"mdl-color-text--blue-grey-400 material-icons\" role=\"presentation\">directions_bus</i>Feuerwehr</a>
<a class="mdl-navigation__link" href="police.php"><i class="mdl-color-text--blue-grey-400 material-icons" role="presentation">local_taxi</i>Polizei</a> <a class=\"mdl-navigation__link\" href=\"police.php\"><i class=\"mdl-color-text--blue-grey-400 material-icons\" role=\"presentation\">local_taxi</i>Polizei</a>
<a class="mdl-navigation__link" href="ambulance.php"><i class="mdl-color-text--blue-grey-400 material-icons" role="presentation">local_hospital</i>Rettungsdienst</a> <a class=\"mdl-navigation__link\" href=\"ambulance.php\"><i class=\"mdl-color-text--blue-grey-400 material-icons\" role=\"presentation\">local_hospital</i>Rettungsdienst</a>
<a class="mdl-navigation__link" href="p/thw.php"><i class="mdl-color-text--blue-grey-400 material-icons" role="presentation">local_shipping</i>THW</a> <a class=\"mdl-navigation__link\" href=\"thw.php\"><i class=\"mdl-color-text--blue-grey-400 material-icons\" role=\"presentation\">local_shipping</i>THW</a>
</div> </div>";
}
}

View File

@ -1,7 +1,220 @@
<?php <?php
/** session_start();
* Created by IntelliJ IDEA.
* User: Christoph if (empty($_SESSION['status'])) {
* Date: 12.02.2018 if (!file_exists('config/config.inc.php')) {
* Time: 23:32 $_SESSION['status'] = 'error';
*/ } else {
$_SESSION['status'] = 'login';
}
}
if ($_SESSION['status'] == "login") {
echo "<html>
<head>
<script>
setTimeout(\"window.location.href='../login.php'\", 0);
</script>
</head>
<body>
</body>
</html>";
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");?>
<main class="mdl-layout__content mdl-color--grey-100">
<div class="mdl-grid demo-content">
<div class="demo-charts mdl-color--white mdl-shadow--2dp mdl-cell mdl-cell--12-col mdl-grid">
<form>
<div class="mdl-textfield mdl-js-textfield getmdl-select getmdl-select__fix-height">
<input class="mdl-textfield__input" value="" id="ort" readonly/>
<input value="" type="hidden" name="ort"/>
<i class="mdl-icon-toggle__label material-icons">keyboard_arrow_down</i>
<label class="mdl-textfield__label" for="ort">Wache</label>
<ul for="ort" class="mdl-menu mdl-menu--bottom-left mdl-js-menu">
<?php
if ($result->num_rows > 0) {
// output data of each row
while ($row = $result->fetch_assoc()) {
?>
<li class="mdl-menu__item"
data-val="<?php echo($row['id']); ?>"> <?php echo($row['Ort']) ?></li> <?php
}
}
?>
</ul>
</div>
<br>
<div class="mdl-textfield mdl-js-textfield">
<input class="mdl-textfield__input" type="text" id="name">
<label class="mdl-textfield__label" for="name">Funkrufnummer</label>
</div>
<br>
<div class="mdl-textfield mdl-js-textfield">
<input class="mdl-textfield__input" type="text" id="number">
<label class="mdl-textfield__label" for="number">Funkname</label>
</div>
<br>
<div class="mdl-textfield mdl-js-textfield">
<input class="mdl-textfield__input" type="text" id="type">
<label class="mdl-textfield__label" for="type">Fahrzeug</label>
</div>
<br>
<button class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--colored">
OK
</button>
</form>
</div>
<div class="demo-graphs mdl-shadow--2dp mdl-color--white mdl-cell mdl-cell--8-col">
<svg fill="currentColor" viewBox="0 0 500 250" class="demo-graph">
<use xlink:href="#chart"/>
</svg>
<svg fill="currentColor" viewBox="0 0 500 250" class="demo-graph">
<use xlink:href="#chart"/>
</svg>
</div>
<div class="demo-cards mdl-cell mdl-cell--4-col mdl-cell--8-col-tablet mdl-grid mdl-grid--no-spacing">
<div class="demo-updates mdl-card mdl-shadow--2dp mdl-cell mdl-cell--4-col mdl-cell--4-col-tablet mdl-cell--12-col-desktop">
<div class="mdl-card__title mdl-card--expand mdl-color--teal-300">
<h2 class="mdl-card__title-text">Updates</h2>
</div>
<div class="mdl-card__supporting-text mdl-color-text--grey-600">
Non dolore elit adipisicing ea reprehenderit consectetur culpa.
</div>
<div class="mdl-card__actions mdl-card--border">
<a href="#" class="mdl-button mdl-js-button mdl-js-ripple-effect">Read More</a>
</div>
</div>
<div class="demo-separator mdl-cell--1-col"></div>
<div class="demo-options mdl-card mdl-color--deep-purple-500 mdl-shadow--2dp mdl-cell mdl-cell--4-col mdl-cell--3-col-tablet mdl-cell--12-col-desktop">
<div class="mdl-card__supporting-text mdl-color-text--blue-grey-50">
<h3>View options</h3>
<ul>
<li>
<label for="chkbox1" class="mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect">
<input type="checkbox" id="chkbox1" class="mdl-checkbox__input">
<span class="mdl-checkbox__label">Click per object</span>
</label>
</li>
<li>
<label for="chkbox2" class="mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect">
<input type="checkbox" id="chkbox2" class="mdl-checkbox__input">
<span class="mdl-checkbox__label">Views per object</span>
</label>
</li>
<li>
<label for="chkbox3" class="mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect">
<input type="checkbox" id="chkbox3" class="mdl-checkbox__input">
<span class="mdl-checkbox__label">Objects selected</span>
</label>
</li>
<li>
<label for="chkbox4" class="mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect">
<input type="checkbox" id="chkbox4" class="mdl-checkbox__input">
<span class="mdl-checkbox__label">Objects viewed</span>
</label>
</li>
</ul>
</div>
<div class="mdl-card__actions mdl-card--border">
<a href="#" class="mdl-button mdl-js-button mdl-js-ripple-effect mdl-color-text--blue-grey-50">Change
location</a>
<div class="mdl-layout-spacer"></div>
<i class="material-icons">location_on</i>
</div>
</div>
</div>
</div>
</main>
</div>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1"
style="position: fixed; left: -1000px; height: -1000px;">
<defs>
<mask id="piemask" maskContentUnits="objectBoundingBox">
<circle cx=0.5 cy=0.5 r=0.49 fill="white"/>
<circle cx=0.5 cy=0.5 r=0. 40 fill="black"/>
</mask>
<g id="piechart">
<circle cx=0.5 cy=0.5 r=0.5/>
<path d="M 0.5 0.5 0.5 0 A 0.5 0.5 0 0 1 0.95 0.28 z" stroke="none" fill="rgba(255, 255, 255, 0.75)"/>
</g>
</defs>
</svg>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 500 250"
style="position: fixed; left: -1000px; height: -1000px;">
<defs>
<g id="chart">
<g id="Gridlines">
<line fill="#888888" stroke="#888888" stroke-miterlimit="10" x1="0" y1="27.3" x2="468.3" y2="27.3"/>
<line fill="#888888" stroke="#888888" stroke-miterlimit="10" x1="0" y1="66.7" x2="468.3" y2="66.7"/>
<line fill="#888888" stroke="#888888" stroke-miterlimit="10" x1="0" y1="105.3" x2="468.3" y2="105.3"/>
<line fill="#888888" stroke="#888888" stroke-miterlimit="10" x1="0" y1="144.7" x2="468.3" y2="144.7"/>
<line fill="#888888" stroke="#888888" stroke-miterlimit="10" x1="0" y1="184.3" x2="468.3" y2="184.3"/>
</g>
<g id="Numbers">
<text transform="matrix(1 0 0 1 485 29.3333)" fill="#888888" font-family="'Roboto'" font-size="9">500
</text>
<text transform="matrix(1 0 0 1 485 69)" fill="#888888" font-family="'Roboto'" font-size="9">400</text>
<text transform="matrix(1 0 0 1 485 109.3333)" fill="#888888" font-family="'Roboto'" font-size="9">300
</text>
<text transform="matrix(1 0 0 1 485 149)" fill="#888888" font-family="'Roboto'" font-size="9">200</text>
<text transform="matrix(1 0 0 1 485 188.3333)" fill="#888888" font-family="'Roboto'" font-size="9">100
</text>
<text transform="matrix(1 0 0 1 0 249.0003)" fill="#888888" font-family="'Roboto'" font-size="9">1
</text>
<text transform="matrix(1 0 0 1 78 249.0003)" fill="#888888" font-family="'Roboto'" font-size="9">2
</text>
<text transform="matrix(1 0 0 1 154.6667 249.0003)" fill="#888888" font-family="'Roboto'" font-size="9">
3
</text>
<text transform="matrix(1 0 0 1 232.1667 249.0003)" fill="#888888" font-family="'Roboto'" font-size="9">
4
</text>
<text transform="matrix(1 0 0 1 309 249.0003)" fill="#888888" font-family="'Roboto'" font-size="9">5
</text>
<text transform="matrix(1 0 0 1 386.6667 249.0003)" fill="#888888" font-family="'Roboto'" font-size="9">
6
</text>
<text transform="matrix(1 0 0 1 464.3333 249.0003)" fill="#888888" font-family="'Roboto'" font-size="9">
7
</text>
</g>
<g id="Layer_5">
<polygon opacity="0.36" stroke-miterlimit="10" points="0,223.3 48,138.5 154.7,169 211,88.5
294.5,80.5 380,165.2 437,75.5 469.5,223.3 "/>
</g>
<g id="Layer_4">
<polygon stroke-miterlimit="10" points="469.3,222.7 1,222.7 48.7,166.7 155.7,188.3 212,132.7
296.7,128 380.7,184.3 436.7,125 "/>
</g>
</g>
</defs>
</svg>
<script src="https://code.getmdl.io/1.3.0/material.min.js"></script>
</body>
</html>

View File

@ -1,7 +1,220 @@
<?php <?php
/** session_start();
* Created by IntelliJ IDEA.
* User: Christoph if (empty($_SESSION['status'])) {
* Date: 12.02.2018 if (!file_exists('config/config.inc.php')) {
* Time: 23:33 $_SESSION['status'] = 'error';
*/ } else {
$_SESSION['status'] = 'login';
}
}
if ($_SESSION['status'] == "login") {
echo "<html>
<head>
<script>
setTimeout(\"window.location.href='../login.php'\", 0);
</script>
</head>
<body>
</body>
</html>";
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");?>
<main class="mdl-layout__content mdl-color--grey-100">
<div class="mdl-grid demo-content">
<div class="demo-charts mdl-color--white mdl-shadow--2dp mdl-cell mdl-cell--12-col mdl-grid">
<form>
<div class="mdl-textfield mdl-js-textfield getmdl-select getmdl-select__fix-height">
<input class="mdl-textfield__input" value="" id="ort" readonly/>
<input value="" type="hidden" name="ort"/>
<i class="mdl-icon-toggle__label material-icons">keyboard_arrow_down</i>
<label class="mdl-textfield__label" for="ort">Wache</label>
<ul for="ort" class="mdl-menu mdl-menu--bottom-left mdl-js-menu">
<?php
if ($result->num_rows > 0) {
// output data of each row
while ($row = $result->fetch_assoc()) {
?>
<li class="mdl-menu__item"
data-val="<?php echo($row['id']); ?>"> <?php echo($row['Ort']) ?></li> <?php
}
}
?>
</ul>
</div>
<br>
<div class="mdl-textfield mdl-js-textfield">
<input class="mdl-textfield__input" type="text" id="name">
<label class="mdl-textfield__label" for="name">Funkrufnummer</label>
</div>
<br>
<div class="mdl-textfield mdl-js-textfield">
<input class="mdl-textfield__input" type="text" id="number">
<label class="mdl-textfield__label" for="number">Funkname</label>
</div>
<br>
<div class="mdl-textfield mdl-js-textfield">
<input class="mdl-textfield__input" type="text" id="type">
<label class="mdl-textfield__label" for="type">Fahrzeug</label>
</div>
<br>
<button class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--colored">
OK
</button>
</form>
</div>
<div class="demo-graphs mdl-shadow--2dp mdl-color--white mdl-cell mdl-cell--8-col">
<svg fill="currentColor" viewBox="0 0 500 250" class="demo-graph">
<use xlink:href="#chart"/>
</svg>
<svg fill="currentColor" viewBox="0 0 500 250" class="demo-graph">
<use xlink:href="#chart"/>
</svg>
</div>
<div class="demo-cards mdl-cell mdl-cell--4-col mdl-cell--8-col-tablet mdl-grid mdl-grid--no-spacing">
<div class="demo-updates mdl-card mdl-shadow--2dp mdl-cell mdl-cell--4-col mdl-cell--4-col-tablet mdl-cell--12-col-desktop">
<div class="mdl-card__title mdl-card--expand mdl-color--teal-300">
<h2 class="mdl-card__title-text">Updates</h2>
</div>
<div class="mdl-card__supporting-text mdl-color-text--grey-600">
Non dolore elit adipisicing ea reprehenderit consectetur culpa.
</div>
<div class="mdl-card__actions mdl-card--border">
<a href="#" class="mdl-button mdl-js-button mdl-js-ripple-effect">Read More</a>
</div>
</div>
<div class="demo-separator mdl-cell--1-col"></div>
<div class="demo-options mdl-card mdl-color--deep-purple-500 mdl-shadow--2dp mdl-cell mdl-cell--4-col mdl-cell--3-col-tablet mdl-cell--12-col-desktop">
<div class="mdl-card__supporting-text mdl-color-text--blue-grey-50">
<h3>View options</h3>
<ul>
<li>
<label for="chkbox1" class="mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect">
<input type="checkbox" id="chkbox1" class="mdl-checkbox__input">
<span class="mdl-checkbox__label">Click per object</span>
</label>
</li>
<li>
<label for="chkbox2" class="mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect">
<input type="checkbox" id="chkbox2" class="mdl-checkbox__input">
<span class="mdl-checkbox__label">Views per object</span>
</label>
</li>
<li>
<label for="chkbox3" class="mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect">
<input type="checkbox" id="chkbox3" class="mdl-checkbox__input">
<span class="mdl-checkbox__label">Objects selected</span>
</label>
</li>
<li>
<label for="chkbox4" class="mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect">
<input type="checkbox" id="chkbox4" class="mdl-checkbox__input">
<span class="mdl-checkbox__label">Objects viewed</span>
</label>
</li>
</ul>
</div>
<div class="mdl-card__actions mdl-card--border">
<a href="#" class="mdl-button mdl-js-button mdl-js-ripple-effect mdl-color-text--blue-grey-50">Change
location</a>
<div class="mdl-layout-spacer"></div>
<i class="material-icons">location_on</i>
</div>
</div>
</div>
</div>
</main>
</div>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1"
style="position: fixed; left: -1000px; height: -1000px;">
<defs>
<mask id="piemask" maskContentUnits="objectBoundingBox">
<circle cx=0.5 cy=0.5 r=0.49 fill="white"/>
<circle cx=0.5 cy=0.5 r=0. 40 fill="black"/>
</mask>
<g id="piechart">
<circle cx=0.5 cy=0.5 r=0.5/>
<path d="M 0.5 0.5 0.5 0 A 0.5 0.5 0 0 1 0.95 0.28 z" stroke="none" fill="rgba(255, 255, 255, 0.75)"/>
</g>
</defs>
</svg>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 500 250"
style="position: fixed; left: -1000px; height: -1000px;">
<defs>
<g id="chart">
<g id="Gridlines">
<line fill="#888888" stroke="#888888" stroke-miterlimit="10" x1="0" y1="27.3" x2="468.3" y2="27.3"/>
<line fill="#888888" stroke="#888888" stroke-miterlimit="10" x1="0" y1="66.7" x2="468.3" y2="66.7"/>
<line fill="#888888" stroke="#888888" stroke-miterlimit="10" x1="0" y1="105.3" x2="468.3" y2="105.3"/>
<line fill="#888888" stroke="#888888" stroke-miterlimit="10" x1="0" y1="144.7" x2="468.3" y2="144.7"/>
<line fill="#888888" stroke="#888888" stroke-miterlimit="10" x1="0" y1="184.3" x2="468.3" y2="184.3"/>
</g>
<g id="Numbers">
<text transform="matrix(1 0 0 1 485 29.3333)" fill="#888888" font-family="'Roboto'" font-size="9">500
</text>
<text transform="matrix(1 0 0 1 485 69)" fill="#888888" font-family="'Roboto'" font-size="9">400</text>
<text transform="matrix(1 0 0 1 485 109.3333)" fill="#888888" font-family="'Roboto'" font-size="9">300
</text>
<text transform="matrix(1 0 0 1 485 149)" fill="#888888" font-family="'Roboto'" font-size="9">200</text>
<text transform="matrix(1 0 0 1 485 188.3333)" fill="#888888" font-family="'Roboto'" font-size="9">100
</text>
<text transform="matrix(1 0 0 1 0 249.0003)" fill="#888888" font-family="'Roboto'" font-size="9">1
</text>
<text transform="matrix(1 0 0 1 78 249.0003)" fill="#888888" font-family="'Roboto'" font-size="9">2
</text>
<text transform="matrix(1 0 0 1 154.6667 249.0003)" fill="#888888" font-family="'Roboto'" font-size="9">
3
</text>
<text transform="matrix(1 0 0 1 232.1667 249.0003)" fill="#888888" font-family="'Roboto'" font-size="9">
4
</text>
<text transform="matrix(1 0 0 1 309 249.0003)" fill="#888888" font-family="'Roboto'" font-size="9">5
</text>
<text transform="matrix(1 0 0 1 386.6667 249.0003)" fill="#888888" font-family="'Roboto'" font-size="9">
6
</text>
<text transform="matrix(1 0 0 1 464.3333 249.0003)" fill="#888888" font-family="'Roboto'" font-size="9">
7
</text>
</g>
<g id="Layer_5">
<polygon opacity="0.36" stroke-miterlimit="10" points="0,223.3 48,138.5 154.7,169 211,88.5
294.5,80.5 380,165.2 437,75.5 469.5,223.3 "/>
</g>
<g id="Layer_4">
<polygon stroke-miterlimit="10" points="469.3,222.7 1,222.7 48.7,166.7 155.7,188.3 212,132.7
296.7,128 380.7,184.3 436.7,125 "/>
</g>
</g>
</defs>
</svg>
<script src="https://code.getmdl.io/1.3.0/material.min.js"></script>
</body>
</html>