<!--#include file="../siteconfig/conn.asp"-->
<%
if session("adminlogin")<>sessionvar then
Response.Write("<script language=javascript>alert('你尚未登录，或者超时了！请重新登录');this.location.href='login.asp';</script>")
Response.End
End if
%>
<!--#include file="Admin_ManageFunction.asp"-->
<HTML>
<HEAD>
<TITLE>分类管理</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"> 
<LINK REL="stylesheet" HREF="css.css" TYPE="text/css">
</HEAD>
<script language="JavaScript" type="text/javascript" src="js.js"></script>
<BODY>
<%dim Menu,Admin_UserName,Admin_Id
Admin_UserName=Request("Admin_UserName")
Admin_Id=Request("Admin_Id")
Menu=Request("Menu")
if Menu="DelManage" then
   conn.execute "delete from Admin where Admin_Id="&Admin_Id
          Response.Write("<script language=javascript>alert('管理员删除成功');parent.window.location.reload();DivOpenClose('',2,0,0);</script>")
	      Response.End()
end if
rs.open"select Admin_Id,Admin_UserName from Admin where Admin_Id="&Admin_Id,conn,1,3
if not rs.eof then
   Admin_UserName=rs("Admin_UserName")
end if
rs.close
%>
<table width="100%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#EEEEEE">
  <tr>
    <td width="45%">删除管理员</td>
    <td width="55%" align="right"><a href="#" onClick="javascript:DivOpenClose('',2,0,0);return false">关闭</a></td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td colspan="2"><div align="center">
      <form name="form1" method="post" action="?Menu=DelManage">
        <input name="Admin_Id" type="hidden" value="<%=Admin_Id%>">
		<input name="Admin_UserName" type="hidden" value="<%=Admin_UserName%>">
        <input name="Submit" type="submit" class="SubmitCss" onClick='javascript:return confirm("确定要删除此用户名吗？删除不能恢复！");' value="确定删除 [<%=Admin_UserName%>] 用户名吗？&#13;删除不能恢复！">
      </form>
      </div></td>
  </tr>
</table>
</BODY>
</HTML>

