all accidents

This commit is contained in:
Walter Hupfeld 2020-08-01 15:40:09 +02:00
parent 82e124e0bb
commit 558d336fa0
5 changed files with 25 additions and 22 deletions

View File

@ -65,8 +65,8 @@ $arrTopic = array (
2 => "Radverkehr", 2 => "Radverkehr",
1 => "Fußverkehr", 1 => "Fußverkehr",
3 => "Bus und Bahn", 3 => "Bus und Bahn",
// 4 => "Pkw-Verkehr", 4 => "Pkw-Verkehr",
// 5 => "Lkw-Verkehr" 5 => "Lkw-Verkehr"
); );
$arrMarkerType = array ( $arrMarkerType = array (
@ -90,8 +90,8 @@ $arrTransport = array (
); );
$arrIcon = array ( $arrIcon = array (
1 => "<i class='wa bg-info fa fa-male'></i>", 1 => "<i class='wa bg-danger fa fa-male'></i>",
2 => "<i class='wa bg-success fa fa-bicycle'></i>", 2 => "<i class='wa bg-danger fa fa-bicycle'></i>",
3 => "<i class='wa bg-primary fa fa-bus'></i>", 3 => "<i class='wa bg-primary fa fa-bus'></i>",
4 => "<i class='wa bg-danger fa fa-car'></i>", 4 => "<i class='wa bg-danger fa fa-car'></i>",
5 => "<i class='wa bg-warning fa fa-truck'></i>" 5 => "<i class='wa bg-warning fa fa-truck'></i>"

View File

@ -21,9 +21,6 @@
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="index.php?ref=1">Karte </a> <a class="nav-link" href="index.php?ref=1">Karte </a>
</li> </li>
<li class="nav-item">
<a class="nav-link" href="liste.php">Liste</a>
</li>
</ul> </ul>
<div> <div>
@ -34,9 +31,6 @@
<li class="nav-item active"> <li class="nav-item active">
<a class="nav-link" href="datenschutz.php">Datenschutzerklärung <span class="sr-only">(current)</span></a> <a class="nav-link" href="datenschutz.php">Datenschutzerklärung <span class="sr-only">(current)</span></a>
</li> </li>
<li class="nav-item">
<a class="nav-link" href="admin/login.php">Login</a>
</li>
</ul> </ul>
</div> </div>
</nav> </nav>

Binary file not shown.

View File

@ -19,10 +19,7 @@
<div class="collapse navbar-collapse" id="navbars"> <div class="collapse navbar-collapse" id="navbars">
<ul class="navbar-nav mr-auto"> <ul class="navbar-nav mr-auto">
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="index.php?ref=1">Karte</a> <a class="nav-link" href="index.php">Karte</a>
</li>
<li class="nav-item">
<a class="nav-link" href="liste.php">Liste</a>
</li> </li>
</ul> </ul>
@ -35,9 +32,6 @@
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="datenschutz.php">Datenschutzerklärung</a> <a class="nav-link" href="datenschutz.php">Datenschutzerklärung</a>
</li> </li>
<li class="nav-item">
<a class="nav-link" href="admin/login.php">Login</a>
</li>
</ul> </ul>
</div> </div>
</nav> </nav>
@ -49,7 +43,7 @@
<div class="card"> <div class="card">
<div class="card-header"><h2>Impressum</h2></div> <div class="card-header"><h2>Impressum</h2></div>
<div class="card-body"> <div class="card-body">
<p> Der Ideenmelder wird zur Verfügung gestellt vom:</p> <p> Die Unfallkarte basiert auf Daten des Statistischen Bundesamtes:</p>
<p>&nbsp;</p> <p>&nbsp;</p>
<div><img style="width:220px" src="<?=$strLogo?>" alt="Logo"></div> <div><img style="width:220px" src="<?=$strLogo?>" alt="Logo"></div>
<p>&nbsp;</p> <p>&nbsp;</p>
@ -59,7 +53,7 @@
<p><a href="<?=$strUrl?>"><?=$strUrlBez?></a></p> <p><a href="<?=$strUrl?>"><?=$strUrlBez?></a></p>
<p>&nbsp;</p> <p>&nbsp;</p>
Anfragen zum Ideenmelder an <a href="mailto:<?=$contactEmail?>"><?=$contactEmail?></a> Anfragen an <a href="mailto:<?=$contactEmail?>"><?=$contactEmail?></a>
<p>&nbsp;</p> <p>&nbsp;</p>
<p>&nbsp;</p> <p>&nbsp;</p>
<!-- Bitte nicht entfernen --> <!-- Bitte nicht entfernen -->

View File

@ -6,14 +6,29 @@
$strIntro ="<h4>".$strTitle."</h4>"; $strIntro ="<h4>".$strTitle."</h4>";
$strIntro .= nl2br2($strIntroText); $strIntro .= nl2br2($strIntroText);
$strSQL="SELECT * FROM Unfallorte"; $numKey = (isset($_GET['key'])) ? $_GET['key'] : 1 ;
switch ($numKey) {
case 1 : $strKey = "IstRad=1";
break;
case 2: $strKey = "IstPKW=1";
break;
case 3 : $strKey = "IstFuss=1";
break;
}
$strSQL="SELECT * FROM Unfallorte2019_Hamm WHERE ".$strKey;
$result = $db->query($strSQL); $result = $db->query($strSQL);
$arrMarker = array(); $arrMarker = array();
$arrDescription = array(); $arrDescription = array();
while ($row = $result->fetchArray()) { while ($row = $result->fetchArray()) {
$id=$row['OBJECTID'];
//print_r($row);echo "<hr>";
$id = $row[0];
$topic = 2; $topic = 2;
$numLng = $row['XGCSWGS84']; $numLng = $row['XGCSWGS84'];
$numLat = $row['YGCSWGS84']; $numLat = $row['YGCSWGS84'];
@ -139,7 +154,7 @@
// markerIcons ------------------------------------------------------------------------------ // markerIcons ------------------------------------------------------------------------------
var infoMarker = L.AwesomeMarkers.icon({icon: 'info', prefix: 'fa', markerColor: 'orange'}); var infoMarker = L.AwesomeMarkers.icon({icon: 'info', prefix: 'fa', markerColor: 'orange'});
var bicycleMarker = L.AwesomeMarkers.icon({icon: 'bicycle', prefix: 'fa', markerColor: 'green'}); var bicycleMarker = L.AwesomeMarkers.icon({icon: 'bicycle', prefix: 'fa', markerColor: 'red'});
var carMarker = L.AwesomeMarkers.icon({icon: 'car', prefix: 'fa', markerColor: 'red'}); var carMarker = L.AwesomeMarkers.icon({icon: 'car', prefix: 'fa', markerColor: 'red'});
var truckMarker = L.AwesomeMarkers.icon({icon: 'truck', prefix: 'fa', markerColor: 'beige'}); var truckMarker = L.AwesomeMarkers.icon({icon: 'truck', prefix: 'fa', markerColor: 'beige'});
var trainMarker = L.AwesomeMarkers.icon({icon: 'bus', prefix: 'fa', markerColor: 'blue'}); var trainMarker = L.AwesomeMarkers.icon({icon: 'bus', prefix: 'fa', markerColor: 'blue'});