49 lines
2.3 KiB
PHP
49 lines
2.3 KiB
PHP
<?php
|
|
$_SESSION['m1']=4; $_SESSION['m2']=2;
|
|
// Melde alle PHP Fehler (siehe Changelog)
|
|
// error_reporting(E_ALL);
|
|
ini_set('display_errors', 1);
|
|
|
|
if($_SESSION['benutzer']==12) { $planer="T. Muerbe"; }
|
|
else if($_SESSION['benutzer']==13) { $planer="Anett"; }
|
|
else if($_SESSION['benutzer']==18) { $planer="Joerg Basse"; }
|
|
else if($_SESSION['benutzer']==44) { $planer="I. Steinmacher"; }
|
|
else $planer="Frank";
|
|
|
|
|
|
//$jahr = (int)date('Y');
|
|
//$monat = (int)date('m');
|
|
//$kw_aktuell = (int)date('W');
|
|
|
|
//--------------------- alle Touren auflisten
|
|
|
|
//echo $_GET['id'];
|
|
// Vorabanzeige resultat
|
|
|
|
//-----------------------------
|
|
if(isset($_POST['toursave'])) {
|
|
$GLOBALS['mysql']->insert("UPDATE tourentyp SET tname='".$_POST['tname']."' WHERE tid='".$_GET['tid']."'");
|
|
$GLOBALS['mysql']->insert("UPDATE tourentyp SET taktiv='".$_POST['taktiv']."' WHERE tid='".$_GET['tid']."'");
|
|
$GLOBALS['mysql']->insert("UPDATE tourentyp SET tinfotitel='".$_POST['tinfotitel']."' WHERE tid='".$_GET['tid']."'");
|
|
$GLOBALS['mysql']->insert("UPDATE tourentyp SET mo='".$_POST['mo']."' WHERE tid='".$_GET['tid']."'");
|
|
$GLOBALS['mysql']->insert("UPDATE tourentyp SET di='".$_POST['di']."' WHERE tid='".$_GET['tid']."'");
|
|
$GLOBALS['mysql']->insert("UPDATE tourentyp SET mi='".$_POST['mi']."' WHERE tid='".$_GET['tid']."'");
|
|
$GLOBALS['mysql']->insert("UPDATE tourentyp SET do='".$_POST['do']."' WHERE tid='".$_GET['tid']."'");
|
|
$GLOBALS['mysql']->insert("UPDATE tourentyp SET fr='".$_POST['fr']."' WHERE tid='".$_GET['tid']."'");
|
|
$GLOBALS['mysql']->insert("UPDATE tourentyp SET sa='".$_POST['sa']."' WHERE tid='".$_GET['tid']."'");
|
|
$GLOBALS['mysql']->insert("UPDATE tourentyp SET so='".$_POST['so']."' WHERE tid='".$_GET['tid']."'");
|
|
|
|
$success[]="Tourdaten gespeichert."; $template->assign('success', $success);
|
|
}
|
|
$tourentyp = $GLOBALS['mysql']->query_array("SELECT * FROM tourentyp order by tid"); $template->assign('tourentyp', $tourentyp);
|
|
|
|
//------------------------------------------------------------
|
|
// echo "<pre>"; print_r($auto_array); echo "</pre>";
|
|
//------------------------------------------------------------
|
|
if($_GET['tid']>0) {
|
|
$tour = $GLOBALS['mysql']->query_single("SELECT * FROM tourentyp WHERE tid='".$_GET['tid']."'");
|
|
$template->assign('tour', $tour);
|
|
$template->assign('anzeige', $_GET['tid']);
|
|
}
|
|
$template->assign('content', 'tpl/v_tourentyp.tpl');
|
|
?>
|