<?php // // SourceForge: Breaking Down the Barriers to Open Source Development // Copyright 1999-2000 (c) The SourceForge Crew // http://sourceforge.net // // require_once 'pre.php'; require_once 'www/survey/survey_utils.php'; $is_admin_page = 'y'; survey_header(array('title' => $Language->getText('survey_admin_show_r_individual', 'res'), 'help' => 'AdministeringSurveys.html#ReviewingSurveyResults')); if (!user_isloggedin() || !user_ismember($group_id, 'A')) { echo '<H1>' . $Language->getText('survey_admin_add_question', 'perm_denied') . '</H1>'; survey_footer(array()); exit; } ?> <FORM ACTION="NONE"> <?php /* Select this survey from the database */ $sql = "SELECT * FROM surveys WHERE survey_id='{$survey_id}' AND group_id='{$group_id}'"; $result = db_query($sql); echo "\n<H2>" . db_result($result, 0, "survey_title") . "</H2><P>"; /* Select the questions for this survey */ $questions = db_result($result, 0, "survey_questions");
// http://sourceforge.net // // require_once 'pre.php'; require '../survey/survey_utils.php'; $request = HTTPRequest::instance(); $group_id = $request->get('group_id'); $valid = new Valid_UInt(); if (!$valid->validate($group_id)) { $group_id = null; } $survey_id = $request->get('survey_id'); if (!$valid->validate($survey_id)) { $survey_id = null; } survey_header(array('title' => $Language->getText('survey_s', 's'), 'help' => 'SurveyManager.html#PublishingaSurvey')); if (!$survey_id || !$group_id) { echo "<H1>" . $Language->getText('survey_index', 'g_id_err') . "</H1>"; } else { // select this survey from the database $sql = "select * from surveys where group_id = '{$group_id}' AND survey_id='{$survey_id}'"; $result = db_query($sql); if (!user_isloggedin() && !db_result($result, 0, "is_anonymous")) { /* Tell them they need to be logged in */ echo $Language->getText('survey_s', 'log_in', '/account/login.php?return_to=' . urlencode($REQUEST_URI)); survey_footer(array()); exit; } else { survey_utils_show_survey($group_id, $survey_id);
<?php // // SourceForge: Breaking Down the Barriers to Open Source Development // Copyright 1999-2000 (c) The SourceForge Crew // http://sourceforge.net // // require_once 'pre.php'; require '../survey/survey_utils.php'; require_once 'common/include/SimpleSanitizer.class.php'; survey_header(array('title' => $Language->getText('survey_s_resp', 's_compl'))); // select this survey from the database $sql = "select * from surveys where survey_id='{$survey_id}'"; $result_survey = db_query($sql); if (!$survey_id || !$group_id) { /* Quit if params are not provided */ echo "<H1>" . $Language->getText('survey_index', 'g_id_err') . "</H1>"; survey_footer(array()); exit; } if (!user_isloggedin() && !db_result($result_survey, 0, "is_anonymous")) { /* Tell them they need to be logged in */ echo $Language->getText('survey_s', 'log_in', '/account/login.php?return_to=' . urlencode($REQUEST_URI)); survey_footer(array()); exit; }
$result = db_query($sql); $rows = db_numrows($result); if ($rows > 0) { for ($j = 0; $j < $rows; $j++) { $radio_id = db_result($result, $j, 'choice_id'); survey_data_radio_delete($question_id, $radio_id); } } // return to update mode session_redirect("/survey/admin/edit_question.php?func=update_question&group_id={$group_id}&question_id={$question_id}"); } if (array_key_exists('cancel', $_POST) && isset($_POST['cancel'])) { // return to update mode session_redirect("/survey/admin/edit_question.php?func=update_question&group_id={$group_id}&question_id={$question_id}"); } survey_header(array('title' => $Language->getText('survey_admin_update_radio', 'update_r'), 'help' => 'AdministeringSurveys.html#CreatingorEditingQuestions')); // fetch question and associated radio button from DB, and check for integrity IDs $qry = "SELECT * FROM survey_questions WHERE question_id='{$question_id}'"; $res = db_query($qry); if (db_numrows($res) == 0) { $feedback .= " Error finding question #" . $question_id; survey_footer(array()); exit; } else { echo '<h2><font color=red>' . $Language->getText('survey_s_utils', 'warn_loose_button') . '</font></h2>'; } ?> <P> <TABLE><FORM ACTION="?" METHOD="POST"> <TD><INPUT TYPE="HIDDEN" NAME="group_id" VALUE="<?php
// // SourceForge: Breaking Down the Barriers to Open Source Development // Copyright 1999-2000 (c) The SourceForge Crew // http://sourceforge.net // // $Id: edit_question.php,v 1.3 2003/11/27 15:05:42 helix Exp $ require 'pre.php'; require '../survey_utils.php'; $is_admin_page = 'y'; if ($group_id && $question_id) { if (!user_isloggedin() || !user_ismember($group_id, 'A')) { exit_permission_denied(); exit; } survey_header(array('title' => 'Edit A Question')); if ($post_changes) { $sql = "UPDATE survey_questions SET question='" . htmlspecialchars($question) . "', question_type='{$question_type}' where question_id='{$question_id}' AND group_id='{$group_id}'"; $result = db_query($sql); if (db_affected_rows($result) < 1) { $feedback .= ' UPDATE FAILED '; } else { $feedback .= ' UPDATE SUCCESSFUL '; } } $sql = "SELECT * FROM survey_questions WHERE question_id='{$question_id}' AND group_id='{$group_id}'"; $result = db_query($sql); if ($result) { $question = db_result($result, 0, "question"); $question_type = db_result($result, 0, "question_type"); } else {
// // SourceForge: Breaking Down the Barriers to Open Source Development // Copyright 1999-2000 (c) The SourceForge Crew // http://sourceforge.net // // $Id: show_results.php,v 1.4 2003/11/28 10:01:50 helix Exp $ require 'pre.php'; require '../survey_utils.php'; $is_admin_page = 'y'; if ($group_id) { if (!user_isloggedin() || !user_ismember($group_id, 'A')) { exit_permission_denied(); exit; } survey_header(array('title' => 'Survey Results')); echo "<H2>Survey Results</H2>"; function ShowResultsSurvey($result) { global $group_id; $rows = db_numrows($result); $cols = db_numfields($result); echo "<h3>{$rows} Found</h3>"; $title_arr = array(); $title_arr[] = 'Survey ID'; $title_arr[] = 'Survey Title'; echo html_build_list_table_top($title_arr); for ($j = 0; $j < $rows; $j++) { echo "<tr BGCOLOR=\"" . html_get_alt_row_color($j) . "\">\n"; echo "<TD><A HREF=\"show_results_individual.php?group_id={$group_id}&survey_id=" . db_result($result, $j, "survey_id") . "\">" . sprintf("%06d", db_result($result, $j, "survey_id")) . "</A></TD>\n"; for ($i = 1; $i < $cols; $i++) {
<?php // // Codendi // Copyright (c) Xerox Corporation, Codendi Team, 2001-2009. All rights reserved // Copyright (c) Enalean, 2015. All Rights Reserved. // http://www.codendi.com // // require_once 'common/survey/SurveySingleton.class.php'; $is_admin_page = 'y'; survey_header(array('title' => $Language->getText('survey_admin_update_question', 'edit_a_q'), 'help' => 'survey.html#creating-or-editing-questions')); if (!user_isloggedin() || !user_ismember($group_id, 'A')) { echo '<H1>' . $Language->getText('survey_admin_add_question', 'perm_denied') . '</H1>'; survey_footer(array()); exit; } // Fetch the question from the DB $sql = "SELECT * FROM survey_questions WHERE question_id='" . db_ei($question_id) . "' AND group_id='" . db_ei($group_id) . "'"; $result = db_query($sql); $purifier = Codendi_HTMLPurifier::instance(); if ($result) { $question = db_result($result, 0, "question"); $question_type = db_result($result, 0, "question_type"); } else { $feedback .= " Error finding question #" . $question_id; } ?> <SCRIPT LANGUAGE="JavaScript"> <!-- var timerID2 = null;
<?php // // Codendi // Copyright (c) Xerox Corporation, Codendi Team, 2001-2009. All rights reserved // http://www.codendi.com // // survey_header(array('title' => $Language->getText('survey_admin_browse_question', 'edit_q'), 'help' => 'AdministeringSurveys.html#CreatingorEditingQuestions')); /* Select all questions from the database */ $sql = "SELECT survey_questions.question_id,survey_questions.question, survey_questions.question_type AS question_type_id,survey_question_types.type AS question_type " . "FROM survey_questions,survey_question_types " . "WHERE survey_question_types.id=survey_questions.question_type AND survey_questions.group_id='{$group_id}' " . "ORDER BY survey_questions.question_id DESC"; $result = db_query($sql); ?> <P> <H2><?php echo $Language->getText('survey_admin_browse_question', 'edit_q'); ?> </H2> <?php echo $Language->getText('survey_admin_browse_question', 'edit_q_msg'); survey_utils_show_questions($result); survey_footer(array());
<?php // // SourceForge: Breaking Down the Barriers to Open Source Development // Copyright 1999-2000 (c) The SourceForge Crew // Copyright (c) Enalean, 2015. All Rights Reserved. // http://sourceforge.net // // require_once 'pre.php'; require_once 'HTML_Graphs.php'; require_once 'www/survey/survey_utils.php'; $is_admin_page = 'y'; survey_header(array('title' => $Language->getText('survey_admin_show_r_aggregate', 'agg_res'), 'help' => 'survey.html#reviewing-survey-results')); if (!user_isloggedin() || !user_ismember($group_id, 'A')) { echo '<H1>' . $Language->getText('survey_admin_add_question', 'perm_denied') . '</H1>'; survey_footer(array()); exit; } $sql = "SELECT question FROM survey_questions WHERE question_id='" . db_ei($question_id) . "'"; $result = db_query($sql); $purifier = Codendi_HTMLPurifier::instance(); echo '<h2>' . $Language->getText('survey_admin_show_r_comments', 's_res') . '</h2>'; echo '<h3>' . $Language->getText('survey_admin_show_r_comments', 'q_no', array($question_num, $purifier->purify(db_result($result, 0, "question")))) . '</H3>'; echo "<P>"; $sql = "SELECT response, count(*) AS count FROM survey_responses WHERE survey_id='" . db_ei($survey_id) . "' " . "AND question_id='" . db_ei($question_id) . "' AND group_id='" . db_ei($group_id) . "' " . "GROUP BY response"; $result = db_query($sql); survey_utils_show_comments($result); survey_footer(array());
* but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with GForge; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ require_once '../../env.inc.php'; require_once $gfwww . 'include/pre.php'; require_once $gfwww . 'survey/survey_utils.php'; require_once $gfwww . 'survey/admin/survey_utils.php'; $is_admin_page = 'y'; $group_id = getIntFromRequest('group_id'); $survey_id = getIntFromRequest('survey_id'); survey_header(array('title' => _('Add A Survey'))); if (!session_loggedin() || !user_ismember($group_id, 'A')) { echo "<h1>" . _('Permission denied') . "</h1>"; survey_footer(array()); exit; } if (getStringFromRequest('post_changes')) { $survey_title = getStringFromRequest('survey_title'); $survey_questions = getStringFromRequest('survey_questions'); if (!$survey_title) { $feedback .= _('Title required'); } else { $sql = "insert into surveys (survey_title,group_id,survey_questions) values ('" . htmlspecialchars($survey_title) . "','{$group_id}','{$survey_questions}')"; $result = db_query($sql); if ($result) { $feedback .= _('Question inserted');
<?php // // SourceForge: Breaking Down the Barriers to Open Source Development // Copyright 1999-2000 (c) The SourceForge Crew // http://sourceforge.net // // require_once 'pre.php'; require_once 'HTML_Graphs.php'; require_once 'www/survey/survey_utils.php'; $is_admin_page = 'y'; survey_header(array('title' => $Language->getText('survey_admin_show_r_aggregate', 'agg_res'), 'help' => 'AdministeringSurveys.html#ReviewingSurveyResults')); if (!user_isloggedin() || !user_ismember($group_id, 'A')) { echo '<H1>' . $Language->getText('survey_admin_add_question', 'perm_denied') . '</H1>'; survey_footer(array()); exit; } $sql = "SELECT question FROM survey_questions WHERE question_id='{$question_id}'"; $result = db_query($sql); echo '<h2>' . $Language->getText('survey_admin_show_r_comments', 's_res') . '</h2>'; echo '<h3>' . $Language->getText('survey_admin_show_r_comments', 'q_no', array($question_num, util_unconvert_htmlspecialchars(db_result($result, 0, "question")))) . '</H3>'; echo "<P>"; $sql = "SELECT response, count(*) AS count FROM survey_responses WHERE survey_id='{$survey_id}' " . "AND question_id='{$question_id}' AND group_id='{$group_id}' " . "GROUP BY response"; $result = db_query($sql); survey_utils_show_comments($result); survey_footer(array());
// http://sourceforge.net // // require_once 'pre.php'; require '../survey/survey_utils.php'; $request = HTTPRequest::instance(); $group_id = $request->get('group_id'); $valid = new Valid_UInt(); if (!$valid->validate($group_id)) { $group_id = null; } $survey_id = $request->get('survey_id'); if (!$valid->validate($survey_id)) { $survey_id = null; } survey_header(array('title' => $Language->getText('survey_s', 's'), 'help' => 'survey.html#publishing-a-survey')); if (!$survey_id || !$group_id) { echo "<H1>" . $Language->getText('survey_index', 'g_id_err') . "</H1>"; } else { // select this survey from the database $sql = "select * from surveys where group_id = '" . db_ei($group_id) . "' AND survey_id='" . db_ei($survey_id) . "'"; $result = db_query($sql); if (!user_isloggedin() && !db_result($result, 0, "is_anonymous")) { /* Tell them they need to be logged in */ echo $Language->getText('survey_s', 'log_in', '/account/login.php?return_to=' . urlencode($REQUEST_URI)); survey_footer(array()); exit; } else { survey_utils_show_survey($group_id, $survey_id);
// // SourceForge: Breaking Down the Barriers to Open Source Development // Copyright 1999-2000 (c) The SourceForge Crew // http://sourceforge.net // // $Id: show_questions.php,v 1.4 2003/11/28 10:01:50 helix Exp $ require 'pre.php'; require '../survey_utils.php'; $is_admin_page = 'y'; if ($group_id) { if (!user_isloggedin() || !user_ismember($group_id, 'A')) { exit_permission_denied(); exit; } survey_header(array('title' => 'Survey Questions')); ?> <H2>Existing Questions</H2> <P> You may use any of these questions on your surveys. <P> <B><FONT COLOR="RED">NOTE: use these Question ID's when you create a new survey.</FONT></B> <P> <?php function ShowResultsEditQuestion($result) { global $group_id; $rows = db_numrows($result); $cols = db_numfields($result); echo "<h3>{$rows} Found</h3>";
<?php // // SourceForge: Breaking Down the Barriers to Open Source Development // Copyright 1999-2000 (c) The SourceForge Crew // http://sourceforge.net // // require_once 'pre.php'; require_once 'www/survey/survey_utils.php'; $is_admin_page = 'y'; survey_header(array('title' => $Language->getText('survey_admin_index', 'admin'), 'help' => 'survey.html#administering-surveys')); if (!user_isloggedin() || !user_ismember($group_id, 'A')) { echo '<H1>' . $Language->getText('survey_admin_add_question', 'perm_denied') . '</H1>'; survey_footer(array()); exit; } ?> <H2><?php echo $Language->getText('survey_admin_index', 'admin'); ?> </H2> <h3><A HREF="/survey/admin/add_survey.php?group_id=<?php echo $group_id; ?> "><?php echo $Language->getText('survey_admin_index', 'add_s'); ?> </A></h3> <p><?php
<?php // // SourceForge: Breaking Down the Barriers to Open Source Development // Copyright 1999-2000 (c) The SourceForge Crew // Copyright (c) Enalean, 2015. All Rights Reserved. // http://sourceforge.net // // require_once 'pre.php'; require_once 'common/survey/SurveySingleton.class.php'; require_once '../survey/survey_utils.php'; survey_header(array('title' => $Language->getText('survey_index', 's'), 'help' => 'survey.html')); if (!$group_id) { echo "<H1>" . $Language->getText('survey_index', 'g_id_err') . "</H1>"; } function ShowResultsGroupSurveys($result) { global $group_id, $Language; $survey = SurveySingleton::instance(); $purifier = Codendi_HTMLPurifier::instance(); $rows = db_numrows($result); $cols = db_numfields($result); $title_arr = array(); $title_arr[] = $Language->getText('survey_index', 's_id'); $title_arr[] = $Language->getText('survey_index', 's_tit'); echo html_build_list_table_top($title_arr); for ($j = 0; $j < $rows; $j++) { echo "<tr class=\"" . html_get_alt_row_color($j) . "\">\n"; echo "<TD><A HREF=\"survey.php?group_id={$group_id}&survey_id=" . db_result($result, $j, "survey_id") . "\">" . db_result($result, $j, "survey_id") . "</TD>"; printf("<TD>%s</TD>\n", $purifier->purify($survey->getSurveyTitle(db_result($result, $j, 'survey_title'))));
<?php // // SourceForge: Breaking Down the Barriers to Open Source Development // Copyright 1999-2000 (c) The SourceForge Crew // http://sourceforge.net // // $Id: survey_resp.php,v 1.2 2003/11/13 11:29:27 helix Exp $ require 'pre.php'; require '../survey/survey_utils.php'; survey_header(array('title' => 'Survey Complete')); if (!$survey_id || !$group_id) { /* Quit if params are not provided */ echo "<H1>Error - For some reason group_id and/or survey_id did not make it here</H1>"; survey_footer(array()); exit; } if (!user_isloggedin()) { /* Tell them they need to be logged in */ echo "<H1>You need to be logged in</H1>"; echo "Unfortunately, you have to be logged in to participate in surveys."; survey_footer(array()); exit; } ?> <H2>Survey - Complete</H2><P>
* but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with GForge; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ require_once '../../env.inc.php'; require_once $gfwww . 'include/pre.php'; require_once $gfwww . 'survey/survey_utils.php'; require_once $gfwww . 'survey/admin/survey_utils.php'; $is_admin_page = 'y'; $group_id = getIntFromRequest('group_id'); $survey_id = getIntFromRequest('survey_id'); survey_header(array('title' => _('Edit A Survey'))); if (!session_loggedin() || !user_ismember($group_id, 'A')) { echo "<h1>" . _('Permission denied') . "</h1>"; survey_footer(array()); exit; } if (getStringFromRequest('post_changes')) { $survey_title = $survey_title; $survey_questions = $survey_questions; $is_active = $is_active; if (!isset($survey_title) || $survey_title == "") { $feedback .= _('UPDATE FAILED: Survey Title Required'); } elseif (!isset($survey_questions) || $survey_questions == "") { $feedback .= _('UPDATE FAILED: Survey Questions Required'); } if (!isset($survey_id) || !isset($group_id) || $survey_id == "" || $group_id == "") {
// // SourceForge: Breaking Down the Barriers to Open Source Development // Copyright 1999-2000 (c) The SourceForge Crew // http://sourceforge.net // // $Id: index.php,v 1.4 2003/11/27 15:05:42 helix Exp $ require 'pre.php'; require '../survey_utils.php'; $is_admin_page = 'y'; if ($group_id) { if (!user_isloggedin() || !user_ismember($group_id, 'A')) { exit_permission_denied(); exit; } survey_header(array('title' => 'Survey Administration')); ?> <H2>Survey Administration</H2> <P> <A HREF="/survey/admin/add_survey.php?group_id=<?php echo $group_id; ?> ">Add Surveys</A><BR> <A HREF="/survey/admin/edit_survey.php?group_id=<?php echo $group_id; ?> ">Edit Existing Surveys</A><BR> <A HREF="/survey/admin/add_question.php?group_id=<?php echo $group_id; ?>
* GForge is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with GForge; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ require_once '../../env.inc.php'; require_once $gfwww . 'include/pre.php'; require_once $gfwww . 'survey/survey_utils.php'; $is_admin_page = 'y'; $group_id = getIntFromRequest('group_id'); $survey_id = getIntFromRequest('survey_id'); survey_header(array('title' => _('Add A Question'))); if (!session_loggedin() || !user_ismember($group_id, 'A')) { echo "<h1>" . _('Permission denied') . "</h1>"; survey_footer(array()); exit; } if (getStringFromRequest('post_changes')) { $question = getStringFromRequest('question'); $question_type = getStringFromRequest('question_type'); $sql = "INSERT INTO survey_questions (group_id,question,question_type) VALUES ({$group_id},'" . htmlspecialchars($question) . "',{$question_type})"; $result = db_query($sql); if ($result) { $feedback .= _('Question Added'); } else { $feedback .= _('Error inserting question'); }
<?php // // SourceForge: Breaking Down the Barriers to Open Source Development // Copyright 1999-2000 (c) The SourceForge Crew // http://sourceforge.net // // $Id: survey.php,v 1.2 2003/11/13 11:29:27 helix Exp $ require 'pre.php'; require 'vote_function.php'; require '../survey/survey_utils.php'; // Check to make sure they're logged in. if (!user_isloggedin()) { exit_not_logged_in(); } survey_header(array('title' => 'Survey')); if (!$survey_id || !$group_id) { echo "<H1>For some reason, the Group ID or Survey ID did not make it to this page</H1>"; } else { show_survey($group_id, $survey_id); } survey_footer(array());
require_once 'pre.php'; require_once '../survey_data.php'; require_once '../survey_utils.php'; require_once 'common/include/HTTPRequest.class.php'; $request =& HTTPRequest::instance(); $is_admin_page = 'y'; if (!user_isloggedin() || !user_ismember($group_id, 'A')) { survey_header(array('title' => $Language->getText('survey_admin_add_survey', 'add_s'), 'help' => 'AdministeringSurveys.html#CreatingorEditingaSurvey')); echo '<H1>' . $Language->getText('survey_admin_add_question', 'perm_denied') . '</H1>'; survey_footer(array()); exit; } if ($request->exist('post_changes')) { survey_data_survey_create($group_id, $survey_title, $survey_questions, $is_active, $is_anonymous); } survey_header(array('title' => $Language->getText('survey_admin_add_survey', 'add_s'), 'help' => 'AdministeringSurveys.html#CreatingorEditingaSurvey')); ?> <SCRIPT LANGUAGE="JavaScript"> <!-- var timerID2 = null; function show_questions() { newWindow = open("","occursDialog","height=600,width=700,scrollbars=yes,resizable=yes"); newWindow.location=('show_questions.php?group_id=<?php echo $group_id; ?> '); } // --> </script>
<?php // // SourceForge: Breaking Down the Barriers to Open Source Development // Copyright 1999-2000 (c) The SourceForge Crew // Copyright (c) Enalean, 2015. All Rights Reserved. // http://sourceforge.net // // require_once 'pre.php'; require_once 'www/survey/survey_utils.php'; $is_admin_page = 'y'; survey_header(array('title' => $Language->getText('survey_admin_show_r_individual', 'res'), 'help' => 'survey.html#reviewing-survey-results')); if (!user_isloggedin() || !user_ismember($group_id, 'A')) { echo '<H1>' . $Language->getText('survey_admin_add_question', 'perm_denied') . '</H1>'; survey_footer(array()); exit; } ?> <FORM ACTION="NONE"> <?php /* Select this survey from the database */ $sql = "SELECT * FROM surveys WHERE survey_id='" . db_ei($survey_id) . "' AND group_id='" . db_ei($group_id) . "'"; $result = db_query($sql); $purifier = Codendi_HTMLPurifier::instance(); echo "\n<H2>" . $purifier->purify(db_result($result, 0, "survey_title")) . "</H2><P>"; /* Select the questions for this survey
* but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with GForge; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ require_once '../../env.inc.php'; require_once $gfwww . 'include/pre.php'; require_once $gfwww . 'include/HTML_Graphs.php'; require_once $gfwww . 'survey/survey_utils.php'; $is_admin_page = 'y'; $group_id = getIntFromRequest('group_id'); $survey_id = getIntFromRequest('survey_id'); survey_header(array('title' => _('Survey Aggregate Results'))); if (!session_loggedin() || !user_ismember($group_id, 'A')) { echo "<h1>" . _('Permission denied') . "</h1>"; survey_footer(array()); exit; } //$result=db_query($sql); /* Select this survey from the database */ $sql = "SELECT * FROM surveys WHERE survey_id='{$survey_id}' AND group_id='{$group_id}'"; $result = db_query($sql); echo "<h2>" . db_result($result, 0, "survey_title") . "</h2><p> </p>"; /* echo "<h3><a href=\"show_results_csv.php?survey_id=$survey_id&group_id=$group_id\">.CSV File</a></h3><p>"; */
require_once 'pre.php'; require_once '../survey_data.php'; require_once '../survey_utils.php'; require_once 'common/include/HTTPRequest.class.php'; $request =& HTTPRequest::instance(); $is_admin_page = 'y'; if (!user_isloggedin() || !user_ismember($group_id, 'A')) { survey_header(array('title' => $Language->getText('survey_admin_add_survey', 'add_s'), 'help' => 'survey.html#creating-or-editing-a-survey')); echo '<H1>' . $Language->getText('survey_admin_add_question', 'perm_denied') . '</H1>'; survey_footer(array()); exit; } if ($request->exist('post_changes')) { survey_data_survey_create($group_id, $survey_title, $survey_questions, $is_active, $is_anonymous); } survey_header(array('title' => $Language->getText('survey_admin_add_survey', 'add_s'), 'help' => 'survey.html#creating-or-editing-a-survey')); ?> <SCRIPT LANGUAGE="JavaScript"> <!-- var timerID2 = null; function show_questions() { newWindow = open("","occursDialog","height=600,width=700,scrollbars=yes,resizable=yes"); newWindow.location=('show_questions.php?group_id=<?php echo $group_id; ?> '); } // --> </script>
* but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with GForge; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ require_once '../../env.inc.php'; require_once $gfwww . 'include/pre.php'; require_once $gfwww . 'survey/survey_utils.php'; $is_admin_page = 'y'; $group_id = getIntFromRequest('group_id'); $survey_id = getIntFromRequest('survey_id'); $customer_id = getIntFromRequest('customer_id'); survey_header(array('title' => _('Results'))); if (!session_loggedin() || !user_ismember($group_id, 'A')) { echo "<h1>" . _('Permission denied') . "</h1>"; survey_footer(array()); exit; } ?> <form action="none"> <?php /* Select this survey from the database */ $sql = "SELECT * FROM surveys WHERE survey_id='{$survey_id}' AND group_id='{$group_id}'"; $result = db_query($sql); echo "\n<h2>" . db_result($result, 0, "survey_title") . "</h2><p> </p>";
<?php // // SourceForge: Breaking Down the Barriers to Open Source Development // Copyright 1999-2000 (c) The SourceForge Crew // http://sourceforge.net // // Copyright (c) Xerox Corporation, Codendi Team, 2001-2009. All rights reserved // // $is_admin_page = 'y'; survey_header(array('title' => $Language->getText('survey_admin_update_survey', 'edit_a_s'))); if (!user_isloggedin() || !user_ismember($group_id, 'A')) { echo '<H1>' . $Language->getText('survey_admin_add_question', 'perm_denied') . '</H1>'; survey_footer(array()); exit; } /* Get this survey out of the DB */ if ($survey_id) { $sql = "SELECT * FROM surveys WHERE survey_id='{$survey_id}' AND group_id='{$group_id}'"; $result = db_query($sql); $survey_title = db_result($result, 0, "survey_title"); $survey_questions = db_result($result, 0, "survey_questions"); $is_active = db_result($result, 0, "is_active"); $is_anonymous = db_result($result, 0, "is_anonymous"); } ?> <SCRIPT LANGUAGE="JavaScript"> <!--