<!--#include file="user_Head.Asp" -->
<%
if not (session("MemName")<>"" and session("MemLogin")="Succeed") then
  response.Write "<script language=javascript>alert('请先登录！');location.href='/';</script>"
  response.end
end if

call MemInfo()
%>
<TABLE width="960" border=0 align="center" cellPadding=0 cellSpacing=0 bgcolor="#FFFFFF">
  <TR>
    <TD height="5"></TD>
  </TR>
  <TR> 
    <TD height="172" ><table width="960" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td class="tdbg_left"  width="190" height="179" valign="top" > <table width="100%" border="0" cellspacing="0" cellpadding="0">

              <tr> 
                <td height="34" class="title_left">&nbsp;&nbsp;&nbsp;<img src="../images/good.gif" width="10" height="10">&nbsp;&nbsp;用户登陆 
                </td>
              </tr>
              <tr> 
                <td height="5"></td>
              </tr>
              <tr> 
                <td height="10"><table width="88%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td> 
                       
	<iframe src="/Dynamic/user_Login.asp"  frameborder="0" border="0px" scrolling="no" class="frame" height="120px" width="200px"></iframe>
                      </td>
                    </tr>
                  </table></td>
              </tr>
              <tr> 
                <td height="5"></td>
              </tr>
            </table>
            <table width="100%" border="0" cellpadding="0" cellspacing="0">

              <tr> 
                <td height="34" class="title_left">&nbsp;&nbsp;&nbsp;<img src="../images/good.gif" width="10" height="10">&nbsp;&nbsp;会员中心</td>
              </tr>     
 	<%=WebMenu()%>

            </table></td>
          <td width="6"></td>
          <td valign="top"><table Class=border width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
              <tr> 
                <td height="206" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0">

					            <TR> 
              <TD    
                  height=1> 
				  
 
 
 <table width="100%" height="19" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr> 
                            <td width="80%" height="18" bgcolor="#eeeeee"><%=WebLocation()%>会员详细资料</td>
                        <td width="79%" bgcolor="#eeeeee">&nbsp; </td>
                  </tr>
                  <tr> 
                    <td height="1" colspan="2" bgcolor="#999999"></td>
                  </tr>
                </table>
                <table width="100%" border="0" align="center" cellpadding="0" cellspacing="3" bgcolor="#FBFEFF">
                  <tr> 
                    <td height="8"></td>
                  </tr>
                 
                  <tr> 
                        <td>
<script language="javascript">
<!--
	//--------------------------------------------------------------------

//验证邮箱正确性
function checkemail(email){
var str=email;
//在JavaScript中，正则表达式只能使用"/"开头和结束，不能使用双引号
var Expression=/\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/; 
var objExp=new RegExp(Expression);
if(objExp.test(str)==true){
return true;
}else{
return false;
}
} 

