admincreatepaperedit2.asp

来自「网络考试系统最终备份」· ASP 代码 · 共 69 行

ASP
69
字号
<!--#include file="conn.inc"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>

<body>

<script language="javascript">
function submitit(myform)
{ var bool=true;
  if (myform.newquestion.value=="")
   {  alert("请选择新的试题!")
      myform.newquestion.focus();
      bool=false;
   }
  return bool;
}
</script>

<table width="942" border="1">
  <tr>
    <td width="87"><img src="images/2.jpg" width="80" height="30"></td>
    <td width="839">&nbsp;</td>
  </tr>
</table>
<form name="form1" method="post" action="admincreatepaperedit3.asp" onSubmit="return submitit();>
  <table width="944" border="1">
    <tr>
      <td width="934"><div align="center"><strong>以下为符合要求的试题,请选择</strong></div></td>
    </tr>
    <tr>
      <td height="112">
<%
vquestionID=session("v_QID")
vpaperID=session("v_PID")
vsubid=session("v_SID")
vquetype=session("v_QType")
vdiff=session("v_DIFF")
vknowid=request("newknowledge")
sql="select * from question_database where Sub_ID="&vsubid&" and DiffRate="&vdiff&" and Que_Type="&vquetype&" and Knowledge_ID="&vknowid&""
set rs=server.CreateObject("adodb.recordset")
rs.open sql,conn,3,2
do while not rs.eof
%>	  
	  
	<input name="newquestion" type="radio" value="<%=rs("QueID")%>"><%=rs("Question")%>&nbsp;<br>  
	  
	  
<%
rs.movenext
loop
rs.close
%>	  
	  
	  
	  &nbsp;</td>
    </tr>
    <tr>
      <td height="33"><div align="right">
        <input type="submit" name="Submit" value="下一步">
      </div></td>
    </tr>
  </table>
</form>
</body>
</html>

⌨️ 快捷键说明

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