mirror of
http://git.frickel.earth/Tysox/BOS-Pinneberg.git
synced 2025-05-21 11:24:31 +02:00
[+] Verwaltung header
This commit is contained in:
parent
d3e0a83755
commit
dc1bfa4ccf
@ -1,10 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Created by IntelliJ IDEA.
|
|
||||||
* User: Christoph
|
|
||||||
* Date: 12.02.2018
|
|
||||||
* Time: 23:31
|
|
||||||
*/
|
|
||||||
session_start();
|
session_start();
|
||||||
|
|
||||||
if (empty($_SESSION['status'])) {
|
if (empty($_SESSION['status'])) {
|
||||||
@ -27,27 +21,74 @@ if( $_SESSION['status'] == "login") {
|
|||||||
</html>";
|
</html>";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
include("include/header.php");?>
|
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("Verwaltung");?>
|
||||||
|
|
||||||
<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">
|
||||||
<div class="demo-charts mdl-color--white mdl-shadow--2dp mdl-cell mdl-cell--12-col mdl-grid">
|
<div class="demo-charts mdl-color--white mdl-shadow--2dp mdl-cell mdl-cell--12-col mdl-grid">
|
||||||
<svg fill="currentColor" width="200px" height="200px" viewBox="0 0 1 1" class="demo-chart mdl-cell mdl-cell--4-col mdl-cell--3-col-desktop">
|
<form>
|
||||||
<use xlink:href="#piechart" mask="url(#piemask)" />
|
<div class="mdl-textfield mdl-js-textfield getmdl-select getmdl-select__fix-height">
|
||||||
<text x="0.5" y="0.5" font-family="Roboto" font-size="0.3" fill="#888" text-anchor="middle" dy="0.1">40<tspan font-size="0.2" dy="-0.07">%</tspan></text>
|
<input class="mdl-textfield__input" value="" id="ort" readonly/>
|
||||||
</svg>
|
<input value="" type="hidden" name="ort"/>
|
||||||
<svg fill="currentColor" width="200px" height="200px" viewBox="0 0 1 1" class="demo-chart mdl-cell mdl-cell--4-col mdl-cell--3-col-desktop">
|
<i class="mdl-icon-toggle__label material-icons">keyboard_arrow_down</i>
|
||||||
<use xlink:href="#piechart" mask="url(#piemask)" />
|
<label class="mdl-textfield__label" for="ort">Wache</label>
|
||||||
<text x="0.5" y="0.5" font-family="Roboto" font-size="0.3" fill="#888" text-anchor="middle" dy="0.1">59<tspan dy="-0.07" font-size="0.2">%</tspan></text>
|
<ul for="ort" class="mdl-menu mdl-menu--bottom-left mdl-js-menu">
|
||||||
</svg>
|
<?php
|
||||||
<svg fill="currentColor" width="200px" height="200px" viewBox="0 0 1 1" class="demo-chart mdl-cell mdl-cell--4-col mdl-cell--3-col-desktop">
|
if ($result->num_rows > 0) {
|
||||||
<use xlink:href="#piechart" mask="url(#piemask)" />
|
// output data of each row
|
||||||
<text x="0.5" y="0.5" font-family="Roboto" font-size="0.3" fill="#888" text-anchor="middle" dy="0.1">78<tspan dy="-0.07" font-size="0.2">%</tspan></text>
|
while ($row = $result->fetch_assoc()) {
|
||||||
</svg>
|
?>
|
||||||
<svg fill="currentColor" width="200px" height="200px" viewBox="0 0 1 1" class="demo-chart mdl-cell mdl-cell--4-col mdl-cell--3-col-desktop">
|
<li class="mdl-menu__item"
|
||||||
<use xlink:href="#piechart" mask="url(#piemask)" />
|
data-val="<?php echo($row['id']); ?>"> <?php echo($row['Ort']) ?></li> <?php
|
||||||
<text x="0.5" y="0.5" font-family="Roboto" font-size="0.3" fill="#888" text-anchor="middle" dy="0.1">9<tspan dy="-0.07" font-size="0.2">%</tspan></text>
|
}
|
||||||
</svg>
|
}
|
||||||
|
?>
|
||||||
|
</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>
|
||||||
<div class="demo-graphs mdl-shadow--2dp mdl-color--white mdl-cell mdl-cell--8-col">
|
<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">
|
<svg fill="currentColor" viewBox="0 0 500 250" class="demo-graph">
|
||||||
@ -101,7 +142,8 @@ include("include/header.php");?>
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="mdl-card__actions mdl-card--border">
|
<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>
|
<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>
|
<div class="mdl-layout-spacer"></div>
|
||||||
<i class="material-icons">location_on</i>
|
<i class="material-icons">location_on</i>
|
||||||
</div>
|
</div>
|
||||||
@ -110,7 +152,8 @@ include("include/header.php");?>
|
|||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</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;">
|
<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>
|
<defs>
|
||||||
<mask id="piemask" maskContentUnits="objectBoundingBox">
|
<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.49 fill="white"/>
|
||||||
@ -122,7 +165,8 @@ include("include/header.php");?>
|
|||||||
</g>
|
</g>
|
||||||
</defs>
|
</defs>
|
||||||
</svg>
|
</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;">
|
<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>
|
<defs>
|
||||||
<g id="chart">
|
<g id="chart">
|
||||||
<g id="Gridlines">
|
<g id="Gridlines">
|
||||||
@ -133,18 +177,32 @@ include("include/header.php");?>
|
|||||||
<line fill="#888888" stroke="#888888" stroke-miterlimit="10" x1="0" y1="184.3" x2="468.3" y2="184.3"/>
|
<line fill="#888888" stroke="#888888" stroke-miterlimit="10" x1="0" y1="184.3" x2="468.3" y2="184.3"/>
|
||||||
</g>
|
</g>
|
||||||
<g id="Numbers">
|
<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 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 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 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 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 485 188.3333)" fill="#888888" font-family="'Roboto'" font-size="9">100
|
||||||
<text transform="matrix(1 0 0 1 0 249.0003)" fill="#888888" font-family="'Roboto'" font-size="9">1</text>
|
</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 0 249.0003)" fill="#888888" font-family="'Roboto'" font-size="9">1
|
||||||
<text transform="matrix(1 0 0 1 154.6667 249.0003)" fill="#888888" font-family="'Roboto'" font-size="9">3</text>
|
</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 78 249.0003)" fill="#888888" font-family="'Roboto'" font-size="9">2
|
||||||
<text transform="matrix(1 0 0 1 309 249.0003)" fill="#888888" font-family="'Roboto'" font-size="9">5</text>
|
</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 154.6667 249.0003)" fill="#888888" font-family="'Roboto'" font-size="9">
|
||||||
<text transform="matrix(1 0 0 1 464.3333 249.0003)" fill="#888888" font-family="'Roboto'" font-size="9">7</text>
|
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>
|
||||||
<g id="Layer_5">
|
<g id="Layer_5">
|
||||||
<polygon opacity="0.36" stroke-miterlimit="10" points="0,223.3 48,138.5 154.7,169 211,88.5
|
<polygon opacity="0.36" stroke-miterlimit="10" points="0,223.3 48,138.5 154.7,169 211,88.5
|
||||||
|
Loading…
x
Reference in New Issue
Block a user