26 lines
No EOL
833 B
PHP
26 lines
No EOL
833 B
PHP
<meta charset="utf-8">
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
|
<?php
|
|
|
|
error_reporting(E_ALL); ini_set('display_errors',0);
|
|
|
|
$tmptime=time()-2678400;
|
|
//$infop = $GLOBALS['mysql']->query_array("SELECT * FROM infop WHERE zeit>'".$tmptime."'");
|
|
|
|
$test = $GLOBALS['mysql']->query("SELECT * FROM infop WHERE zeit>'".$tmptime."' ORDER BY zeit DESC");
|
|
$key=0;
|
|
while($row = $test->fetch_assoc()) {
|
|
$row_fahrerx = $GLOBALS['mysql']->query_single("SELECT * FROM mitarbeiter WHERE id='".$row['mid']."'");
|
|
$infop[$key]['von']=$row_fahrerx['name'];
|
|
$infop[$key]['info']=$row['info'];
|
|
$infop[$key]['zeit']=$row['zeit'];
|
|
$infop[$key]['wichtig']=$row['wichtig'];
|
|
// $infop[$key]['icon']=$row_icon['icon'];
|
|
$key++;
|
|
}
|
|
|
|
|
|
|
|
$template->assign('infop', $infop);
|
|
$template->assign('content', 'tpl/ajax/infop.tpl');
|
|
?>
|