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

~ fkz in function

This commit is contained in:
Jan-Lukas Pagel 2019-10-15 00:57:46 +02:00
parent 90196fe677
commit 1c10a78a77

View File

@ -1,4 +1,42 @@
<?php <?php
function showTable($conn,$number) {
?>
<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` = ". $number);
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
}
$data = new Config(); $data = new Config();