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

📄 testpaperset.asp

📁 在线考试系统
💻 ASP
字号:
<?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>
<script language="JavaScript">
function checkForm(){
if(form1.TestPaperName.value==""){
	alert("请输入考试名称!");
	form1.TestPaperName.focus();
	return false;
}
window.close();
return true;
}
</script>
</head>

<body>
<div align="center">生成试卷设置</div>
<form name="form1" id="form1" method="post" action="TestPaperPreviw.asp?id=<%=request.QueryString("id")%>">
    
  <table width="216" border="1" align="center" cellpadding="0" cellspacing="0" bordercolorlight="#999999"  bordercolordark="#CCCCCC">
    <tr> 
      <td width="66" align="right" bgcolor="#F3F3F3">试卷名称:</td>
      <td width="144"><input name="TestPaperName" type="text" id="TestPaperName"  /></td>
    </tr>
    <tr> 
      <td align="right" bgcolor="#F3F3F3">所属类别:</td>
      <td><select name="Category" id="Category">
	  <%
	  set rst=conn.execute("select * from category")
	  while not rst.eof
	  response.write("<option value='"&rst("id")&"'>"&rst("name")&"</option>")
	  rst.movenext
	  wend
	  
	  set rst=conn.execute("select length,score from TestPaperTemplet where id="&request.QueryString("id"))
	  %>
        </select></td>
    </tr>
    <tr> 
      <td align="right" bgcolor="#F3F3F3">考试时长:</td>
      <td><input name="Length" type="text" id="Length"  value="<%=rst("length")%>"/></td>
    </tr>
    <tr> 
      <td align="right" bgcolor="#F3F3F3">总分:</td>
      <td><input name="Score" type="text" id="Score"  value="<%=rst("score")%>"/></td>
    </tr>
    <tr align="center"> 
      <td colspan="2"> 
        <input type="submit" name="Submit" value="提交" onclick="return checkForm();"/>&nbsp;
        <input type="reset" name="Submit2" value="重置" /></td>
    </tr>
  </table>
  <%
    rst.close()
  conn.close()
  set rst=nothing
  set conn=nothing
  %>
  </form>
</body>
</html>

⌨️ 快捷键说明

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