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

📄 type_2_add.jsp

📁 这个是我同学做的
💻 JSP
字号:
<script language=javascript>
function check()
{
if (document.form1.T1.value=="")
{alert("请录入题干!");
document.form1.T1.focus();
return false;}
if (document.form1.Txt11.value=="")
{alert("请录入A选项内容!");
document.form1.Txt11.focus();
return false;}
if (document.form1.Txt21.value=="")
{alert("请录入B选项内容!");
document.form1.Txt21.focus();
return false;}
if (document.form1.Txt31.value=="")
{alert("请录入C选项内容!");
document.form1.Txt31.focus();
return false;}
if (document.form1.Txt41.value=="")
{alert("请录入D选项内容!");
document.form1.Txt41.focus();
return false;}
document.form1.ctype.value="types";
document.form1.submit();
}

</script>



<%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
<html>
<head>
<title>网上考试系统</title>
<link rel="stylesheet" type="text/css" href="css.css">
</head>

<body topmargin="0" leftmargin="0">
<p>
<p align="center"><font class=test1>选择题 题库管理</font></p>
<div align="center">
  <center>
   <form name=form1 method=post action="yanzheng4.jsp">
  <input type=hidden name=ctype value=types>

  <table border="1" cellpadding="5" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="600">
    <tr>
      <td align="center" colspan="3">注:可以一次添加1道选择题,答案库只能输入大写A、B、C或D字母</td>
    </tr>
    <tr>
      <td width="50" align="center" bgcolor="#CBEFDC">编号</td>
      <td width="500" align="center" bgcolor="#CBEFDC">题目</td>
      <td width="50" align="center" bgcolor="#CBEFDC">答案</td>
    </tr>
       
    <tr bgcolor=#ffffff>
      <td align="center" rowspan="3">1</td>
      <td> <input type="text" name="T1" size="65" class="line"></td>
      <td align="center" rowspan="3">
         
          <select size="1" name="cate1">
          <option value="A">A</option>
          <option value="B">B</option>
			<option value="C">C</option>
			<option value="D">D</option>

            </select>
           </td>
    </tr>
    <tr bgcolor=#ffffff>
      <td> A.<input type="text" name="Txt11" size="20" class="line">&nbsp;&nbsp;&nbsp; 
      B.<input type="text" name="Txt21" size="20" class="line"></td>
    </tr>
    <tr bgcolor=#ffffff>
      <td> C.<input type="text" name="Txt31" size="20" class="line">&nbsp;&nbsp;&nbsp; 
      D.<input type="text" name="Txt41" size="20" class="line"></td>
    </tr>
<tr>
      <td colspan="3" align="center">
       <input type="button" value="提交" name="B1" onclick="check()"> <input type="reset" value="重置" name="B2"></td>
    </tr>
    </table>
    </form>

   
  </center>
</div>
</body>

</html>










⌨️ 快捷键说明

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