?? type_2_add.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">
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">
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 + -