* but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * This copyright notice MUST APPEAR in all copies of the script! ***************************************************************/ /** * Add bar guest * * Settings * * 01/06/2004 by Christian Ehret chris@uffbasse.de */ $smartyType = "www"; include_once "../includes/default.inc.php"; include_once "barguestclass.inc.php"; include_once "barguestcatclass.inc.php"; $barguest = new Barguest(); $barguestcat = new barguestcat(); $auth->is_authenticated(); $smarty->assign("tpl_title", "Gast hinzufügen"); $smarty->assign('tpl_barguestcat', $barguestcat->getAll()); if ($request->GetVar('frm_firstname', 'post') !== $request->undefined) { $guestid = $barguest->add(); $smarty->assign('tpl_theguestid', $guestid); $smarty->assign('tpl_added', 'true'); } else { $smarty->assign('tpl_added', 'false'); } $smarty->assign('tpl_bookingcat', $barguest->getAllBookingcat()); $smarty->display('addbarguest.tpl');
* This copyright notice MUST APPEAR in all copies of the script! ***************************************************************/ /** * Show bar interface * * bar interface * * 07/24/2003 by Christian Ehret chris@uffbasse.de */ $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']; }
* GNU General Public License for more details. * * This copyright notice MUST APPEAR in all copies of the script! ***************************************************************/ /** * 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(); }