<!-- #include virtual = "/include/myopen.asp" -->
<%
	set RS = Server.CreateObject("ADODB.RecordSet")
	set RS1 = Server.CreateObject("ADODB.RecordSet")
%>
<%
IF Request.Cookies ("USER_NAME") = "" OR Request.Cookies ("USER_PASS") ="" THEN

	descr_url=Request.ServerVariables("SCRIPT_NAME")
	'没有登陆
	Response.Redirect ("/member/login.asp?source_url=" & descr_url)
	
END IF
	
	SQL = "SELECT * FROM MEMBER WHERE USER_NAME = '" & Request.Cookies ("USER_NAME") & "' AND USER_PASS = '" & Request.Cookies ("USER_PASS") & "'"
	RS.Open SQL,CONN,adOpenKeyset ,adLockReadOnly 
	IF RS.RecordCount >0 THEN
%> 
<script language="javascript">

var lsdz = "";
function checkIn()
{
    if( document.un.user_name.value.length <1) {
      alert("登录编号必须填写");
      document.un.user_name.focus();
      return false;
   }

    if( document.un.true_name.value.length <1) {
      alert("用户名必须填写");
      document.un.true_name.focus();
      return false;
   }
   if( document.un.passwd.value.length <1) {
      alert("初始密码必须填写");
      document.un.passwd.focus();
      return false;
   }

   if( document.un.re_passwd.value.length <1) {
      alert("确认密码必须填写");
      document.un.re_passwd.focus();
      return false;
   }

   if( document.un.passwd.value !=document.un.re_passwd.value) {
      alert("密码必须一样!!!!!!");
      document.un.passwd.focus();
      document.un.passwd.value="";
      document.un.re_passwd.value="";
      return false;
   }
    
    if( document.un.paper.value.length <1) {
      alert("证件名称必须选择");
      document.un.paper.focus();
      return false;
   } 
   
    if( document.un.paper_code.value.length <1) {
      alert("证件号码必须填写");
      document.un.paper_code.focus();
      return false;
   }
  
      
    if( document.un.address.value.length <1) {
      alert("联系地址必须填写");
      document.un.address.focus();
      return false;
   }
   
    if( document.un.post_code.value.length <1) {
      alert("邮政编码必须填写");
      document.un.post_code.focus();
      return false;
   }
     
    if( document.un.telephone.value.length <1) {
      alert("联系电话必须填写");
      document.un.telephone.focus();
      return false;
   }
       lsdz = document.un.email.value.indexOf("@");
        if (lsdz == -1) {
        alert("请您输入您的正确电子邮件！便于我们与您进行联系");
        document.un.email.value="";
        document.un.email.focus();
        return false;
        }
   if(confirm("你现在要提交注册表吗?"))
      return true
   else
      return false;
}
</script>
<html>
<head>
<title>会员注册信息修改</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
-->
</style>
<link rel="stylesheet" href="../news%5B1%5D.css">
</head>

<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
<span class="border"></span> 
 <!-- #include virtual = "/plate/top.htm" -->
<table width="750" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr> 
    <td> 
      <div align="center"><b class="word"></b></div>
    </td>
  </tr>
</table>
<form method="post" action="member_register_up.asp" name="un" onSubmit="return checkIn();">
  <table width="750" border="0" cellspacing="1" cellpadding="0" align="center" bgcolor="#CC66FF">
    <tr>
      <td>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" height="20">
          <tr bgcolor="#99CCFF"> 
            <td> 
              <div align="center">信 息 修 改</div>
            </td>
          </tr>
        </table>
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td>
        <div align="center"> <br>
          <table width="750" border="0" cellspacing="0" cellpadding="0" align="center">
            <tr> 
              <td class="word" height="30"> 
                <div align="center"><font color="#000000">用户名：</font></div>
              </td>
              <td class="word" height="30"> <font color="#000000"> 
                <input type="text" name="user_name" size="25" value="<%=rs("user_name")%>" disabled class="stedit">
                </font></td>
              <td class="word" height="30"> 
                <div align="center"><font color="#000000">收货人姓名：</font></div>
              </td>
              <td class="word" height="30"> <font color="#000000"> 
                <input type="text" name="true_name" size="25" value="<%=rs("true_name")%>" disabled class="stedit">
                </font></td>
            </tr>
            <tr> 
              <td class="word" height="30"> 
                <div align="center"><font color="#000000">密 &nbsp;码：</font></div>
              </td>
              <td class="word" height="30"> <font color="#000000"> 
                <input type="password" name="passwd" size="12" class="stedit">
                **** </font></td>
              <td class="word" height="30"> 
                <div align="center"><font color="#000000">确认密码：</font></div>
              </td>
              <td class="word" height="30"> <font color="#000000"> 
                <input type="password" name="re_passwd" size="12" class="stedit">
                **** </font></td>
            </tr>
            <tr> 
              <td class="word" height="30"> 
                <div align="center"><font color="#000000">性 &nbsp;别：</font></div>
              </td>
              <td class="word" height="30"> <font color="#000000"> 
                <input type="radio" name="sex" value="男" checked>
                男 
                <input type="radio" name="sex" value="女">
                女 </font></td>
              <td class="word" height="30"> 
                <div align="center"><font color="#000000">所在省市：</font></div>
              </td>
              <td class="word" height="30"> <font color="#000000"> 
                <input type="text" name="state_city" size="20" value="<%=rs("state_city")%>" class="stedit">
                </font></td>
            </tr>
            <tr> 
              <td class="word" height="30"> 
                <div align="center"><font color="#000000">收货地址：</font></div>
              </td>
              <td class="word" height="30"> <font color="#000000"> 
                <input type="text" name="address" size="35" value="<%=rs("address")%>" class="stedit">
                </font></td>
              <td class="word" height="30"> 
                <div align="center"><font color="#000000">邮政编码：</font></div>
              </td>
              <td class="word" height="30"> <font color="#000000"> 
                <input type="text" name="post_code" size="6" value="<%=rs("post_code")%>" maxlength=6 class="stedit">
                </font></td>
            </tr>
            <tr> 
              <td class="word" height="30"> 
                <div align="center"><font color="#000000">联系电话：</font></div>
              </td>
              <td class="word" height="30"> <font color="#000000"> 
                <input type="text" name="telephone" size="25" value="<%=rs("telephone")%>" class="stedit">
                </font></td>
              <td class="word" height="30"> 
                <div align="center"><font color="#000000">传 &nbsp;真：</font></div>
              </td>
              <td class="word" height="30"> <font color="#000000"> 
                <input type="text" name="fax" size="12" value="<%=rs("fax")%>" class="stedit">
                </font></td>
            </tr>
            <tr> 
              <td class="word" height="30"> 
                <div align="center"><font color="#000000">E-mail:</font></div>
              </td>
              <td colspan="3" class="word" height="30"> <font color="#000000"> 
                <input type="text" name="email" size="30" value="<%=rs("email")%>" disabled class="stedit">
                </font></td>
            </tr>
          </table>
          <br>
          <input type="submit" name="REGIMIDI" value="修 改" class="stbtm">
          <input type="reset" name="reset" value="重 填" class="stbtm">
          <br>
          <br>
        </div>
      </td>
    </tr>
  </table>
  <br>
  <div align="center"> </div>
</form>
 <!-- #include virtual = "/plate/button.htm" -->
</body>
</html>
<%
		ELSE
		'小于0
	descr_url=Request.ServerVariables("SCRIPT_NAME")
	'没有登陆
	Response.Redirect ("/member/login.asp?source_url=" & descr_url)
END IF
%>