$smarty->assign('tpl_subnav', 'guestlist2'); $smarty->assign('tpl_children0_field', $request->GetVar('children0', 'session')); $smarty->assign('tpl_children1_field', $request->GetVar('children1', 'session')); $smarty->assign('tpl_children2_field', $request->GetVar('children2', 'session')); $smarty->assign('tpl_children3_field', $request->GetVar('children3', 'session')); $guestlist = new Guestlist(); include_once 'bookingcategoryclass.inc.php'; $bcat = new BookingCategory(); $smarty->assign('tpl_bookcat', $bcat->get()); $todaydate = getdate(); $day = $todaydate['mday']; $month = $todaydate['mon']; $year = $todaydate['year']; $thedate = "{$day}.{$month}.{$year}"; $theotherdate = "{$day}-{$month}-{$year}"; $smarty->assign('tpl_dates', $guestlist->getdates()); if ($request->GetVar('frm_start', 'post') !== $request->undefined) { $thestart = $request->GetVar('frm_start', 'post'); } else { $thestart = $month . '/' . $year; } $theotherstart = str_replace('/', '-', $thestart); if ($request->GetVar('frm_end', 'post') !== $request->undefined) { $theend = $request->GetVar('frm_end', 'post'); } else { if ($month == 12) { $year = $year + 1; $month = 1; } else { $month = $month + 1; }