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 * http://fusionforge.org
11 * This file is part of FusionForge. FusionForge is free software;
12 * you can redistribute it and/or modify it under the terms of the
13 * GNU General Public License as published by the Free Software
14 * Foundation; either version 2 of the Licence, or (at your option)
17 * FusionForge is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License along
23 * with FusionForge; if not, write to the Free Software Foundation, Inc.,
24 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
27 /* please do not add require here : use www/docman/index.php to add require */
28 /* global variables used */
29 global $g; //group object
30 global $group_id; // id of the group
31 global $dirid; // id of doc_group
32 global $dgf; // document directory factory of this group
33 global $dgh; // document directory html
35 if (!forge_check_perm('docman', $group_id, 'approve')) {
36 $return_msg= _('Document Manager Access Denied');
37 session_redirect('/docman/?group_id='.$group_id.'&warning_msg='.urlencode($return_msg));
40 $dg = new DocumentGroup($g, $dirid);
42 session_redirect('/docman/?group_id='.$group_id.'&error_msg='.urlencode($dg->getErrorMessage()));
45 <div class="docmanDivIncluded">
46 <form name="editgroup" action="?group_id=<?php echo $group_id; ?>&action=editdocgroup" method="post">
47 <input type="hidden" name="dirid" value="<?php echo $dirid; ?>" />
50 <td><?php echo _('Directory Name') ?></td>
51 <td><input type="text" name="groupname" value="<?php echo $dg->getName(); ?>" /></td>
53 <td><?php echo _('belongs to') ?></td>
56 $dgh->showSelectNestedGroups($dgf->getNested(), "parent_dirid", true, $dg->getParentId(), array($dg->getID()));
59 <td><input type="submit" value="<?php echo _('Edit') ?>" name="submit" /></td>
63 <?php echo _('Directory name will be used as a title, so it should be formatted correspondingly.') ?>