$book = New Booking; $guestlist = New Guestlist; */ include_once 'calendarclass.inc.php'; include_once 'bookingcategoryclass.inc.php'; include_once 'bookingclass.inc.php'; include_once 'guestlistclass.inc.php'; $bcat = new BookingCategory(); $book = new Booking(); $guestlist = new Guestlist(); $cal = new Calendar(); $smarty->assign("tpl_title", "Zimmerplan"); $smarty->assign('tpl_nav', 'calendar'); $smarty->assign('tpl_type', 'calendar'); // check for old reservations $numoldres = $book->getnumoldreservations(); if ($numoldres > 0 && $request->GetVar('showoldres', 'Session') !== 'noshow') { $smarty->assign('tpl_oldreservations', 'true'); } else { $smarty->assign('tpl_oldreservations', 'false'); } $numbirthday = count($guestlist->getBirthdayReminders()); if ($numbirthday > 0 && $request->GetVar('showbirthdays', 'Session') !== 'noshow') { $smarty->assign('tpl_birthdays', 'true'); } else { $smarty->assign('tpl_birthdays', 'false'); } $smarty->assign('tpl_numoldres', $numoldres); $todaydate = getdate(); $month = $todaydate['mon']; $year = $todaydate['year'];