- $this->_tabla->addRow($this->_componentes,'align="center" bgcolor="#CCCCCC"');
- $colcount = $this->_tabla->getColCount();
- $width = 100 / $colcount;
-
- for ($col=0; $col < $colcount; $col++) {
- $this->_tabla->updateColAttributes($col,'width="'.$width.'%"');
- }
+ $TABLAM = new HTML_Table('width=760
+ align="center"
+ cellspacing="0"
+ cellpadding="0"
+ border="0"
+ background="/MECON/images/general_fondo_gris.gif"');
+ $TABLAM->addRow($this->_componentes,'align="center" bgcolor="#CCCCCC"');
+ $width = intval (100 / $colspan);
+
+ for ($col=0; $col < $colspan; $col++) {
+ $TABLAM->updateCellAttributes(0,$col,'width="'.$width.'%"');
+ }
+ $this->_tabla->addRow(array($TABLAM));