📄 cjlr.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@ page pageEncoding="GB2312"%>
<% request.setCharacterEncoding("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>
<style type="text/css">
<!--
.style3 {
font-size: 12px;
color: #FFFFFF;
}
.style4 {font-size: 12px}
.style21 { color: #999999;
font-size: 12px;
}
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
}
-->
</style>
<script>
function checkspace(checkstr)
{
var str = '';
for(i = 0; i < checkstr.length; i++) {
str = str + ' ';
}
return (str == checkstr);
}
function check()
{
if(checkspace(document.form1.user.value)) {
document.form1.user.focus();
alert("请填写用户名!");
return false;
}
if(checkspace(document.form1.password1.value)) {
document.form1.password1.focus();
alert("请填写密码!");
return false;
}
if(checkspace(document.form1.password2.value)) {
document.form1.password2.focus();
alert("请填写确认密码!");
return false;
}
if(checkspace(document.form1.tname.value)) {
document.form1.tname.focus();
alert("请填写真实姓名!");
return false;
}
if(checkspace(document.form1.uclass.value)) {
document.form1.uclass.focus();
alert("请填写您入住年份!");
return false;
}
if(checkspace(document.form1.num.value)) {
document.form1.num.focus();
alert("请填写您的工号!");
return false;
}
if(document.form1.password1.value!=document.form1.password2.value)
{
document.form1.password1.focus();
alert("两次密码输入不一致!");
return false;
}
if(document.form1.password1.value.length<6)
{
document.form1.password1.focus();
alert("密码和确认密码至少为6位!");
return false;
}
if(document.form1.num.value.length<8)
{
document.form1.num.focus();
alert("工号为8位数字!");
return false;
}
}
</script>
</head>
<body>
<table width="103%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="1031" height="52" colspan="10" background="image/top_bg.gif"><table width="466" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="269"> </td>
<td width="167"> </td>
<td width="30"></td>
</tr>
</table></td>
</tr>
<tr>
<td height="25" background="image/menu_bg.gif"> <span class="style3">新用户注册</span></td>
</tr>
<tr>
<td><form name="form1" method="post" action="servlet/Cjlr">
<table width="90%" border="0" align="center">
<tr>
<td height="30" colspan="2"> <span class="style4">说明:<font color="#E85E03">(*)</font> 为必须填写项</span></td>
</tr>
<tr>
<td width="200" height="35" align="right" valign="middle" bgcolor="#F2F5F7"><span class="style4">用户名</span><span class="style4"><font color="#E85E03">(*)</font></span>:</td>
<td height="35"><input name="user" type="text" id="user" style="width:180px; height:17px ">
<span class="style21">2-20个字符</span></td>
</tr>
<tr>
<td height="35" align="right" valign="middle" bgcolor="#F2F5F7"><span class="style4">真实姓名<font color="#E85E03">(*)</font></span>:</td>
<td height="35"><input name="name" type="text" id="name" style="width:180px; height="17px"">
<span class="style21">真实姓名</span> </td>
</tr>
<tr>
<td width="200" height="35" align="right" valign="middle" bgcolor="#F2F5F7"><span class="style4">事件<font color="#E85E03">(*)</font></span>:</td>
<td height="35"> <textarea name="content" id="content"></textarea></td>
</tr>
<tr>
<td width="200" height="35" align="right" valign="middle" bgcolor="#F2F5F7"><span class="style4">时间<font color="#E85E03">(*)</font></span>:</td>
<td height="35"><input name="time" type="text" id="time" style="width:180px; height="17px"">
<span class="style21"> 例如:2001-1-1</span></td>
</tr>
<tr align="center">
<td height="35" colspan="2" valign="middle"><input type="submit" name="Submit" value="确定">
<input type="reset" name="Submit" value="重填"></td>
</tr>
</table>
</form></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -