Example #1
0
  ));
}
if (isset($params['category_filter'])) {
  $current_view->set_category($params['category_filter']);
}
if (isset($params['cal_view'])) {
  $current_view->set_cal_view($params['cal_view']);
}
if (isset($params['cal_range'])) {
  $current_view->set_cal_range($params['cal_range'],$params['ndays']);
}
if (isset($params['group_view']) && ($params['group_view']!=$current_view->get_group())) {
  $current_view->set_group($params['group_view']);
}
if ($set_date || !isset($_SESSION['cal_current_view'])) {
  $current_view->set_date($params['date']);
}
// Set the GLOBALS for email, checked by ??
if (! isset($GLOBALS['send_notification_mail'])) {
  $GLOBALS['send_notification_mail'] = isset($params['send_mail']) ? $params['send_mail'] : false;
}
///////////////////////////////////////////////////////////////////////////////

$extra_css[] = $css_calendar;
$extra_js_include[] = 'date.js';
$extra_js_include[] = 'calendar.js';
$extra_js_include[] = 'colorchooser.js';

require('calendar_display.inc');
require('calendar_js.inc');
require("$obminclude/of/of_right.inc");