📄 huiyzhuce.jsp~29~
字号:
<%@page contentType="text/html; charset=GBK"%>
<jsp:include flush="true" page="head.jsp"/>
<%@ page import="java.util.*" %>
<%@ page import="java.text.*" %>
<html>
<head>
<title>飞梦通信:新用户注册</title>
<style type="text/css">
<!--
.red {color: #FF0000; font-size: 20px; }
-->
</style>
<script type="text/JavaScript">
<!--
function pd_form () {
var name=document.form1.name.value;
var password=document.form1.password.value;
var qrpassword=document.form1.qrpassword.value;
var emails=document.form1.emails.value;;
//var hyAdvancePayment=document.form1.hyAdvancePayment.value;;
//var hyLoadDate=document.form1.hyLoadDate.value;;
if(name == "") {
alert("请填写会员注册姓名!");
document.form1.name.focus();
return false;
}
else if(!isNaN(name)) {
alert("姓名不能为数字!");
document.form1.name.focus();
return false;
}else if(password.equals("")) {
alert("请输入密码!");
document.form1.password.focus();
return false;
}else if(password.length<6){
alert("密码不能少于6位数字!");
document.form1.password.focus();
return false;
}else if(qrpassword.equals("")){
alert("请输入确认会员密码!");
document.form1.qrpassword.focus();
return false;
}else if(qrpassword != password){
alert("确认会员密码和会员密码要一致!");
document.form1.qrpassword.focus();
return false;
}else if(emails.equals("")){
alert("请输入您的邮箱地址!");
document.form1.emails.focus();
return false;
}else if(emails.indexOf("@",0)==-1){
alert("邮箱格式不正确\n必须包含 @ 符号!");
document.form1.emails.focus();
return false;
}
}else {
return true;
}
}
//-->
</script>
</head>
<body bgcolor="#ddccff">
<!--this is top end-->
<%
//生成系统时间
java.util.Date nowtime = new Date();
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String dateString = formatter.format(nowtime);
%>
<br/>
<table cellspacing="0" cellpadding="0" width="85%" align="center" border="0">
<tbody>
<tr>
<td valign="top" width="99%" colspan="4">
<table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
<tbody>
<tr>
<td valign="top" align="left" width="10" bgcolor="#ddffcc">
<img src="photo/dltp1.gif" alt="52" width="10" height="28" border="0"/>
</td>
<td colspan="2" align="center" valign="bottom" nowrap="nowrap" width="20%" bgcolor="#ddffcc" height="28"><h2>注册新用户</h2></td>
<td valign="top" align="right" width="10" bgcolor="#ddffcc">
<img src="photo/dltp5.gif" alt="52" width="10" height="28" border="0"/>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<table id="" cellspacing="0" cellpadding="0" width="85%" align="center" bgcolor="#ddddcc" border="0">
<tbody>
<tr bgcolor="#ddddcc">
<td align="center" valign="top" bgcolor="#ddddcc">
<table cellspacing="3" cellpadding="0" width="100%" align="center" bgcolor="#ddddcc" border="0">
<tbody>
<tr>
<td align="center" valign="top" bgcolor="#ffffff">
<table cellspacing="0" cellpadding="5" width="100%" align="center" border="0">
<tbody>
<tr>
<td align="center">
<form action="servlet1" method="get" name="form1" onsubmit="return pd_form()">
<table cellspacing="3" cellpadding="0" width="100%" align="center" border="0" bgcolor="ddccff">
<tbody>
<tr>
<td valign="top" height="118">
<table width="80%">
<tr>
<td align="right">用 户 名: </td>
<td><input type="text" name="name"/> <span class="red">*</span></td>
</tr>
<tr>
<td align="right">会 员 密 码: </td>
<td><input type="password" name="password"/> <span class="red">*</span></td>
</tr>
<tr>
<td align="right">确认会员密码: </td>
<td><input type="password" name="qrpassword"/> <span class="red">*</span></td>
</tr>
<tr>
<td align="right">会员Email地址: </td>
<td><input type="text" name="emails"/> <span class="red">*</span> </td>
</tr>
<tr>
<td align="center" colspan="2">
<input name="loadDate" type="hidden" value="<%=dateString %>" />
<input style=" font-size:12px" type="submit" name="Submit" value="注册"/>
<input style=" font-size:12px" type="submit" name="Submit2" value="取消"/>
</td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
</form>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<table cellspacing="0" cellpadding="0" width="85%" align="center" bgcolor="#ddddcc" border="0">
<tbody>
<tr valign="bottom">
<td align="left" bgcolor="#ddddcc" height="10">
<img src="photo/dltp3.gif" alt="695" width="10" height="10" border="0"/>
</td>
<td align="right" bgcolor="#ddddcc" height="10">
<img src="photo/dltp4.gif" alt="65" width="10" height="10" border="0"/>
</td>
</tr>
</tbody>
</table>
<p> </p>
<jsp:include flush="true" page="footer.jsp"/>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -