⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 previewquestion.php

📁 泛微协同办公系统标准版E-office V5.5的源代码内含泛微办公系统V5.5自动注册文件。
💻 PHP
字号:
<?php

require( "inc/init.php" );
require( "inc/mysql.php" );
require( "inc/functions.php" );
require( "inc/pfunctions.php" );
require( "inc/qfunctions.php" );
$varnames = array( "sid", "qc", "qid" );
setvars( $varnames );
if ( !$sid || !$qid || !$qc )
{
	header( "Location: error.php" );
	exit( );
}
if ( !isadmin( ) )
{
	header( "Location: admin/index.php" );
	exit( );
}
$mqsurvey = mysql_query( "select * from phpQSurvey where SID = \"".protectmysql( $sid )."\"" );
if ( !( $masurvey = mysql_fetch_array( $mqsurvey ) ) )
{
	header( "Location: error.php" );
	exit( );
}
$mqquestion = mysql_query( "select * from phpQQuestion where SID = \"".protectmysql( $sid )."\" and QID = \"".protectmysql( $qid )."\"" );
if ( !( $maquestion = mysql_fetch_array( $mqquestion ) ) )
{
	header( "Location: error.php" );
	exit( );
}
setlanguage( $masurvey['Language'] );
$question .= printquestion( $maquestion, $masurvey );
$question .= printanswers( $maquestion, $masurvey, 0 );
$question .= printclose( );
$contents .= createsurvey( $sid, 0, $masurvey['Width'], $question, false );
createpage( $sid, $masurvey['Name'], $contents, false, "" );
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -