mirror of
http://git.frickel.earth/Tysox/BOS-Pinneberg.git
synced 2025-12-15 22:34:22 +01:00
[+] FF Anzeige
This commit is contained in:
80
include/ff.php
Normal file
80
include/ff.php
Normal file
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
include 'admin/config/config.inc.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);
|
||||
}
|
||||
|
||||
|
||||
$result = $conn->query("SELECT * FROM `feuerwehr_pi`");
|
||||
|
||||
|
||||
if ($result->num_rows > 0) {
|
||||
// output data of each row
|
||||
while($row = $result->fetch_assoc()) {
|
||||
|
||||
if($row['id'] == 10) {
|
||||
echo("<h4>Revier Pinneberg</h4>");
|
||||
}
|
||||
if($row['id'] == 20) {
|
||||
echo("<h4>Revier Elmshorn</h4>");
|
||||
}
|
||||
if($row['id'] == 30) {
|
||||
echo("<h4>Revier Wedel</h4>");
|
||||
}
|
||||
if($row['id'] == 40) {
|
||||
echo("<h4>Revier Uetersen</h4>");
|
||||
}
|
||||
if($row['id'] == 60) {
|
||||
echo("<h4>Revier Hörnerkirchen</h4>");
|
||||
}
|
||||
if($row['id'] == 70) {
|
||||
echo("<h4>Revier Quickborn</h4>");
|
||||
}
|
||||
if($row['id'] == 80) {
|
||||
echo("<h4>Revier Barmstedt</h4>");
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
<section class="section--center mdl-grid mdl-grid--no-spacing mdl-shadow--2dp">
|
||||
<div class="mdl-card mdl-cell mdl-cell--12-col">
|
||||
<div class="mdl-card__supporting-text">
|
||||
<h4 style="text-align: center"><?php echo $row['Ort'];?></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">Fahrzeugtyp</th>
|
||||
<th>Funkrufnummer</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?php
|
||||
|
||||
$fahrzeuge = $conn->query("SELECT * FROM `feuerwehr` WHERE OrtID = ". $row['id'] );
|
||||
|
||||
if($fahrzeuge->num_rows > 0) {
|
||||
while ($frow = $fahrzeuge->fetch_assoc()) {
|
||||
?>
|
||||
<tr>
|
||||
<td class="mdl-data-table__cell--non-numeric"><?php echo $frow['Fahrzeugtyp'] ?></td>
|
||||
<td><?php echo $frow['Organistationskennung'] . " " . $row['id'] . "-" . $frow['Fahrzeugkennung'] ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<?php }}?>
|
||||
75
include/header.php
Normal file
75
include/header.php
Normal file
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by IntelliJ IDEA.
|
||||
* User: Christoph
|
||||
* Date: 05.02.2018
|
||||
* Time: 18:09
|
||||
*/
|
||||
?>
|
||||
<?php include("../config/config.php");?>
|
||||
<!doctype html>
|
||||
<!--
|
||||
Material Design Lite
|
||||
Copyright 2015 Google Inc. All rights reserved.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
https://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License
|
||||
-->
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="description" content="A front-end template that helps you build fast, modern mobile web apps.">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
|
||||
<title>BOS Funk Pinneberg</title>
|
||||
|
||||
<link rel="shortcut icon" href="images/favicon.png">
|
||||
|
||||
<!-- SEO: If your mobile URL is different from the desktop URL, add a canonical link to the desktop page https://developers.google.com/webmasters/smartphone-sites/feature-phones -->
|
||||
<!--
|
||||
<link rel="canonical" href="http://www.example.com/">
|
||||
-->
|
||||
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:regular,bold,italic,thin,light,bolditalic,black,medium&lang=en">
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
|
||||
<link rel="stylesheet" href="https://code.getmdl.io/1.3.0/material.blue_grey-blue.min.css" />
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
<style>
|
||||
#view-source {
|
||||
position: fixed;
|
||||
display: block;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
margin-right: 40px;
|
||||
margin-bottom: 40px;
|
||||
z-index: 900;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body class="mdl-demo mdl-color--grey-100 mdl-color-text--grey-700 mdl-base">
|
||||
<div class="mdl-layout mdl-js-layout mdl-layout--fixed-header">
|
||||
<header class="mdl-layout__header mdl-layout__header--scroll mdl-color--primary">
|
||||
<div class="mdl-layout--large-screen-only mdl-layout__header-row">
|
||||
</div>
|
||||
<div class="mdl-layout--large-screen-only mdl-layout__header-row">
|
||||
<h3>BOS Funk Pinneberg</h3>
|
||||
</div>
|
||||
<div class="mdl-layout--large-screen-only mdl-layout__header-row">
|
||||
</div>
|
||||
<div class="mdl-layout__tab-bar mdl-js-ripple-effect mdl-color--primary-dark">
|
||||
<a href="#feuerwehr" class="mdl-layout__tab">Feuerwehr</a>
|
||||
<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>
|
||||
</div>
|
||||
</header>
|
||||
Reference in New Issue
Block a user