![]() |
CMS
Version 3.9
|
Go to the source code of this file.
Variables | |
$menu_item = "Calendars" | |
$calendar_id = checkNumeric($_GET["calendar_id"]) | |
$calendar = new Calendar($calendar_id) | |
$year = checkNumeric($_REQUEST["year"]) | |
$month = checkNumeric($_REQUEST["month"]) | |
$title = "Calendar View: {$calendar->name}" | |
if(! $year) if(! $month) | $startStr = sprintf("%d-%02d-01", $year, $month) |
$start = strtotime($startStr) | |
$prevMonth = $month - 1 | |
$prevYear = $year | |
if($prevMonth<=0) | $nextMonth = $month + 1 |
$nextYear = $year | |
if($nextMonth > 12) | $endStr = sprintf("%d-%02d-01", $nextYear, $nextMonth) |
$constraint = "WHERE end_date >= '$startStr' AND start_date < '$endStr' AND published=1 ORDER BY start_date" | |
$events = $calendar->Events($constraint) | |
$view = new CalendarView($events, "fullcalendar") | |
$view | year = $year |
$view | month = $month |
$tabs = CalendarManager::getTabs($calendar_id) | |
$calendar = new Calendar($calendar_id) |
Definition at line 43 of file calendar_view.inc.
$calendar_id = checkNumeric($_GET["calendar_id"]) |
Definition at line 38 of file calendar_view.inc.
$constraint = "WHERE end_date >= '$startStr' AND start_date < '$endStr' AND published=1 ORDER BY start_date" |
Definition at line 81 of file calendar_view.inc.
if ( $nextMonth > 12) $endStr = sprintf("%d-%02d-01", $nextYear, $nextMonth) |
Definition at line 80 of file calendar_view.inc.
$events = $calendar->Events($constraint) |
Definition at line 83 of file calendar_view.inc.
$menu_item = "Calendars" |
Definition at line 36 of file calendar_view.inc.
$month = checkNumeric($_REQUEST["month"]) |
Definition at line 46 of file calendar_view.inc.
Definition at line 72 of file calendar_view.inc.
$nextYear = $year |
Definition at line 73 of file calendar_view.inc.
$prevMonth = $month - 1 |
Definition at line 63 of file calendar_view.inc.
$prevYear = $year |
Definition at line 64 of file calendar_view.inc.
$start = strtotime($startStr) |
Definition at line 61 of file calendar_view.inc.
Definition at line 60 of file calendar_view.inc.
$tabs = CalendarManager::getTabs($calendar_id) |
Definition at line 90 of file calendar_view.inc.
$title = "Calendar View: {$calendar->name}" |
Definition at line 48 of file calendar_view.inc.
$view = new CalendarView($events, "fullcalendar") |
Definition at line 85 of file calendar_view.inc.
$year = checkNumeric($_REQUEST["year"]) |
Definition at line 45 of file calendar_view.inc.
$view month = $month |
Definition at line 88 of file calendar_view.inc.
$view year = $year |
Definition at line 87 of file calendar_view.inc.