From: Gonzalo Merayo Date: Tue, 24 Jun 2003 20:02:28 +0000 (+0000) Subject: Demo usando ArbolDB X-Git-Tag: svn_import~252 X-Git-Url: https://git.llucax.com/mecon/intranet.git/commitdiff_plain/0030a5e4c8ffc960a1ab7413eb1cc1ef111bf366?ds=sidebyside Demo usando ArbolDB --- diff --git a/sistema/www/noticias.php b/sistema/www/noticias.php index 08f1635..0ffde4d 100644 --- a/sistema/www/noticias.php +++ b/sistema/www/noticias.php @@ -7,7 +7,20 @@
- + $db, + 'tabla' => 'grupo_secciones', + 'id' => 'grupo', + 'nombre' => 'nombre', + 'id_padre' => 'grupo_padre', + 'prepend_link' => 'noticias.php?grupo='); + $arbol = new HTML_ArbolDB($dbdata, '/MECON/images/arbol_noticias.gif'); + echo $arbol->toHTML(); + ?> diff --git a/sistema/www/servicios.php b/sistema/www/servicios.php index ebc9544..e1ba91d 100644 --- a/sistema/www/servicios.php +++ b/sistema/www/servicios.php @@ -3,5 +3,18 @@ require_once '../local_lib/copete.php'; $c = new Copete('servicios'); echo $c->toHTML(); + + require_once '../local_lib/intranetdb.php'; + require_once 'MECON/HTML/Arbol/ArbolDB.php'; + $db = IntranetDB::connect(); + $dbdata = array( + 'db' => $db, + 'tabla' => 'servicio', + 'id' => 'servicio', + 'nombre' => 'nombre', + 'id_padre' => 'servicio_padre', + 'link' => 'link'); + $arbol = new HTML_ArbolDB($dbdata, '/MECON/images/arbol_noticias.gif'); + echo $arbol->toHTML(); ?> diff --git a/sistema/www/sistemas.php b/sistema/www/sistemas.php index 3897cfc..30bb291 100644 --- a/sistema/www/sistemas.php +++ b/sistema/www/sistemas.php @@ -3,5 +3,17 @@ require_once '../local_lib/copete.php'; $c = new Copete('sistemas'); echo $c->toHTML(); + + require_once '../local_lib/intranetdb.php'; + require_once 'MECON/HTML/Arbol/ArbolDB.php'; + $db = IntranetDB::connect(); + $dbdata = array( + 'db' => $db, + 'tabla' => 'sistema', + 'id' => 'sistema', + 'nombre' => 'sistema', + 'link' => 'link'); + $arbol = new HTML_ArbolDB($dbdata, '/MECON/images/arbol_noticias.gif'); + echo $arbol->toHTML(); ?>