X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/863a0c89dca626c59bf859244568d598371fc957..1d3c53baf8ad9cbd840eda961b507160e307c2b8:/lib/MECON/HTML/Tabla.php?ds=sidebyside diff --git a/lib/MECON/HTML/Tabla.php b/lib/MECON/HTML/Tabla.php index 65512ff..cd14896 100644 --- a/lib/MECON/HTML/Tabla.php +++ b/lib/MECON/HTML/Tabla.php @@ -85,6 +85,10 @@ class MECON_HTML_Tabla extends HTML_Table { } } $this->HTML_Table($this->_attrs); + if (isset($attrs['align'])) { + $this->_attrs['align'] = $attrs['align']; + } + } /** @@ -256,12 +260,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->_attrs['align']; $this->updateAttributes(array('width' => '100%')); $tabla_externa = new HTML_Table($contenedora); $tabla_externa->addRow(array(parent::toHtml()),