require_once('HTML/QuickForm/element.php');
require_once('HTML/QuickForm/radio.php');
require_once('MECON/defaults.php');
require_once('HTML/QuickForm/element.php');
require_once('HTML/QuickForm/radio.php');
require_once('MECON/defaults.php');
/**
* Class to dynamically create HTML Select elements from a date
*
* @author Bertrand Mansion <bmansion@mamasam.com>
* @access public
*/
/**
* Class to dynamically create HTML Select elements from a date
*
* @author Bertrand Mansion <bmansion@mamasam.com>
* @access public
*/
-
- function HTML_QuickForm_caritas($elementName=null, $elementLabel=null, $options=array(), $attributes=null)
- {
+
+ function MECON_HTML_QuickForm_caritas($elementName=null, $elementLabel=null, $options=array(), $attributes=null) {
HTML_QuickForm_element::HTML_QuickForm_element($elementName, $elementLabel, $attributes);
$this->_persistantFreeze = true;
$this->_type = 'caritas';
HTML_QuickForm_element::HTML_QuickForm_element($elementName, $elementLabel, $attributes);
$this->_persistantFreeze = true;
$this->_type = 'caritas';
- /* if (isset($options['language'])) {
- $this->setLanguage($options['language']);
- }
- if (isset($options['minYear'])) {
- $this->setMinYear($options['minYear']);
- }
- if (isset($options['maxYear'])) {
- $this->setMaxYear($options['maxYear']);
- }
- */
+ /* if (isset($options['language'])) {
+ $this->setLanguage($options['language']);
+ }
+ if (isset($options['minYear'])) {
+ $this->setMinYear($options['minYear']);
+ }
+ if (isset($options['maxYear'])) {
+ $this->setMaxYear($options['maxYear']);
+ }
+ */
$this->radios[$nombre] = &new HTML_QuickForm_radio($elementName, '', '', $nombre, $this->getAttributes());
}
} // end func _createSelects
$this->radios[$nombre] = &new HTML_QuickForm_radio($elementName, '', '', $nombre, $this->getAttributes());
}
} // end func _createSelects
$strHtml .= ' ' . $imagen->toHtml() . ' ';
if (!($i++ % $this->_cols))
$strHtml .= '<br>';
$strHtml .= ' ' . $imagen->toHtml() . ' ';
if (!($i++ % $this->_cols))
$strHtml .= '<br>';
// constant values override both default and submitted ones
// default values are overriden by submitted
$value = $this->_findValue($caller->_constantValues);
// constant values override both default and submitted ones
// default values are overriden by submitted
$value = $this->_findValue($caller->_constantValues);
- break;
- case 'setGroupValue':
- $this->setSelected($arg);
- break;
- default:
- parent::onQuickFormEvent($event, $arg, $caller);
+ }
+ if (null !== $value) {
+ $this->setSelected($value);
+ }
+ break;
+ case 'setGroupValue':
+ $this->setSelected($arg);
+ break;
+ default:
+ parent::onQuickFormEvent($event, $arg, $caller);