".$strTitle.""; $strIntro .= nl2br2($strIntroText); $numYear=2020; $numVehicle = (isset($_GET['v'])) ? (int) $_GET['v'] : 1; $numYear = (isset($_GET['year'])) ? (int) $_GET['year'] : $numYear; switch ($numVehicle) { case 1: case 0: $strWhere ="IstRad = 1"; $topic=2; break; case 2: $strWhere = "IstPKW = 1"; $topic=4; break; case 3: $strWhere = "IstFuss = 1"; $topic=1; break; case 4: $strWhere = "IstKrad = 1"; $topic=0; break; case 5: $strWhere = "IstGkfz = 1"; $topic=5; break; case 6: $strWhere = "IstSonstige = 1"; $topic=3; break; default: $strWhere ="IstRad = 1"; $topic=2; } $strYear = " AND UJAHR='".$numYear."' "; $strSQL="SELECT * FROM Unfallorte_Hamm WHERE ".$strWhere.$strYear; $result = $db->query($strSQL); $arrMarker = array(); $arrDescription = array(); $description=""; while ($row = $result->fetchArray()) { //print_r($row);echo "
"; $id = $row[0]; $numLng = $row['XGCSWGS84']; $numLat = $row['YGCSWGS84']; if ($row['IstRad']) $description .="mit Fahrradbeteiligung, "; if ($row['IstPKW']) $description .="mit PKW-Beteiligung, "; if ($row['IstFuss']) $description .="mit Fußgängerbeteiligung, "; if ($row['IstKrad']) $description .="mit Kraftradbeteiligung, "; if ($row['IstGkfz']) $description .="mit Güterkraftzeugbeteiligung, "; if ($row['IstSonstige']) $description .="mit Beteiligung eines oben nicht genannten Verkehrsmittels"; $strDescription=generate_tooltip_description($row); $arrMarker[]="marker[".$id."] = [L.marker([".$numLat."," .$numLng."]," ." { icon: ".$arrMarkerType[$topic]." }),'check_".$topic."'];\n" ."marker[".$id."][0].addTo(mymap);\n " ."marker[".$id."][0].bindPopup('".$strDescription."');"; } $markerid=$id+1; /* marker[val.id] = [L.marker([val.lat, val.lng], { "icon": L.MakiMarkers.icon({ "color": color, "size": "m", "icon": "circle" }) }).bindPopup(html), val.membertype]; marker[val.id][0].addTo(map); */ ?> <?= $strTitle ?>
2019 2020
    $strVehicle): $strActive = ($numVehicle==$key) ? "active" : "" ?>
  • (current)
  • Impressum
  • Datenschutzerklärung

Jahr

Unfälle mit