X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/8a7c41689e3915b23a5e0a59a4e849289a287438..58890a698f770e368aedf137df241bc01041e62e:/lib/MECON/Marco/MenuVertical.php?ds=inline diff --git a/lib/MECON/Marco/MenuVertical.php b/lib/MECON/Marco/MenuVertical.php index af5c098..c415511 100644 --- a/lib/MECON/Marco/MenuVertical.php +++ b/lib/MECON/Marco/MenuVertical.php @@ -59,8 +59,8 @@ class MECON_Marco_MenuVertical extends MECON_Marco_Menu { $TABLA = new HTML_Table('width=160 align="left" bgcolor="#FFFFFF" cellspacing="0" cellpadding="0" border="0" height="1"'); - $menu =' '.$titulo.''; - $row = array ($menu); + $menutmp =' '.$titulo.''; + $row = array ($menutmp); $TABLA->addRow($row,'align="left" bgcolor="#FFFFFF" height="1"'); $TABLA->updateCellAttributes(0,0,'colspan="2"'); @@ -77,6 +77,25 @@ class MECON_Marco_MenuVertical extends MECON_Marco_Menu { $this->_tabla->addRow($row,'width=160 align="left" bgcolor="#FFFFFF" valign="top"'); //AGREGO EL CUERPO + $TABLA2 = new HTML_Table('align="center" bgcolor="#FFFFFF" cellspacing="0" cellpadding="0" border="0"'); + $row = array(); + $tmp = ''; + //AGREGO EL MENU VERTICAL + if ($menu) { + if (is_object($menu)) { + if (method_exists($menu,'toHtml')) { + $tmp.=$menu->toHtml(); + } + else { + trigger_error('El metodo no existe!', E_USER_WARNING); + } + } + else { + $tmp.=$menu; + } + $row[] = $tmp; + } + // $tmp = ''; //Agrego si corresponde el espacio al inicio if ($this->_configuracion['espacios']) { @@ -102,7 +121,9 @@ class MECON_Marco_MenuVertical extends MECON_Marco_Menu { $tmp.='
 '; } // - $row = array ($tmp); + $row[] = $tmp; + $TABLA2->addRow($row, 'valign="top"'); + $row = array ($TABLA2->toHtml()); $this->_tabla->setCellContents (0,1,$row); $this->_tabla->setCellAttributes(0,1,'align="center" bgcolor="#FFFFFF" valign="top"');