active districts
This commit is contained in:
10
config.php
10
config.php
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user