?? addstudent.jsp
字號:
<%@ page contentType="text/html; charset=GBK" language="java" errorPage="exception.jsp"%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>walkergl在線考試系統</title>
<link href="images/Style.css" rel="stylesheet" type="text/css">
<SCRIPT language=JScript>
function check()
{
//判斷是否填寫身份證號
if (document.AddStudentForm.id.value=="")
{
alert("身份證號不能為空");
document.AddStudentForm.id.focus();
return false;
}
//判斷是否填寫考生姓名
if (document.AddStudentForm.realname.value=="")
{
alert("考生姓名不能為空");
document.AddStudentForm.realname.focus();
return false;
}
//判斷是否填寫考生地址
if (document.AddStudentForm.address.value=="")
{
alert("考生地址不能為空");
document.AddStudentForm.address.focus();
return false;
}
//判斷是否填寫考生電話
if (document.AddStudentForm.phone.value=="")
{
alert("考生電話不能為空");
document.AddStudentForm.phone.focus();
return false;
}
//判斷是否填寫考生班級
if (document.AddStudentForm.classname.value=="")
{
alert("班級不能為空");
document.AddStudentForm.classname.focus();
return false;
}//判斷是否填寫考生學號
if (document.AddStudentForm.stunumber.value=="")
{
alert("考生電話不能為空");
document.AddStudentForm.stunumber.focus();
return false;
}
//判斷是否填寫email
if (document.AddStudentForm.email.value=="")
{
alert("email不能為空");
document.AddStudentForm.email.focus();
return false;
}
else if (document.AddStudentForm.email.value.indexOf("@")==-1)
{
alert("email不規范");
document.AddStudentForm.email.focus();
return false;
}
}
</SCRIPT>
<script type='text/javascript' src='js/tree.js'></script>
</head>
<body>
<div align="left">
<table width="778" height="574" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: 2px solid #008000; padding: 0px">
<tr>
<td height="169" align="justify" valign="baseline" style="border-bottom: 2px solid #008000; padding: 0" colspan="2">
<img border="0" src="images/2.jpg" width="778" height="167"></td>
</tr>
<tr>
<td height="320" align="left" valign="top" width="159">
<jsp:include page="left.html"/>
</td>
<td height="320" align="left" valign="top" style="border-bottom:1px solid #008000; border-left:1px solid #008000; border-right:1px solid #008000; padding:0; " width="619">
<TABLE class=Xsmall cellSpacing=1 cellPadding=2 width=576 align=center
bgColor=#d2ebff border=0 id="table11">
<TBODY>
<TR>
<TD vAlign=top bgColor=#ffffff>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0 id="table12">
<TBODY>
<TR>
<TD class=Xsmall background="images/backt.gif"
height=25> <STRONG>添加考生</STRONG></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD vAlign=top bgColor=#ffffff>
<TABLE class=Xsmall cellSpacing=0 cellPadding=0 width=500 align=center
border=0 id="table13" height="112">
<FORM name="AddStudentForm" onSubmit="return check()" action="processAddStudent.do" method="post">
<TBODY>
<FORM>
<TR>
<TD width=88 height=25 align="center">
<DIV align=center>身份證號:</DIV></TD>
<TD width="162"><INPUT class=Sborder id="id" size=16 name="id"> </TD>
<TD width=100>
<DIV align=center>姓 名:</DIV></TD>
<TD width=150>
<INPUT class=Sborder id="realname" size=17
name="realname"> </TD></TR>
<TR>
<TD height=25 align="center">
<DIV align=center>學 號:</DIV></TD>
<TD width="162"><INPUT class=Sborder id="stuNumber" size=16 name="stuNumber"> </TD>
<TD>
<DIV align=center>班 級:</DIV></TD>
<TD><INPUT class=Sborder id="className" size=17 name="className"> </TD></TR>
<TR>
<TD height=25 align="center">
地 址:</TD>
<TD width="162"><INPUT class=Sborder id="address" size=16 name="address"></TD>
<TD>
<DIV align=center>電 話:</DIV></TD>
<TD><INPUT class=Sborder id="phone" size=17 name="phone"></TD></TR>
<TR>
<TD height=25 align="center">
Email: </TD>
<TD width="162"><INPUT class=Sborder id="address" size=16 name="email"></TD>
<TD>
<DIV align=center>身份證:</DIV></TD>
<TD><INPUT class=Sborder id="phone" size=17 name="humanId"></TD></TR>
</TR>
<TR>
<TD colSpan=4 height=37>
<DIV align=center>
<TABLE class=Xsmall cellSpacing=0 cellPadding=0 width="49%"
border=0 id="table14">
<TBODY>
<TR>
<TD>
<DIV align=center><INPUT class=Sborder type=submit value="確 定" name=Submit>
</DIV></TD>
<TD>
<DIV align=center><INPUT class=Sborder id=reset3 type=reset value="重 寫" name="reset">
</DIV></TD></TR></TBODY></TABLE></DIV></TD></TR></FORM></TABLE></TD></TR></TBODY></TABLE>
</td>
</tr>
</table>
<%@include file="footer.jsp"%>
</div>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -