3
0
mirror of http://git.frickel.earth/Tysox/BOS-Pinneberg.git synced 2025-07-12 12:54:56 +02:00

~ fix group

This commit is contained in:
Jan-Lukas Pagel 2019-10-14 22:45:58 +02:00
parent 767d10bd82
commit 48e7700a45
5 changed files with 326 additions and 64 deletions

View File

@ -17,35 +17,8 @@ $result = $conn->query("SELECT * FROM `funk`");
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()) {
if ($row['id'] == 1) {
echo("<h4>Führungskräfte</h4>"); echo("<h4>Führungskräfte</h4>");
}
if ($row['id'] == 8) {
echo("<h4>Einsatzleit- und Mannschaftstransportwagen</h4>");
}
if ($row['id'] == 17) {
echo("<h4>Tank- und Pulverlöschfahrzeuge</h4>");
}
if ($row['id'] == 24) {
echo("<h4>Hubrettungsfahrzeuge</h4>");
}
if ($row['id'] == 31) {
echo("<h4>Löschgruppen- und Tragkraftspritzenfahrzeuge</h4>");
}
if ($row['id'] == 40) {
echo("<h4>Rüst- und Gerätewagen</h4>");
}
if ($row['id'] == 50) {
echo("<h4>Schlauch- und Wechselbehälterfahrzeuge</h4>");
}
if ($row['id'] == 58) {
echo("<h4>Sonstige Feuerwehrfahrzeuge</h4>");
}
if ($row['id'] == 67) {
echo("<h4>Rettungsdienstfahrzeuge</h4>");
}
?> ?>
<section class="section--center mdl-grid mdl-grid--no-spacing mdl-shadow--2dp"> <section class="section--center mdl-grid mdl-grid--no-spacing mdl-shadow--2dp">
<div class="mdl-card mdl-cell mdl-cell--12-col mdl-card--border mdl-card__supporting-text"> <div class="mdl-card mdl-cell mdl-cell--12-col mdl-card--border mdl-card__supporting-text">
@ -60,7 +33,7 @@ if ($result->num_rows > 0) {
</thead> </thead>
<tbody> <tbody>
<?php <?php
$funk = $conn->query("SELECT * FROM `funk" ); $funk = $conn->query("SELECT * FROM `funk WHERE ´gruppe´ = 1");
if ($funk->num_rows > 0) { if ($funk->num_rows > 0) {
while ($frow = $funk->fetch_assoc()) { while ($frow = $funk->fetch_assoc()) {
@ -80,6 +53,295 @@ if ($result->num_rows > 0) {
</section> </section>
<?php <?php
echo("<h4>Einsatzleit- und Mannschaftstransportwagen</h4>");
?>
<section class="section--center mdl-grid mdl-grid--no-spacing mdl-shadow--2dp">
<div class="mdl-card mdl-cell mdl-cell--12-col mdl-card--border mdl-card__supporting-text">
<table style="margin-left: auto; margin-right: auto"
class="mdl-data-table mdl-js-data-table mdl-shadow--2dp">
<thead>
<tr>
<th class="mdl-data-table__cell--non-numeric">Kennung</th>
<th>Beschreibung</th>
<th>Abkürzung</th>
</tr>
</thead>
<tbody>
<?php
$funk = $conn->query("SELECT * FROM `funk WHERE ´gruppe´ = 2");
if ($funk->num_rows > 0) {
while ($frow = $funk->fetch_assoc()) {
?>
<tr>
<td class="mdl-data-table__cell--non-numeric"><?php echo $frow['Kennung'] ?></td>
<td class="mdl-data-table__cell--non-numeric"><?php echo $frow['Bedeutung'] ?></td>
<td class="mdl-data-table__cell--non-numeric"><?php echo $frow['Abk'] ?></td>
</tr>
<?php
} }
}
?>
</tbody>
</table>
</div>
</section>
<?php
echo("<h4>Tank- und Pulverlöschfahrzeuge</h4>");
?>
<section class="section--center mdl-grid mdl-grid--no-spacing mdl-shadow--2dp">
<div class="mdl-card mdl-cell mdl-cell--12-col mdl-card--border mdl-card__supporting-text">
<table style="margin-left: auto; margin-right: auto"
class="mdl-data-table mdl-js-data-table mdl-shadow--2dp">
<thead>
<tr>
<th class="mdl-data-table__cell--non-numeric">Kennung</th>
<th>Beschreibung</th>
<th>Abkürzung</th>
</tr>
</thead>
<tbody>
<?php
$funk = $conn->query("SELECT * FROM `funk WHERE ´gruppe´ = 3");
if ($funk->num_rows > 0) {
while ($frow = $funk->fetch_assoc()) {
?>
<tr>
<td class="mdl-data-table__cell--non-numeric"><?php echo $frow['Kennung'] ?></td>
<td class="mdl-data-table__cell--non-numeric"><?php echo $frow['Bedeutung'] ?></td>
<td class="mdl-data-table__cell--non-numeric"><?php echo $frow['Abk'] ?></td>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
</section>
<?php
echo("<h4>Hubrettungsfahrzeuge</h4>");
?>
<section class="section--center mdl-grid mdl-grid--no-spacing mdl-shadow--2dp">
<div class="mdl-card mdl-cell mdl-cell--12-col mdl-card--border mdl-card__supporting-text">
<table style="margin-left: auto; margin-right: auto"
class="mdl-data-table mdl-js-data-table mdl-shadow--2dp">
<thead>
<tr>
<th class="mdl-data-table__cell--non-numeric">Kennung</th>
<th>Beschreibung</th>
<th>Abkürzung</th>
</tr>
</thead>
<tbody>
<?php
$funk = $conn->query("SELECT * FROM `funk WHERE ´gruppe´ = 4");
if ($funk->num_rows > 0) {
while ($frow = $funk->fetch_assoc()) {
?>
<tr>
<td class="mdl-data-table__cell--non-numeric"><?php echo $frow['Kennung'] ?></td>
<td class="mdl-data-table__cell--non-numeric"><?php echo $frow['Bedeutung'] ?></td>
<td class="mdl-data-table__cell--non-numeric"><?php echo $frow['Abk'] ?></td>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
</section>
<?php
echo("<h4>Löschgruppen- und Tragkraftspritzenfahrzeuge</h4>");
?>
<section class="section--center mdl-grid mdl-grid--no-spacing mdl-shadow--2dp">
<div class="mdl-card mdl-cell mdl-cell--12-col mdl-card--border mdl-card__supporting-text">
<table style="margin-left: auto; margin-right: auto"
class="mdl-data-table mdl-js-data-table mdl-shadow--2dp">
<thead>
<tr>
<th class="mdl-data-table__cell--non-numeric">Kennung</th>
<th>Beschreibung</th>
<th>Abkürzung</th>
</tr>
</thead>
<tbody>
<?php
$funk = $conn->query("SELECT * FROM `funk WHERE ´gruppe´ = 5");
if ($funk->num_rows > 0) {
while ($frow = $funk->fetch_assoc()) {
?>
<tr>
<td class="mdl-data-table__cell--non-numeric"><?php echo $frow['Kennung'] ?></td>
<td class="mdl-data-table__cell--non-numeric"><?php echo $frow['Bedeutung'] ?></td>
<td class="mdl-data-table__cell--non-numeric"><?php echo $frow['Abk'] ?></td>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
</section>
<?php
echo("<h4>Rüst- und Gerätewagen</h4>");
?>
<section class="section--center mdl-grid mdl-grid--no-spacing mdl-shadow--2dp">
<div class="mdl-card mdl-cell mdl-cell--12-col mdl-card--border mdl-card__supporting-text">
<table style="margin-left: auto; margin-right: auto"
class="mdl-data-table mdl-js-data-table mdl-shadow--2dp">
<thead>
<tr>
<th class="mdl-data-table__cell--non-numeric">Kennung</th>
<th>Beschreibung</th>
<th>Abkürzung</th>
</tr>
</thead>
<tbody>
<?php
$funk = $conn->query("SELECT * FROM `funk WHERE ´gruppe´ = 6");
if ($funk->num_rows > 0) {
while ($frow = $funk->fetch_assoc()) {
?>
<tr>
<td class="mdl-data-table__cell--non-numeric"><?php echo $frow['Kennung'] ?></td>
<td class="mdl-data-table__cell--non-numeric"><?php echo $frow['Bedeutung'] ?></td>
<td class="mdl-data-table__cell--non-numeric"><?php echo $frow['Abk'] ?></td>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
</section>
<?php
echo("<h4>Schlauch- und Wechselbehälterfahrzeuge</h4>");
?>
<section class="section--center mdl-grid mdl-grid--no-spacing mdl-shadow--2dp">
<div class="mdl-card mdl-cell mdl-cell--12-col mdl-card--border mdl-card__supporting-text">
<table style="margin-left: auto; margin-right: auto"
class="mdl-data-table mdl-js-data-table mdl-shadow--2dp">
<thead>
<tr>
<th class="mdl-data-table__cell--non-numeric">Kennung</th>
<th>Beschreibung</th>
<th>Abkürzung</th>
</tr>
</thead>
<tbody>
<?php
$funk = $conn->query("SELECT * FROM `funk WHERE ´gruppe´ = 7");
if ($funk->num_rows > 0) {
while ($frow = $funk->fetch_assoc()) {
?>
<tr>
<td class="mdl-data-table__cell--non-numeric"><?php echo $frow['Kennung'] ?></td>
<td class="mdl-data-table__cell--non-numeric"><?php echo $frow['Bedeutung'] ?></td>
<td class="mdl-data-table__cell--non-numeric"><?php echo $frow['Abk'] ?></td>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
</section>
<?php
echo("<h4>Sonstige Feuerwehrfahrzeuge</h4>");
?>
<section class="section--center mdl-grid mdl-grid--no-spacing mdl-shadow--2dp">
<div class="mdl-card mdl-cell mdl-cell--12-col mdl-card--border mdl-card__supporting-text">
<table style="margin-left: auto; margin-right: auto"
class="mdl-data-table mdl-js-data-table mdl-shadow--2dp">
<thead>
<tr>
<th class="mdl-data-table__cell--non-numeric">Kennung</th>
<th class="mdl-data-table__cell--non-numeric">Beschreibung</th>
<th class="mdl-data-table__cell--non-numeric">Abkürzung</th>
</tr>
</thead>
<tbody>
<?php
$funk = $conn->query("SELECT * FROM `funk WHERE ´gruppe´ = 8");
if ($funk->num_rows > 0) {
while ($frow = $funk->fetch_assoc()) {
?>
<tr>
<td class="mdl-data-table__cell--non-numeric"><?php echo $frow['Kennung'] ?></td>
<td class="mdl-data-table__cell--non-numeric"><?php echo $frow['Bedeutung'] ?></td>
<td class="mdl-data-table__cell--non-numeric"><?php echo $frow['Abk'] ?></td>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
</section>
<?php
echo("<h4>Rettungsdienstfahrzeuge</h4>");
?>
<section class="section--center mdl-grid mdl-grid--no-spacing mdl-shadow--2dp">
<div class="mdl-card mdl-cell mdl-cell--12-col mdl-card--border mdl-card__supporting-text">
<table style="margin-left: auto; margin-right: auto"
class="mdl-data-table mdl-js-data-table mdl-shadow--2dp">
<thead>
<tr>
<th class="mdl-data-table__cell--non-numeric">Kennung</th>
<th>Beschreibung</th>
<th>Abkürzung</th>
</tr>
</thead>
<tbody>
<?php
$funk = $conn->query("SELECT * FROM `funk WHERE ´gruppe´ = 9");
if ($funk->num_rows > 0) {
while ($frow = $funk->fetch_assoc()) {
?>
<tr>
<td class="mdl-data-table__cell--non-numeric"><?php echo $frow['Kennung'] ?></td>
<td class="mdl-data-table__cell--non-numeric"><?php echo $frow['Bedeutung'] ?></td>
<td class="mdl-data-table__cell--non-numeric"><?php echo $frow['Abk'] ?></td>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
</section>
<?php
} ?> } ?>

View File

@ -24,7 +24,7 @@
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="en"> <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">

View File

@ -21,7 +21,7 @@ if ($result->num_rows > 0) {
while($row = $result->fetch_assoc()) { while($row = $result->fetch_assoc()) {
?> ?>
<section class="section--center mdl-grid mdl-grid--no-spacing mdl-shadow--2dp"> <section class="section--center mdl-grid mdl-grid--no-spacing mdl-shadow--2dp">
<div class="mdl-card mdl-cell mdl-cell--12-col mdl-card__supporting-text"> <div class="mdl-card mdl-cell mdl-cell--12-col mdl-card--border mdl-card__supporting-text">
<h4 style="text-align: center"><?php echo $row['Ort'] ." [". $row['id'];?>]</h4> <h4 style="text-align: center"><?php echo $row['Ort'] ." [". $row['id'];?>]</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>

View File

@ -21,7 +21,7 @@ if ($result->num_rows > 0) {
while($row = $result->fetch_assoc()) { while($row = $result->fetch_assoc()) {
?> ?>
<section class="section--center mdl-grid mdl-grid--no-spacing mdl-shadow--2dp"> <section class="section--center mdl-grid mdl-grid--no-spacing mdl-shadow--2dp">
<div class="mdl-card mdl-cell mdl-cell--12-col mdl-card__supporting-text"> <div class="mdl-card mdl-cell mdl-cell--12-col mdl-card--border mdl-card__supporting-text">
<h4 style="text-align: center"><?php echo $row['Ort'] ." [". $row['id'];?>]</h4> <h4 style="text-align: center"><?php echo $row['Ort'] ." [". $row['id'];?>]</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>

View File

@ -18,7 +18,7 @@ if ($result->num_rows > 0) {
while($row = $result->fetch_assoc()) { while($row = $result->fetch_assoc()) {
?> ?>
<section class="section--center mdl-grid mdl-grid--no-spacing mdl-shadow--2dp"> <section class="section--center mdl-grid mdl-grid--no-spacing mdl-shadow--2dp">
<div class="mdl-card mdl-cell mdl-cell--12-col mdl-card__supporting-text"> <div class="mdl-card mdl-cell mdl-cell--12-col mdl-card--border mdl-card__supporting-text">
<h4 style="text-align: center"><?php echo $row['Ort'] ." [". $row['id'];?></h4> <h4 style="text-align: center"><?php echo $row['Ort'] ." [". $row['id'];?></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>