From: Martín Marrese Date: Fri, 20 Jun 2003 13:45:07 +0000 (+0000) Subject: (no commit message) X-Git-Tag: svn_import~466 X-Git-Url: https://git.llucax.com/mecon/meconlib.git/commitdiff_plain/759433afd1d046c486722a77b2e32e90ff0dc469?ds=inline --- diff --git a/lib/MECON/Marco.php b/lib/MECON/Marco.php index 9f29747..0b0ead5 100644 --- a/lib/MECON/Marco.php +++ b/lib/MECON/Marco.php @@ -275,7 +275,7 @@ class Marco extends HTML_Page { */ function _body_display() // ~X2C { - $this->_contenido[] = '
'; + $this->_contenido[] = '
 '; $body = array ( 'copete' => $this->_copete->toHtml(), 'body' => $this->_contenido, 'pie' => $this->_pie->toHtml(), diff --git a/lib/MECON/Marco/MenuOculto.php b/lib/MECON/Marco/MenuOculto.php index 09f9483..4fdc807 100644 --- a/lib/MECON/Marco/MenuOculto.php +++ b/lib/MECON/Marco/MenuOculto.php @@ -86,6 +86,7 @@ class MenuOculto extends Menu { $tmp.=$bod; } } + $row = array ($tmp); $this->_tabla->addRow($row,'align="center" bgcolor="#FFFFFF"'); } diff --git a/lib/MECON/Marco/MenuPrincipal.php b/lib/MECON/Marco/MenuPrincipal.php index 71f8c54..360424f 100644 --- a/lib/MECON/Marco/MenuPrincipal.php +++ b/lib/MECON/Marco/MenuPrincipal.php @@ -108,8 +108,28 @@ class MenuPrincipal extends MenuHorizontal { $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']);