5 * Copyright 1999-2001 (c) VA Linux Systems
6 * Copyright 2002-2004 (c) GForge Team
7 * Copyright 2010 (c) Franck Villaume
8 * Copyright (C) 2010 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 require_once '../../env.inc.php';
28 require_once $gfcommon.'include/pre.php';
29 require_once $gfwww.'survey/include/SurveyHTML.class.php';
32 $group_id = getIntFromRequest('group_id');
33 $survey_id = getIntFromRequest('survey_id');
34 $sh = new SurveyHtml();
35 $sh->header(array('title'=>_('Surveys Administration')));
40 $group = group_get_object($group_id);
41 if (!$group || !is_object($group)) {
43 } elseif ($group->isError()) {
44 exit_error($group->getErrorMessage(),'surveys');
47 if (!session_loggedin()) {
51 if ( !forge_check_perm('project_admin', $group_id)) {
52 exit_permission_denied(_('You are not a Project admin'),'surveys');
58 <?php print(_('It\'s simple to create a survey.')); ?>
62 <?php print(_('Create questions and comments using the forms above.')); ?>
65 <?php print(_('Create a survey, listing the questions in order (choose from <strong>your</strong> list of questions).')); ?>
68 <?php printf(_('Link to the survey using this format: %s where XX is the survey number'),
69 '<br /><strong>'.util_make_url('/survey/survey.php?group_id='.$group_id.'&survey_id=XX').'</strong>'); ?>
73 <?php printf(_('You can now activate/deactivate surveys on the %1$s Edit Existing Surveys %2$s page'),
74 '<a href="'.util_make_url('/survey/admin/survey.php?group_id='.$group_id).'">',
85 // c-file-style: "bsd"