<%PageName="UserModify"%>
<!--#include file="../inc/conn.asp"--><!--#include file="functionuser.asp"-->
<!--#include file="const.asp"-->
<!--#include file="Star.INC"-->

<%
set rs=server.createobject("adodb.recordset")
sql="select * from [user] where username='"&membername&"' and password='"&memberword&"'"
rs.open sql,conn,1,1
if rs.eof then
	errmsg="<br>操作错误。请重新登陆！"
	call error()
	Response.end
else
        username=rs("username")
        password=rs("password")
	id=rs("id")
	Sex=rs("Sex")
	Email=rs("Email")
	Name=rs("Name")
	Shenfenzheng=rs("Shenfenzheng")
	Address=rs("Address")
	Youbian=rs("Youbian")
	Tel=rs("Tel")
	oicq=rs("oicq")
	adddate=rs("adddate")
	vipdate=rs("vipdate")
rs.close
end if
%>
<LINK href="../css/style.css" type=text/css rel=stylesheet>
<body topmargin="0" leftmargin="0">

<div align="center" style="width: 267; height: 185">
<table border="0" cellspacing="0" cellpadding="10" align="center" width="157">
          <tr> 
            <td width="408"> 
              <table border="0" cellspacing="0" width="223">
                <tr> 
                  <td width="311"> 
                    <div align="center"> 
                      <table border="0" cellpadding="2" cellspacing="0" width="245" style="border-collapse: collapse" bordercolor="#111111">
                        <form name=UserModify action="Save.asp" method=post onSubmit='return validate(this)'>
                          <tr> 
                            <td width="325"  align="right" colspan="2">
                            <p align="left">&gt;&gt;资料修改</td>
                          </tr>
                          <tr> 
                            <td width="138"  align="right">登录帐号：</td>
                            <td width="187" ><%=Username%></td>
                          </tr>
                          <tr> 
                            <td width="138"  align="right">用户密码：</td>
                            <td width="187" > 
                              <input type=password maxlength=20 size=16 name=password value="<%=password%>" style="color: #000000; background-color: #ffffff; border: 1 solid #000000">
                              *</td>
                          </tr>
                          <tr> 
                            <td width="138"  align="right">验证密码：</td>
                            <td width="187" > 
                              <input type=password maxlength=16 size=16 name=password2 value="<%=password%>" style="color: #000000; background-color: #ffffff; border: 1 solid #000000">
                              *</td>
                          </tr>
                          <tr> 
                            <td width="138"  align="right">电子信箱：</td>
                            <td width="187" > 
                              <input maxlength=50 size=20 name=Email value="<%=Email%>" style="color: #000000; background-color: #ffffff; border: 1 solid #000000">
                              *</td>
                          </tr>
                          <tr> 
                            <td width="138"  align="right">您的称呼：</td>
                            <td width="187" > 
                              <select style="FONT-SIZE: 9pt" name="sex">
                                <option value="先生">先生</option>
                                <option value="女士">女士</option>
                              </select>
                            </td>
                          </tr>
                          <tr> 
                            <td width="138"  align="right">真实姓名：</td>
                            <td width="187" > 
                              <input maxlength=20 size=20 name=Name value="<%=Name%>" style="color: #000000; background-color: #ffffff; border: 1 solid #000000">
                              * </td>
                          </tr>
                          <tr> 
                            <td width="138"  align="right">身份证号：</td>
                            <td width="187" > 
                              <input maxlength=20 size=20 name=Shenfenzheng value="<%=Shenfenzheng%>" style="color: #000000; background-color: #ffffff; border: 1 solid #000000">
                              *</td>
                          </tr>
                          <tr> 
                            <td width="138"  align="right">联系电话：</td>
                            <td width="187" > 
                              <input maxlength=20 size=20 name=Tel value="<%=Tel%>" style="color: #000000; background-color: #ffffff; border: 1 solid #000000">
                              *</td>
                          </tr>
                          <tr> 
                            <td width="138"  align="right">详细地址：</td>
                            <td width="187" > 
                              <input maxlength=20 size=20 name=Address value="<%=Address%>" style="color: #000000; background-color: #ffffff; border: 1 solid #000000">
                              *</td>
                          </tr>
                          <tr> 
                            <td width="138"  align="right">邮政编码：</td>
                            <td width="187" > 
                              <input maxlength=20 size=20 name=Youbian value="<%=Youbian%>" style="color: #000000; background-color: #ffffff; border: 1 solid #000000">
                              *</td>
                          </tr>
                           <tr> 
                            <td width="138"  align="right">OICQ号码：</td>
                            <td width="187" > 
                              <input maxlength=20 size=20 name=OICQ value="<%=oicq%>" style="color: #000000; background-color: #ffffff; border: 1 solid #000000">
                              *</td>
                          </tr>
                            <tr> 
                            <td width="138"  align="right">VIP 期限：</td>
                            <td width="187" > 
                              您冲值<%=vipdate%>天还有<b><font color=red><%=isvip%>天</font></b>到期
                              </td>
                          </tr>
                          <tr> 
                            <td width="334"  align="center" colspan="2"> 
                              <input value="修 改" name=Submit type=submit>
                              &nbsp; 
                              <input type=reset value="重 写" name=Submit2>
                            </td>
                          </tr>
                        </form>
                      </table>
                    </div>
                  </td>
                </tr>
               </table>
            </td>
          </tr>
        </table>
        <BR> 
        
<script language="javascript">
<!--
function validate(theform) {
if (theform.password.value==""|| theform.password2.value==""|| theform.Email.value==""|| theform.Name.value==""|| theform.Shenfenzheng.value==""|| theform.Address.value==""|| theform.Tel.value=="") {
alert("错 误 ! 必 须 认 真 填 写 所 有 项 !");
return false; }
}
//-->
  </script>   
             
 </div>





