📄 user_update.jsp~85~
字号:
<%@page contentType="text/html; charset=GBK"%>
<%@ include file="check.jsp" %>
<jsp:include flush="true" page="head.jsp"/>
<%@page import="taobaoproject.*" %>
<jsp:useBean id="memberInfo_Bean" scope="session" class="taobaoproject.MemberInfo_Bean" />
<jsp:setProperty name="memberInfo_Bean" property="*" />
<%
String userName = (String)session.getValue("username");
MemberBean memberBean = memberInfo_Bean.isIsselect(userName);
%>
<html>
<head>
<title>飞梦通信:修改个人信息</title>
<style type="text/css">
<!--
.red {color: #FF0000; font-size: 20px; }
.r {background:#EBEBE4}
-->
</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 trueName=document.form1.trueName.value;;
var phonecode=document.form1.phonecode.value;;
var emails=document.form1.emails.value;;
var city=document.form1.city.value;;
var address=document.form1.address.value;;
var postCode=document.form1.postCode.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 == "") {
alert("请输入密码!");
document.form1.password.focus();
return false;
}else if(password.length<6){
alert("密码不能少于6位数字!");
document.form1.password.focus();
return false;
}else if(qrpassword == ""){
alert("请输入确认会员密码!");
document.form1.qrpassword.focus();
return false;
}else if(qrpassword != password){
alert("确认会员密码和会员密码要一致!");
document.form1.qrpassword.focus();
return false;
}else if(trueName == ""){
alert("请输入会员真实姓名!")
document.form1.trueName.focus();
return false;
}else if(!isNaN(trueName)) {
alert("姓名不能为数字!");
document.form1.trueName.focus();
return false;
}else if(phonecode == ""){
alert("请输入会员的电话/手机号码!");
document.form1.phonecode.focus();
return false;
}else if(isNaN(phonecode)){
alert("电话/手机号一定为数字!");
document.form1.phonecode.focus();
return false;
}else if(phonecode.length < 11 && phonecode.length <=12 ){
alert("请填写有效的电话/手机!包括区号 /n 电话 如(07714232657)");
document.form1.phonecode.focus();
return false;
}else if(emails == ""){
alert("请输入您的邮箱地址!");
document.form1.emails.focus();
return false;
}else if(emails.indexOf("@",0)==-1){
alert("邮箱格式不正确\n必须包含 @ 符号!");
document.form1.emails.focus();
return false;
}else if(emails.indexOf(".",0)==-1){
alert("邮箱格式不正确\n必须包含 . 符号!");
document.form1.emails.focus();
return false;
}else if(city == "") {
alert("请填写会员所在的城市!");
document.form1.city.focus();
return false;
}else if(!isNaN(city)){
alert("城市不能为数字!");
document.form1.city.focus();
return false;
}else if(address == "") {
alert("请填写会员地址!");
document.form1.address.focus();
return false;
}
else if(postCode.length < 6 || isNaN(postCode)) {
alert("请填写不能少于6位数字的有效邮编!");
document.form1.postCode.focus();
return false;
}else {
return true;
}
}
//-->
</script>
</head>
<body bgcolor="#ddccff">
<!--this is top end-->
<br/>
<%
String name = memberBean.getName();
if(name == null){
name = "";
}
String sex = memberBean.getSex();
if(sex == null){
sex = "";
}
String trueName = memberBean.getTrueName();
if(trueName == null){
trueName = "";
}
String phonecode =memberBean.getPhoneCode();
if(phonecode == null){
phonecode = "";
}
String emails = memberBean.getEmails();
if(emails == null){
emails = "";
}
String city =memberBean.getCity();
if(city == null){
city = "";
}
String address = memberBean.getAddress();
if(address == null){
address = "";
}
String postCode = memberBean.getPostCode();
if(postCode == null){
postCode = "";
}
%>
<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" bgcolor="#ddffcc" height="28"><br /><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 valign="top" bgcolor="#ddddcc">
<table cellspacing="3" cellpadding="0" width="100%" align="center" bgcolor="#ddddcc" border="0">
<tbody>
<tr>
<td valign="top" bgcolor="#ffffff">
<table cellspacing="0" cellpadding="5" width="100%" align="center" border="0">
<tbody>
<tr>
<td>
<form action="servlet2" method="get" name="form1" onsubmit="return pd_form()">
<table cellspacing="3" cellpadding="0" width="100%" align="center" border="0" bgcolor="ddccff">
<tbody>
<tr>
<td align="center">
<table width="400">
<tr>
<td align="right">用 户 名: </td>
<td align="left" width="150"><input class="r" type="text" readonly="readonly" name="name" value="<%=name %>"/></td>
</tr>
<tr>
<td align="right">会 员 性 别: </td>
<td align="left"><input type="text" value="<%=sex %>" /></td>
</tr>
<tr>
<td align="right">会 员 密 码: </td>
<td align="left"><input size="50" type="password" name="password"/><span class="red">*</span></td>
</tr>
<tr>
<td align="right">确认会员密码: </td>
<td align="left"><input type="password" name="qrpassword"/><span class="red">*</span></td>
</tr>
<tr>
<td align="right">会员真实姓名: </td>
<td align="left"><input type="text" value="<%=trueName %>" name="trueName"/></td>
</tr>
<tr>
<td align="right">会员电话号码: </td>
<td align="left"><input type="text" value="<%=phonecode %>" name="phonecode"/></td>
</tr>
<tr>
<td align="right">会员Email地址: </td>
<td align="left"><input value="<%=emails %>" type="text" name="emails"/><span class="red">*</span></td>
</tr>
<tr>
<td align="right">会员所在城市: </td>
<td align="left"><input value="<%=city %>" type="text" name="city"/></td>
</tr>
<tr>
<td align="right">会 员 住 址: </td>
<td align="left">
<textarea name="address" cols="" rows=""><%=address %></textarea>
</tr>
<tr>
<td>会 员 邮 编: </td>
<td align="left"><input type="text" value="<%=postCode %>" name="postCode"/></td>
</tr>
<tr>
<td align="center" colspan="2">
<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 + -