***************************************************************/ /** * list of birthdays in a month * * lists * * @since 2004-07-26 * @author Christian Ehret <*****@*****.**> */ $smartyType = "www"; include_once "../includes/default.inc.php"; $auth->is_authenticated(); include_once 'guestlistclass.inc.php'; $smarty->assign("tpl_title", "Geburtstagsliste"); $smarty->assign('tpl_nav', 'lists'); $smarty->assign('tpl_type', 'lists'); $smarty->assign('tpl_subnav', 'birthday'); $guestlist = new Guestlist(); if ($request->GetVar('frm_month', 'post') !== $request->undefined) { $month = $request->GetVar('frm_month', 'post'); } else { $todaydate = getdate(); $day = $todaydate['mday']; $month = $todaydate['mon']; if ($month < 10) { $month = "0" . $month; } } $smarty->assign('tpl_month', $month); $smarty->assign('tpl_guests', $guestlist->getBirthdayList($month)); $smarty->display('list_birthday.tpl');