3
0
mirror of http://git.frickel.earth/Tysox/BOS-Pinneberg.git synced 2025-05-21 06:34:31 +02:00

+Kreis Fahrzeuge

This commit is contained in:
Christoph Tank 2019-10-15 21:04:51 +02:00
parent f737c0d3c9
commit b84c113e41
2 changed files with 14 additions and 6 deletions

View File

@ -18,7 +18,15 @@ $result = $conn->query("SELECT * FROM `feuerwehr_pi`");
if ($result->num_rows > 0) { if ($result->num_rows > 0) {
// output data of each row // output data of each row
while ($row = $result->fetch_assoc()) { while ($row = $result->fetch_assoc()) {
if ($row['id'] == 1) {
echo("<h4>Feuerwehrbereitschaft</h4>");
}
if ($row['id'] == 2) {
echo("<h4>Technische Einsatzleitung</h4>");
}
if ($row['id'] == 3) {
echo("<h4>ABC-Dienst/LZG</h4>");
}
if ($row['id'] == 10) { if ($row['id'] == 10) {
echo("<h4>Revier Pinneberg</h4>"); echo("<h4>Revier Pinneberg</h4>");
} }
@ -60,12 +68,12 @@ if ($result->num_rows > 0) {
while ($frow = $fahrzeuge->fetch_assoc()) { while ($frow = $fahrzeuge->fetch_assoc()) {
?> ?>
<tr> <tr>
<td class="mdl-data-table__cell--non-numeric"><?php echo $frow['Fahrzeugtyp'] ?></td> <td data-label="Fahrzeugtyp" class="mdl-data-table__cell--non-numeric"><?php echo $frow['Fahrzeugtyp'] ?></td>
<?php if ($frow['Fahrzeugkennung'] == 0) { <?php if ($frow['Fahrzeugkennung'] == 0) {
?> ?>
<td class="mdl-data-table__cell--non-numeric"><?php echo $frow['Organistationskennung'] ?></td> <td data-label="Funkrufnummer" class="mdl-data-table__cell--non-numeric"><?php echo $frow['Organistationskennung'] ?></td>
<?php } else if ($frow['Fahrzeugkennung'] > 0) { ?> <?php } else if ($frow['Fahrzeugkennung'] > 0) { ?>
<td class="mdl-data-table__cell--non-numeric"><?php echo $frow['Organistationskennung'] . " " . $row['id'] . "-" . $frow['Fahrzeugkennung'] ?></td> <td data-label="Funkrufnummer" class="mdl-data-table__cell--non-numeric"><?php echo $frow['Organistationskennung'] . " " . $row['id'] . "-" . $frow['Fahrzeugkennung'] ?></td>
<?php } <?php }
} ?> } ?>

View File

@ -12,8 +12,8 @@ if ($conn->connect_error) {
// output data of each row // output data of each row
?> ?>
<section class="section--center mdl-grid mdl-grid--no-spacing mdl-shadow--2dp"> <section class="section--center mdl-grid mdl-grid--no-spacing">
<div class="mdl-card mdl-cell mdl-cell--12-col mdl-card__supporting-text"> <div class="table-responsive">
<h4 style="text-align: center">FMS-Status</h4> <h4 style="text-align: center">FMS-Status</h4>
<table style="margin-left: auto; margin-right: auto" class="mdl-data-table mdl-js-data-table mdl-shadow--2dp"> <table style="margin-left: auto; margin-right: auto" class="mdl-data-table mdl-js-data-table mdl-shadow--2dp">
<thead> <thead>