X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/236b889143086644d268f8066a143b9af95f639e..5fc2201301cdcb17f9c3fd8e62db255bf140cc35:/HTML/php/Tabla.php diff --git a/HTML/php/Tabla.php b/HTML/php/Tabla.php index 30ab34a..df56c44 100644 --- a/HTML/php/Tabla.php +++ b/HTML/php/Tabla.php @@ -57,31 +57,30 @@ class Tabla extends HTML_Table { * * @access public */ - function Tabla($attrs = '') + function Tabla($attrs = null) { $this->_conf = include 'Tabla/conf_Tabla.php'; // Obtengo los valores particulares de configuracion // Seteo los atributos para la tabla - $this->_attrs = $this->_parseAttributes($this->_conf['atributos']['tabla_comun']); + $this->_attrs = $this->_conf['atributos']['tabla_comun']; //Genero el objeto HTML_Table - if ($attrs != '') { - $tmp = $this->_parseAttributes($attrs); - if (isset($tmp['width'])) { - $this->_attrs['width'] = $tmp['width']; + if (is_string($attrs)) { + $attrs = $this->_parseAttributes($attrs); + } + if (is_array($attrs)) { + if (isset($attrs['width'])) { + $this->_attrs['width'] = $attrs['width']; } - if (isset($tmp['bgcolor'])) { - $this->_attrs['bgcolor'] = $tmp['bgcolor']; + if (isset($attrs['bgcolor'])) { + $this->_attrs['bgcolor'] = $attrs['bgcolor']; } - if (isset($tmp['cellspacing'])) { - $this->_attrs['cellspacing'] = $tmp['cellspacing']; + if (isset($attrs['cellspacing'])) { + $this->_attrs['cellspacing'] = $attrs['cellspacing']; } - if (isset($tmp['cellpadding'])) { - $this->_attrs['cellpadding'] = $tmp['cellpadding']; + if (isset($attrs['cellpadding'])) { + $this->_attrs['cellpadding'] = $attrs['cellpadding']; } } $this->HTML_Table($this->_attrs); - //Modifico los atributos de todas las tablas - //Hay que encontrar o hacer una funcion que setee los atributos para las futuras - //inserciones. } /**