📄 newuser.jsp
字号:
<html><meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<%@ page
language="java"
contentType="text/html; charset=gb2312"
%>
<head>
<title>新用户注册 </title>
<%@ include file="/include/top.jspf"%>
<script language="JavaScript">
<!--
function check()
{
if(document.form1.userId.value=="")
{
window.alert("请输入用户名名称!");
document.form1.userId.focus();
return false;
}
if(document.form1.country.value=="")
{
window.alert("请输入国别!");
document.form1.country.focus();
return false;
}
if(document.form1.name.value=="")
{
window.alert("请输入真实姓名!");
document.form1.userId.focus();
return false;
}
if(document.form1.addr1.value=="")
{
window.alert("请输入地址信息!");
document.form1.userId.focus();
return false;
}
if(document.form1.city.value=="")
{
window.alert("请输入城市信息!");
document.form1.userId.focus();
return false;
}
if(document.form1.state.value=="")
{
window.alert("请完整输入信息!");
document.form1.userId.focus();
return false;
}
if(document.form1.zipCode.value=="")
{
window.alert("请输入邮编信息!");
document.form1.userId.focus();
return false;
}
if(document.form1.phone.value=="")
{
window.alert("请完整输入信息!");
document.form1.phone.focus();
return false;
}
if(document.form1.email.value=="")
{
window.alert("请输入邮件地址信息!");
document.form1.email.focus();
return false;
}
if(document.form1.password.value!=document.form1.confirmpassword.value|document.form1.password.value=="")
{
window.alert("请正确输入密码!");
document.form1.password.focus();
return false;
}
return true;
}
//-->
</script>
<%
String errorMessage = (String)request.getAttribute("errorMessage");
String userId = request.getParameter("userId");
if ( userId == null ) {
userId = "";
}
String country = request.getParameter("country");
if ( country == null ) {
country = "";
}
String email = request.getParameter("email");
if ( email == null ) {
email = "";
}
String name = request.getParameter("name");
if ( name == null ) {
name = "";
}
String phone = request.getParameter("phone");
if ( phone == null ) {
phone = "";
}
String addr1 = request.getParameter("addr1");
if ( addr1 == null ) {
addr1 = "";
}
String addr2 = request.getParameter("addr2");
if ( addr2 == null ) {
addr2 = "";
}
String city = request.getParameter("city");
if ( city == null ) {
city = "";
}
String state = request.getParameter("state");
if ( state == null ) {
state = "";
}
String zipCode = request.getParameter("zipCode");
if ( zipCode == null ) {
zipCode = "";
}
%>
<%
if ( errorMessage != null ) {
%>
<span class="headingred"><font color=red>
<%=errorMessage%></font>
</span>
<br>
<%
}
%>
<form method="post" action="/servlet/NewAccountServlet" name="form1">
<TABLE class=font1 cellSpacing=0 borderColorDark=#ffffff cellPadding=2 width="99%" align=center bgColor=#ffffff borderColorLight=#003686 border=1>
<tr>
<td colspan=2><IMG height=35 alt="" src="/images/new_user.gif" width=160 border=0><br></td>
</tr>
<tr><td colspan="6"><IMG height=10 alt="" src="/images/spacer.gif" width=1 border=0></td></tr>
<tr>
<td>用户名:</td>
<td><input size="15" name="userId" value="<%=userId%>"></input></td>
</tr>
<tr><td colspan="6"><IMG height=3 alt="" src="/images/spacer.gif" width=1 border=0></td></tr>
<tr>
<td>密码:</td>
<td><input type="password" size="15" name="password"></input></td>
</tr>
<tr>
<td>确认密码:</td>
<td><input type = "password" size="15" name="confirmpassword"></input></td>
</tr>
<tr>
<td>真实姓名:</td>
<td><input size="15" name="name" value="<%=name%>"></input></td>
</tr>
<tr>
<td>电话:</td>
<td><input size="15" name="phone" value="<%=phone%>"></input></td>
</tr>
<tr>
<td>email:</td>
<td><input size="15" name="email" value="<%=email%>"></input></td>
</tr>
<tr>
<td>地址1:</td>
<td><input size="15" name="addr1" value="<%=addr1%>"></input></td>
</tr>
<tr>
<td>地址2:</td>
<td><input size="15" name="addr2" value="<%=addr2%>"></input></td>
</tr>
<tr>
<td>城市:</td>
<td><input size="15" name="city" value="<%=city%>"></input></td>
</tr>
<tr>
<td>省:</td>
<td><input size="15" name="state" value="<%=state%>"></input></td>
</tr>
<tr>
<td>邮编:</td>
<td><input size="15" name="zipCode" value="<%=zipCode%>"></input></td>
</tr>
<tr>
<td>国别/地区:</td>
<td><select name="country">
<option value="中国大陆">中国大陆</option>
<option value="中国香港">中国香港</option>
<option value="美国">美国</option>
</select>
</td>
</tr>
<tr>
<td colspan=2 align=center><input type="image" src="/images/submit.gif" name="submit" onClick="return check()"></input></td>
</tr>
</table>
</form>
<%@ include file="/include/bottom.jspf"%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -