javaScript(); $styles .= ''; include_once ('global_header.php'); $template->set('box_top', box_top('Event Calendar')); $template->set('box_bottom', box_bottom()); $button = button('Add Your Event', 100); # testing whether var set necessary to suppress notices when E_NOTICES on $month = (isset($_GET['month'])) ? (int) $_GET['month'] : null; $year = (isset($_GET['year'])) ? (int) $_GET['year'] : null; $category = (isset($_REQUEST['category'])) ? $_REQUEST['category'] : '0'; # set month and year to present if month # and year not received from query string $m = (!$month) ? date("n") : $month; $y = (!$year) ? date("Y") : $year; $scrollarrowLeft = $event->scrollArrowLeft($m, $y); $scrollarrowRight = $event->scrollArrowRight($m, $y); $droplist = $event->monthPullDown($m, $lang["months"]).' '. $event->yearPullDown($y); $categoryPullDown = $event->categoryPullDown($category); (string) $browse_content = null; //g $browse_content = '
'. $scrollarrowLeft.'  '. $lang['months'][$m-1] .' '.$y.' '. $scrollarrowRight.'
'.$categoryPullDown.$droplist.'
'. $event->writeCalendar($m, $y, $category).'
'. $button.'
'; $template->set('message_content', $browse_content); $template_output .= $template->process('single_message.tpl.php'); include_once ('global_footer.php'); echo $template_output; ?>