mirror of
http://git.frickel.earth/Tysox/BOS-Pinneberg.git
synced 2025-12-16 10:54:26 +01:00
+ Stichwoeter
This commit is contained in:
@@ -71,7 +71,7 @@
|
||||
<a href="#rettungsdienst" class="mdl-layout__tab">Rettungsdienst</a>
|
||||
<a href="#polizei" class="mdl-layout__tab">Polizei</a>
|
||||
<a href="#thw" class="mdl-layout__tab">THW</a>
|
||||
<a href="#bos" class="mdl-layout__tab">BOS Funk</a>
|
||||
<a href="#bos" class="mdl-layout__tab">Stichwörter</a>
|
||||
<div class="mdl-layout-spacer"></div>
|
||||
<button onclick="window.location.href='admin/login.php'" class="mdl-button mdl-js-button mdl-js-ripple-effect mdl-button--icon mdl--right" id="hdrbtn">
|
||||
<i class="material-icons">exit_to_app</i>
|
||||
|
||||
45
include/stichwort.php
Normal file
45
include/stichwort.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<?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);
|
||||
}
|
||||
|
||||
// output data of each row
|
||||
?>
|
||||
<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">
|
||||
<h4 style="text-align: center">Stichwörter</h4>
|
||||
<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>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?php
|
||||
|
||||
$stich = $conn->query("SELECT * FROM `stich`");
|
||||
|
||||
if($stich->num_rows > 0) {
|
||||
while ($frow = $stich->fetch_assoc()) {
|
||||
?>
|
||||
<tr>
|
||||
<td class="mdl-data-table__cell--non-numeric"><?php echo $frow['Einsatzstichwort'] ?></td>
|
||||
<td><?php echo $frow['Bedeutung'] ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
Reference in New Issue
Block a user