本文整理汇总了PHP中survey_header函数的典型用法代码示例。如果您正苦于以下问题:PHP survey_header函数的具体用法?PHP survey_header怎么用?PHP survey_header使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了survey_header函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: survey_header
<?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");
开发者ID:nterray,项目名称:tuleap,代码行数:31,代码来源:show_results_individual.php
示例2: Valid_UInt
// 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);
开发者ID:nterray,项目名称:tuleap,代码行数:31,代码来源:survey.php
示例3: survey_header
<?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;
}
开发者ID:nterray,项目名称:tuleap,代码行数:31,代码来源:survey_resp.php
示例4: db_query
$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
开发者ID:nterray,项目名称:tuleap,代码行数:31,代码来源:confirm_update.php
示例5: exit_permission_denied
//
// 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 {
开发者ID:BackupTheBerlios,项目名称:berlios,代码行数:30,代码来源:edit_question.php
示例6: exit_permission_denied
//
// 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++) {
开发者ID:BackupTheBerlios,项目名称:berlios,代码行数:30,代码来源:show_results.php
示例7: survey_header
<?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;
开发者ID:pombredanne,项目名称:tuleap,代码行数:31,代码来源:update_question.php
示例8: survey_header
<?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());
开发者ID:nterray,项目名称:tuleap,代码行数:25,代码来源:browse_question.php
示例9: survey_header
<?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());
开发者ID:pombredanne,项目名称:tuleap,代码行数:29,代码来源:show_results_comments.php
示例10: getIntFromRequest
* 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');
开发者ID:neymanna,项目名称:fusionforge,代码行数:31,代码来源:add_survey.php
示例11: survey_header
<?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());
开发者ID:nterray,项目名称:tuleap,代码行数:27,代码来源:show_results_comments.php
示例12: exit_permission_denied
//
// 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>";
开发者ID:BackupTheBerlios,项目名称:berlios,代码行数:30,代码来源:show_questions.php
示例13: survey_header
<?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
开发者ID:pombredanne,项目名称:tuleap,代码行数:31,代码来源:index.php
示例14: survey_header
<?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'))));
开发者ID:pombredanne,项目名称:tuleap,代码行数:31,代码来源:index.php
示例15: survey_header
<?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>
开发者ID:BackupTheBerlios,项目名称:berlios,代码行数:31,代码来源:survey_resp.php
示例16: getIntFromRequest
* 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 == "") {
开发者ID:neymanna,项目名称:fusionforge,代码行数:31,代码来源:edit_survey.php
示例17: exit_permission_denied
//
// 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;
?>
开发者ID:BackupTheBerlios,项目名称:berlios,代码行数:30,代码来源:index.php
示例18: getIntFromRequest
* 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');
}
开发者ID:neymanna,项目名称:fusionforge,代码行数:31,代码来源:add_question.php
示例19: exit_not_logged_in
<?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());
开发者ID:BackupTheBerlios,项目名称:berlios,代码行数:22,代码来源:survey.php
示例20: survey_header
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>
开发者ID:nterray,项目名称:tuleap,代码行数:31,代码来源:add_survey.php
注:本文中的survey_header函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论