20e54c1ea480001c10479ecad9d2ec50
来自「一个超市管理系统,提供一些基本简单的操作,JSP+APACHE+ORCALE实现」· 代码 · 共 68 行
TXT
68 行
<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="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 + =
减小字号Ctrl + -
显示快捷键?