From: Martín Marrese Date: Wed, 24 Sep 2003 15:27:22 +0000 (+0000) Subject: Se agrego la posibilidad de cambiar la alineacion de la tabla en relacion a la pagina. X-Git-Tag: svn_import~257 X-Git-Url: https://git.llucax.com/mecon/meconlib.git/commitdiff_plain/6e11ec23d5aa6e7de4292bf176be4e139b416dc7?ds=sidebyside Se agrego la posibilidad de cambiar la alineacion de la tabla en relacion a la pagina. --- diff --git a/lib/MECON/HTML/Tabla.php b/lib/MECON/HTML/Tabla.php index 65512ff..d12cacf 100644 --- a/lib/MECON/HTML/Tabla.php +++ b/lib/MECON/HTML/Tabla.php @@ -74,6 +74,9 @@ class MECON_HTML_Tabla extends HTML_Table { if (isset($attrs['width'])) { $this->_attrs['width'] = $attrs['width']; } + if (isset($attrs['align'])) { + $this->_attrs['align'] = $attrs['align']; + } if (isset($attrs['bgcolor'])) { $this->_attrs['bgcolor'] = $attrs['bgcolor']; } @@ -256,12 +259,14 @@ class MECON_HTML_Tabla extends HTML_Table { */ function toHtml($simple = 0) { + // Agregar la tabla de fondo. if ($simple) { $result = parent::toHtml(); } else { $contenedora = $this->_conf['atributos']['tabla_contenedora']; $contenedora['width'] = $this->getAttribute('width'); + $contenedora['align'] = $this->getAttribute('align'); $this->updateAttributes(array('width' => '100%')); $tabla_externa = new HTML_Table($contenedora); $tabla_externa->addRow(array(parent::toHtml()),