<%
olduser=trim(request.form("olduser")) 
user=trim(request.form("user"))      
pwd=trim(request.form("pwd"))%>
<%if user<>"" and pwd<>"" then%>
<!--#include file="conn.asp"-->
<%
sql="select * from admin where adminuser='"& olduser &"'"
set Rs=conn.Execute(sql)
if not rs.eof and not rs.bof then
sql="update admin set adminuser='"&user&"', adminpwd='"&pwd&"'"
conn.Execute sql
end if
set conn=nothing
set rs=nothing
rs.close
%>
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>修改超级用户</title>

<link rel="stylesheet" type="text/css" href="style/5.css">
</head>

<body>
<table width="600" align="center" cellspacing="0" cellpadding="1"  border="0" bgcolor=#000000>
  <tr> 
    <td> 
      <table width="600" cellspacing="0" cellpadding="4" border="0" class="table002">
        <tr> 
          <td class="jnfont7" valign="middle" align=left> <b>>> </b> <a href="default.asp"><acronym title="返回主页">主页</acronym></a> 
            | <a href="modify.asp?user=<%=user%>"><acronym title="编辑你的个人资料">修改资料</acronym></a> 
            | <%if  adminok="ok" then%><a href="usermanager.asp?user=<%=user%>&exit=ok"><acronym title="退出管理">退出管理</acronym></a><%else%><a href="usermanager.asp?user=<%=user%>"><acronym title="回复或删除留言">留言管理</acronym></a><%end if%> 
            | <a href="default.asp"><acronym title="免费申请留言本">免费申请</acronym></a> 
            | <a href="top.asp"><acronym title="留言排行榜">留言排行</acronym></a> </td>
          <td class="jnfont7" valign="middle" align=right><b><%=webname%></b></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table width="600" align="center"><td width="100%" class="jnfont6"><center>修改完成</center></td></table>
<table border="0" width="560" cellpadding="0" align="center">
  <tr> 
    <td width="100%"> 
      <hr size="1" width="80%">
    </td>
  </tr>
  <tr> 
    <td width="100%" class="jnfont6"> 
          <p align="center">
            <a href=http://www.5151.cn target=_blank>免费留言本由[中泰科技]提供</a>
        </td>
      </tr>
    </table>     
<p>&nbsp;</p>
</body>             
</html>
<%end if%>

