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.
13 * FusionForge is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version.
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
24 * along with FusionForge; if not, write to the Free Software
25 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 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 $dg = new DocumentGroup($g, $dirid);
43 session_redirect('/docman/?group_id='.$group_id.'&error_msg='.urlencode($dg->getErrorMessage()));
46 <div class="docmanDivIncluded">
47 <form name="editgroup" action="?group_id=<?php echo $group_id; ?>&action=editdocgroup" method="post">
48 <input type="hidden" name="dirid" value="<?php echo $dirid; ?>" />
51 <td><?php echo _('Directory Name') ?></td>
52 <td><input type="text" name="groupname" value="<?php echo $dg->getName(); ?>" /></td>
54 <td><?php echo _('belongs to') ?></td>
57 $dgh->showSelectNestedGroups($dgf->getNested(), "parent_dirid", true, $dg->getParentId(), array($dg->getID()));
60 <td><input type="submit" value="<?php echo _('Edit') ?>" name="submit" /></td>
64 <?php echo _('Directory name will be used as a title, so it should be formatted correspondingly.') ?>