all accidents
This commit is contained in:
parent
82e124e0bb
commit
558d336fa0
@ -65,8 +65,8 @@ $arrTopic = array (
|
||||
2 => "Radverkehr",
|
||||
1 => "Fußverkehr",
|
||||
3 => "Bus und Bahn",
|
||||
// 4 => "Pkw-Verkehr",
|
||||
// 5 => "Lkw-Verkehr"
|
||||
4 => "Pkw-Verkehr",
|
||||
5 => "Lkw-Verkehr"
|
||||
);
|
||||
|
||||
$arrMarkerType = array (
|
||||
@ -90,8 +90,8 @@ $arrTransport = array (
|
||||
);
|
||||
|
||||
$arrIcon = array (
|
||||
1 => "<i class='wa bg-info fa fa-male'></i>",
|
||||
2 => "<i class='wa bg-success fa fa-bicycle'></i>",
|
||||
1 => "<i class='wa bg-danger fa fa-male'></i>",
|
||||
2 => "<i class='wa bg-danger 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>"
|
||||
|
@ -21,9 +21,6 @@
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="index.php?ref=1">Karte </a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="liste.php">Liste</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div>
|
||||
@ -34,9 +31,6 @@
|
||||
<li class="nav-item active">
|
||||
<a class="nav-link" href="datenschutz.php">Datenschutzerklärung <span class="sr-only">(current)</span></a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="admin/login.php">Login</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
|
BIN
db/unfallorte
BIN
db/unfallorte
Binary file not shown.
@ -19,10 +19,7 @@
|
||||
<div class="collapse navbar-collapse" id="navbars">
|
||||
<ul class="navbar-nav mr-auto">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="index.php?ref=1">Karte</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="liste.php">Liste</a>
|
||||
<a class="nav-link" href="index.php">Karte</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@ -35,9 +32,6 @@
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="datenschutz.php">Datenschutzerklärung</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="admin/login.php">Login</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
@ -49,7 +43,7 @@
|
||||
<div class="card">
|
||||
<div class="card-header"><h2>Impressum</h2></div>
|
||||
<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> </p>
|
||||
<div><img style="width:220px" src="<?=$strLogo?>" alt="Logo"></div>
|
||||
<p> </p>
|
||||
@ -59,7 +53,7 @@
|
||||
<p><a href="<?=$strUrl?>"><?=$strUrlBez?></a></p>
|
||||
|
||||
<p> </p>
|
||||
Anfragen zum Ideenmelder an <a href="mailto:<?=$contactEmail?>"><?=$contactEmail?></a>
|
||||
Anfragen an <a href="mailto:<?=$contactEmail?>"><?=$contactEmail?></a>
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
<!-- Bitte nicht entfernen -->
|
||||
|
21
index.php
21
index.php
@ -6,14 +6,29 @@
|
||||
$strIntro ="<h4>".$strTitle."</h4>";
|
||||
$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);
|
||||
$arrMarker = array();
|
||||
$arrDescription = array();
|
||||
|
||||
while ($row = $result->fetchArray()) {
|
||||
$id=$row['OBJECTID'];
|
||||
|
||||
//print_r($row);echo "<hr>";
|
||||
$id = $row[0];
|
||||
$topic = 2;
|
||||
$numLng = $row['XGCSWGS84'];
|
||||
$numLat = $row['YGCSWGS84'];
|
||||
@ -139,7 +154,7 @@
|
||||
// markerIcons ------------------------------------------------------------------------------
|
||||
|
||||
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 truckMarker = L.AwesomeMarkers.icon({icon: 'truck', prefix: 'fa', markerColor: 'beige'});
|
||||
var trainMarker = L.AwesomeMarkers.icon({icon: 'bus', prefix: 'fa', markerColor: 'blue'});
|
||||
|
Loading…
Reference in New Issue
Block a user