mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-15 11:56:25 +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();
|