📄 addteacher.jsp
字号:
<%@ include file="conn.jsp"%>
<%@ include file="fenlei.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<STYLE>TD {
FONT-SIZE: 9pt; LINE-HEIGHT: 140%
}
BODY {
FONT-SIZE: 9pt; LINE-HEIGHT: 140%
}
A:link {
COLOR: #0033cc; TEXT-DECORATION: none
}
A:visited {
COLOR: #0033cc; TEXT-DECORATION: none
}
A:active {
COLOR: #ff0000; TEXT-DECORATION: none
}
A:hover {
COLOR: #000000; TEXT-DECORATION: underline
}
.header {
font-family: Tahoma, Verdana; font-size: 9pt; color: #FFFFFF; background-color: #69C37C
}
.category{
font-family: Tahoma, Verdana; font-size: 9pt; color: #000000; background-color: #EFEFEF
}
</STYLE>
<title>教师注册</title>
<script language="javascript">
function submitonce(theform)
{
//if IE 4+ or NS 6+
if (document.all||document.getElementById){
//screen thru every element in the form, and hunt down "submit" and "reset"
for (i=0;i<theform.length;i++){
var tempobj=theform.elements[i]
if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset")
//disable em
tempobj.disabled=true
}
}
}
</script>
<script language="javascript">
<!--
function isok(theform)
{
if (theform.fenlei1.value.length<2 || theform.fenlei1.value.length>20)
{
alert("所属的学院名称最少要2位,最多20位!");
theform.fenlei1.focus();
return (false);
}
if (theform.fenlei2.value.length<3 || theform.fenlei2.value.length>10)
{
alert("所属的系最少要3位,最多10位! !");
theform.fenlei2.focus();
return (false);
}
if (theform.teacher.value=="")
{
alert("你姓名没填呢!");
theform.teacher.focus();
return (false);
}
if (theform.loginname.value=="")
{
alert("你登录名没填呢!");
theform.loginname.focus();
return (false);
}
if (theform.password1.value=="")
{
alert("你密还有确认密码没填呢!");
theform.password1.focus();
return (false);
}
if (theform.password.value!=theform.password1.value)
{
alert("两次密码怎么不一样!");
theform.password1.focus();
return (false);
}
if (theform.ask.value=="")
{
alert("你密码找回问题没填呢!");
theform.ask.focus();
return (false);
}
if (theform.answer.value=="")
{
alert("你密码找回答案没填呢!");
theform.answer.focus();
return (false);
}
if (theform.intro.value=="")
{
alert("你个人简介没填呢!");
theform.intro.focus();
return (false);
}
return (true);
}
-->
</script>
</head>
<body text=#000000 bgColor=#ffffff leftMargin=0 topMargin=0>
<!--#include file="head.jsp"-->
<form action="addteacherok.jsp" method="post" onsubmit="return isok(this)">
<table style="BORDER-COLLAPSE: collapse" borderColor=#808080 width="400" border="1" align="center" cellpadding=1>
<tr><td align="center" class="header" colspan=2>教师注册</td></tr>
<tr>
<td width=130> 请输入您所属的<%=strfenlei1%></td>
<td width=270> <input type=text name="fenlei1" size=25></td>
</tr>
<tr>
<td> 请输入您所属的<%=strfenlei2%></td>
<td> <input type=text name="fenlei2" size=25></td>
</tr>
<tr>
<td> 姓名</td>
<td> <input type=text name="teacher" size=25></td>
</tr>
<tr>
<td> 登录名</td>
<td> <input type=text name="loginname" size=22></td>
</tr>
<tr>
<td> 请输入密码</td>
<td> <input type=password name="password" size=25></td>
</tr>
<tr>
<td> 再输一遍密码</td>
<td> <input type=password name="password1" size=25></td>
</tr>
<tr>
<td> 密码找回问题</td>
<td> <input type=text name="ask" size=25></td>
</tr>
<tr>
<td> 密码找回答案</td>
<td> <input type=text name="answer" size=25></td>
</tr>
<tr>
<td> E-Mail</td>
<td> <input type=text name="email" size=25>(可以不填)</td>
</tr>
<tr>
<td> 个人主页</td>
<td> <input type=text name="homepage" size=25>(可以不填)</td>
</tr>
<tr>
<td> QQ号码</td>
<td> <input type=text name="qq" size=25>(可以不填)</td>
</tr>
<tr>
<td> 通讯地址</td>
<td> <input type=text name="address" size=25>(可以不填)</td>
</tr>
<tr>
<td> 个人简介</td>
<td>
<textarea name="intro" cols="25" rows="6"></textarea>
</td>
</tr>
</table>
<center><br><input type=submit name="submit" value="确认"> <input type=reset name="reset" value="清空"></center>
</form>
<%@ include file="foot.jsp"%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -