init
This commit is contained in:
commit
72a26edcff
22092 changed files with 2101903 additions and 0 deletions
49
monitor/scripts/ajax/blitzer.php
Normal file
49
monitor/scripts/ajax/blitzer.php
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
<?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');
|
||||
Loading…
Add table
Add a link
Reference in a new issue