jb-data.de/monitor/scripts/ajax/blitzer.php
2025-08-11 22:23:30 +02:00

49 lines
No EOL
1.6 KiB
PHP

<?php
// echo'<pre>'; print_r($tag_tour5); echo'</pre>';
header('Content-Type: text/html; charset=utf-8');
error_reporting(E_ALL); ini_set('display_errors',0);
//---------------------------------------------------------------------------- Polizeimeldungen
/*
$tmpdata = $GLOBALS['mysql']->query_single("SELECT * FROM verkehr_polizei");
$datapol=$tmpdata['num_rows'];
if($tmpdata['num_rows'] != 0) {
$tempdata = $GLOBALS['mysql']->query("SELECT * FROM verkehr_polizei"); $key=0;
while($row = $tempdata->fetch_assoc()) {
$pdata[$key]['adresse1']=$row['adresse1'];
$pdata[$key]['adresse2']=$row['adresse2'];
$pdata[$key]['reason']=$row['reason'];
$key++;
}
}
*/
//-------------------------------------------------------------------------------------------------------------
// 23-behinderung
// 21-Unfall
// 20-Stau
// 0-6 mobile blitzer
// 22
// 24-Glätte
// 25-Nebel
// 26- Baustellen 2
$tmpdata = $GLOBALS['mysql']->query_single("SELECT * FROM verkehr");
$dataanz=$tmpdata['num_rows'];
if($tmpdata['num_rows'] != 0) {
$tmpdata = $GLOBALS['mysql']->query("SELECT * FROM verkehr ORDER BY type DESC"); $key=0;
while($row = $tmpdata->fetch_assoc()) {
$bdata[$key]['typ']=$row['type'];
$bdata[$key]['vmax']=$row['vmax'];
$bdata[$key]['adresse1']=$row['adresse1'];
$bdata[$key]['adresse2']=$row['adresse2'];
$key++;
}
}
$template->assign('dataanz', $dataanz);
// $template->assign('datapol', $datapol);
$template->assign('time', time());
if(isset($bdata)) { $template->assign('bdata', $bdata); }
// if(isset($pdata)) { $template->assign('pdata', $pdata); }
$template->assign('content', 'tpl/ajax/blitzer1.tpl');