From: Gonzalo Merayo Date: Mon, 23 Jun 2003 19:36:19 +0000 (+0000) Subject: Generalizacion de Arbol X-Git-Tag: svn_import~459 X-Git-Url: https://git.llucax.com/mecon/meconlib.git/commitdiff_plain/5b053ea3cc3bda3027a5e8b5b746332881e40ce6?ds=sidebyside Generalizacion de Arbol --- diff --git a/lib/MECON/HTML/Arbol.php b/lib/MECON/HTML/Arbol.php index 58ae609..5cc2660 100644 --- a/lib/MECON/HTML/Arbol.php +++ b/lib/MECON/HTML/Arbol.php @@ -25,8 +25,11 @@ class HTML_Arbol extends HTML_Table { $imagen = ''; $class = 'menu'; - $bullets = array('', '/MECON/images/arbol_bullet_1.gif', '/MECON/images/arbol_bullet_2.gif', '/MECON/images/arbol_bullet3.gif'); - $tabulaciones = array(0, 7, 13, 20); + $bullets = array('', + '/MECON/images/arbol_bullet_1.gif', + '/MECON/images/arbol_bullet_2.gif', + '/MECON/images/arbol_bullet3.gif'); + $tabulados = array(0, 7, 13, 20); $classes = array('menu', 'menu1', 'menu1', 'menu2'); $imagen = ''.$imagen.$e['titulo'].''; if(isset($e['activado']) && $e['activado'] != 0) $class_a = 'menu_activo'; - else $class_a = $class[$n]; + else $class_a = $classes[$n]; $this->t_interna->addRow(array($e['titulo']), array('class' => $class_a)); if(isset($e['sub'])) $this->expandir($e['sub'], $n+1); diff --git a/test/prueba_arbol.php b/test/prueba_arbol.php index 9477e5d..4713f10 100644 --- a/test/prueba_arbol.php +++ b/test/prueba_arbol.php @@ -52,9 +52,7 @@ ) ); ?> - toHTML(); ?> -