3 * FusionForge Documentation Manager
5 * Copyright 2000, Quentin Cregan/Sourceforge
6 * Copyright 2002-2003, Tim Perdue/GForge, LLC
7 * Copyright 2010-2011, Franck Villaume - Capgemini
8 * Copyright (C) 2011 Alain Peyrat - Alcatel-Lucent
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 $group_id; // id of the group
30 global $dirid; //id of the doc_group
32 if (!forge_check_perm('docman', $group_id, 'approve')) {
33 $return_msg= _('Document Manager Access Denied');
34 session_redirect('/docman/?group_id='.$group_id.'&warning_msg='.urlencode($return_msg));
37 // plugin projects-hierarchy
38 $actionurl = '?group_id='.$group_id.'&action=addsubdocgroup&dirid='.$dirid;
40 $g = group_get_object($childgroup_id);
41 $actionurl .= '&childgroup_id='.$childgroup_id;
45 <script language="JavaScript" type="text/javascript">//<![CDATA[
46 function doItAddSubGroup() {
47 document.getElementById('addsubgroup').submit();
48 document.getElementById('submitaddsubgroup').disabled = true;
52 echo '<div class="docmanDivIncluded" >';
53 echo '<form id="addsubgroup" name="addsubgroup" method="post" action="'.$actionurl.'">';
55 echo _('Name of the document subfolder to create:'). ' ';
57 echo _('Name of the document folder to create:'). ' ';
59 echo '<input type="text" name="groupname" size="40" maxlength="255" />';
60 echo '<input id="submitaddsubgroup" type="button" value="'. _('Create') .'" onclick="javascript:doItAddSubGroup()" />';