X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/ab276d0f5ae833dd3b9dc8d3a2c92877277984ec..15c32314cf6a6eadf7d2d24ff2827c3db9bd8950:/lib/MECON/HTML/QuickForm/caritas.php?ds=inline diff --git a/lib/MECON/HTML/QuickForm/caritas.php b/lib/MECON/HTML/QuickForm/caritas.php index aa8bcbb..8ae3f41 100644 --- a/lib/MECON/HTML/QuickForm/caritas.php +++ b/lib/MECON/HTML/QuickForm/caritas.php @@ -47,7 +47,7 @@ class HTML_QuickForm_caritas extends HTML_QuickForm_element */ var $_selected = null; - var $_numRows = 5; + var $_cols = 5; /** @@ -118,10 +118,10 @@ class HTML_QuickForm_caritas extends HTML_QuickForm_element */ function _setDefaults($options) { - /* if (isset($options['format'])) { - $this->setFormat($options['format']); + if (isset($options['cols'])) { + $this->setCols($options['cols']); } - if (isset($options['language'])) { + /* if (isset($options['language'])) { $this->setLanguage($options['language']); } if (isset($options['minYear'])) { @@ -136,6 +136,17 @@ class HTML_QuickForm_caritas extends HTML_QuickForm_element // }}} // {{{ setName() + /** + * Sets the number of cols (columns) + * @param string $name Input field name attribute + * @access public + * @return void + */ + function setCols($cols) + { + $this->_cols = $cols; + } //end func setCols + /** * Sets the input field name * @param string $name Input field name attribute @@ -256,7 +267,7 @@ class HTML_QuickForm_caritas extends HTML_QuickForm_element } $imagen =& new HTML_Image(MECON_DIR_IMG."/caritas/$nombre"); $strHtml .= ' ' . $imagen->toHtml() . '     '; - if (!($i++ % $this->_numRows)) + if (!($i++ % $this->_cols)) $strHtml .= '
'; } return $strHtml;