mirror of
http://git.frickel.earth/Tysox/BOS-Pinneberg.git
synced 2025-05-21 06:44:30 +02:00
fixed bug
This commit is contained in:
parent
6c8817bc3a
commit
bb5834cebd
207
admin/p/ff.php
207
admin/p/ff.php
@ -37,120 +37,60 @@ $result = $conn->query("SELECT * FROM `feuerwehr_pi`");
|
||||
|
||||
include("include/header.php");
|
||||
$header = new Header();
|
||||
$header->showHeader("Feuerwehr");?>
|
||||
$header->showHeader("Feuerwehr"); ?>
|
||||
|
||||
<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">
|
||||
<h3 id="feedback"></h3>
|
||||
<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
|
||||
}
|
||||
<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">Funkrufname</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">Funknummer</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 onclick="addVehicle()" 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>
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</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>
|
||||
|
||||
<br>
|
||||
|
||||
<div class="mdl-textfield mdl-js-textfield">
|
||||
<input class="mdl-textfield__input" type="text" id="name">
|
||||
<label class="mdl-textfield__label" for="name">Funkrufname</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">Funknummer</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 onclick="addVehicle()"
|
||||
class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--colored">
|
||||
OK
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</main>
|
||||
</div>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1"
|
||||
@ -166,69 +106,20 @@ $header->showHeader("Feuerwehr");?>
|
||||
</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>
|
||||
<script src="../style/js/jQuery.js"></script>
|
||||
<script>
|
||||
|
||||
function addVehicle() {
|
||||
function addVehicle() {
|
||||
var ort = $("#ort").val();
|
||||
var name = $("#name").val();
|
||||
var number = $("#number").val();
|
||||
var type = $("#type").val();
|
||||
$.ajax({
|
||||
url: "../scripts/vehicles.php",
|
||||
url: "../scripts/vehicle.php",
|
||||
type: "POST",
|
||||
data: "org=ff&ort"+ort+"&name="+name+"&number="+number+"&type="+type,
|
||||
data: "org=ff&ort" + ort + "&name=" + name + "&number=" + number + "&type=" + type,
|
||||
success: function (resp) {
|
||||
$("#feedback").html(resp);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user