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