previewquestion.php
来自「泛微协同办公系统标准版E-office V5.5的源代码内含泛微办公系统V5.5」· PHP 代码 · 共 39 行
PHP
39 行
<?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 + =
减小字号Ctrl + -
显示快捷键?