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

📄 user_list.php

📁 通达网络办公 - Office Anywhere 2008 增强版100%源码(3.4.081216) 内含 通达OA2008增強版接近完美破解补丁20081216集 及 最新通达OA2008ADV(
💻 PHP
字号:
<?php

include_once( "inc/auth.php" );
include_once( "inc/utility_all.php" );
include_once( "inc/chinese_date.php" );
echo "\r\n<html>\r\n<head>\r\n<title></title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n<style>\r\n</style>\r\n\r\n<script language=\"JavaScript\">\r\n<!--\r\n \r\nif (window.Event) \r\n  document.captureEvents(Event.MOUSEUP); \r\n \r\nfunction nocontextmenu() \r\n{\r\n event.cancelBubble = true\r\n event.returnValue = false;\r\n \r\n return false;\r\n}\r\n \r\nfunction norightclick(e) \r\n{\r\n if (window.Event) \r\n {\r\n  if (e.which == 2 || e.which == 3)\r\n   return false;\r\n }\r\n else\r\n  if (event.button == 2 || event.button == 3)\r\n  {\r\n   event.cancelBubble = true\r\n   event.returnValue = false;\r\n   return false;\r\n  }\r\n \r\n}\r\n \r\ndocument.oncontextmenu = nocontextmenu;  // for IE5+\r\ndocument.onmousedown = norightclick;  // for all others\r\n//-->\r\n\r\n\r\n";
list( $CUR_YEAR, $CUR_MON, $CUR_DAY, $CUR_HOUR, $CUR_MINITE, $CUR_SECOND ) = datetimeex( hexdec( dechex( time( ) ) ) );
$STARTTIME1 = "{$CUR_YEAR},{$CUR_MON},{$CUR_DAY},{$CUR_HOUR},{$CUR_MINITE},{$CUR_SECOND}";
list( $CUR_YEAR, $CUR_MON, $CUR_DAY, $CUR_HOUR, $CUR_MINITE, $CUR_SECOND ) = datetimeex( hexdec( dechex( strtotime( $ENDTIME ) ) ) );
$ENDTIME1 = "{$CUR_YEAR},{$CUR_MON},{$CUR_DAY},{$CUR_HOUR},{$CUR_MINITE},{$CUR_SECOND}";
echo "var OA_TIME = new Date(";
echo $STARTTIME1;
echo ");\t\r\nvar OA_TIME1 = new Date(";
echo $ENDTIME1;
echo ");\r\nfunction timeview()\r\n{\r\n  timestr=OA_TIME.toLocaleString();\r\n  timestr1=OA_TIME1.toLocaleString();\r\n  timestr=timestr.substr(timestr.indexOf(\":\")-2);\r\n  timestr1=timestr1.substr(timestr1.indexOf(\":\")-2);\r\n  OA_TIME.setSeconds(OA_TIME.getSeconds()+1);\r\n  if(timestr==timestr1)\r\n  {\r\n  \tauto_exit();\r\n  }\r\n  window.setTimeout( \"timeview()\", 1000 );\r\n}\r\n</script>\r\n</head>\r\n";
if ( $PAPER_ID != "" )
{
	$query = "SELECT * from EXAM_PAPER WHERE PAPER_ID=".$PAPER_ID;
	$cursor = exequery( $connection, $query );
	$QUESTIONS_COUNT = 0;
	if ( $ROW = mysql_fetch_array( $cursor ) )
	{
		$QUESTIONS_COUNT = $ROW['QUESTIONS_COUNT'];
		$QUESTIONS_LIST = $ROW['QUESTIONS_LIST'];
	}
}
$PER_PAGE = 5;
$PAGE_COUNT = ceil( $QUESTIONS_COUNT / $PER_PAGE );
if ( $CUR_PAGE <= 0 || $CUR_PAGE == "" )
{
	$CUR_PAGE = 1;
}
if ( $PAGE_COUNT < $CUR_PAGE )
{
	$CUR_PAGE = $PAGE_COUNT;
}
echo "<body class=\"bodycolor\" topmargin=\"1\" leftmargin=\"0\" ";
if ( $ACTION != "REVIEW" )
{
	echo "onLoad='timeview()'";
}
echo ">\r\n<form name=form1 method=\"post\">\r\n<table border=\"0\" cellspacing=\"1\" width=\"100%\" class=\"small\" cellpadding=\"3\">\r\n<tr class=\"TableHeader\">\r\n  <td align=\"center\"><b>考试开始时间:</b></td>\r\n</tr>\r\n<tr height=\"30\" bgcolor=\"#FFFFFF\">\r\n  <td align=\"center\"><b><font color=\"#FF0000\">";
echo $STARTTIME;
echo "</font></b></td>\r\n </tr>\r\n<tr class=\"TableHeader\">\r\n  <td align=\"center\"><b>考试结束时间:</b></td>\r\n</tr>\r\n<tr height=\"30\" bgcolor=\"#FFFFFF\">\r\n  <td align=\"center\"><b><font color=\"#FF0000\">";
echo $ENDTIME;
echo "</font></b></td>\r\n</tr>\r\n<br>\r\n<tr class=\"TableHeader\">\r\n    <td align=\"center\" valign=\"bottom\" class=\"small1\">\r\n    共<span class=\"big4\">&nbsp;";
echo $PAGE_COUNT;
echo "</span>&nbsp;页&nbsp;\r\n    共<span class=\"big4\">&nbsp;";
echo $QUESTIONS_COUNT;
echo "</span>&nbsp;题</td>\r\n</tr>\r\n  <tr align=\"center\" valign=\"bottom\" class=\"TableControl\">\r\n    <td align=\"center\" valign=\"bottom\" class=\"small1\">\r\n       ";
if ( 1 <= $CUR_PAGE - 1 )
{
	echo "       <input type=\"button\" class=\"SmallInput\" value=\" 第一页↑ \" onClick=\"turnpage(1)\">\r\n       ";
}
else
{
	echo "       <input type=\"button\" class=\"SmallInput\" value=\" 第一页↑ \" disabled>\r\n       ";
}
echo "    </td>   \r\n  </tr>\r\n  \r\n  <tr align=\"center\" valign=\"bottom\" class=\"TableControl\">\r\n   <td>\r\n";
if ( 1 <= $CUR_PAGE - 1 )
{
	echo "       <input type=\"button\" class=\"SmallInput\" value=\" 上一页↑ \" onClick=\"turnpage(";
	echo $CUR_PAGE - 1;
	echo ")\">\r\n";
}
else
{
	echo "       <input type=\"button\" class=\"SmallInput\" value=\" 上一页↑ \" disabled>\r\n";
}
echo "\t</td>   \r\n</tr>\r\n<tr align=\"center\" valign=\"bottom\" class=\"TableControl\">\r\n     <td>\r\n";
if ( $CUR_PAGE + 1 <= $PAGE_COUNT )
{
	echo "       <input type=\"button\" class=\"SmallInput\" value=\" 下一页↓ \" onClick=\"turnpage(";
	echo $CUR_PAGE + 1;
	echo ")\">\r\n";
}
else
{
	echo "       <input type=\"button\" class=\"SmallInput\" value=\" 下一页↓ \" disabled>\r\n";
}
echo "      \r\n    </td>\r\n    </tr>\r\n  <tr align=\"center\" valign=\"bottom\" class=\"TableControl\">\r\n   <td>\r\n";
if ( $CUR_PAGE + 1 <= $PAGE_COUNT )
{
	echo "       <input type=\"button\" class=\"SmallInput\" value=\" 末一页↓ \" onClick=\"turnpage(";
	echo $PAGE_COUNT;
	echo ")\">\r\n";
}
else
{
	echo "\t   <input type=\"button\" class=\"SmallInput\" value=\" 末一页↓ \" disabled>\r\n";
}
echo "</td>   \r\n  </tr>\r\n<tr align=\"center\" valign=\"bottom\" class=\"TableControl\">\r\n";
if ( $ACTION != "REVIEW" )
{
	echo "  \r\n  <td><input type=\"button\" class=\"SmallInput\" value=\"  交&nbsp;&nbsp;卷  \" onClick=\"func_exit()\"></td>\r\n";
}
else
{
	echo "\t<td><input type=\"button\" class=\"SmallInput\" value=\"  返&nbsp;&nbsp;回  \" onClick=\"parent.location='index.php'\"></td>\r\n";
}
echo "   \r\n</tr>\r\n<tr align=\"center\" valign=\"bottom\" class=\"TableControl\">\r\n<td>\r\n<input type=\"hidden\" name=\"FLOW_ID\" value=\"";
echo $FLOW_ID;
echo "\">\r\n<input type=\"hidden\" name=\"PAPER_ID\" value=\"";
echo $PAPER_ID;
echo "\">\r\n<input type=\"hidden\" name=\"STARTTIME\" value=\"";
echo $STARTTIME;
echo "\">\r\n<input type=\"hidden\" name=\"ENDTIME\" value=\"";
echo $ENDTIME;
echo "\">\r\n<input type=\"hidden\" name=\"ACTION\" value=\"";
echo $ACTION;
echo "\">\r\n</td>\r\n</tr>\r\n</table>\r\n</form>\r\n</body>\r\n</html>\r\n\r\n<script>\r\n\r\nfunction turnpage(curpage)\r\n{\r\n document.form1.action=\"user_list.php?CUR_PAGE=\"+curpage;\r\n document.form1.submit();\r\n\r\n parent.hrms.form1.submit();\r\n parent.hrms.location='exam.php?FLOW_ID=";
echo $FLOW_ID;
echo "&PAPER_ID=";
echo $PAPER_ID;
echo "&ACTION=";
echo $ACTION;
echo "&CUR_PAGE='+curpage;\r\n}\r\n\r\nfunction auto_exit()\r\n{\r\n  alert('考试时间已到,考试结束!');\r\n  URL=\"index.php\";\r\n  parent.hrms.form1.submit();\r\n  parent.location=URL;\r\n}\r\n\r\nfunction func_exit()\r\n{\r\n  msg='确认要交卷吗?题将不能修改!';\r\n if(window.confirm(msg))\r\n {\r\n  URL=\"index.php\";\r\n  parent.hrms.form1.submit();\r\n  parent.location=URL;\r\n }\r\n //parent.hrms.location='exam.php?FLOW_ID=";
echo $FLOW_ID;
echo "&PAPER_ID=";
echo $PAPER_ID;
echo "&CUR_PAGE='+CUR_PAGE;\r\n}\r\n</script>";
?>

⌨️ 快捷键说明

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