3 * Trove Admin: browse entire Trove tree
5 * Copyright 1999-2001 (c) VA Linux Systems
6 * http://fusionforge.org/
8 * This file is part of FusionForge. FusionForge is free software;
9 * you can redistribute it and/or modify it under the terms of the
10 * GNU General Public License as published by the Free Software
11 * Foundation; either version 2 of the Licence, or (at your option)
14 * FusionForge is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License along
20 * with FusionForge; if not, write to the Free Software Foundation, Inc.,
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 require_once 'pre.php';
25 require_once 'www/include/trove.php';
26 require_once 'www/admin/admin_utils.php';
28 session_require_global_perm ('forge_admin');
30 // #######################################################
32 // print current node, then all subnodes
33 function printnode ($nodeid,$text) {
36 for ($i=0;$i<$GLOBALS[depth];$i++) {
37 print " ";
40 print html_image('ic/cfolder15.png','15','13',array());
41 print (' '.$text." ");
42 print (url_make_link ("trove_cat_add.php?parent_trove_cat_id='.$nodeid.'",
45 print (url_make_link ("trove_cat_edit.php?parent_trove_cat_id='.$nodeid.'",
47 print (help_button('trove_cat',$nodeid)."\n");
51 $res_child = db_query_params ('
52 SELECT trove_cat_id,fullname FROM trove_cat
57 while ($row_child = db_fetch_array($res_child)) {
58 printnode($row_child["trove_cat_id"],$row_child["fullname"]);
63 // ########################################################
65 site_admin_header(array('title'=>_('Site Admin: Trove - Category List')));
69 <h3><?php echo _('Browse Trove Tree'); ?></h3>
75 site_admin_footer(array());