X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/8b10b92403fd7fa1b5aea3c6f8a3a9d40eccc601..5abd29f291d601abd0bfcedb88c82b1aa723d614:/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 *