From 8a21b9d769b4ddc74af42cd6134c0760fffaa97b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mart=C3=ADn=20Marrese?= Date: Tue, 5 Aug 2003 14:33:18 +0000 Subject: [PATCH] BugFix en Marco --- doc/Marco/uml/Marco.xmi | 23 +++++++++++++--------- lib/MECON/Marco/Menu.php | 18 +++++++++++++++++ lib/MECON/Marco/MenuHorizontal.php | 7 ++++--- lib/MECON/Marco/MenuOculto.php | 9 +++++---- lib/MECON/Marco/MenuPrincipal.php | 24 +++++++++++++++-------- test/Marco/prueba/conf/confSecciones.php | 6 +++--- www/images/general_sistemas.gif | Bin 886 -> 892 bytes www/images/general_sistemas_f2.gif | Bin 854 -> 907 bytes www/images/general_sistemas_f3.gif | Bin 1599 -> 1382 bytes 9 files changed, 60 insertions(+), 27 deletions(-) diff --git a/doc/Marco/uml/Marco.xmi b/doc/Marco/uml/Marco.xmi index bdc1fff..b105df1 100644 --- a/doc/Marco/uml/Marco.xmi +++ b/doc/Marco/uml/Marco.xmi @@ -9,7 +9,7 @@ - + @@ -82,6 +82,10 @@ Si es un objeto debe tener un metodo toHtml y opcionalmente puede tener un getCS + + + @@ -200,7 +204,7 @@ x2c:include: HTML/Page.php" name="HTML_Page" static="0" scope="200" /> - + @@ -250,37 +254,37 @@ x2c:include: HTML/Page.php" name="HTML_Page" static="0" scope="200" /> - + - + - + - + - + - + @@ -335,7 +339,7 @@ x2c:include: HTML/Page.php" name="HTML_Page" static="0" scope="200" /> - + @@ -388,6 +392,7 @@ x2c:include: HTML/Page.php" name="HTML_Page" static="0" scope="200" /> + diff --git a/lib/MECON/Marco/Menu.php b/lib/MECON/Marco/Menu.php index 116922a..4ffe458 100644 --- a/lib/MECON/Marco/Menu.php +++ b/lib/MECON/Marco/Menu.php @@ -106,6 +106,9 @@ class MECON_Marco_Menu { cellspacing="0" cellpadding="0" border="0"'); + $this->_tabla->setLineEnd(''); + $this->_tabla->setTab(''); + $this->_configuracion = $configuracion; } // -X2C @@ -280,6 +283,21 @@ class MECON_Marco_Menu { } // -X2C + // +X2C Operation 222 + /** + * Devuelve un string con el encabezado de la seccion + * + * @param string $titulo Titulo de la seccion + * + * @return string + * @access private + */ + function _armarEncabezado($titulo) // ~X2C + { + return ''.$titulo.''; + } + // -X2C + } // -X2C Class :MECON_Marco_Menu ?> \ No newline at end of file diff --git a/lib/MECON/Marco/MenuHorizontal.php b/lib/MECON/Marco/MenuHorizontal.php index 3e54f9e..334770e 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 (); diff --git a/lib/MECON/Marco/MenuOculto.php b/lib/MECON/Marco/MenuOculto.php index 6d77588..c960e22 100644 --- a/lib/MECON/Marco/MenuOculto.php +++ b/lib/MECON/Marco/MenuOculto.php @@ -59,10 +59,11 @@ class MECON_Marco_MenuOculto extends MECON_Marco_Menu { } //Agrego el titulo - $tit = ''.$titulo.''; - $row = array ($tit); - $this->_tabla->addRow($row,'align="left" bgcolor="#336699" colspan="'.$colspan.'"'); - + $row = array ($this->_armarEncabezado($titulo)); + $this->_tabla->addRow($row,'align="left" bgcolor="#FFFFFF" colspan="'.$colspan.'"'); + $imagen = new HTML_Image('/MECON/images/general_linea2.gif', 'boder="0" align="center"'); + $this->_tabla->addRow(array ($imagen->toHtml()), 'align="center" colspan="'.$colspan.'"'); + //Agrego si corresponde el espacio al inicio if ($this->_configuracion['espacios']) { $row = array (' '); diff --git a/lib/MECON/Marco/MenuPrincipal.php b/lib/MECON/Marco/MenuPrincipal.php index ce7cbeb..6bccb5c 100644 --- a/lib/MECON/Marco/MenuPrincipal.php +++ b/lib/MECON/Marco/MenuPrincipal.php @@ -1,4 +1,4 @@ -_tabla->addRow($this->_componentes,'align="center" bgcolor="#CCCCCC"'); - $colcount = $this->_tabla->getColCount(); - $width = 100 / $colcount; + $width = intval (100 / $colspan); - for ($col=0; $col < $colcount; $col++) { - $this->_tabla->updateColAttributes($col,'width="'.$width.'%"'); - } + for ($col=0; $col < $colspan; $col++) { + $this->_tabla->updateCellAttributes(1,$col,'width="'.$width.'%"'); + } + $imagen = new HTML_Image('/MECON/images/general_linea.gif'); + $i = $this->_tabla->addRow(array ($imagen->toHtml()), 'align="center" colspan="'.$colspan.'"'); + $this->_tabla->updateRowAttributes($i, 'height="1"'); + foreach ($this->_secciones as $sec) { if ($sec->verifSeccionSeleccionada($_SERVER['PHP_SELF'])) { $this->_seccionSeleccionada = $sec; @@ -111,8 +115,12 @@ class MECON_Marco_MenuPrincipal extends MECON_Marco_MenuHorizontal { $this->_tabla->addRow($row,'align="center" bgcolor="#FFFFFF" colspan="'.$colspan.'"'); } else { - $row = array (''.$this->_seccionSeleccionada->_nombre.''); - $this->_tabla->addRow($row,'align="left" bgcolor="#336699" colspan="'.$colspan.'"'); + if ($this->_seccionSeleccionada) { + $row = array ($this->_armarEncabezado($this->_seccionSeleccionada->_nombre)); + $this->_tabla->addRow($row,'align="left" bgcolor="#FFFFFF" colspan="'.$colspan.'"'); + $imagen = new HTML_Image('/MECON/images/general_linea2.gif', 'boder="0" align="center"'); + $this->_tabla->addRow(array ($imagen->toHtml()), 'align="center" colspan="'.$colspan.'"'); + } //Agrego si corresponde el espacio al inicio if ($this->_configuracion['espacios']) { diff --git a/test/Marco/prueba/conf/confSecciones.php b/test/Marco/prueba/conf/confSecciones.php index 62d16f9..c418382 100644 --- a/test/Marco/prueba/conf/confSecciones.php +++ b/test/Marco/prueba/conf/confSecciones.php @@ -60,7 +60,7 @@ 'imagenMouseOn' => '', // 'imagenSelect' => '', // 'link' => 'usuarios', //LINK DE LA SECCION - 'tipoMenu' => 'vertical', //TIPO DEL MENU DE HIJOS (vertical, horizontal, oculto) + 'tipoMenu' => 'horizontal', //TIPO DEL MENU DE HIJOS (vertical, horizontal, oculto) 'hijos' => array ( //HIJOS PARA EL MENU array ( 'nombre' => 'Filtrar Usuario', //NOMBRE DEL HIJO 1 'imagenComun' => 'usuarios-filtrar.gif', //IMAGEN COMUN @@ -93,7 +93,7 @@ 'imagenSelect' => '', // 'link' => 'perfiles', //LINK DE LA SECCION 'tipoMenu' => 'vertical', //TIPO DEL MENU DE HIJOS (vertical, horizontal, oculto) -/* 'hijos' => array ( //HIJOS PARA EL MENU + 'hijos' => array ( //HIJOS PARA EL MENU array ( 'nombre' => 'Perfiles - Hijo', //NOMBRE DEL HIJO 1 'imagenComun' => 'perfiles-nionio.gif', //IMAGEN COMUN 'imagenMouseOn' => '', // @@ -101,7 +101,7 @@ 'link' => 'perfiles-hijo', //LINK DEL HIJO ), ), -*/ + ), // }}} FIN SECCION 2 ), diff --git a/www/images/general_sistemas.gif b/www/images/general_sistemas.gif index 2eb7ec95531e4c53498f8c22430d5d5432770a25..15f40cac41d16265d852d9df69af855f4a351225 100644 GIT binary patch delta 816 zcmV-01JC^S2K)veM@dFFIbl2iJOIQ10PXGV=H}+!-rm;M*38Vz!^6XoA6tJs06YKy z1^*x+j$~<`XsWJk>%MR-&+Z@y0iXjxAPlr%3AZa6eL$g1u7hGQc}ymcN@maBo7VwxB7kNV5e;_@5g8VJegPRzXlYku z6%G~+4h{{55{_??H(hC1k^z4Y4XP9rstpgIf2V;}VNn5h4itM74tKGTTRv4;r@6Zs zy}ypKw@Nm`sH(cXst*>houOM#Lfm1OnVX#v5t$R663tuQ+=YjUiwq17m#^zu?a_O6 zcX@jgc2StH?VA@F(6~SXwI@{`hxniz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F>+G=RZ+M>+t(2zHgJz?ofoL!g^@ z>bV{UGqOfOkcHxiBA-DXuqBN~2}?o{E6m-2GD|mr&W4H ozyd#B5F`PbLTPFS7eGK_s~NmXLIT<8XY8@aCaY`-ApimZJLRxh$N&HU diff --git a/www/images/general_sistemas_f2.gif b/www/images/general_sistemas_f2.gif index afef99dc355cd52f24555e675c4d3ef99309eec3..c3b1668a8d5339aaf4341d8f44a5701405f9ac24 100644 GIT binary patch delta 868 zcmV-q1DpKT28#zVM@dFFIbl2iJOIQ10OjT7%*@Qi#l^k7y|uNqt*x!3q@^6SSeF#a0GdJjzy@oSvYI4xJF857gBLJOWpUij0nst`=;XWv?2P83gv( z!J~(d9}5tEe?@>m?#(`QGP12pMCwkfJ|7EKqj3Pim4zK8|Hz{!G6@X?CO3Bc6VAdo zkuYDz)YhhFIV(A5z&z=b%p{9I5$GgZ)Xl!2GD=>VNfppjr85pB*jGiCS6N(_Y^7m9 z0nesA&346yP{Gz+Xwz0npa7!`x=Z4s3)$!E}-F zIIy6xV^?1WFTmPEfU8W7+4yyJkVpYgg1@R>tvZP(RA?w44ollp;z9^e)86fgvm61r zXYXFpyL6!dvWH)>ecXhB1q>=HryQMa^Af-rXy42gy7mOdug}Tdpn>-D=gV)lD?SAQ z1fI}?e?q{%z5V<6OAw%lhpj6V=j1m+Fd`^W!5LGa5W)X#0$M;qUC7dU-~fy=E}9Nc%%pve`sNW7C?&dVnPK*5P*~c)Mo+#3{;TV zivv)EqX<>fVpRYRA}3}5Y&zfv1!A^o!J8)-aHR<5;Ynf+2I5oY0u79SPMrtb`Jw|3 zRM;mDiK0+}kO2%3fl`wmIRFKUDn)>rL!JStq$EPHK$#MVNol8~0!Tru6*OvSr@vJ2 uD(aXv1%QB)6kxTgmn0fMYy&iUYJsmSEMumC)K+Wl2({Q|t1Sy5002AdPh{c% delta 814 zcmV+}1JV482i68RM@dFFIbk&bHvq%{0OjT7-rnBU*4E6-%*DmUyu7@%wY9CSt)-=< znVFf4jEsbYgnN5?a&mH!F*bi8`2+ zT&8Tz3a+fjbdbNj-)@M)33bLJ5hwsSpU`L&V_foZ(rgw}R9d?OCk8`tNF)x*c)b>j zs^1Y@T!Apo3<##e9=qQ-abO}&6b%&&4Gj!+5q%hcfL=&KP7Vy16BB=!3=WTxfM0px5~r!F60NVWFqW97s+bNHo{W&LyfKA`iHmg*h!Ttupvfh4 zc6fRV3k`;y)z-7FWM*h;7!s%xx#3m>1SevTW0z_6?gQ{U1qJft^e9A|maiW_e)V;Yh+`3$?8je?W_g0^1_B*03uuwj40U=t8s!q#rG#=QO> z$SQ~cTb;c84yOF>Z(eJcISs zlm;M7aDdQ3f-`>w)H@iVKplko>tVMEQ4Z|K00jv&V8PP>?Y&ok1@_4&0tOJ=2Vnvf z_>{l}vPl5J00$*f3?kAXb6RZ`EEDozLhJM-IEfB*mh diff --git a/www/images/general_sistemas_f3.gif b/www/images/general_sistemas_f3.gif index b80f3fa8fe3b660c05d89f68a952052e77945c63..f122f06ed9862cef89bd88b71c2487f9057866ff 100644 GIT binary patch delta 1369 zcma*j`8(Tp0KoB&B*-LnjB4xKk~oW?U9``bxy8}Y)HPA9qZ&u>C5{=MeuIc0j-u1h zM$)>bJWbTqQ6v$E$@i0kb=1onA3VFu*am&L>02U@$!4rqIL!XXa&> zq=xEnKxPO)jWeir`ZkVBr_&uy@!h@Y8SFrSPyt|*0YWB4lpGGrI~tN<8^)$msn#I{ z>0ZEr#)7?o)$tswz${`wrnxWE&CSh>k_=)jiJoUnT%+nz)QAZ9--sVD>INVkkp3(F zI}bEfY_+0dP6@Y^S5{uZudJ%BIbT~>jn&cJFW9fEjjeCy;*A)A;5(A(B48a|<~v*JR3FSj7qpcY+0f^$ciQtZV! z=dU&5Fz-v1b>#N< zXJ$Fp@eN~_-kD9dqutqw>PxSh>)Eg;_0O91am?=gv%A$;>|m~G;#}*=g_kRkP5f^) z;<)fl36Y6diQQ}Wbx^WwEXVxN&okobel*(VPRl!HR?>DbQL)zFWn3?OYy25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