: '), ');
}';
// If we are making a calendar event we want to ensure we show the current days in a month etc... this is done here.
if ($context['make_event'])
echo '
var monthLength = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
function generateDays()
{
var dayElement = document.getElementById(\'day\'), yearElement = document.getElementById(\'year\'), monthElement = document.getElementById(\'month\');
var days, selected = dayElement.selectedIndex;
monthLength[1] = yearElement.options[yearElement.selectedIndex].value % 4 == 0 ? 29 : 28;
days = monthLength[monthElement.value - 1];
while (dayElement.options.length)
dayElement.options[0] = null;
for (i = 1; i <= days; i++)
dayElement.options[dayElement.length] = new Option(i, i);
if (selected < days)
dayElement.selectedIndex = selected;
}';
// End of the javascript, start the form and display the link tree.
echo '
// ]]>
';
echo '
';
// If the user is replying to a topic show the previous posts.
if (isset($context['previous_posts']) && count($context['previous_posts']) > 0)
{
echo '
';
}
}
// The template for the spellchecker.
function template_spellcheck()
{
global $context, $settings, $options, $txt;
// The style information that makes the spellchecker look... like the forum hopefully!
echo '
', $txt['spell_check'], '
';
}
function template_quotefast()
{
global $context, $settings, $options, $txt;
echo '
', $txt['retrieving_quote'], '
', $txt['retrieving_quote'], '
';
}
function template_announce()
{
global $context, $settings, $options, $txt, $scripturl;
echo '
';
}
function template_announcement_send()
{
global $context, $settings, $options, $txt, $scripturl;
echo '