Пример #1
0
    }
}
$render_left .= '
</form>
</div>
<div id="calTitleDate"><a href="' . $calendar_url . '" target="cal_iframe" title="Click to refresh calendar">' . date('l, jS \\of F Y', $Day->getTimeStamp()) . '</a></div>
' . $alldayapps . '
<div class="calendar-container" id="calendar-container"><script type="text/javascript">writeCal(\'' . $calendar_url . '\');</script></div>
';
// month browse and navigation
$render_right = '
  <div id="calMonthBrowse">
	<table align="center" cellspacing="0" cellpadding="0">
	<tr>
	<td class="calMonthSelect">
	<a href="?' . replaceQueryStringArray($query_string, array('d', 'm', 'y', 'app_highlight', 'jumpto')) . '&amp;y=' . $navPrevYear . '&amp;m=' . $Month->prevMonth() . '&amp;d=' . $Month->thisDay() . '" title="Previous Month">&laquo;</a>
	</td>
	<td colspan="5" class="calMonthSelect">
	  <form method="GET" name="monthBrowse">
		<select name="m" style="width:50px" onChange="document.monthBrowse.submit();">';
foreach ($months_short as $number => $title) {
    $render_right .= '<option value="' . $number . '"';
    if ($number == $to_pass['m']) {
        $render_right .= ' selected';
    }
    $render_right .= '>' . $title . '</option>' . "\n";
}
$render_right .= '
		</select>
		<select name="y" style="width:50px" onChange="document.monthBrowse.submit();">';
for ($_i = 2006; $_i <= date('Y') + 10; $_i++) {