*/ $smartyType = "www"; include_once "../includes/default.inc.php"; $auth->is_authenticated(); include_once "barguestclass.inc.php"; $barguest = new Barguest(); include_once "barguestcatclass.inc.php"; $cls_barguestcat = new barguestcat(); $theguestid = -1; $theguest = ""; $thebookingcat = ""; include_once 'statisticsclass.inc.php'; $statistics = new Statistics(); include_once 'articlecatclass.inc.php'; $articlecat = new articlecat(); $barguestcat = $cls_barguestcat->getall(); $cats = $articlecat->getall(); for ($i = 0; $i < count($cats); $i++) { $cats[$i]['rownum'] = count($barguestcat) + $i; } for ($i = 0; $i < count($cats); $i++) { $selectedcats[$i] = $cats[$i]['articlecatid']; } $smarty->assign('tpl_nextnum', count($cats) + count($barguestcat)); $smarty->assign('tpl_showlast', 'false'); if ($request->GetVar('frm_cat', 'post') !== $request->undefined) { $cat = "verkauf" . $request->GetVar('frm_cat', 'post'); } else { $cat = "verkauf" . $cats[0]['articlecatid']; } if ($request->GetVar('showlast', 'get') !== $request->undefined) {
* Manage barguestcategories * * Settings * * 08/30/2004 by Christian Ehret chris@uffbasse.de */ $smartyType = "www"; include_once "../includes/default.inc.php"; $auth->is_authenticated(); include_once 'barguestcatclass.inc.php'; $barguestcat = new barguestcat(); $smarty->assign("tpl_title", "Bargästekategorieverwaltung"); $smarty->assign('tpl_nav', 'settings'); $smarty->assign('tpl_subnav', 'editbarguestcat'); if ($request->GetVar('frm_barguestcatid', 'post') !== $request->undefined) { if ($request->GetVar('frm_action', 'post') == 'edit') { $smarty->assign('tpl_editid', $request->GetVar('frm_barguestcatid', 'post')); } else { if ($request->GetVar('frm_action', 'post') == 'addnew') { $smarty->assign('tpl_addnew', 'true'); } else { if ($request->GetVar('frm_action', 'post') == 'del') { $barguestcat->del($request->GetVar('frm_barguestcatid', 'post')); } else { $check = $barguestcat->saveupdate(); } } } } $smarty->assign('tpl_article', $barguestcat->getall()); $smarty->display('editbarguestcat.tpl');