', $context['view_week'] ? template_show_week_grid('main') : template_show_month_grid('main');
// Build the calendar button array.
$calendar_buttons = array(
'post_event' => array('test' => 'can_post', 'text' => 'calendar_post_event', 'image' => 'calendarpe.png', 'lang' => true, 'url' => $scripturl . '?action=calendar;sa=post;month=' . $context['current_month'] . ';year=' . $context['current_year'] . ';' . $context['session_var'] . '=' . $context['session_id']),
);
template_button_strip($calendar_buttons, 'right');
// Show some controls to allow easy calendar navigation.
echo '
';
}
// Template for posting a calendar event.
function template_event_post()
{
global $context, $settings, $options, $txt, $scripturl, $modSettings;
// Start the javascript for drop down boxes...
echo '