From: Martín Marrese Date: Wed, 13 Aug 2003 21:28:06 +0000 (+0000) Subject: BugFix a Marco X-Git-Tag: svn_import~310 X-Git-Url: https://git.llucax.com/mecon/meconlib.git/commitdiff_plain/1c0d5a0d98cfae0547b8b6333dea1751c43d4ed2?ds=inline BugFix a Marco --- diff --git a/lib/MECON/Marco/Menu.php b/lib/MECON/Marco/Menu.php index 05c3c87..d73124f 100644 --- a/lib/MECON/Marco/Menu.php +++ b/lib/MECON/Marco/Menu.php @@ -105,7 +105,7 @@ class MECON_Marco_Menu { cellspacing="0" cellpadding="0" border="0" - background="/MECON/images/general_fondo_gris"'); + bgcolor="#FFFFFF"'); $this->_tabla->setLineEnd(''); $this->_tabla->setTab(''); diff --git a/lib/MECON/Marco/MenuPrincipal.php b/lib/MECON/Marco/MenuPrincipal.php index db96650..e72db77 100644 --- a/lib/MECON/Marco/MenuPrincipal.php +++ b/lib/MECON/Marco/MenuPrincipal.php @@ -88,19 +88,26 @@ class MECON_Marco_MenuPrincipal extends MECON_Marco_MenuHorizontal { //Agrego el copete {{{ $copete = new MECON_Marco_Copete ($this->_configuracion['directorios']['imagenes']); $row[] = $copete->toHtml(); - $this->_tabla->addRow($row,'align="center" bgcolor="#FFFFFF" colspan="'.$colspan.'"'); + $this->_tabla->addRow($row,'align="center" bgcolor="#FFFFFF"'); //}}} //Agrego las secciones - $this->_tabla->addRow($this->_componentes,'align="center" bgcolor="#CCCCCC"'); + $TABLAM = new HTML_Table('width=760 + align="center" + cellspacing="0" + cellpadding="0" + border="0" + background="/MECON/images/general_fondo_gris.gif"'); + $TABLAM->addRow($this->_componentes,'align="center" bgcolor="#CCCCCC"'); $width = intval (100 / $colspan); for ($col=0; $col < $colspan; $col++) { - $this->_tabla->updateCellAttributes(1,$col,'width="'.$width.'%"'); + $TABLAM->updateCellAttributes(0,$col,'width="'.$width.'%"'); } + $this->_tabla->addRow(array($TABLAM)); $imagen = new HTML_Image('/MECON/images/general_linea.gif'); - $i = $this->_tabla->addRow(array ($imagen->toHtml()), 'align="center" colspan="'.$colspan.'"'); + $i = $this->_tabla->addRow(array ($imagen->toHtml()), 'align="center"'); $this->_tabla->updateRowAttributes($i, 'height="1"'); foreach ($this->_secciones as $sec) { @@ -112,14 +119,14 @@ class MECON_Marco_MenuPrincipal extends MECON_Marco_MenuHorizontal { if (!is_null($this->_seccionSeleccionada) && isset($this->_seccionSeleccionada->_hijos)) { $this->_seccionSeleccionada->_hijos->addBody($body['body'],$this->_seccionSeleccionada->_nombre, $body['menuVertical']); $row = array ($this->_seccionSeleccionada->_hijos->toHtml()); - $this->_tabla->addRow($row,'align="center" bgcolor="#FFFFFF" colspan="'.$colspan.'"'); + $this->_tabla->addRow($row,'align="center" bgcolor="#FFFFFF"'); } else { if ($this->_seccionSeleccionada) { $row = array ($this->_armarEncabezado($this->_seccionSeleccionada->_nombre)); - $this->_tabla->addRow($row,'align="left" bgcolor="#FFFFFF" colspan="'.$colspan.'"'); + $this->_tabla->addRow($row,'align="left" bgcolor="#FFFFFF"'); $imagen = new HTML_Image('/MECON/images/general_linea2.gif', 'boder="0" align="center"'); - $this->_tabla->addRow(array ($imagen->toHtml()), 'align="center" colspan="'.$colspan.'"'); + $this->_tabla->addRow(array ($imagen->toHtml()), 'align="center"'); } //Agrego si corresponde el espacio al inicio @@ -176,7 +183,7 @@ class MECON_Marco_MenuPrincipal extends MECON_Marco_MenuHorizontal { $contenido = $row; } // - $this->_tabla->addRow($contenido,'align="center" bgcolor="#FFFFFF" colspan="'.$colspan.'" valign="top"'); + $this->_tabla->addRow($contenido,'align="center" bgcolor="#FFFFFF" valign="top"'); } } // -X2C diff --git a/lib/MECON/Marco/MenuVertical.php b/lib/MECON/Marco/MenuVertical.php index bfd5e21..972cc83 100644 --- a/lib/MECON/Marco/MenuVertical.php +++ b/lib/MECON/Marco/MenuVertical.php @@ -136,7 +136,7 @@ class MECON_Marco_MenuVertical extends MECON_Marco_Menu { $this->_tabla->setCellAttributes(0,2,'align="center" bgcolor="#FFFFFF" valign="top"'); $this->_tabla->updateColAttributes (1,'width="8" bgcolor="#FFFFFF"'); - $this->_tabla->updateColAttributes (2,'width="600"'); + $this->_tabla->updateColAttributes (2,'width="600" bgcolor="#FFFFFF"'); // } // -X2C