<!--#include file="0.asp"-->
<!--#include file="../conn/zkconn.asp"-->
<!--#include file="md5.asp"-->
<%
If request("adminpass")="" Then
adminid=request("adminid")
adminname=request("adminname")

Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from admin where adminid="&adminid
rs.open sql,conn,1,3

rs("adminname")=adminname
Else
adminid=request("adminid")
adminname=request("adminname")
adminpass=md5(request("adminpass"))

Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from admin where adminid="&adminid
rs.open sql,conn,1,3

rs("adminname")=adminname
rs("adminpass")=adminpass
end if 
rs.update
rs.close
set rs=nothing
%>
<html>
<head>
<title>修改成功！</title>
<meta http-equiv=refresh content="1;URL=xiugai.asp">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css/css.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>&nbsp;</p>
<p>&nbsp;</p>
            
<table width="350" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
                <td>&nbsp;</td>
              </tr>
              <tr> 
                
          <td align="center"><b>修改成功！</b></td>
              </tr>
              <tr>
                <td align="center">&nbsp;</td>
              </tr>
              <tr> 
                <td align="center"><a href="javascript:history.back(-1)">点击这里返回管理页面</a></td>
              </tr>
              <tr> 
                <td>&nbsp;</td>
              </tr>
            </table>
</body>
</html>