testpapertempletinfo.asp

来自「在线考试系统」· ASP 代码 · 共 68 行

ASP
68
字号
<?xml version="1.0" encoding="gb2312"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%
 '防止用户浏览器缓存页面
 response.buffer=true              '设置web服务器使用缓冲页
 response.expiresabsolute=now()-1  '指定页面的过期时间(单间日期时间)
 response.expires=0  
%>
<!---#include file="conn.asp"--->
<link href="main.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>查看试卷信息</title>
<%
oper=request.QueryString("oper")
id=request.QueryString("id")
if(Ucase(oper)="TEMPLET") then
set rst=conn.execute("select * from TestPaperTemplet where id="&id)
str="模板名称:"&rst("TestPaperTempletName")
else 
set rst=conn.execute("select * from TestPaper where id="&id)
str="试卷名称:"&rst("TestPaperName")
end if
%>
</head>

<body>
<div align="center"><%=str%> </div><br>
<table width="200" border="1" align="center" cellpadding="0" cellspacing="0" bordercolorlight="#999999"  bordercolordark="#CCCCCC">
  <tr align="center"> 
    <td width="84" bgcolor="#F3F3F3">填空题</td>
    <td width="110"><%=rst("TianKongNum")&"道,每题"&rst("TianKongScore")&"分"%></td>
  </tr>
  <tr align="center"> 
    <td bgcolor="#F3F3F3">判断题</td>
    <td><%=rst("PanDuanNum")&"道,每题"&rst("PanDuanScore")&"分"%></td>
  </tr>
  <tr align="center"> 
    <td bgcolor="#F3F3F3">单选题</td>
    <td><%=rst("DanXuanNum")&"道,每题"&rst("DanXuanScore")&"分"%></td>
  </tr>
  <tr align="center"> 
    <td bgcolor="#F3F3F3">简答题</td>
    <td><%=rst("JianDaNum")&"道,每题"&rst("JianDaScore")&"分"%></td>
  </tr>
  <tr align="center"> 
    <td bgcolor="#F3F3F3">试卷总分</td>
    <td><%=rst("Score")&"分"%></td>
  </tr>
  <tr align="center"> 
    <td bgcolor="#F3F3F3">考试时长</td>
    <td><%=rst("Length")&"分钟"%></td>
	<%
	  rst.close()
  conn.close()
  set rst=nothing
  set conn=nothing
	%>
  </tr>
</table>
<br>
<div align="center" ><font color="#FF0000"><a href="#" onclick="window.close();">关闭窗口</a></font></div>

</body>
</html>

⌨️ 快捷键说明

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