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

📄 tkpanduanmodify.asp

📁 在线考试系统
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<SCRIPT language="JavaScript">
function checkform(){
	if(document.form1.question.value==""){
		alert("请添写问题!");
		document.form1.question.focus();		
		return false;
	}
	if(document.form1.answer.value==""){
	alert("请添写答案 !");
	return false;
	}
	return true;
}
</SCRIPT>
<link href="main.css" rel="stylesheet" type="text/css">
<!---#include file="conn.asp"--->
<%
categoryid=request.QueryString("categoryid")
categoryname=request.querystring("categoryname")
id=request.QueryString("id")
sql="select * from TKPanDuan where id="&id
set rst=conn.execute(sql)
%>
</head>

<body>
<h3 align="center"><%=categoryname%> 修改判断题</h3>
<form name=form1 action="TKPanDuanUpdate.asp?oper=modify&categoryname=<%=categoryname%>&id=<%=id%>&categoryid=<%=categoryid%>" method="post" onSubmit="javascript:return confirm('确认提交吗?');">
  <table width="650" border="1" align="center" cellpadding="2" cellspacing="2" bordercolor="#999999" >
    <tr align="center"> 
      <td colspan="3" align="center"><FONT color="#FF0000">注: * 为必添项</FONT></td>
    </tr>
    <tr align="center"> 
      <td width="44" align="center" bgcolor="#F3F3F3"> *问题:</td>
      <td colspan="2" align="center"> <TEXTAREA name="question" cols="80" rows="5" class="line" ><%=rst("question")%></TEXTAREA> 
      </td>
    </tr>
    <tr align="center"> 
      <td align="center" valign="middle" bgcolor="#F3F3F3"> *答案: <br> </td>
      <td align="center"><SELECT name="answer" id="answer">
		  
          <OPTION value="1" <%if(cint(rst("answer"))=1)then response.Write("selected")%>>对</OPTION>
          <OPTION value="0" <%if(cint(rst("answer"))=0)then response.Write("selected")%>>错</OPTION>
        </SELECT> </td>
      <td width="240" align="center"> <INPUT type="submit" value="提交" name="B12" onClick="return checkform();"> 
        &nbsp; <INPUT type="reset" value="重置" name="B22"></td>
    </tr>
    <tr align="center"> 
      <td colspan="3">&nbsp; </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 + -