]> git.llucax.com Git - mecon/meconlib.git/commitdiff
Subo el archivo de prueba del arbol
authorGonzalo Merayo <merayo@gmail.com>
Mon, 23 Jun 2003 16:40:55 +0000 (16:40 +0000)
committerGonzalo Merayo <merayo@gmail.com>
Mon, 23 Jun 2003 16:40:55 +0000 (16:40 +0000)
test/prueba_arbol.php [new file with mode: 0644]

diff --git a/test/prueba_arbol.php b/test/prueba_arbol.php
new file mode 100644 (file)
index 0000000..c253f55
--- /dev/null
@@ -0,0 +1,60 @@
+<?\r
+  require_once 'MECON/HTML/Arbol.php';\r
+\r
+  $dat = array(\r
+         array(\r
+          'titulo' => 'Nivel0a',\r
+          'link' => 'blabla',\r
+          'sub' => array(//sub0\r
+                   array(\r
+                      'titulo' => 'Nivel1a',\r
+                       'link' => 'blabla',\r
+                      'sub' => array(//sub1\r
+                               array(\r
+                                   'titulo' => 'Nivel3a',\r
+                                    'link' => 'blabla',\r
+                                   'activado' => 1\r
+                               ),\r
+                               array(\r
+                                   'titulo' => 'Nivel3b',\r
+                                    'link' => 'blabla',\r
+                                   'sub' => array(//sub2\r
+                                            array(\r
+                                              'titulo' => 'Nivel4',\r
+                                               'link' => 'blabla'\r
+                                            )\r
+                                            )//sub2\r
+                               ),\r
+                               array(\r
+                                   'titulo' => 'Nivel3c',\r
+                                    'link' => 'blabla'\r
+                               )\r
+                               )//sub1\r
+                  ),\r
+                  array(\r
+                      'titulo' => 'Nivel1b',\r
+                       'link' => 'blabla',\r
+                      'activado' => 1\r
+                  ),\r
+                  array(\r
+                      'titulo' => 'Nivel1c',\r
+                       'link' => 'blabla'\r
+                  )\r
+                  )//sub0\r
+       ),\r
+       array(\r
+          'titulo' => 'Nivel0b',\r
+          'link' => 'blabla'\r
+       ),\r
+       array(\r
+          'titulo' => 'Nivel0c',\r
+          'link' => 'blabla'\r
+       )\r
+  );\r
+?>\r
+<body bgcolor="#FFFFFF" class="subtitulo" link="#003366" vlink="#660066" alink="#0066FF" topmargin="0">\r
+<?\r
+  $arbol = new HTML_Arbol($dat);\r
+  echo $arbol->toHTML();\r
+?>\r
+</body>\r