X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/8a7c41689e3915b23a5e0a59a4e849289a287438..db5011d809dfb3b98c817283667d7513dfe10e12:/lib/MECON/Marco/MenuHorizontal.php diff --git a/lib/MECON/Marco/MenuHorizontal.php b/lib/MECON/Marco/MenuHorizontal.php index 172d149..de9435c 100644 --- a/lib/MECON/Marco/MenuHorizontal.php +++ b/lib/MECON/Marco/MenuHorizontal.php @@ -56,9 +56,10 @@ class MECON_Marco_MenuHorizontal extends MECON_Marco_Menu { { $c = count($this->_componentes); //Agrego el titulo - $tit = ''.$titulo.''; - $row = array ($tit); - $this->_tabla->addRow($row,'align="left" bgcolor="#336699" colspan="'.$c.'"'); + $row = array ($this->_armarEncabezado($titulo)); + $this->_tabla->addRow($row,'align="left" bgcolor="#FFFFFF" colspan="'.$c.'"'); + $imagen = new HTML_Image('/MECON/images/general_linea2.gif', 'boder="0" align="center"'); + $this->_tabla->addRow(array ($imagen->toHtml()), 'align="center" colspan="'.$c.'"'); // $tmp = $this->_componentes; $this->_componentes = array (); @@ -79,7 +80,25 @@ class MECON_Marco_MenuHorizontal extends MECON_Marco_Menu { $this->_tabla->addRow($row,'align="left" bgcolor="#FFFFFF" colspan="'.$c.'"'); } // - + //AGREGO EL MENU VERTICAL + $TABLA = new HTML_Table('width=760 align="center" bgcolor="#FFFFFF" cellspacing="0" cellpadding="0" border="0"'); + $row = array(); + $tmp = ''; + 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 = ''; foreach ($body as $bod) { if (is_object($bod)) { if (method_exists($bod,'toHtml')) { @@ -93,8 +112,10 @@ class MECON_Marco_MenuHorizontal extends MECON_Marco_Menu { $tmp.=$bod; } } - $row = array ($tmp); - $this->_tabla->addRow($row,'align="center" bgcolor="#FFFFFF" colspan="'.$c.'"'); + $row[] = $tmp; + $TABLA->addRow($row); + $row = array ($TABLA->toHtml()); + $this->_tabla->addRow($row,'align="center" bgcolor="#FFFFFF" colspan="'.$c.'" valign="top"'); //Agrego si corresponde el espacio al final if ($this->_configuracion['espacios']) { $row = array (' ');