<!--#include file="conn.asp" -->
<!--#include file="inc/usdl.asp" -->
<!--#include file="md5.asp" -->

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=page_title%>用户管理中心.</title>
<link href="css.css" rel="stylesheet" type="text/css">
</head>

<%  
char=""
if Trim(Request.QueryString("w"))="save" then
if Trim(Request("password1"))=Trim(Request("password2")) and Trim(Request("password1"))<>"" then
sql="update user set password='"&md5(Trim(Request("password1")))&"' where userid=('"&session("us")&"')"
conn.execute(sql)
char="密码修改成功！！！"
else 
char="修改不成功。。。。两次输入密码不正确或是密码为空！！！"
end if


end if
 %>
<body leftmargin="3" topmargin="0">

<!--#include file="head.asp" -->
<table width="763" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="763" height="19" valign="bottom"><font color="#990000">　→ </font>你当前位置：<a href="default.asp">首 
      页 </a>&gt;&gt;管理中心</td>
  </tr>
  <tr>
    <td height="1" background="images/2.jpg"></td>
  </tr>
</table>
<table width="763" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td width="175" valign="top"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td><div align="center"><img src="pic/manager.gif" width="174" height="70" border="1"></div></td>
        </tr>
        <tr> 
          <td height="17" bgcolor="#EEEEEE"> <div align="center">欢迎: <font color="#FF0000"><strong><%= session("us") %></strong></font> 光临</div></td> 
        </tr>
        <tr> 
          <% us=session("us")
			sql="select * from user where userid='"&us&"'"
			rs.open sql,conn,1,1
			
			 %>
          <td><p><font color="#FF0000">您的账面存款：</font></p>
            <p>&nbsp;</p>
            <p align="center"><font color="#FF0000">￥ <%= rs("je") %></font></p> 
            <p align="center">&nbsp;</p>
            <p>客户等级: <font color="#FF0000"><%= rs("dl")  %> 
              <% rs.close  %>
              </font></p></td>
        </tr>
        <tr>
          <td height="1" background="images/2.jpg"> </td>
        </tr>
      </table> 
	  <div align="center"> 
         <!--#include file="user_inc.asp" -->
        </div></td>
    <td width="1" background="images/1.jpg"> </td>
    <td width="587" valign="top"> 
      <table width="573" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="573"><a href="user.asp"><img src="images/mameger.gif" width="437" height="43"></a></td>
        </tr>
        <tr>
          <td><form name="form2" method="post" action="user2.asp?w=save">
              <div align="center">
                <p>&nbsp;</p>
                <p>会员<font color="#FF0000"><strong><%= session("us") %></strong></font>的密码 更改</p> 
                <p>&nbsp;</p>
                <table width="233" border="0" cellspacing="0" cellpadding="0">
                  <tr> 
                    <td width="83" height="28">输入新密码：</td>
                    <td width="150">
<input name="password1" type="password" id="password1" size="15"></td>
                  </tr>
                  <tr> 
                    <td height="26">确认新密码：</td>
                    <td><input name="password2" type="password" id="password2" size="15"></td>
                  </tr>
                  <tr> 
                    <td height="32" colspan="2"> 
                      <input type="submit" name="Submit2" value="-确定修改-"> 
                    </td>
                  </tr>
                </table>
                <p>&nbsp;</p><p>&nbsp;</p>
              </div>
            </form></td>
        </tr>
      </table>
      <p>&nbsp;</p>
      <p align="center"> <font color="#FF0000"><%= char %></font></p></td>
  </tr>
  <tr> 
    <td>&nbsp;</td>
    <td colspan="2">&nbsp;</td>
  </tr>
</table>
<%
call CloseDatabase '关闭数据库链接
%>
<!--#include file="top.asp" -->

</body>
</html>





























