* * Settings * * @since 2004-06-05 * @author Christian Ehret <*****@*****.**> */ $smartyType = "www"; include_once "../includes/default.inc.php"; $auth->is_authenticated(); include_once 'seasonclass.inc.php'; include_once 'bookingcategoryclass.inc.php'; include_once 'roomcategoryclass.inc.php'; include_once 'priceclass.inc.php'; $season = new Season(); $bcat = new BookingCategory(); $rcat = new RoomCategory(); global $bcat, $rcat; $price = new Price(); $smarty->assign("tpl_title", "Preise verwalten"); $smarty->assign('tpl_nav', 'settings'); $smarty->assign('tpl_subnav', 'syssettings'); $smarty->assign('tpl_subnav2', 'price'); $smarty->assign('tpl_type', 'price'); $smarty->assign('tpl_children1', $request->GetVar('children1', 'session')); $smarty->assign('tpl_children2', $request->GetVar('children2', 'session')); $smarty->assign('tpl_children3', $request->GetVar('children3', 'session')); if ($request->GetVar('frm_theyear', 'post') !== $request->undefined) { $theyear = $request->GetVar('frm_theyear', 'post'); } elseif ($request->GetVar('theyear', 'get') !== $request->undefined) { $theyear = $request->GetVar('theyear', 'get'); } else {
***************************************************************/ /** * Manage rooms * * Settings * * @since 2004-06-05 * @author Christian Ehret <*****@*****.**> */ $smartyType = "www"; include_once "../includes/default.inc.php"; $auth->is_authenticated(); include_once 'roomclass.inc.php'; include_once 'roomcategoryclass.inc.php'; $room = new Room(); $roomcat = new RoomCategory(); $smarty->assign("tpl_title", "Zimmerverwaltung"); $smarty->assign('tpl_nav', 'settings'); $smarty->assign('tpl_subnav', 'syssettings'); $smarty->assign('tpl_subnav2', 'rooms'); if ($request->GetVar('frm_roomid', 'post') !== $request->undefined) { if ($request->GetVar('frm_action', 'post') == 'edit') { $smarty->assign('tpl_roomcat', $roomcat->Getall()); $smarty->assign('tpl_editid', $request->GetVar('frm_roomid', 'post')); } else { if ($request->GetVar('frm_action', 'post') == 'addnew') { $smarty->assign('tpl_roomcat', $roomcat->Getall()); $smarty->assign('tpl_addnew', 'true'); } else { if ($request->GetVar('frm_action', 'post') == 'del') { $room->del($request->GetVar('frm_roomid', 'post'));
* * This copyright notice MUST APPEAR in all copies of the script! ***************************************************************/ /** * Manage room categories * * Settings * * @since 2004-06-05 * @author Christian Ehret <*****@*****.**> */ $smartyType = "www"; include_once "../includes/default.inc.php"; $auth->is_authenticated(); include_once 'roomcategoryclass.inc.php'; $roomcategory = new RoomCategory(); $smarty->assign("tpl_title", "Zimmerkategorieverwaltung"); $smarty->assign('tpl_nav', 'settings'); $smarty->assign('tpl_subnav', 'catsettings'); $smarty->assign('tpl_subnav2', 'roomcat'); $smarty->assign('tpl_type', 'roomcat'); 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') { $roomcategory->del($request->GetVar('frm_catid', 'post')); } else {