function HTML_QuickForm_lookup($elementName = null, $elementLabel = null, $attributes = null, $properties = null) { static $index = 1; $this->index = $index++; $this->index_prefix = time(); if (!isset($attributes)) { $attributes = array(); } $class = @$attributes['class']; $class .= ' xf-lookup xf-lookup-' . $this->index_prefix . '-' . $this->index; $attributes['class'] = $class; $attributes['df:cloneable'] = 1; parent::HTML_QuickForm_input($elementName, $elementLabel, $attributes); $this->_type = 'lookup'; }
function HTML_QuickForm_calendar($elementName = null, $elementLabel = null, $attributes = null, $properties = null) { parent::HTML_QuickForm_input($elementName, $elementLabel, $attributes); $this->_type = 'calendar'; // Default language is english if (!@$properties['lang']) { $properties['lang'] = 'en'; } // Default theme is windows 2k. This is the name of a css file (without the .css extension) if (!@$properties['theme']) { $properties['theme'] = 'calendar-win2k-2'; } // Whether to load the stripped javascript files (i.e., the versions with spaces and whitespace stripped out). // for faster loading if (!isset($properties['stripped'])) { $properties['stripped'] = false; } // Default show Monday first (first day = 1) if (!isset($properties['firstDay'])) { $properties['firstDay'] = 1; } // Whether or not to show the time also if (!isset($properties['showsTime'])) { $properties['showsTime'] = true; } // Whether or not to show others (not sure what this means ... check jscalendar docs if (!isset($properties['showOthers'])) { $properties['showOthers'] = true; } // The Format to be placed in the input field. if (!isset($properties['ifFormat'])) { $properties['ifFormat'] = '%Y-%m-%d %I:%M %P'; } // The time format if (!isset($properties['timeFormat'])) { $properties['timeFormat'] = '12'; } foreach (array_keys($properties) as $key) { $this->setProperty($key, $properties[$key]); } $this->calendar = new DHTML_Calendar($GLOBALS['HTML_QuickForm_calendar']['jscalendar_BasePath'], $this->getProperty('lang'), $this->getProperty('theme'), $this->getProperty('stripped')); }
function HTML_QuickForm_depselect($elementName = null, $elementLabel = null, $attributes = null, $properties = null) { parent::HTML_QuickForm_input($elementName, $elementLabel, $attributes); }