From 6e11ec23d5aa6e7de4292bf176be4e139b416dc7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mart=C3=ADn=20Marrese?= Date: Wed, 24 Sep 2003 15:27:22 +0000 Subject: [PATCH] Se agrego la posibilidad de cambiar la alineacion de la tabla en relacion a la pagina. --- lib/MECON/HTML/Tabla.php | 5 +++++ 1 file changed, 5 insertions(+) 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()), -- 2.43.0