* Settings * * @since 2004-07-24 * @author Christian Ehret <*****@*****.**> */ $smartyType = "www"; include_once "../includes/default.inc.php"; $auth->is_authenticated(); include_once 'bookingcategoryclass.inc.php'; $bcat = new BookingCategory(); $smarty->assign("tpl_title", "Buchungskategorien verwalten"); $smarty->assign('tpl_nav', 'settings'); $smarty->assign('tpl_subnav', 'catsettings'); $smarty->assign('tpl_subnav2', 'bookingcat'); if ($request->GetVar('frm_bcatid', 'post') !== $request->undefined) { if ($request->GetVar('frm_action', 'post') == 'edit') { $smarty->assign('tpl_editid', $request->GetVar('frm_bcatid', 'post')); } else { if ($request->GetVar('frm_action', 'post') == 'addnew') { $smarty->assign('tpl_addnew', 'true'); } else { if ($request->GetVar('frm_action', 'post') == 'del') { $bcat->del($request->GetVar('frm_bcatid', 'post')); } else { $check = $bcat->saveupdate(); } } } } $smarty->assign('tpl_bcat', $bcat->get()); $smarty->display('bookingcat.tpl');