diff options
author | irinagomez <irinagomez@us.es> | 2020-03-20 14:23:40 +0000 |
---|---|---|
committer | irinagomez <irinagomez@us.es> | 2020-03-20 14:23:40 +0000 |
commit | 4f16237e29c9678f0edde0806ceb84050caa777d (patch) | |
tree | 389a933ca2daf361aa4292a343f5b64c2bc5be65 /admin/WebConsole/principal/softwares.php | |
parent | a9cb5552a02a2e57c0268f998a45233ca90e8860 (diff) |
#969 node tree: Left frame shows node tree.
Functions lista_raiz_arbol and lista_grupo_arbol are created and used in all left frames.
Diffstat (limited to 'admin/WebConsole/principal/softwares.php')
-rw-r--r-- | admin/WebConsole/principal/softwares.php | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/admin/WebConsole/principal/softwares.php b/admin/WebConsole/principal/softwares.php index 7f587057..ecbd334f 100644 --- a/admin/WebConsole/principal/softwares.php +++ b/admin/WebConsole/principal/softwares.php @@ -802,20 +802,14 @@ echo "<br><br>"; $tipos=nodos_arbol("tipossoftware"); $componentes=nodos_arbol("componentessoftware"); $perfiles=nodos_arbol("perfilessoftware"); -$grp_tipos=grupos_arbol("tipossoftware"); +/* En la BD no existen grupos de tipos de hardware. + * Creo el grupo que 0 que es padre de los nodos sin grupo */ +$grp_tipo[1]=Array(); $grp_componentes=grupos_arbol("componentessoftware"); $grp_perfiles=grupos_arbol("perfilessoftware"); -echo "<br><br>"; -print_r($tipos); -echo "<br><br>"; -print_r($componentes); -echo "<br><br>"; -print_r($perfiles); -echo "<br><br>"; -// No existen grupos de tipos de hardware, debe devolver array vacĂo. -print_r($grp_tipos); -echo "<br><br>"; -print_r($grp_componentes); -echo "<br><br>"; -print_r($grp_perfiles); + +$nodos=$tipos + $componentes + $perfiles; +$grupos=$grp_componentes + $grp_perfiles; + +lista_raiz_arbol("software", $nodos, $grupos); ?> |