function myform_onsubmit() {
	   if(document.myform.Password.value!=document.myform.vPassword.value)
        {
       alert("两次输入密码不一致!");
	   document.myform.vPassword.focus()
       return false;
function myform_onsubmit() {
	   if(document.myform.PayPassword.value!=document.myform.vPayPassword.value)
        {
       alert("两次输入密码不一致!");
	   document.myform.vPayPassword.focus()
       return false;
        }        }
if(document.myform.Mobile.value=="" && document.myform.Telephone.value=="") 
	{
	    alert("固定电话和移动电话不能同时为空!");
		document.myform.Mobile.focus()
	    return false;
	}
var sMobile = document.myform.Mobile.value
if((document.myform.Mobile.value!="") && (!(/^((\(\d{3}\))|(\d{3}\-))?13[0-9]\d{8}|15[0-9]\d{8}|17[0-9]\d{8}|18[0-9]\d{8}/.test(sMobile)))) //(检验13，15，17,18号段)
	{
		alert("不是完整的11位手机号或者正确的手机号前七位！");
		document.myform.Mobile.focus();
		return false;
	}
var sTelephone = document.myform.Telephone.value
if((document.myform.Telephone.value!="") && (!(/^([0\+]\d{2,3}-)?(0[0-9]{2,3}\-)?([2-9][0-9]{6,7})+(\-[0-9]{1,4})?$/.test(sTelephone)))) //(国家代号-区号-电话-分机格式(可选)：+086-010-85858585-2538)
	{
		alert("不规范的电话号码！");
		document.myform.Telephone.focus();
		return false;
	}
    if(!checkemail(myform.Email.value))
	{
    alert("您输入Email地址不正确，请重新输入!");
    document.myform.Email.focus();
    return false;
    }
   if(document.myform.Email.value.length>50 )
	{
	    alert("信箱不能超过50个字符!");
	    document.myform.Email.focus();
	    return false;
	}
if(document.myform.GetCode.value=="") 
	{
	    alert("验证码不能为空!");
		document.myform.GetCode.focus()
	    return false;
	}
}
// --></script>

					<table width="95%" border="0" align="center" cellpadding="3" cellspacing="5">
		  <form action="user_MemberSaveInfo.asp?ID=<%=mMemID%>" method="post" name="myform" id="myform" onSubmit="return myform_onsubmit()">
              <tr>
                <td width="200" align="right">用户名称：</td>
                <td><% =mMemName %></td>
              </tr>
              <tr>
                <td width="200" align="right">所属组别：</td>
                <td><% =mGroupIdName %></td>
              </tr>
              <tr>
                <td align="right">真实姓名：</td>
                <td><input name="RealName" type="text" id="RealName" size="20" maxlength="50" value="<%=mRealName%>" /></td>
              </tr>
              <tr>
                <td align="right">性别：</td>
                <td><input name="Sex" type="radio" value="先生" class="inputnoborder" <%if mSex="先生" then response.write ("checked")%> />先生 <input type="radio" name="Sex" value="女士" class="inputnoborder" <%if mSex="女士" then response.write ("checked")%> />女士 <font color="red">*</font></td>
              </tr>
              <tr>
                <td align="right">用户密码：</td>
                <td><input name="Password" type="password" id="Password" size="20" maxlength="16" /> <font color="red">不修改请留空</font></td>
              </tr>
              <tr>
                <td align="right">确认用户密码：</td>
                <td><input name="vPassword" type="password" id="vPassword" size="20" maxlength="16" /></td>
              </tr>
              <tr>
                <td align="right">密码保护问题：</td>
                <td><%If IsNull(trim(mQuestion)) Then%>
               <input name="Question" type="text" id="Question" size="20" maxlength="100" value=""/>
			   <%else%><%=mQuestion %><%End if%></td>
              </tr>
              <tr>
                <td align="right">密码保护答案：</td>
                <td><% If IsNull(mQuestion) Then%>
				<input name="Answer" type="text" id="Answer" size="20" maxlength="100" />
				<%else%>已隐藏(不可修改)<%End if%>
				</td>
              </tr>
              <tr>
                <td align="right">钱包支付密码：</td>
                <td><input name="PayPassword" type="Password" id="PayPassword" size="20" maxlength="16" /> <font color="red">不修改请留空</font></td>
              </tr>
              <tr>
                <td align="right">确认支付密码：</td>
                <td><input name="vPayPassword" type="Password" id="vPayPassword" size="20" maxlength="16" /></td>
              </tr>
              <tr>
                <td align="right">手机号码：</td>
                <td><input name="Mobile" type="text" id="Mobile" value="<% =mMobile %>" size="20" maxlength="50" /> <font color="red">*</font></td>
              </tr>
              <tr>
                <td align="right">固定电话：</td>
                <td><input name="Telephone" type="text" id="Telephone" value="<% =mTelephone %>" size="20" maxlength="50" /> </td>
              </tr>
              <tr>
                <td align="right">传真号码：</td>
                <td><input name="Fax" type="text" id="Fax" value="<% =mFax %>" size="20" maxlength="50" /> </td>
              </tr>
              <tr>
                <td align="right">电子信箱：</td>
                <td><input name="Email" type="text" id="Email" value="<% =mEmail %>" size="30" maxlength="50" /> <font color="red">*</font></td>
              </tr>
              <tr>
                <td align="right">联系QQ：</td>
                <td><input name="Userqq" type="text" id="Userqq" value="<% =mUserqq %>" size="30" maxlength="50" /> </td>
              </tr>
              <tr>
                <td align="right">单位名称：</td>
                <td><input name="Company" type="text" id="Company" value="<% =mCompany %>" size="40" maxlength="100" /></td>
              </tr>
              <tr>
                <td align="right">详细地址：</td>
                <td><input name="Address" type="text" id="Address" value="<% =mAddress %>" size="40" maxlength="100" /></td>
              </tr>
              <tr>
                <td align="right">邮政编码：</td>
                <td><input name="ZipCode" type="text" id="ZipCode" value="<% =mZipCode %>" size="20" maxlength="20" /></td>
              </tr>
              <tr>
                <td align="right">网址：</td>
                <td><input name="HomePage" type="text" id="HomePage" value="<% =mHomePage %>" size="30" maxlength="50" /> </td>
              </tr>
              <tr>
                <td align="right">注册时间：</td>
                <td><% =mAddTime %></td>
              </tr>
              <tr>
                <td align="right">登录次数：</td>
                <td><% =mLoginTimes %> 次</td>
              </tr>
              <tr>
                <td align="right">最后登录时间：</td>
                <td><% =mLastLoginTime %></td>
              </tr>
              <tr>
                <td align="right">最后登录IP：</td>
                <td><% =mLastLoginIP %></td>
              </tr>
              <tr>
                <td align="right">验证码：</td>
                <td><input name="GetCode" type="text" size="6" maxlength="6" />
                        <a href="javascript:refreshimg()" title="看不清楚，换个图片。"><img src="/Include/CheckCode/CheckCode.Asp" name="CodeImg" align="absmiddle" id="CodeImg" style="border: 1px solid #ffffff; height:22px;" /></a> <font color="red">*</font></td>
              </tr>
              <tr>
                <td align="right">&nbsp;</td>
                <td><input name="Submit" type="submit" value="修改会员资料" /></td>
              </tr>
			  </form>
            </table>

						 </td>
                  </tr>             
                  <tr> 
                    <td height="8"><div align="right"></div></td>
                  </tr>
                </table> 
                      </TD>
            </TR>
                  </table>
                  
                </td>
              </tr>
			  
            </table></td>
        </tr>
      </table></td>
  </tr>
</table>
	
<TABLE  width="960" border=0 align="center" cellPadding=0 cellSpacing=0 > 
    <TR> 
      <TD height="5"></TD>
    </TR>
    <TR> 
    <TD> 
      <DIV align=center class="title"> 
        <br />
		<DIV align=center> 
           <ul class="AllUl" style="list-style:none;">

    
</ul>
      </DIV></TD>
    </TR>
  </TBODY>
</TABLE>
</BODY></HTML>

