active districts

This commit is contained in:
Walter Hupfeld
2024-02-18 18:04:28 +01:00
parent 039687e523
commit 71d2786a97
5 changed files with 19 additions and 70 deletions

View File

@@ -49,9 +49,6 @@
case "UrlBez":
$strUrlBez =$row['value'];
break;
case "boolActive":
$boolActive = ($row['value']=="1");
break;
case "boolRating":
$boolRating = ($row['value']=="1");
break;
@@ -90,6 +87,8 @@
$result->bindParam(":district",$strDistrict);
$result->execute();
while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
$boolActive = $row['active']==1;
$strDistrict = $row['district'];
$strTitle = $row['title'];
$strGeojson = $row['geojson'];
@@ -104,8 +103,7 @@
$numZoom=$row['zoom'];
$strTitle = "ADFC Meldeportal $strTitle ";
$strIntroText = "$strTitle";
$strIntroText = ($boolActive) ? $strIntroText = "$strTitle" : "Dateneingabe nicht möglich";
$fileGeojson ="geojson/$strGeojson";
$strLocation = " AND ULAND=$numULAND AND UREGBEZ=$numUREGBEZ AND UKREIS=$numUKREIS ";
if ($numUGEMEINDE>0) {
@@ -115,7 +113,7 @@
// Arrax mit allen Distrikten für Auswahl
$arrDisctrict = array ();
$strSQL = "SELECT district,title FROM district ORDER BY title ASC";
$strSQL = "SELECT district,title FROM district WHERE active=1 ORDER BY title ASC";
$result=$db->query($strSQL);
while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
$arrDistrict[$row['district']]=$row['title'];