X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/ab204ec4981b5edf4bc33e01db11d293946d0220..abe6511c5566af311f6fa08875d63663405b5081:/HTML/php/Tabla.php diff --git a/HTML/php/Tabla.php b/HTML/php/Tabla.php index 21acb3a..7ff4816 100644 --- a/HTML/php/Tabla.php +++ b/HTML/php/Tabla.php @@ -75,6 +75,15 @@ class Tabla extends HTML_Table { if (isset($tmp['width'])) { $this->_atribTabla['width'] = $tmp['width']; } + if (isset($tmp['bgcolor'])) { + $this->_atribTabla['bgcolor'] = $tmp['bgcolor']; + } + if (isset($tmp['cellspacing'])) { + $this->_atribTabla['cellspacing'] = $tmp['cellspacing']; + } + if (isset($tmp['cellpadding'])) { + $this->_atribTabla['cellpadding'] = $tmp['cellpadding']; + } } $this->HTML_Table($this->_atribTabla); //Modifico los atributos de todas las tablas @@ -192,6 +201,19 @@ class Tabla extends HTML_Table { return $this->updateColAttributes($columna,'align="'.$valor.'"'); } + /** + * Cambia el tamanio de una columna entera + * + * @param int $columna + * @param strin $valor + * + * @access public + */ + function setColWidth ($columna, $valor) + { + return $this->updateColAttributes($columna,'width="'.$valor.'"'); + } + /** * Cambia el color de fondo de una celda *