appConfigStruct = application.ptForum.getAppConfig();
// Set the UI theme from the Configuration Element
UItheme = 'redmond';
if ( structKeyExists(appConfigStruct,"forum_ui_theme") AND LEN(TRIM(appConfigStruct['forum_ui_theme'])) )
UItheme = appConfigStruct['forum_ui_theme'];
// load jQuery headers
application.ptForum.scripts.loadJQuery("1.3.2");
// load header for jQuery UI
application.ptForum.scripts.loadJQueryUI("1.7.2", UItheme);
// load headers for ADF lightbox
application.ptForum.scripts.loadADFLightbox();
ManageElementName = "ptForum Configuration";
ManagePageTitleText = "Manage Forums Configuration";
AddRecordLinkText = "Add New Config Data";
AjaxPath = application.ADF.ajaxProxy;
AjaxBean = "forms_1_0";
editForm = "renderAddEditForm";
formID = application.ADF.cedata.getFormIDByCEName(ManageElementName);
dpid = 0;
lbAction = "refreshparent";
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 = false;
ceArray = application.ADF.ceData.getCEData(ManageElementName);
if ( ArrayLen(ceArray) GT 0 ) {
showAddLink = false;
showResetLink = true;
}
#ManagePageTitleText#
#AddRecordLinkText# (Disabled - Configuration Exists)