]> git.llucax.com Git - mecon/meconlib.git/blob - test/prueba_arbol.php
Agrego imagen para menu de Dependencia
[mecon/meconlib.git] / test / prueba_arbol.php
1 <?\r
2   require_once 'MECON/HTML/Arbol.php';\r
3 \r
4   $dat = array(\r
5          array(\r
6            'titulo' => 'Nivel0a',\r
7            'link' => 'blabla',\r
8            'sub' => array(//sub0\r
9                     array(\r
10                        'titulo' => 'Nivel1a',\r
11                        'link' => 'blabla',\r
12                        'sub' => array(//sub1\r
13                                 array(\r
14                                     'titulo' => 'Nivel3a',\r
15                                     'link' => 'blabla',\r
16                                     'activado' => 1\r
17                                 ),\r
18                                 array(\r
19                                     'titulo' => 'Nivel3b',\r
20                                     'link' => 'blabla',\r
21                                     'sub' => array(//sub2\r
22                                              array(\r
23                                                'titulo' => 'Nivel4',\r
24                                                'link' => 'blabla'\r
25                                              )\r
26                                              )//sub2\r
27                                 ),\r
28                                 array(\r
29                                     'titulo' => 'Nivel3c',\r
30                                     'link' => 'blabla'\r
31                                 )\r
32                                 )//sub1\r
33                    ),\r
34                    array(\r
35                        'titulo' => 'Nivel1b',\r
36                        'link' => 'blabla',\r
37                        'activado' => 1\r
38                    ),\r
39                    array(\r
40                        'titulo' => 'Nivel1c',\r
41                        'link' => 'blabla'\r
42                    )\r
43                    )//sub0\r
44        ),\r
45        array(\r
46            'titulo' => 'Nivel0b',\r
47            'link' => 'blabla'\r
48        ),\r
49        array(\r
50            'titulo' => 'Nivel0c',\r
51            'link' => 'blabla'\r
52        )\r
53   );\r
54 ?>\r
55 <?\r
56   $arbol = new HTML_Arbol($dat, '/MECON/images/arbol_noticias.gif');\r
57   echo $arbol->toHTML();\r
58 ?>\r