30 lines
No EOL
1.4 KiB
PHP
30 lines
No EOL
1.4 KiB
PHP
<?php
|
|
date_default_timezone_set('Europe/Berlin'); setlocale(LC_TIME, "de_DE");
|
|
error_reporting(E_ALL); ini_set('display_errors',0);
|
|
$m=2; $template->assign('m', $m);
|
|
//-----------------------------------------------------------------------------------------------------------------------
|
|
//$test=$GLOBALS['mysql']->query_single("SELECT * FROM kartenlog WHERE user='".$_POST['maID']."'");
|
|
//$klog = $GLOBALS['mysql']->query("SELECT zeit FROM kartenlog WHERE user='".$_POST['maID']."' DESC LIMIT 30");
|
|
|
|
$maID=$_SESSION['maID']; $template->assign('maID', $maID);
|
|
|
|
$anlage = $GLOBALS['mysql']->query("SELECT * FROM kartenlog WHERE user='".$maID."' ORDER BY logID ASC"); $time=0; $key;
|
|
while($row_anlage = $anlage->fetch_assoc()) {
|
|
if ($time==0) { $time=$row_anlage['zeit']; }
|
|
|
|
$status[$key]['diff']=date("H:i",$time- $row_anlage['zeit']); //alt
|
|
$status[$key]['diff2']= $time-$row_anlage['zeit'];
|
|
$time=$row_anlage['zeit'];
|
|
$status[$key]['zeit']=date("d.m.Y - H:i",$row_anlage['zeit']); //alt
|
|
$status[$key]['zeit2']=$row_anlage['zeit'];
|
|
$key++;
|
|
}
|
|
|
|
echo $temp."</br>";
|
|
//-----------------------------------------------------------------------------------------------------------------------
|
|
// echo "<pre>"; print_r($status); echo "</pre>";
|
|
$template->assign('klog', $status);
|
|
$template->assign('maID', $_POST['maID']);
|
|
$template->assign('content', 'tpl/ajax/ma_tuer.tpl');
|
|
|
|
?>
|