init
This commit is contained in:
commit
72a26edcff
22092 changed files with 2101903 additions and 0 deletions
28
scripts/ajax/huau.php
Normal file
28
scripts/ajax/huau.php
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
|
||||
error_reporting(E_ALL); ini_set('display_errors',0);
|
||||
|
||||
//-------------- hu
|
||||
$key=0;
|
||||
$tempcar1 = $GLOBALS['mysql']->query("SELECT * FROM fahrzeuge WHERE aktiv>0 and besitz<3 and hudate>1 ORDER BY kz");
|
||||
while($row = $tempcar1->fetch_assoc()) {
|
||||
$temptime=time(); $temptime=$temptime+2678400;
|
||||
if($row['hudate']<=time()) {
|
||||
$anzeige=1;
|
||||
$hudata[$key]['typ']=1;
|
||||
$hudata[$key]['kz']=$row['kz'];
|
||||
$hudata[$key]['hudate']=$row['hudate'];
|
||||
$key++;
|
||||
}
|
||||
elseif($row['hudate']<=$temptime) {
|
||||
$anzeige=1;
|
||||
$hudata[$key]['typ']=2;
|
||||
$hudata[$key]['kz']=$row['kz'];
|
||||
$hudata[$key]['hudate']=$row['hudate'];
|
||||
$key++;
|
||||
}
|
||||
}
|
||||
$template->assign('anzeige', $anzeige);
|
||||
$template->assign('hudata', $hudata);
|
||||
$template->assign('content', 'tpl/ajax/huau.tpl');
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue