unkown district
This commit is contained in:
parent
c1c4151300
commit
0a7db03af1
@ -15,23 +15,7 @@
|
||||
include("../config.php");
|
||||
$sqlDistrict = ($boolSuperAdmin) ? "1" : "l.district='$strDistrict'";
|
||||
|
||||
/*
|
||||
$arrTopic = array (
|
||||
1 => "Fußverkehr",
|
||||
2 => "Radverkehr",
|
||||
3 => "Bus und Bahn",
|
||||
4 => "Pkw-Verkehr",
|
||||
5 => "Lkw-Verkehr"
|
||||
);
|
||||
|
||||
$arrIcon = array (
|
||||
1 => "<i class='fa fa-male'></i>",
|
||||
2 => "<i class='fa fa-bicycle'></i>",
|
||||
3 => "<i class='fa fa-train'></i>",
|
||||
4 => "<i class='fa fa-car'></i>",
|
||||
5 => "<i class='fa fa-truck'></i>"
|
||||
);
|
||||
*/
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
@ -55,12 +39,11 @@
|
||||
<body>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="container-fluid">
|
||||
<table class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr><th>id</th><th>Username</th>
|
||||
<tr><th>id</th>
|
||||
<th>Username</th>
|
||||
<?= ($boolUserinfo) ? "<th>Alter</th><th>Transport</th>" : ""; ?>
|
||||
<th>Topic</th>
|
||||
<th>Beschreibung</th>
|
||||
@ -122,7 +105,6 @@
|
||||
$strScript.="var mymap_".$id." = L.map(map_".$id.").setView([".$row['lat'].", ".$row['lng']."], 16);\n";
|
||||
$strScript.="L.tileLayer(url, {maxZoom: 18,minZoom:12,attribution: attribution,id: 'mapbox/streets-v11',tileSize: 512,zoomOffset: -1}).addTo(mymap_".$id.")\n";
|
||||
$strScript.="L.marker([".$row['lat'].", ".$row['lng']."], { icon: infoMarker } ).addTo(mymap_".$id.")\n\n";
|
||||
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
@ -130,10 +112,9 @@
|
||||
<a class="btn btn-primary" href="../index.php?ref=1">zurück</a>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
<script>
|
||||
$( document ).ready(function() {
|
||||
|
||||
|
||||
var url = 'https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token=<?=$mapbox_key?>';
|
||||
var attribution = 'Map data © <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors, ' +
|
||||
'<a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, ' +
|
||||
|
@ -73,7 +73,7 @@ $result->bindParam(":district",$strDistrict);
|
||||
$result->execute();
|
||||
if ($row=$result->fetch(PDO::FETCH_NUM)) {
|
||||
if ($row[0]==0) {
|
||||
$strDistrict=""; //default setzten
|
||||
$strDistrict="unkown"; //default setzten
|
||||
$strDistrictTitle="Unbekannt";
|
||||
}
|
||||
}
|
||||
|
@ -1,15 +1,9 @@
|
||||
<?php
|
||||
session_start();
|
||||
if (isset($_SESSION['district']))
|
||||
{
|
||||
if (!isset($_SESSION['district'])) { header("Location: start.php");}
|
||||
$strDistrict=$_SESSION['district'];
|
||||
}
|
||||
else {
|
||||
header("Location: start.php");
|
||||
}
|
||||
echo $strDistrict;
|
||||
require("config.php");
|
||||
|
||||
if ($strDistict=="unkown") { header("Location: start.php");}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
|
@ -1,13 +1,9 @@
|
||||
<?php
|
||||
session_start();
|
||||
if (isset($_SESSION['district']))
|
||||
{
|
||||
if (!isset($_SESSION['district'])) { header("Location: start.php");}
|
||||
$strDistrict=$_SESSION['district'];
|
||||
}
|
||||
else {
|
||||
header("Location: start.php");
|
||||
}
|
||||
require("config.php");
|
||||
if ($strDistict=="unkown") { header("Location: start.php");}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
|
13
liste.php
13
liste.php
@ -9,18 +9,11 @@
|
||||
******************************** */
|
||||
|
||||
session_start();
|
||||
if (isset($_GET['d'])) {
|
||||
$strDistrict=$_GET['d'];
|
||||
$_SESSION['district'] = $strDistrict;
|
||||
} else if (isset($_SESSION['district']))
|
||||
{
|
||||
if (!isset($_SESSION['district'])) { header("Location: start.php");}
|
||||
$strDistrict=$_SESSION['district'];
|
||||
}
|
||||
else {
|
||||
header("Location: start.php");
|
||||
}
|
||||
echo $strDistrict;
|
||||
require("config.php");
|
||||
if ($strDistict=="unkown") { header("Location: start.php");}
|
||||
?>
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
|
Loading…
Reference in New Issue
Block a user