unkown district
This commit is contained in:
parent
c1c4151300
commit
0a7db03af1
@ -15,23 +15,7 @@
|
|||||||
include("../config.php");
|
include("../config.php");
|
||||||
$sqlDistrict = ($boolSuperAdmin) ? "1" : "l.district='$strDistrict'";
|
$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>
|
<!DOCTYPE html>
|
||||||
<html lang="de">
|
<html lang="de">
|
||||||
@ -55,12 +39,11 @@
|
|||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<table class="table table-bordered table-striped">
|
<table class="table table-bordered table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr><th>id</th><th>Username</th>
|
<tr><th>id</th>
|
||||||
|
<th>Username</th>
|
||||||
<?= ($boolUserinfo) ? "<th>Alter</th><th>Transport</th>" : ""; ?>
|
<?= ($boolUserinfo) ? "<th>Alter</th><th>Transport</th>" : ""; ?>
|
||||||
<th>Topic</th>
|
<th>Topic</th>
|
||||||
<th>Beschreibung</th>
|
<th>Beschreibung</th>
|
||||||
@ -122,7 +105,6 @@
|
|||||||
$strScript.="var mymap_".$id." = L.map(map_".$id.").setView([".$row['lat'].", ".$row['lng']."], 16);\n";
|
$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.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";
|
$strScript.="L.marker([".$row['lat'].", ".$row['lng']."], { icon: infoMarker } ).addTo(mymap_".$id.")\n\n";
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
@ -130,10 +112,9 @@
|
|||||||
<a class="btn btn-primary" href="../index.php?ref=1">zurück</a>
|
<a class="btn btn-primary" href="../index.php?ref=1">zurück</a>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$( document ).ready(function() {
|
$( document ).ready(function() {
|
||||||
|
|
||||||
|
|
||||||
var url = 'https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token=<?=$mapbox_key?>';
|
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, ' +
|
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>, ' +
|
'<a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, ' +
|
||||||
|
@ -73,7 +73,7 @@ $result->bindParam(":district",$strDistrict);
|
|||||||
$result->execute();
|
$result->execute();
|
||||||
if ($row=$result->fetch(PDO::FETCH_NUM)) {
|
if ($row=$result->fetch(PDO::FETCH_NUM)) {
|
||||||
if ($row[0]==0) {
|
if ($row[0]==0) {
|
||||||
$strDistrict=""; //default setzten
|
$strDistrict="unkown"; //default setzten
|
||||||
$strDistrictTitle="Unbekannt";
|
$strDistrictTitle="Unbekannt";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,15 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
session_start();
|
session_start();
|
||||||
if (isset($_SESSION['district']))
|
if (!isset($_SESSION['district'])) { header("Location: start.php");}
|
||||||
{
|
$strDistrict=$_SESSION['district'];
|
||||||
$strDistrict=$_SESSION['district'];
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
header("Location: start.php");
|
|
||||||
}
|
|
||||||
echo $strDistrict;
|
|
||||||
require("config.php");
|
require("config.php");
|
||||||
|
if ($strDistict=="unkown") { header("Location: start.php");}
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="de">
|
<html lang="de">
|
||||||
|
@ -1,13 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
session_start();
|
session_start();
|
||||||
if (isset($_SESSION['district']))
|
if (!isset($_SESSION['district'])) { header("Location: start.php");}
|
||||||
{
|
$strDistrict=$_SESSION['district'];
|
||||||
$strDistrict=$_SESSION['district'];
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
header("Location: start.php");
|
|
||||||
}
|
|
||||||
require("config.php");
|
require("config.php");
|
||||||
|
if ($strDistict=="unkown") { header("Location: start.php");}
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="de">
|
<html lang="de">
|
||||||
|
19
liste.php
19
liste.php
@ -8,19 +8,12 @@
|
|||||||
* Datum: 18.05.2021
|
* Datum: 18.05.2021
|
||||||
******************************** */
|
******************************** */
|
||||||
|
|
||||||
session_start();
|
session_start();
|
||||||
if (isset($_GET['d'])) {
|
if (!isset($_SESSION['district'])) { header("Location: start.php");}
|
||||||
$strDistrict=$_GET['d'];
|
$strDistrict=$_SESSION['district'];
|
||||||
$_SESSION['district'] = $strDistrict;
|
require("config.php");
|
||||||
} else if (isset($_SESSION['district']))
|
if ($strDistict=="unkown") { header("Location: start.php");}
|
||||||
{
|
?>
|
||||||
$strDistrict=$_SESSION['district'];
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
header("Location: start.php");
|
|
||||||
}
|
|
||||||
echo $strDistrict;
|
|
||||||
require("config.php");
|
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="de">
|
<html lang="de">
|
||||||
|
Loading…
Reference in New Issue
Block a user