JAVAEE-based-parking-manage.../tingchechang/WebContent/reg.jsp

98 lines
2.7 KiB
Plaintext

<%@ page language="java" contentType="text/html; charset=GB18030"
pageEncoding="GB18030"%>
<!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=GB18030">
<title>Insert title here</title>
<script language="javascript">
function check(){
if(form1.username.value==""){
alert("输入用户账号!");form1.username.focus();return false;
}
if(form1.password.value==""){
alert("输入密码!");form1.password.focus();return false;
}
if(form1.chepaihao.value==""){
alert("输入车牌号");form1.chepaihao.focus();return false;
}
if(form1.truename.value==""){
alert("输入姓名!");form1.truename.focus();return false;
}
if(form1.tel.value==""){
alert("输入联系方式!");form1.tel.focus();return false;
}
}
</script>
<link href="css/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="1002" height="600" border="0" align="center"
cellpadding="0" cellspacing="0">
<tr>
<td valign="top" background="image/reg.jpg"><form id="form1"
name="form1" method="post" action="reg_do.jsp"
onSubmit="return check()">
<table width="1002" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="334" height="200">&nbsp;</td>
<td width="668">&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td height="20">用户账号: <input name="username" type="text"
id="username" /></td>
</tr>
<tr>
<td>&nbsp;</td>
<td height="19">用户密码: <input name="password" type="password"
id="password" /></td>
</tr>
<tr>
<td>&nbsp;</td>
<td height="20">车牌号码: <input name="chepaihao" type="text"
id="chepaihao" />
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td height="20">卡内金额: <input name="jine" type="text"
id="jine" value="200" /></td>
</tr>
<tr>
<td>&nbsp;</td>
<td height="20">真实姓名: <input name="truename" type="text"
id="truename" /></td>
</tr>
<tr>
<td>&nbsp;</td>
<td height="20">联系方式: <input name="tel" type="text" id="tel" /></td>
</tr>
<tr>
<td>&nbsp;</td>
<td height="20">用户简介: <textarea name="jianjie" cols="40"
rows="3" id="jianjie"></textarea></td>
</tr>
<tr>
<td>&nbsp;</td>
<td height="40"><input type="submit" name="Submit"
value="注册" /> &nbsp; <input type="button" name="Submit2"
value="放弃" onclick="location.href='denglu.jsp'" /></td>
</tr>
</table>
</form></td>
</tr>
</table>
</body>
</html>