Пример #1
0
/**
* View calendar as PDF
* 
* Calendar
* 
* @since 2004-07-24
* @author Christian Ehret <*****@*****.**> 
*/
include_once "../includes/default.inc.php";
$leftmargin = 15;
$auth->is_authenticated();
include_once 'calendarclass.inc.php';
include_once 'bookingcategoryclass.inc.php';
include_once 'roomclass.inc.php';
$cal = new Calendar();
$bcat = new BookingCategory();
$room = new Room();
$title = "Zimmerplan";
$view = 'type';
if ($request->GetVar('view', 'get') !== $request->undefined) {
    $view = $request->GetVar('view', 'get');
} else {
    if ($request->GetVar('view', 'post') !== $request->undefined) {
        $view = $request->GetVar('view', 'post');
    }
}
if ($view == 'type') {
    $title .= " (Belegungsart)";
} else {
    $smarty->assign('tpl_subnav', 'cat');
    $title .= " (Buchungskategorien)";
Пример #2
0
*/
$smartyType = "www";
include_once "../includes/default.inc.php";
$auth->is_authenticated();
include_once 'calendarclass.inc.php';
include_once 'roomclass.inc.php';
include_once 'bookingcategoryclass.inc.php';
include_once 'guestclass.inc.php';
include_once 'bookingclass.inc.php';
$smarty->assign('tpl_children_field0', $request->GetVar('children0', 'session'));
$smarty->assign('tpl_children_field1', $request->GetVar('children1', 'session'));
$smarty->assign('tpl_children_field2', $request->GetVar('children2', 'session'));
$smarty->assign('tpl_children_field3', $request->GetVar('children3', 'session'));
$cal = new Calendar();
$room = new Room();
$bcat = new BookingCategory();
$guest = new Guest();
$book = new Booking();
$navmonth = $request->GetVar('month', 'get');
$navyear = $request->GetVar('year', 'get');
$navstep = $request->GetVar('navstep', 'get');
$bookid = $request->GetVar('bookid', 'get');
if ($navmonth == "") {
    $navmonth = $request->GetVar('frm_navmonth', 'post');
}
if ($navyear == "") {
    $navyear = $request->GetVar('frm_navyear', 'post');
}
if ($navstep == "") {
    $navstep = $request->GetVar('frm_navstep', 'post');
}
Пример #3
0
*
*  This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
/**
* Manage booking categories
* 
* 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();