+//SI HAY MENU ARMO UNA TABLA, SINO TIRO DIRECTAMENTE
+ $row = array();
+ $tmp = '';
+ if ($body['menuVertical']) {
+ if (is_object($body['menuVertical'])) {
+ if (method_exists($body['menuVertical'],'toHtml')) {
+ $tmp.=$body['menuVertical']->toHtml();
+ } else {
+ trigger_error('El metodo no existe!', E_USER_WARNING);
+ }
+ } else {
+ $tmp.=$body['menuVertical'];
+ }
+ $row[] = $tmp;
+ }
+
+ if (is_array($body['body'])) {
+ $tmp = '';
+ $tmp = $espacio;
+ 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;
+ }
+ }
+ $tmp.= $espacio;
+ $row[] = $tmp;
+ } else {
+ $row[] = $body['body'];
+ }
+
+ if ($body['menuVertical']) {
+ $tabla = new HTML_Table (array('width' => '760', 'border' => 0, 'celspacing' => 0, 'celpadding' => 0));
+ $tt = $tabla->addRow($row,'align="center" bgcolor="#FFFFFF" valign="top"');
+ $tabla->updateCellAttributes($tt, 0, 'valign="top" width="1%"');
+ $contenido[] = $tabla;
+ } else {
+ $contenido = $row;
+ }
+//
+ $this->_tabla->addRow($contenido,'align="center" bgcolor="#FFFFFF" colspan="'.$colspan.'" valign="top"');
+ }