This commit is contained in:
Walter Hupfeld 2024-02-18 19:46:30 +01:00
parent 318200daa4
commit dfb62c2833
2 changed files with 38 additions and 39 deletions

View File

@ -126,7 +126,7 @@
$( document ).ready(function() { $( document ).ready(function() {
var url = 'https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw'; var url = 'https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token=<?=$mapbox_key?>';
var attribution = 'Map data &copy; <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors, ' + var attribution = 'Map data &copy; <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>, ' +
'Imagery © <a href="https://www.mapbox.com/">Mapbox</a>'; 'Imagery © <a href="https://www.mapbox.com/">Mapbox</a>';

View File

@ -43,7 +43,6 @@ while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
case "introText": case "introText":
$strIntroText =$row['value']; $strIntroText =$row['value'];
break; break;
case "impressum": case "impressum":
$strImpressum =$row['value']; $strImpressum =$row['value'];
break; break;
@ -72,7 +71,6 @@ while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
default: ; default: ;
//echo "Fehler bei ".$row['key']; //echo "Fehler bei ".$row['key'];
// Ende Lokalisierung // Ende Lokalisierung
break; break;
} }
@ -86,11 +84,11 @@ if ($row=$result->fetch(PDO::FETCH_NUM)) {
if ($row[0]==0) $strDistrict="hamm"; if ($row[0]==0) $strDistrict="hamm";
} }
// Spezifische Konfiguration für Districtt // Spezifische Konfiguration für Districtt
$result= $db->prepare("SELECT * FROM district WHERE district=:district"); $result= $db->prepare("SELECT * FROM district WHERE district=:district");
$result->bindParam(":district",$strDistrict); $result->bindParam(":district",$strDistrict);
$result->execute(); $result->execute();
while ($row = $result->fetch(PDO::FETCH_ASSOC)) { while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
$boolActive = $row['active']==1; $boolActive = $row['active']==1;
$strDistrict = $row['district']; $strDistrict = $row['district'];
@ -112,15 +110,15 @@ if ($row=$result->fetch(PDO::FETCH_NUM)) {
if ($numUGEMEINDE>0) { if ($numUGEMEINDE>0) {
$strLocation .= "AND UGEMEINDE=$numUGEMEINDE"; $strLocation .= "AND UGEMEINDE=$numUGEMEINDE";
} }
} }
// Arrax mit allen Distrikten für Auswahl // Arrax mit allen Distrikten für Auswahl
$arrDisctrict = array (); $arrDisctrict = array ();
$strSQL = "SELECT district,title FROM district WHERE active=1 ORDER BY title ASC"; $strSQL = "SELECT district,title FROM district WHERE active=1 ORDER BY title ASC";
$result=$db->query($strSQL); $result=$db->query($strSQL);
while ($row = $result->fetch(PDO::FETCH_ASSOC)) { while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
$arrDistrict[$row['district']]=$row['title']; $arrDistrict[$row['district']]=$row['title'];
} }
@ -141,6 +139,14 @@ $arrMarkerType = array (
5=>"truckMarker", 5=>"truckMarker",
); );
$arrIcon = array (
1 => "<i class='wa bg-info fa fa-male'></i>",
2 => "<i class='wa bg-success fa fa-bicycle'></i>",
3 => "<i class='wa bg-primary fa fa-bus'></i>",
4 => "<i class='wa bg-danger fa fa-car'></i>",
5 => "<i class='wa bg-warning fa fa-truck'></i>"
);
$arrAge = array ( $arrAge = array (
1 => "keine Angabe", 1 => "keine Angabe",
2 => "bis 14 Jahre", 2 => "bis 14 Jahre",
@ -187,10 +193,3 @@ $arrTransport = array (
6 => "Zu Fuß" 6 => "Zu Fuß"
); );
$arrIcon = array (
1 => "<i class='wa bg-info fa fa-male'></i>",
2 => "<i class='wa bg-success fa fa-bicycle'></i>",
3 => "<i class='wa bg-primary fa fa-bus'></i>",
4 => "<i class='wa bg-danger fa fa-car'></i>",
5 => "<i class='wa bg-warning fa fa-truck'></i>"
);