40 lines
No EOL
820 B
PHP
40 lines
No EOL
820 B
PHP
<?php
|
|
$_SESSION['m1']=1; $_SESSION['m2']=15;
|
|
if(isset($_POST['liste'])) {
|
|
echo $_POST['dasdatum'];
|
|
$datum_arr = explode('.',$_POST['dasdatum']);
|
|
$timestamp1 = mktime(0,0,0, $datum_arr[1] , $datum_arr[0] ,$datum_arr[2]);
|
|
header("Location:?s=stouren&list=".$_POST['liste'].'&time='.$timestamp1);
|
|
|
|
|
|
}
|
|
if($_GET['list'] != '') {
|
|
|
|
|
|
|
|
$dasdatum=date('d.m.Y',$inforow['time']);
|
|
$datum_arr = explode('.',$dasdatum);
|
|
$timestamp1 = mktime(20,0,0, $datum_arr[1] , $datum_arr[0] ,$datum_arr[2]);
|
|
|
|
|
|
echo $datum_arr[1];
|
|
echo $datum_arr[0];
|
|
echo $datum_arr[2];
|
|
|
|
//header("Location:?s=planer");
|
|
//header("Location:?s=planer&list=".$ptid."&db&save");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
$template->assign('time', time());
|
|
$template->assign('table', $table);
|
|
$template->assign('content', 'tpl/select_date.tpl');
|
|
}
|
|
|
|
?>
|