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'];
}
}
}
$this->HTML_Table($this->_attrs);
+ if (isset($attrs['align'])) {
+ $this->_attrs['align'] = $attrs['align'];
+ }
+
}
/**
} else {
$contenedora = $this->_conf['atributos']['tabla_contenedora'];
$contenedora['width'] = $this->getAttribute('width');
- $contenedora['align'] = $this->getAttribute('align');
+ $contenedora['align'] = $this->_attrs['align'];
$this->updateAttributes(array('width' => '100%'));
$tabla_externa = new HTML_Table($contenedora);
$tabla_externa->addRow(array(parent::toHtml()),