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