init
This commit is contained in:
commit
72a26edcff
22092 changed files with 2101903 additions and 0 deletions
20
scripts/kalender_fneu.php
Normal file
20
scripts/kalender_fneu.php
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
if(isset($_POST['absenden'])) {
|
||||
$pieces = explode(".", $_GET['tag']);
|
||||
$GLOBALS['mysql']->insert("INSERT INTO fplaner (tag,monat,jahr,fid,grund,info,logid) VALUES('".$pieces[0]."','".$pieces[1]."','".$pieces[2]."','".$_POST['mitarbeiter']."','".$_POST['grund']."','".$_POST['info']."','".time()."')");
|
||||
header('Location: ?s=kalender3&tag='.$_GET['tag']);
|
||||
}
|
||||
|
||||
$mitarbeiter = $GLOBALS['mysql']->query_array("SELECT * FROM fahrzeuge WHERE aktiv>0 ORDER BY kz");
|
||||
$template->assign('mitarbeiter', $mitarbeiter);
|
||||
|
||||
$gruende = $GLOBALS['mysql']->query_array("SELECT * FROM fplaner_bez");
|
||||
$template->assign('gruende', $gruende);
|
||||
/*
|
||||
echo "<pre>";
|
||||
print_r($mitarbeiter);
|
||||
echo "</pre>";
|
||||
*/
|
||||
$template->assign('tag', $_GET['tag']);
|
||||
$template->assign('content', 'tpl/kalender_fneu.tpl');
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue