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

📄 edit_tm.asp

📁 在线考试系统源码实现远程判卷
💻 ASP
字号:
<!--#include file="inc/open.asp" -->
<%
  if session("zzteacher")=true then
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>修改试题</title>
<!--#include file="inc/css.css" -->
</head>

<body>
<!--#include file="top.asp" -->
<!--#include file="menu.asp" -->
<%
   chang_id=request("edit_id")
   if chang_id="" then
       response.redirect("test_base.asp")
   end if
  str="select * from test_tm where id="&chang_id&""
  set rs=conn.execute(str)
%>
<table width="770" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#ff99cc" bgcolor="#edebeb">
  <tr>
    <td><table width="500" height="300" border="0" align="center" cellpadding="0" cellspacing="0" background="images/mid_03.gif">
        <tr> 
          <td height="4" valign="top" class="unnamed4">  </td>
        </tr>
        <tr>
          <td height="20" valign="middle" class="unnamed14"><div align="center">修 
              改 试 题</div></td>
        </tr>
        <tr> 
          <td height="6" valign="middle" class="unnamed14"> 
            <div align="center" class="unnamed4"> </div></td>
        </tr>
        <tr> 
          <td valign="top"><form name="form1" method="post" action=chang_tm.asp?id=<%=chang_id%>>
              <table width="449" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr> 
                  <td width="20%" valign="top" class="unnamed12"> <div align="right">题目内容:</div></td>
                  <td width="80%"><textarea name="ch_tm_text" cols="45" rows="5" id="ch_tm_text"><%=rs("tm_text")%></textarea></td>
                </tr>
                <tr> 
                  <td width="20%" class="unnamed12"><div align="right">图片文件名:</div></td>
                  <td width="80%"><input name="ch_img_name" type="text" id="ch_img_name" value="<%=rs("img_name")%>"></td>
                </tr>
                <tr> 
                  <td width="20%" class="unnamed12"> <div align="right">答案A:</div></td>
                  <td width="80%"><input name="ch_da_a" type="text" id="ch_da_a" value="<%=rs("da_a")%>" size="45"></td>
                </tr>
                <tr> 
                  <td width="20%" class="unnamed12"> <div align="right">答案B:</div></td>
                  <td width="80%"><input name="ch_da_b" type="text" id="ch_da_b" value="<%=rs("da_b")%>" size="45"></td>
                </tr>
                <tr> 
                  <td width="20%" class="unnamed12"> <div align="right">答案C:</div></td>
                  <td width="80%"><input name="ch_da_c" type="text" id="ch_da_c" value="<%=rs("da_c")%>" size="45"></td>
                </tr>
                <tr> 
                  <td width="20%" class="unnamed12"> <div align="right">答案D:</div></td>
                  <td width="80%"><input name="ch_da_d" type="text" id="ch_da_d" value="<%=rs("da_d")%>" size="45"></td>
                </tr>
                <tr> 
                  <td><div align="right" class="unnamed12">正确答案:</div></td>
                  <td class="unnamed12">   
<%
   daed=rs("da")
%>
                    <input name="ch_da_OK" type="radio" value="A"<%if daed="A" then%>checked<%end if%>>
                    A; 
                    <input type="radio" name="ch_da_OK" value="B"<%if daed="B" then%>checked<%end if%>>
                    B; 
                    <input type="radio" name="ch_da_OK" value="C"<%if daed="C" then%>checked<%end if%>>
                    C; 
                    <input type="radio" name="ch_da_OK" value="D"<%if daed="D" then%>checked<%end if%>>
                    D。</td>
                </tr>
                <tr> 
                  <td colspan="2"><div align="center">
				      <input type="button" name="Submit" value="返回" onclick="javascript:history.go(-1)">
                        
                      <input type="submit" name="Submit" value="修改">
                    </div></td>
                </tr>
              </table>
            </form></td>
        </tr>
      </table></td>
  </tr>
</table>
<!--#include file="inc/bottom.inc" -->

</body>
</html>
<%
  else
      response.redirect("index.asp")
  end if
%>
<% conn.close%>

⌨️ 快捷键说明

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