|
|
|
@ -32,14 +32,14 @@ function generate_tooltip_description($row) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function generate_category($row) {
|
|
|
|
|
$strReturn = "UART_".$row['UART']."|UKATEGORIE_".$row['UKATEGORIE']."|UTYP_".$row['UTYP1'];
|
|
|
|
|
if ($row['IstRad']) $strReturn .="|UBETEILIGT_RAD";
|
|
|
|
|
if ($row['IstPKW']) $strReturn .="|UBETEILIGT_PKW";
|
|
|
|
|
if ($row['IstFuss']) $strReturn .="|UBETEILIGT_FUSS";
|
|
|
|
|
if ($row['IstKrad']) $strReturn .="|UBETEILIGT_KRAD";
|
|
|
|
|
if ($row['IstGkfz']) $strReturn .="|UBETEILIGT_LKW";
|
|
|
|
|
if ($row['IstSonstige']) $strReturn .="|UBETEILIGT_SONSTIGES";
|
|
|
|
|
return $strReturn;
|
|
|
|
|
$strReturn = "UART_".$row['UART']."|UKATEGORIE_".$row['UKATEGORIE']."|UTYP_".$row['UTYP1'];
|
|
|
|
|
if ($row['IstRad']) $strReturn .="|UBETEILIGT_RAD";
|
|
|
|
|
if ($row['IstPKW']) $strReturn .="|UBETEILIGT_PKW";
|
|
|
|
|
if ($row['IstFuss']) $strReturn .="|UBETEILIGT_FUSS";
|
|
|
|
|
if ($row['IstKrad']) $strReturn .="|UBETEILIGT_KRAD";
|
|
|
|
|
if ($row['IstGkfz']) $strReturn .="|UBETEILIGT_LKW";
|
|
|
|
|
if ($row['IstSonstige']) $strReturn .="|UBETEILIGT_SONSTIGES";
|
|
|
|
|
return $strReturn;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -106,20 +106,19 @@ function nl2br2($string) {
|
|
|
|
|
$strTable.="<tr><td><input type='checkbox' name='UKATEGORIE_".$row['UKATEGORIE']."' id='UKATEGORIE_".$row['UKATEGORIE']."' class='check ukat' checked='checked' ></td>"
|
|
|
|
|
."<td>".$arrCategory[$row['UKATEGORIE']]."</td><td>".$row['anz']."</td></tr>\n";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$strTable.="</table>";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$strSQL="SELECT
|
|
|
|
|
sum(IstRad) as rad,
|
|
|
|
|
sum(IstPKW) as pkw,
|
|
|
|
|
sum(IstFuss) as fuss,
|
|
|
|
|
sum(IstKrad) as krad,
|
|
|
|
|
sum(IstGkfz) as lkw,
|
|
|
|
|
sum(IstSonstige) as sonstiges,
|
|
|
|
|
count(*) as summe
|
|
|
|
|
FROM data
|
|
|
|
|
WHERE ".$strWhere.$strYear.$strLocation;
|
|
|
|
|
sum(IstRad) as rad,
|
|
|
|
|
sum(IstPKW) as pkw,
|
|
|
|
|
sum(IstFuss) as fuss,
|
|
|
|
|
sum(IstKrad) as krad,
|
|
|
|
|
sum(IstGkfz) as lkw,
|
|
|
|
|
sum(IstSonstige) as sonstiges,
|
|
|
|
|
count(*) as summe
|
|
|
|
|
FROM data
|
|
|
|
|
WHERE ".$strWhere.$strYear.$strLocation;
|
|
|
|
|
|
|
|
|
|
$result = $db->query($strSQL);
|
|
|
|
|
$strTable.="<h5><input type='checkbox' id='check_beteiligt' class='check_header' checked='checked'>Unfallbeteiligte</h5>";
|
|
|
|
@ -132,7 +131,6 @@ function nl2br2($string) {
|
|
|
|
|
$strTable.="<tr><td><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><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><input type='checkbox' name='UBETEILIGT_SONSTIGES' id='BETEILIGT_SONSTIGES' class='check' checked='checked' ></td><td>Sonstiges</td><td>".$row['sonstiges']."</td></tr>\n";
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
/*
|
|
|
|
|
$strSQL="SELECT count(*) as count
|
|
|
|
|