From fcfef745c429ee47bc1cd691b8d67166e4f645e4 Mon Sep 17 00:00:00 2001 From: Gonzalo Merayo Date: Tue, 24 Jun 2003 18:07:39 +0000 Subject: [PATCH 1/1] Agrego un heredero de arbol que muestra los datos sacandolos de una bd --- lib/MECON/HTML/Arbol/ArbolDB.php | 67 ++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 lib/MECON/HTML/Arbol/ArbolDB.php diff --git a/lib/MECON/HTML/Arbol/ArbolDB.php b/lib/MECON/HTML/Arbol/ArbolDB.php new file mode 100644 index 0000000..09f53be --- /dev/null +++ b/lib/MECON/HTML/Arbol/ArbolDB.php @@ -0,0 +1,67 @@ + 'Nivel0a', + 'link' => 'blabla', + 'sub' => array(//sub0 + array( + 'titulo' => 'Nivel1a', + 'link' => 'blabla', + 'sub' => array(//sub1 + array( + 'titulo' => 'Nivel3a', + 'link' => 'blabla', + 'activado' => 1 + ), + array( + 'titulo' => 'Nivel3b', + 'link' => 'blabla', + 'sub' => array(//sub2 + array( + 'titulo' => 'Nivel4', + 'link' => 'blabla' + ) + )//sub2 + ), + array( + 'titulo' => 'Nivel3c', + 'link' => 'blabla' + ) + )//sub1 + ), + array( + 'titulo' => 'Nivel1b', + 'link' => 'blabla', + 'activado' => 1 + ), + array( + 'titulo' => 'Nivel1c', + 'link' => 'blabla' + ) + )//sub0 + ), + array( + 'titulo' => 'Nivel0b', + 'link' => 'blabla' + ), + array( + 'titulo' => 'Nivel0c', + 'link' => 'blabla' + ) + ); + + parent::Arbol($dat); + } +} + + +?> -- 2.43.0