*/
var $_selected = null;
- var $_numRows = 5;
+ var $_cols = 5;
/**
*/
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'])) {
// }}}
// {{{ 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
}
$imagen =& new HTML_Image(MECON_DIR_IMG."/caritas/$nombre");
$strHtml .= ' ' . $imagen->toHtml() . ' ';
- if (!($i++ % $this->_numRows))
+ if (!($i++ % $this->_cols))
$strHtml .= '<br>';
}
return $strHtml;