calGlobalConfig = application.ptCalendar2.getAppConfig();
// Set the UI theme from the Configuration Element
UItheme = 'redmond';
if ( structKeyExists(calGlobalConfig,"calendar_app_ui_theme") AND LEN(TRIM(calGlobalConfig['calendar_app_ui_theme'])) )
UItheme = calGlobalConfig['calendar_app_ui_theme'];
// load jQuery headers
application.ptCalendar2.scripts.loadJQuery();
// load headers for jQuery light box
application.ptCalendar2.scripts.loadADFLightbox();
// load header for jQuery UI
application.ptCalendar2.scripts.loadJQueryUI(themeName=UItheme);
ManageElementName = "Calendar2 Page Map";
ManagePageTitleText = "Manage Calendar Page Mappings";
AddRecordLinkText = "Add New Page Mapping";
AjaxPath = application.ADF.ajaxProxy;
AjaxBean = "forms_1_1";
renderForm = "renderAddEditForm";
formID = application.ADF.cedata.getFormIDByCEName(variables.ManageElementName);
dpid = 0;
formResultHTML = "";
lightboxwidth = 600;
lightboxheight = 500;
// Only Add ONE config record to the Element
// So remove the ADD LINK if a record exists
showAddLink = true;
showResetLink = true;
//ceArray = application.ptCalendar2.ceData.getCEData(variables.ManageElementName);
/* if ( ArrayLen(ceArray) GT 0 ) {
variables.showAddLink = true;
variables.showResetLink = false;
} */
#ManagePageTitleText#