2023-10-09 17:52:21 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="de">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<title>Fahrrad-Unfallstatistik NRW</title>
|
|
|
|
<link rel="stylesheet" href="../css/bootstrap.min.css"/>
|
2023-10-22 22:13:42 +02:00
|
|
|
<link rel="stylesheet" href="../css/jquery.dataTables.min.css">
|
2023-10-09 17:52:21 +02:00
|
|
|
|
|
|
|
<script src="../js/jquery.min.js"></script>
|
2023-10-11 13:13:53 +02:00
|
|
|
<script src="../js/bootstrap.min.js"></script>
|
2023-10-22 22:13:42 +02:00
|
|
|
<script src="../js/jquery.dataTables.min.js"></script>
|
2023-10-09 17:52:21 +02:00
|
|
|
<style>
|
|
|
|
.rechts {text-align:right;}
|
|
|
|
.l {border-left: 1px solid black; }
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
2023-10-11 13:13:53 +02:00
|
|
|
<?php include("navbar.php"); ?>
|
2023-10-09 17:52:21 +02:00
|
|
|
|
|
|
|
|
2023-10-09 19:14:10 +02:00
|
|
|
<div class="container-fluid" style="margin-top:4em;">
|
2023-10-09 17:52:21 +02:00
|
|
|
<h1>Fahrradunfälle in Nordrhein-Westfalen in Kreisen und kreisfreien Städten</h2>
|
|
|
|
<table id="unfallzahlen" class="display">
|
|
|
|
<thead>
|
|
|
|
|
|
|
|
<tr><th></th>
|
|
|
|
<th colspan="4">Fahrradunfälle</th>
|
|
|
|
<th colspan="4">Todesfälle</th>
|
|
|
|
<th colspan="4">Schwerverletzte</th>
|
|
|
|
<th colspan="4">Leichtverletzte</th>
|
|
|
|
<th></th><th></th>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr><th>Kreis</th>
|
|
|
|
<th class="l">2022</th><th>2021</th><th>2020</th><th>2019</th>
|
|
|
|
<th class="l">2022</th><th>2021</th><th>2020</th><th>2019</th>
|
|
|
|
<th class="l">2022</th><th>2021</th><th>2020</th><th>2019</th>
|
|
|
|
<th class="l">2022</th><th>2021</th><th>2020</th><th>2019</th>
|
|
|
|
<th class="l">Einw. in Tausend</th><th>Quote</th>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<?php
|
|
|
|
|
|
|
|
require("../config.php");
|
|
|
|
|
|
|
|
$strSQL="SELECT d.title as Kreis,
|
2023-10-10 18:45:24 +02:00
|
|
|
district,
|
2023-10-09 17:52:21 +02:00
|
|
|
SUM(UJAHR=2022) as Jahr_2022,
|
|
|
|
SUM(UJAHR=2021) as Jahr_2021,
|
|
|
|
SUM(UJAHR=2020) as Jahr_2020,
|
|
|
|
SUM(UJAHR=2019) as Jahr_2019,
|
|
|
|
|
|
|
|
SUM(UJAHR=2022 AND UKATEGORIE=1) as Tode_2022,
|
|
|
|
SUM(UJAHR=2021 AND UKATEGORIE=1) as Tode_2021,
|
|
|
|
SUM(UJAHR=2020 AND UKATEGORIE=1) as Tode_2020,
|
|
|
|
SUM(UJAHR=2019 AND UKATEGORIE=1) as Tode_2019,
|
|
|
|
|
|
|
|
SUM(UJAHR=2022 AND UKATEGORIE=2) as Schwerverletzt_2022,
|
|
|
|
SUM(UJAHR=2021 AND UKATEGORIE=2) as Schwerverletzt_2021,
|
|
|
|
SUM(UJAHR=2020 AND UKATEGORIE=2) as Schwerverletzt_2020,
|
|
|
|
SUM(UJAHR=2019 AND UKATEGORIE=2) as Schwerverletzt_2019,
|
|
|
|
|
|
|
|
SUM(UJAHR=2022 AND UKATEGORIE=3) as Leichtverletzt_2022,
|
|
|
|
SUM(UJAHR=2021 AND UKATEGORIE=3) as Leichtverletzt_2021,
|
|
|
|
SUM(UJAHR=2020 AND UKATEGORIE=3) as Leichtverletzt_2020,
|
|
|
|
SUM(UJAHR=2019 AND UKATEGORIE=3) as Leichtverletzt_2019,
|
|
|
|
d.Population as Population,
|
2023-10-11 13:13:53 +02:00
|
|
|
SUM(UJAHR=2022)/d.Population*1000 as Quote_2022,
|
|
|
|
s.ULAND,
|
|
|
|
s.UREGBEZ ,
|
|
|
|
s.UKREIS
|
2023-10-09 17:52:21 +02:00
|
|
|
FROM data s, district d
|
|
|
|
WHERE IstRad=1
|
|
|
|
AND d.ULAND=s.ULAND AND d.UREGBEZ=s.UREGBEZ AND d.UKREIS=s.UKREIS
|
|
|
|
GROUP BY s.ULAND, s.UREGBEZ, s.UKREIS
|
|
|
|
ORDER BY Quote_2022 DESC;";
|
|
|
|
|
|
|
|
$result=$db->query($strSQL);
|
|
|
|
|
|
|
|
while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
|
|
|
|
echo "<tr>";
|
2023-10-11 13:13:53 +02:00
|
|
|
echo "<td><a href='kreis_details.php?regbez=".$row['UREGBEZ']."&kreis=".$row['UKREIS']."'>".$row['Kreis']."</a></td>";
|
2023-10-09 17:52:21 +02:00
|
|
|
echo "<td class='l'>".$row['Jahr_2022']."</td>";
|
|
|
|
echo "<td>".$row['Jahr_2021']."</td>";
|
|
|
|
echo "<td>".$row['Jahr_2020']."</td>";
|
|
|
|
echo "<td>".$row['Jahr_2019']."</td>";
|
|
|
|
echo "<td class='l'>".$row['Tode_2022']."</td>";
|
|
|
|
echo "<td>".$row['Tode_2021']."</td>";
|
|
|
|
echo "<td>".$row['Tode_2020']."</td>";
|
|
|
|
echo "<td>".$row['Tode_2019']."</td>";
|
|
|
|
echo "<td class='l'>".$row['Schwerverletzt_2022']."</td>";
|
|
|
|
echo "<td>".$row['Schwerverletzt_2021']."</td>";
|
|
|
|
echo "<td>".$row['Schwerverletzt_2020']."</td>";
|
|
|
|
echo "<td>".$row['Schwerverletzt_2019']."</td>";
|
|
|
|
echo "<td class='l'>".$row['Leichtverletzt_2022']."</td>";
|
|
|
|
echo "<td>".$row['Leichtverletzt_2021']."</td>";
|
|
|
|
echo "<td>".$row['Leichtverletzt_2020']."</td>";
|
|
|
|
echo "<td>".$row['Leichtverletzt_2019']."</td>";
|
|
|
|
echo "<td class='l rechts'>".round($row['Population']/1000,0)."</td>";
|
|
|
|
echo "<td class='rechts'>".round($row['Quote_2022'],2)."</td>";
|
|
|
|
echo "</tr>\n";
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<script>
|
2023-10-09 19:14:10 +02:00
|
|
|
let table = new DataTable('#unfallzahlen',{
|
2023-10-22 21:44:27 +02:00
|
|
|
pageLength : 10,
|
|
|
|
language: {
|
|
|
|
url: '../js/de-DE.json'
|
|
|
|
}
|
2023-10-09 19:14:10 +02:00
|
|
|
});
|
2023-10-09 17:52:21 +02:00
|
|
|
</script>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|