*/
function _body_display() // ~X2C
{
- $this->_contenido[] = '<br>';
+ $this->_contenido[] = '<br> ';
$body = array ( 'copete' => $this->_copete->toHtml(),
'body' => $this->_contenido,
'pie' => $this->_pie->toHtml(),
$row = array ($this->_seccionSeleccionada->_hijos->toHtml());
}
else {
- $row = array ($body['body']);
+ if (is_array($body['body'])) {
+ $tmp = '';
+ foreach ($body['body'] as $bod) {
+ if (is_object($bod)) {
+ if (method_exists($bod,'toHtml')) {
+ $tmp.=$bod->toHtml();
+ }
+ else {
+ trigger_error('El metodo no existe! - '.get_class($bod).'::toHtml()', E_USER_WARNING);
+ }
+ }
+ else {
+ $tmp.=$bod;
+ }
+ }
+ $row = array ($tmp);
+ }
+ else {
+ $row = array ($body['body']);
+ }
}
+
$this->_tabla->addRow($row,'align="center" bgcolor="#FFFFFF" colspan="'.$colspan.'"');
$row = array ($body['pie']);