From: Leandro Lucarella Date: Fri, 25 Jul 2003 17:50:04 +0000 (+0000) Subject: Primer intento de arreglar los bullets. X-Git-Tag: svn_import~360 X-Git-Url: https://git.llucax.com/mecon/meconlib.git/commitdiff_plain/47df815b71aadef42b3294e40e6231e8955ced19?ds=inline Primer intento de arreglar los bullets. --- diff --git a/lib/MECON/HTML/Arbol.php b/lib/MECON/HTML/Arbol.php index 899fb76..b7e0dc3 100644 --- a/lib/MECON/HTML/Arbol.php +++ b/lib/MECON/HTML/Arbol.php @@ -60,22 +60,34 @@ class HTML_Arbol extends HTML_Table function expandir($dat, $n, &$tabla) { - $imagen = ''; $bullets = array( '', '/MECON/images/arbol_bullet_1.gif', '/MECON/images/arbol_bullet_2.gif', '/MECON/images/arbol_bullet_3.gif' ); - $tabulados = 7; + $alts = array( + '', + '*', + '-', + 'ยท' + ); $classes = array('menu', 'menu1', 'menu1', 'menu2'); - - $atr = array('border' => '0', - 'width' => $n * $tabulados, - 'height' => '10'); - $imagen =& new HTML_Image(@$bullets[$n] ? $bullets[$n] : '', 'bullet', $atr); + $tabulados = 7; + $atr = array( + 'border' => '0', + 'width' => $n * $tabulados, + 'height' => '10' + ); + $margen = new HTML_Image('/MECON/images/blanco.gif', str_repeat('  ', $n), $atr); + $margen = $margen->toHtml(); + $imagen = ''; + if (@$bullets[$n]) { + $imagen = new HTML_Image($bullets[$n], @$alts[$n], $atr); + $imagen = $imagen->toHtml(); + } foreach ($dat as $e) { - $titulo = $imagen->toHTML().$e['titulo']; + $titulo = $margen.$imagen.$e['titulo']; if(isset($e['activado']) && $e['activado'] != 0) $class = 'menu_activo'; else $class = $classes[$n]; if(!is_null($e['link'])) { diff --git a/www/images/arbol_bullet_2.gif b/www/images/arbol_bullet_2.gif index f25b8a4..5159dd9 100644 Binary files a/www/images/arbol_bullet_2.gif and b/www/images/arbol_bullet_2.gif differ diff --git a/www/images/arbol_bullet_3.gif b/www/images/arbol_bullet_3.gif index a590f5b..1e9fd61 100644 Binary files a/www/images/arbol_bullet_3.gif and b/www/images/arbol_bullet_3.gif differ diff --git a/www/images/blanco.gif b/www/images/blanco.gif new file mode 100644 index 0000000..fc25609 Binary files /dev/null and b/www/images/blanco.gif differ