]> git.llucax.com Git - mecon/meconlib.git/commitdiff
Agrego un heredero de arbol que muestra los datos sacandolos de una bd
authorGonzalo Merayo <merayo@gmail.com>
Tue, 24 Jun 2003 18:07:39 +0000 (18:07 +0000)
committerGonzalo Merayo <merayo@gmail.com>
Tue, 24 Jun 2003 18:07:39 +0000 (18:07 +0000)
lib/MECON/HTML/Arbol/ArbolDB.php [new file with mode: 0644]

diff --git a/lib/MECON/HTML/Arbol/ArbolDB.php b/lib/MECON/HTML/Arbol/ArbolDB.php
new file mode 100644 (file)
index 0000000..09f53be
--- /dev/null
@@ -0,0 +1,67 @@
+<?
+
+
+
+
+
+class HTML_ArbolDB extends HTML_Arbol
+{
+    function ArbolDB()
+    {
+  $dat = array(
+         array(
+          'titulo' => '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);
+    }
+}
+
+
+?>