3 * Site Admin: Trove Admin: browse entire Trove tree
5 * Copyright 1999-2001 (c) VA Linux Systems
7 * This file is part of GForge.
9 * GForge is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * GForge 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
20 * along with GForge; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 require_once('../../env.inc.php');
26 require_once $gfwww.'include/pre.php';
27 require_once $gfwww.'include/trove.php';
28 require_once $gfwww.'admin/admin_utils.php';
30 // print current node, then all subnodes
31 function printnode ($nodeid,$text) {
34 for ($i=0;$i<$GLOBALS['depth'];$i++) {
35 print " ";
38 print html_image('ic/cfolder15.png','15','13',array());
39 print (' '.$text." ");
41 print ('<a href="trove_cat_add.php?parent_trove_cat_id='.$nodeid.'">['._('Add').']</a> ');
43 print ('<a href="trove_cat_edit.php?trove_cat_id='.$nodeid.'">['._('Edit').']</a> ');
44 print ('<a href="trove_cat_add.php?parent_trove_cat_id='.$nodeid.'">['._('Add').']</a> ');
45 print (help_button('trove_cat',$nodeid)."\n");
49 $res_child = db_query_params ('
50 SELECT trove_cat_id,fullname FROM trove_cat
52 AND trove_cat_id!=0 ORDER BY fullname;
56 while ($row_child = db_fetch_array($res_child)) {
57 printnode($row_child["trove_cat_id"],$row_child["fullname"]);
62 // ########################################################
64 site_admin_header(array('title'=>_('Site Admin: Trove - Category List')));
68 <h1><?php echo _('Browse Trove Tree'); ?></h1>
74 site_admin_footer(array());
78 // c-file-style: "bsd"