📄 e0c21dd1a580001c10479ecad9d2ec50
字号:
<script language=javascript>
function CheckForm()
{
if(document.form1.id_card.value.length()!=18)
{
alert("身份证应为18位!");
document.form1.id_card.focus();
return false;
}
}
</script>
<%@ page language="java" contentType="text/html; charset=gb2312"
pageEncoding="gb2312"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>职员登记管理</title>
</head>
<body>
<h1 align="center">职员登记管理</h1>
<hr>
<table align="center"width="500"border="1">
<tr>
<form name="from1"method="post"action="1.jsp">
<P>职员编码:
<input type="text"name="sta_id">
</P>
<P>
职员名称:
<input type="text"name="sta_name">
</P>
<p>性 别:
<input type="radio"name="sex"value="m">
男
<input type="radio"name="sex"value="f">
女
</p>
<p>身份证号码:<input type="text"name="id_card">
</p>
<p>出生日期:
<input type="select"name="year"value="2005"value="2006"value="2007">
<p>职 位:
<input type="text"name="job">
</P>
<p>工 资:
<input type="text"name="salary">
</P>
<p>奖 金:
<input type="text"name="bonus">
</P>
<p>电 话:
<input type="text"name="phone">
</P>
<p>
</P>
<p>
<input type="submit"name="Submit"style="CURSOR: hand"value="提交"onclick="CheckForm()">
<input type="reset"name="Submit"value="重置">
</P>
</form>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -