4 * FusionForge Documentation Manager
6 * Copyright 2000, Quentin Cregan/Sourceforge
7 * Copyright 2002-2003, Tim Perdue/GForge, LLC
8 * Copyright 2010-2011, Franck Villaume - Capgemini
9 * Copyright (C) 2011 Alain Peyrat - Alcatel-Lucent
10 * http://fusionforge.org
12 * This file is part of FusionForge. FusionForge is free software;
13 * you can redistribute it and/or modify it under the terms of the
14 * GNU General Public License as published by the Free Software
15 * Foundation; either version 2 of the Licence, or (at your option)
18 * FusionForge is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
23 * You should have received a copy of the GNU General Public License along
24 * with FusionForge; if not, write to the Free Software Foundation, Inc.,
25 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
28 /* please do not add require here : use www/docman/index.php to add require */
29 /* global variables used */
30 global $g; //group object
31 global $group_id; // id of the group
32 global $dirid; // id of doc_group
33 global $dgf; // document directory factory of this group
34 global $dgh; // document directory html
36 if (!forge_check_perm('docman', $group_id, 'approve')) {
37 $return_msg= _('Document Manager Access Denied');
38 session_redirect('/docman/?group_id='.$group_id.'&warning_msg='.urlencode($return_msg));
41 // plugin projects-hierarchy
42 $actionurl = '?group_id='.$group_id.'&action=editdocgroup';
44 $g = group_get_object($childgroup_id);
45 $actionurl = '?group_id='.$group_id.'&action=editdocgroup&childgroup_id='.$childgroup_id;
48 $dg = new DocumentGroup($g, $dirid);
50 session_redirect('/docman/?group_id='.$group_id.'&error_msg='.urlencode($dg->getErrorMessage()));
53 <div class="docmanDivIncluded">
54 <form name="editgroup" action="<?php echo $actionurl; ?>" method="post">
55 <input type="hidden" name="dirid" value="<?php echo $dirid; ?>" />
58 <td><?php echo _('Folder Name') ?></td>
59 <td><input type="text" name="groupname" value="<?php echo $dg->getName(); ?>" /></td>
61 <td><?php echo _('belongs to') ?></td>
64 if ($dg->getState() == 2) {
65 $newdgf = new DocumentGroupFactory($g);
66 $dgh->showSelectNestedGroups($newdgf->getNested(), 'parent_dirid', false, false);
68 $dgh->showSelectNestedGroups($dgf->getNested(), 'parent_dirid', true, $dg->getParentId(), array($dg->getID()));
72 <td><input type="submit" value="<?php echo _('Edit') ?>" name="submit" /></td>
76 <?php echo _('Folder name will be used as a title, so it should be formatted correspondingly.') ?>