// this appConfig = application.ptCalendar.getAppConfig(); standardDate = application.ptCalendar.getTimeDummyDate(); // Get from the App.cfc so all time fields use the same date in date/time stamp // Set the UI theme from the Configuration Element uiTheme = application.ptCalendar.getUItheme(); // Set the Time mask to the App standard cfTimeMask = application.ptCalendar.getDisplayCFtimeMask(); // the fields current value currentValue = attributes.currentValues[fqFieldName]; // the param structure which will hold all of the fields from the props dialog xparams = parameters[fieldQuery.inputID]; //--Field Security-- readOnly = application.ptCalendar.forms.isFieldReadOnly(xparams); displayValue = ""; if ( LEN(TRIM(currentValue)) ) { // Fix bad or incorrect date/time entries stored currentValue = application.ptCalendar.date.csDateFormat(currentValue,currentValue); // Strip the standardDate from the currentValueand do a TimeFormat for Display displayValue = TimeFormat(TRIM(REPLACE(currentValue,standardDate,"","all")),cfTimeMask); } // Validate if the property field has been defined if ( NOT StructKeyExists(xparams, "displayType") OR LEN(xparams.displayType) LTE 0 ) xparams.displayType = "UIdatepicker"; if ( NOT StructKeyExists(xparams, "displayFormat") OR LEN(xparams.displayFormat) LTE 0 ) xparams.displayFormat = ""; if ( NOT StructKeyExists(xparams, "uiTheme") OR LEN(xparams.uiTheme) LTE 0 ) xparams.uiTheme = uiTheme; if ( NOT StructKeyExists(xparams, "fldIcon") OR LEN(xparams.fldIcon) LTE 0 ) xparams.fldIcon = "none"; if ( NOT StructKeyExists(xparams, "fldID") OR LEN(xparams.fldID) LTE 0 ) xparams.fldID = TRIM(fqFieldName); else xparams.fldID = TRIM(xparams.fldID); // Set Default Icon Options useClockIcon = false; if ( xparams.fldIcon EQ "clock") useClockIcon = true; // jQuery Headers application.ptCalendar.scripts.loadJQuery(); application.ptCalendar.scripts.loadJQueryUI(themeName=xparams.uiTheme); // Load the DateJS Plugin Headers application.ptCalendar.scripts.loadDateJS(); // Load the DateFormat Plugin Headers application.ptCalendar.scripts.loadDateFormat(); // Load the DateFormat Plugin Headers //application.ptCalendar.scripts.loadDateFormat(); if ( xparams.displayType IS "anytime" ) { application.ptCalendar.scripts.loadJQueryAnytime(); if ( LEN(TRIM(xparams.displayFormat)) EQ 0 ) xparams.displayFormat = "%l:%i %p"; // "%m/%d/%Y" "%l:%i %p" "%m/%d/%Y %l:%i %p" } else if ( xparams.displayType IS "calendrical" ) { application.ptCalendar.scripts.loadJQueryCalendrical(); } else if ( xparams.displayType IS "UItimepickerAddon" ) { application.ptCalendar.scripts.loadJQueryUITimepickerAddon(); if ( LEN(TRIM(xparams.displayFormat)) EQ 0 ) xparams.displayFormat = "h:mm TT"; } else if ( xparams.displayType IS "UItimepickerFG" ) { application.ptCalendar.scripts.loadJQueryUITimepickerFG(); }
disabled="disabled"> clock
#application.ptCalendar.forms.wrapFieldHTML(inputHTML,fieldQuery,attributes)#