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

📄 viewoption.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/ofunctions.php" );
$varnames = array( "sid", "qid", "oid", "tp", "st", "cc", "fa" );
setvars( $varnames );
$mqsurvey = mysql_query( "select * from phpQSurvey where SID = \"".protectmysql( $sid )."\"" );
if ( !( $masurvey = mysql_fetch_array( $mqsurvey ) ) )
{
	header( "Location: error.php" );
	exit( );
}
$admin = isadmin( ) ? true : false;
if ( !$admin )
{
	if ( !$masurvey['SurveyResults'] )
	{
		header( "Location: admin/index.php" );
		exit( );
	}
	if ( $masurvey['Active'] == "n" )
	{
		header( "Location: fillsurvey.php?sid=".protecthtml( $sid ) );
		exit( );
	}
}
else if ( !$fa )
{
	$admin = false;
}
if ( $admin )
{
	setlanguage( "", "ADMIN" );
}
else
{
	setlanguage( $masurvey['Language'] );
}
$relocate = false;
$relocate = $sid ? false : true;
$relocate = $qid && ( $tp == "t" || $tp == "o" && $oid ) ? $relocate : true;
if ( $relocate )
{
	header( "Location: error.php" );
	exit( );
}
$contents = grabentries( $sid, $qid, $oid, $masurvey, $tp, $st, $cc, $admin );
if ( !$admin )
{
	createpage( "stats", $masurvey, $contents, $admin, "jsstats.php" );
	exit( );
}
else
{
	$templatedata = join( "", file( "admin/poptemplate.html" ) );
	$templatedata = str_replace( "HREF=\"template.css\"", "HREF=\"admin/template.css\"", $templatedata );
	$templatedata = str_replace( "::SURVEYNAME::", $phpQlang['AdminTitle']." :: ".$phpQlang['TextfieldResults'], $templatedata );
	$templatedata = str_replace( "::CHARSET::", $phpQlang['CHARSET'], $templatedata );
	$templatedata = str_replace( "::CONTENT::", $contents, $templatedata );
	echo $templatedata;
}
?>

⌨️ 快捷键说明

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