From a8ec5b00eeb26d6211f01647698c003d62996aa6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mart=C3=ADn=20Marrese?= Date: Tue, 29 Jul 2003 21:26:06 +0000 Subject: [PATCH] Se le hicieron cambios menores.. --- lib/MECON/HTML/QuickForm/caritas.php | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) 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; -- 2.43.0