- $this->_tabla->addRow($this->_componentes,'align="center" bgcolor="#CCCCCC" valign="top"');
- $c = count($this->_componentes);
-
- $colcount = $this->_tabla->getColCount();
- $width = 100 / $colcount;
- for ($col=0; $col < $colcount; $col++) {
- $this->_tabla->updateColAttributes($col,'width="'.$width.'%"');
- }
+ $tmp = $this->_tabla->addRow($this->_componentes,
+ 'align="center" bgcolor="#CCCCCC" valign="top"');
+ $colspan = count($this->_componentes);
+ $width = intval (100 / $colspan);
+ for ($col=0; $col < $colspan; $col++) {
+ $this->_tabla->updateCellAttributes($tmp, $col,
+ 'width="'.$width.'%"');
+ }