<!--#include file="conn.asp" -->
<!--#include file="admin_dn.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>:::管理页面:::</title>
<link href="css.css" rel="stylesheet" type="text/css">
</head>
<% 
ms=""
if Trim(Request.QueryString("w"))="save" then
 if Trim(Request.Form("password1"))=Trim(Request.Form("password2")) and request("userid")<>"" then
 sql="update admin set password='"&md5(request("password1"))&"'where userid='"&request("userid")&"'"
 conn.execute(sql)
 ms="恭喜您，更改成功"
 else
 ms="对不起。。。更改失败。。请检查您两次输入的密码不同或是用户名为空"
 end if
end if 
 %>
<body leftmargin="2" topmargin="0">
<p>管理员密码更改：</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<form name="form1" method="post" action="pass_host.asp?w=save">
  <table width="50%" height="109" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr bgcolor="#000066"> 
      <td colspan="2"><font color="#FFFFFF">管理员密码更改</font></td>
    </tr>
    <tr> 
      <td width="25%">用 户 名:</td>
      <td width="75%"><font color="#FF0000"><strong><%= session("dluser") %> 
        <input name="userid" type="hidden" id="userid" value="<%=session("dluser")%>">
        </strong></font></td>
    </tr>
    <tr> 
      <td height="21">密　　码;</td>
      <td><input name="password1" type="password" id="password1"></td>
    </tr>
    <tr> 
      <td height="32">重复密码:</td>
      <td><input name="password2" type="password" id="password2"></td>
    </tr>
    <tr bgcolor="#000066"> 
      <td height="18">&nbsp;</td>
      <td> 
        <input type="submit" name="Submit" value="确定更改"></td>
    </tr>
  </table>
</form>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div align="center">
  <p><font color="#FF0000"><%= ms %></font> </p>
  <p>更改密码后你必须重新登录才可以操作。。</p>
</div>
</body>
</html>
