3 * GForge Survey Facility
5 * Portions Copyright 1999-2001 (c) VA Linux Systems
6 * The rest Copyright 2002-2004 (c) GForge Team
9 * This file is part of GForge.
11 * GForge is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
16 * GForge is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with GForge; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 require_once('../../env.inc.php');
27 require_once $gfwww.'include/pre.php';
28 require_once $gfwww.'survey/include/SurveyHTML.class.php';
31 $group_id = getIntFromRequest('group_id');
32 $survey_id = getIntFromRequest('survey_id');
33 $sh = new SurveyHtml();
34 $sh->header(array('title'=>_('Survey Administration')));
36 echo '<h1>'._('Survey Administration').'</h1>';
38 if (!session_loggedin() || !user_ismember($group_id,'A')) {
39 echo '<div class="error">'._('Permission denied').'</div>';
46 <?php printf(_('<p>It\'s simple to create a survey.<ol><li>Create questions and comments using the forms above.</li><li>Create a survey, listing the questions in order (choose from <strong>your</strong> list of questions).</li><li>Link to the survey using this format: %1$s where XX is the survey number'), '<p><strong>'.util_make_url ('/survey/survey.php?group_id='.$group_id.'&survey_id=XX').'</strong>'); ?>
48 <p><?php printf(_('You can now activate/deactivate surveys on the %1$s Edit Existing Surveys %2$s page'), '<a href="'.util_make_url ('/survey/admin/survey.php?group_id='.$group_id).'">', '</a>'); ?>
58 // c-file-style: "bsd"