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 "
"; print_r($auto_array); echo "
"; //------------------------------------------------------------ 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'); ?>