final
This commit is contained in:
parent
b2ad23bd97
commit
e09253a434
@ -91,8 +91,7 @@ i.wa {
|
||||
display:none;
|
||||
}
|
||||
|
||||
h5 {margin-top:15px;}
|
||||
h5 {margin-top:8px;}
|
||||
|
||||
.statistik td, th {border: 1px solid grey; font-size: smaller;}
|
||||
|
||||
.radio_header {margin-right:7px;}
|
||||
|
@ -354,6 +354,7 @@
|
||||
break;
|
||||
case 'UBET':
|
||||
$('.td_ubet').show();
|
||||
$('.veh_<?=$numVehicle?>').hide();
|
||||
break;
|
||||
}
|
||||
});
|
||||
|
@ -39,6 +39,7 @@ function generate_category($row) {
|
||||
if ($row['IstKrad']) $strReturn .="|UBETEILIGT_KRAD";
|
||||
if ($row['IstGkfz']) $strReturn .="|UBETEILIGT_LKW";
|
||||
if ($row['IstSonstige']) $strReturn .="|UBETEILIGT_SONSTIGES";
|
||||
if (substr_count($strReturn, '|')==3) $strReturn.="|UBETEILIGT_SELBST";
|
||||
return $strReturn;
|
||||
}
|
||||
|
||||
@ -97,7 +98,10 @@ function nl2br2($string) {
|
||||
global $arrCategory;
|
||||
global $strLocation;
|
||||
|
||||
$strTable="<h5><input type='radio' value='UKAT' name='kategorie' class='radio_header' checked='checked'>Unfallkategorie</h5>";
|
||||
// Unfallkategorie
|
||||
|
||||
$strTable="<h5><input type='radio' value='UKAT' name='kategorie' id='kategorie1' class='radio_header' checked='checked'>";
|
||||
$strTable.="<label for='kategorie1'>Unfallkategorie</label></h5>";
|
||||
$strTable.="<table class='statistik'>";
|
||||
$strSQL="SELECT UKATEGORIE, count(UKATEGORIE) as anz FROM data WHERE ".$strWhere.$strYear.$strLocation." GROUP BY UKATEGORIE";
|
||||
$result = $db->query($strSQL);
|
||||
@ -108,6 +112,7 @@ function nl2br2($string) {
|
||||
}
|
||||
$strTable.="</table>";
|
||||
|
||||
//Unfallbeteilgte
|
||||
|
||||
$strSQL="SELECT
|
||||
sum(IstRad) as rad,
|
||||
@ -121,15 +126,16 @@ function nl2br2($string) {
|
||||
WHERE ".$strWhere.$strYear.$strLocation;
|
||||
|
||||
$result = $db->query($strSQL);
|
||||
$strTable.="<h5><input type='radio' value='UBET' name='kategorie' class='radio_header'>Unfallbeteiligte</h5>";
|
||||
$strTable.="<h5><input type='radio' value='UBET' name='kategorie' id='kategorie2' class='radio_header'>";
|
||||
$strTable.="<label for='kategorie2'>Unfallbeteiligte</label></h5>";
|
||||
$strTable.="<table class='statistik'>";
|
||||
while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
|
||||
$strTable.="<tr><td class='td_ubet'><input type='checkbox' name='UBETEILIGT_RAD' id='BETEILIGT_RAD' class='check' checked='checked' ></td><td>Fahrräder</td><td>".$row['rad']."</td></tr>";
|
||||
$strTable.="<tr><td class='td_ubet'><input type='checkbox' name='UBETEILIGT_PKW' id='BETEILIGT_PKW' class='check' checked='checked' ></td><td>PKWs</td><td>".$row['pkw']."</td></tr>";
|
||||
$strTable.="<tr><td class='td_ubet'><input type='checkbox' name='UBETEILIGT_FUSS' id='BETEILIGT_FUSS' class='check' checked='checked' ></td><td>Fussgänger</td><td>".$row['fuss']."</td></tr>";
|
||||
$strTable.="<tr><td class='td_ubet'><input type='checkbox' name='UBETEILIGT_KRAD' id='BETEILIGT_KRAD' class='check' checked='checked' ></td><td>Krafträder</td><td>".$row['krad']."</td></tr>";
|
||||
$strTable.="<tr><td class='td_ubet'><input type='checkbox' name='UBETEILIGT_LKW' id='BETEILIGT_LKW' class='check' checked='checked' ></td><td>LKWs</td><td>".$row['lkw']."</td></tr>\n";
|
||||
$strTable.="<tr><td class='td_ubet'><input type='checkbox' name='UBETEILIGT_SONSTIGES' id='BETEILIGT_SONSTIGES' class='check' checked='checked' ></td><td>Sonstiges</td><td>".$row['sonstiges']."</td></tr>\n";
|
||||
$strTable.="<tr><td class='td_ubet'><input type='checkbox' name='UBETEILIGT_RAD' id='BETEILIGT_RAD' class='check veh_1' checked='checked' ></td><td>Fahrräder</td><td>".$row['rad']."</td></tr>";
|
||||
$strTable.="<tr><td class='td_ubet'><input type='checkbox' name='UBETEILIGT_PKW' id='BETEILIGT_PKW' class='check veh_2' checked='checked' ></td><td>PKWs</td><td>".$row['pkw']."</td></tr>";
|
||||
$strTable.="<tr><td class='td_ubet'><input type='checkbox' name='UBETEILIGT_FUSS' id='BETEILIGT_FUSS' class='check veh_3' checked='checked' ></td><td>Fussgänger</td><td>".$row['fuss']."</td></tr>";
|
||||
$strTable.="<tr><td class='td_ubet'><input type='checkbox' name='UBETEILIGT_KRAD' id='BETEILIGT_KRAD' class='check veh_4' checked='checked' ></td><td>Krafträder</td><td>".$row['krad']."</td></tr>";
|
||||
$strTable.="<tr><td class='td_ubet'><input type='checkbox' name='UBETEILIGT_LKW' id='BETEILIGT_LKW' class='check veh_5' checked='checked' ></td><td>LKWs</td><td>".$row['lkw']."</td></tr>\n";
|
||||
$strTable.="<tr><td class='td_ubet'><input type='checkbox' name='UBETEILIGT_SONSTIGES' id='BETEILIGT_SONSTIGES' class='check veh_6' checked='checked' ></td><td>Sonstiges</td><td>".$row['sonstiges']."</td></tr>\n";
|
||||
}
|
||||
switch ($numVehicle) {
|
||||
case 1:
|
||||
@ -161,16 +167,15 @@ function nl2br2($string) {
|
||||
|
||||
$result = $db->query($strSQL.$strYear);
|
||||
if ($row = $result->fetch(PDO::FETCH_ASSOC)) {
|
||||
$strTable.="<tr><td class='td_ubet'></td><td>Alleinunfälle und Unfälle mit geicher Fahrzeugart</td><td>".$row['count']."</td></tr>";
|
||||
$strTable.="<tr><td class='td_ubet'><input type='checkbox' name='UBETEILIGT_SELBST' id='BETEILIGT_SELBST' class='check' checked='checked' ></td><td>Alleinunfälle und Unfälle mit geicher Fahrzeugart</td><td>".$row['count']."</td></tr>";
|
||||
}
|
||||
$strTable.="</table>";
|
||||
|
||||
|
||||
|
||||
//Unfalltyp
|
||||
|
||||
$strSQL="SELECT UTYP1, count(UTYP1) as anz FROM data WHERE ".$strWhere.$strYear.$strLocation." GROUP BY UTYP1";
|
||||
$strTable.="<h5><input type='radio' value='UTYP' name='kategorie' class='radio_header'>Unfalltyp</h5>";
|
||||
$strTable.="<h5><input type='radio' value='UTYP' name='kategorie' id='kategorie3' class='radio_header'>";
|
||||
$strTable.="<label for='kategorie3'>Unfalltyp</label></h5>";
|
||||
$strTable.="<table class='statistik'>";
|
||||
$result = $db->query($strSQL);
|
||||
while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
|
||||
@ -182,7 +187,8 @@ function nl2br2($string) {
|
||||
//Unfallart
|
||||
|
||||
$strSQL="SELECT UART, count(UART) as anz FROM data WHERE ".$strWhere.$strYear.$strLocation." GROUP BY UART";
|
||||
$strTable.="<h5><input type='radio' value='UART' name='kategorie' class='radio_header'>Unfallart</h5>";
|
||||
$strTable.="<h5><input type='radio' value='UART' name='kategorie' id='kategorie4' class='radio_header'>";
|
||||
$strTable.="<label for='kategorie4'>Unfallart<label></h5>";
|
||||
$strTable.="<table class='statistik'>";
|
||||
$result = $db->query($strSQL);
|
||||
while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
|
||||
@ -195,8 +201,5 @@ function nl2br2($string) {
|
||||
|
||||
$strTable.="<a href='https://recht.nrw.de/lmi/owa/br_vbl_show_pdf?p_id=12225' target='_blank'>Unfalltpyen</a><br>";
|
||||
$strTable.="<a href='https://www.destatis.de/DE/Themen/Gesellschaft-Umwelt/Verkehrsunfaelle/Methoden/verkehrsunfaelle-grundbegriffe.pdf?__blob=publicationFile' target='_blank'>Unfallbeschreibung</a><br>";
|
||||
|
||||
|
||||
|
||||
return $strTable;
|
||||
}
|
Loading…
Reference in New Issue
Block a user