From: Martín Marrese Date: Wed, 13 Aug 2003 21:00:53 +0000 (+0000) Subject: Nuevo menu vertical para marco (redisenio de Vero) X-Git-Tag: svn_import~311 X-Git-Url: https://git.llucax.com/mecon/meconlib.git/commitdiff_plain/9aa1852b91ffebb85791293a28556e9c113c2dbf?ds=sidebyside Nuevo menu vertical para marco (redisenio de Vero) --- diff --git a/lib/MECON/Marco/Menu.php b/lib/MECON/Marco/Menu.php index 60f5bec..05c3c87 100644 --- a/lib/MECON/Marco/Menu.php +++ b/lib/MECON/Marco/Menu.php @@ -102,10 +102,10 @@ class MECON_Marco_Menu { { $this->_tabla = new HTML_Table('width=760 align="center" - bgcolor="#FFFFFF" cellspacing="0" cellpadding="0" - border="0"'); + border="0" + background="/MECON/images/general_fondo_gris"'); $this->_tabla->setLineEnd(''); $this->_tabla->setTab(''); diff --git a/lib/MECON/Marco/MenuVertical.php b/lib/MECON/Marco/MenuVertical.php index c415511..bfd5e21 100644 --- a/lib/MECON/Marco/MenuVertical.php +++ b/lib/MECON/Marco/MenuVertical.php @@ -57,27 +57,35 @@ class MECON_Marco_MenuVertical extends MECON_Marco_Menu { $this->_componentes = array (); $this->_armarArraySecciones($tmp); - $TABLA = new HTML_Table('width=160 align="left" bgcolor="#FFFFFF" cellspacing="0" cellpadding="0" border="0" height="1"'); + $TABLA = new HTML_Table('width=152 align="left" cellspacing="0" + cellpadding="0" border="0" height="1" + background="/MECON/images/general_titulo_menu.gif"'); - $menutmp =' '.$titulo.''; + $menutmp ='

 '.$titulo.'

'; $row = array ($menutmp); - $TABLA->addRow($row,'align="left" bgcolor="#FFFFFF" height="1"'); + $TABLA->addRow($row,'align="left"'); $TABLA->updateCellAttributes(0,0,'colspan="2"'); + + $SEP = array('', + '' + ); + $TABLA->addRow($SEP); foreach ($this->_componentesVertical as $comp) { - $row = array ('',' '); - $TABLA->addRow($row); - $TABLA->addRow($comp,'align="left" bgcolor="#FFFFFF" height="1"'); - $TABLA->updateColAttributes(0,'align="right" width="34"'); - $TABLA->updateColAttributes(1,'align="left"'); + $TABLA->addRow($comp,'align="left" height="3" + background="/MECON/images/general_fondo_gris"'); + $TABLA->updateColAttributes(0,'align="right" width="34" height="3"'); + $TABLA->updateColAttributes(1,'align="left" width="118"'); + $TABLA->addRow($SEP); } $TABLA->updateCellAttributes(0,0,'align="left"'); $row = array ($TABLA->toHtml()); - $this->_tabla->addRow($row,'width=160 align="left" bgcolor="#FFFFFF" valign="top"'); + $this->_tabla->addRow($row,'width=152 align="left" bgcolor="#FFFFFF" valign="top"'); //AGREGO EL CUERPO - $TABLA2 = new HTML_Table('align="center" bgcolor="#FFFFFF" cellspacing="0" cellpadding="0" border="0"'); + $TABLA2 = new HTML_Table('width="600"align="right" bgcolor="#FFFFFF" cellspacing="0" cellpadding="0" border="0"'); $row = array(); $tmp = ''; //AGREGO EL MENU VERTICAL @@ -124,10 +132,11 @@ class MECON_Marco_MenuVertical extends MECON_Marco_Menu { $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"'); + $this->_tabla->setCellContents (0,2,$row); + $this->_tabla->setCellAttributes(0,2,'align="center" bgcolor="#FFFFFF" valign="top"'); - $this->_tabla->updateColAttributes (1,'width="600"'); + $this->_tabla->updateColAttributes (1,'width="8" bgcolor="#FFFFFF"'); + $this->_tabla->updateColAttributes (2,'width="600"'); // } // -X2C diff --git a/lib/MECON/Marco/Seccion.php b/lib/MECON/Marco/Seccion.php index 009263e..8a2433c 100644 --- a/lib/MECON/Marco/Seccion.php +++ b/lib/MECON/Marco/Seccion.php @@ -255,25 +255,15 @@ Devuelve 1 si pertenece a la seccion, en caso contrario 0. $sec = array (); if ($this->verifSeccionSeleccionada($link_sel)) { - if ($ultimo) { - $sec[] = $link_start.''.$link_end; - } - else { - $sec[] = $link_start.''.$link_end; - } + $sec[] = $link_start.''.$link_end; } else { - if ($ultimo) { - $sec[] = $link_start.''.$link_end; - } - else { - $sec[] = $link_start.''.$link_end; - } + $sec[] = $link_start.''.$link_end; } $nombre = strstr($this->_nombre, '-'); $nombre = substr($nombre, 1); - $sec[] = ''.$link_start.'  '.$nombre.$link_end.''; + $sec[] = '

  '.$nombre.'

'; return $sec; } // -X2C diff --git a/test/Marco/prueba/www/usuarios-filtrar.php b/test/Marco/prueba/www/usuarios-filtrar.php index 7d6012f..e884081 100644 --- a/test/Marco/prueba/www/usuarios-filtrar.php +++ b/test/Marco/prueba/www/usuarios-filtrar.php @@ -1,5 +1,5 @@ habilitarLinks(false); +// $MARCO->habilitarLinks(false); $MARCO->addTitle('USUARIOS - FILTRAR'); $MARCO->addBody('
ESTO ES UNA PRUEBA PARA LOS HIJOS DE LAS SECCIONES
USUARIO - FILTRAR
'); $MARCO->addBody('
sarasa1
');