mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-13 02:46:30 +00:00
29 lines
559 B
PHP
29 lines
559 B
PHP
<?
|
|
if (!Calendar::can_view()) {
|
|
error(404);
|
|
}
|
|
|
|
$Month = $_GET['month'];
|
|
$Year = $_GET['year'];
|
|
|
|
if (empty($Month) || empty($Year)) {
|
|
$Date = getdate();
|
|
$Month = $Date['mon'];
|
|
$Year = $Date['year'];
|
|
}
|
|
|
|
$Events = Calendar::get_events($Month, $Year);
|
|
View::show_header("Calendar", "jquery.validate,form_validate,calendar", "calendar");
|
|
|
|
CalendarView::render_title($Month, $Year);
|
|
?>
|
|
<div class="sidebar">
|
|
<div id="event_div"></div>
|
|
</div>
|
|
<div class="main_column">
|
|
<?
|
|
CalendarView::render_calendar($Month, $Year, $Events);
|
|
?>
|
|
</div>
|
|
<?
|
|
View::show_footer();
|