X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/8b10b92403fd7fa1b5aea3c6f8a3a9d40eccc601..abe6511c5566af311f6fa08875d63663405b5081:/HTML/php/Tabla.php?ds=sidebyside diff --git a/HTML/php/Tabla.php b/HTML/php/Tabla.php index f1d6002..7ff4816 100644 --- a/HTML/php/Tabla.php +++ b/HTML/php/Tabla.php @@ -78,6 +78,12 @@ class Tabla extends HTML_Table { 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 @@ -195,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 *