X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/8782288c3f53321a0f1d41bb9f8450aaf838be14..58890a698f770e368aedf137df241bc01041e62e:/lib/MECON/Marco/MenuHorizontal.php?ds=sidebyside diff --git a/lib/MECON/Marco/MenuHorizontal.php b/lib/MECON/Marco/MenuHorizontal.php index 3e54f9e..700dd37 100644 --- a/lib/MECON/Marco/MenuHorizontal.php +++ b/lib/MECON/Marco/MenuHorizontal.php @@ -54,23 +54,31 @@ class MECON_Marco_MenuHorizontal extends MECON_Marco_Menu { */ function addBody($body, $titulo, $menu = null) // ~X2C { - $c = count($this->_componentes); - //Agrego el titulo - $tit = ''.$titulo.''; - $row = array ($tit); - $this->_tabla->addRow($row,'align="left" bgcolor="#336699" colspan="'.$c.'"'); - // + $tmp = $this->_componentes; $this->_componentes = array (); $this->_armarArraySecciones($tmp); - $this->_tabla->addRow($this->_componentes,'align="center" bgcolor="#FFFFFF"'); + $this->_tabla->addRow($this->_componentes,'align="center" bgcolor="#CCCCCC" valign="top"'); + $c = count($this->_componentes); $colcount = $this->_tabla->getColCount(); $width = 100 / $colcount; for ($col=0; $col < $colcount; $col++) { $this->_tabla->updateColAttributes($col,'width="'.$width.'%"'); } + + $imagen = new HTML_Image('/MECON/images/general_linea.gif'); + $i = $this->_tabla->addRow(array ($imagen->toHtml()), 'align="center" colspan="'.$c.'"'); + $this->_tabla->updateRowAttributes($i, 'height="1"'); + + //Agrego el titulo + $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=''; //Agrego si corresponde el espacio al inicio @@ -114,7 +122,7 @@ class MECON_Marco_MenuHorizontal extends MECON_Marco_Menu { $row[] = $tmp; $TABLA->addRow($row); $row = array ($TABLA->toHtml()); - $this->_tabla->addRow($row,'align="center" bgcolor="#FFFFFF" colspan="'.$c.'"'); + $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 (' ');