* Settings * * @since 2004-06-05 * @author Christian Ehret <*****@*****.**> */ $smartyType = "www"; include_once "../includes/default.inc.php"; $auth->is_authenticated(); include_once 'paycategoryclass.inc.php'; $pcategory = new PayCategory(); $smarty->assign("tpl_title", "Zahlungskategorieverwaltung"); $smarty->assign('tpl_nav', 'settings'); $smarty->assign('tpl_subnav', 'catsettings'); $smarty->assign('tpl_subnav2', 'paycategory'); if ($request->GetVar('frm_catid', 'post') !== $request->undefined) { if ($request->GetVar('frm_action', 'post') == 'edit') { $smarty->assign('tpl_editid', $request->GetVar('frm_catid', 'post')); } else { if ($request->GetVar('frm_action', 'post') == 'addnew') { $smarty->assign('tpl_addnew', 'true'); } else { if ($request->GetVar('frm_action', 'post') == 'del') { $pcategory->del($request->GetVar('frm_catid', 'post')); } else { $check = $pcategory->saveupdate(); } } } } $smarty->assign('tpl_category', $pcategory->getall()); $smarty->display('paytypes.tpl');