if (isset($_SESSION["my_export_options"]) && $_SESSION["my_export_options"]) { $diff = array_diff($default_csv_headings, $_SESSION["my_export_options"]); $default_csv_headings = $_SESSION["my_export_options"]; $additional_csv_headings = array_diff($additional_csv_headings, $_SESSION["my_export_options"]); } if (isset($diff) && $diff && is_array($diff)) { $additional_csv_headings = array_merge($additional_csv_headings, $diff); } /** * Process any sorting or pagination requests. */ events_process_sorting(); /** * Process any filter requests. */ events_process_filters($ACTION, "admin"); /** * Check if preferences need to be updated. */ preferences_update($MODULE, $PREFERENCES); /** * Fetch all of the events that apply to the current filter set. */ $learning_events = events_fetch_filtered_events($ENTRADA_USER->getActiveId(), $ENTRADA_USER->getActiveGroup(), $ENTRADA_USER->getActiveRole(), $ENTRADA_USER->getActiveOrganisation(), $_SESSION[APPLICATION_IDENTIFIER]["events"]["sb"], $_SESSION[APPLICATION_IDENTIFIER]["events"]["so"], $_SESSION[APPLICATION_IDENTIFIER]["events"]["dtype"], $_SESSION[APPLICATION_IDENTIFIER]["tmp"]["dstamp"], 0, $_SESSION[APPLICATION_IDENTIFIER]["events"]["filters"], true, isset($_GET["pv"]) ? (int) trim($_GET["pv"]) : 1, $_SESSION[APPLICATION_IDENTIFIER]["events"]["pp"], false, false); echo "<h1>" . $MODULES[strtolower($MODULE)]["title"] . "</h1>"; if (isset($_SESSION["export_error"]) && $_SESSION["export_error"]) { add_error($_SESSION["export_error"]); echo display_error(); } /** * Output the filter HTML.
$ERRORSTR[] = "You are not permitted to access this event. This error has been logged."; echo display_error($errorstr); application_log("error", "User [" . $_SESSION['details']['username'] . "] tried to access the event [" . $EVENT_ID . "] and was denied access."); } } } } else { $HEAD[] = "<link href=\"" . ENTRADA_RELATIVE . "/javascript/calendar/css/xc2_default.css\" rel=\"stylesheet\" type=\"text/css\" media=\"all\" />"; $HEAD[] = "<script type=\"text/javascript\" src=\"" . ENTRADA_RELATIVE . "/javascript/calendar/config/xc2_default.js\"></script>\n"; $HEAD[] = "<script type=\"text/javascript\" src=\"" . ENTRADA_RELATIVE . "/javascript/calendar/script/xc2_inpage.js\"></script>\n"; $HEAD[] = "<script type=\"text/javascript\" src=\"" . ENTRADA_RELATIVE . "/javascript/calendar/script/xc2_timestamp.js\"></script>\n"; $HEAD[] = "<script type=\"text/javascript\" src=\"" . ENTRADA_RELATIVE . "/javascript/elementresizer.js\"></script>\n"; /** * Process any filter requests. */ events_process_filters($ACTION); /** * Check if preferences need to be updated. */ preferences_update($MODULE, $PREFERENCES); /** * Fetch all of the events that apply to the current filter set. */ $learning_events = events_fetch_filtered_events($ENTRADA_USER->getActiveId(), $ENTRADA_USER->getActiveGroup(), $ENTRADA_USER->getActiveRole(), $ENTRADA_USER->getActiveOrganisation(), $_SESSION[APPLICATION_IDENTIFIER]["events"]["sb"], $_SESSION[APPLICATION_IDENTIFIER]["events"]["so"], $_SESSION[APPLICATION_IDENTIFIER]["events"]["dtype"], $_SESSION[APPLICATION_IDENTIFIER]["tmp"]["dstamp"], 0, $_SESSION[APPLICATION_IDENTIFIER]["events"]["filters"], true, isset($_GET["pv"]) ? (int) trim($_GET["pv"]) : 1, $_SESSION[APPLICATION_IDENTIFIER]["events"]["pp"]); /** * Output the filter HTML. */ events_output_filter_controls(); /** * Output the calendar controls and pagination. */