<!--#include file="../include/conn.asp"-->
<!--#include file="../include/page.asp" -->
<!--#include file="seeion.asp" -->
<%
'website:http://www.angelasp.com
' Angel工作室技术开发团队:QQ:815657032、QQ：709047174
' Copyright (C) Angel工作室 (http://www.angelasp.com).  All rights reserved
if request("deladmin")="admin_yes" then
set rs=server.createobject("adodb.recordset")
id=Request.QueryString("id")
sql="select * from Admin where id="&id
rs.open sql,conn,1,3
rs.delete
rs.update
Response.Write "<script>alert('管理员删除成功！');window.location.href='adminlist.asp';</script>"
end if 
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Angel工作室留言板系统V1.0</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="keywords" content="留言板系统V1.0-Powered By angelasp.com" />
<meta name="description" content="留言板系统V1.0-Powered By angelasp.com" />
<link type="text/css" href="css/css.css" rel="stylesheet"/>
<script type="text/javascript" src="../js/jquery-1.js"></script>
<script type="text/javascript" src="../js/js.js"></script>
</head>
<body>
<div class="bodycontent">
<!--#include file="head.asp"-->

<div class="msg_content">
<div class="left_menu">
<div class="leftmenutext"><a href="../index.asp">前台首页</a> <a href="index.asp">后台首页</a></div>
<div class="leftmenutext_top">留言板管理</div>
<div class="leftmenulistnav">
<!--#include file="left_menu.asp"-->
</div>
</div>
<div class="right_messagelist">
<div class="leftmenutext">当前操作：注册会员管理</div>
<div class="admin_sitecontent">



<div class="listtextth">			
<ul>
<li style="width:100px">管理员ID</li>
<li style="width:100px">管理帐户</li>
<li style="width:220px">添加日期</li>
<li style="width:100px">操作</li>
</ul>
</div>
<%	
set rs=server.createobject("adodb.recordset") 
exec="select * from Admin order by id desc" 
rs.open exec,conn,1,1 
if rs.eof then
response.write ("<div class=""listtextth"">暂无管理员信息!</div>")
else
rs.PageSize =30 '每页记录条数
iCount=rs.RecordCount '记录总数
iPageSize=rs.PageSize
maxpage=rs.PageCount 
page=request("page")
if Not IsNumeric(page) or page="" then
page=1
else
page=cint(page)
end if
if page<1 then
page=1
elseif  page>maxpage then
page=maxpage
end if
rs.AbsolutePage=Page
if page=maxpage then
x=iCount-(maxpage-1)*iPageSize
else
x=iPageSize
end if	
%>
            <% 
for i=1 to rs.pagesize 
j=i 
if j mod 2=0 then 
bg="#F1F5F8" 
else 
bg="#FFFFFF" 
end if 
%> 
<div class="listtext">
<ul>
<li style="width:100px"><%=rs("id")%></li>
<li style="width:100px"><a href="user_modify.asp?id=<%=rs("id")%>" style="color:#003399"><%=rs("book_name")%></a></li>

<li style="width:220px" title="<%=rs("book_addtime")%>"><%=rs("book_addtime")%></li>
<li style="width:100px"> 
<input type="button" name="Submit3" value="修改" onclick="window.location.href='admin_modify.asp?id=<%=rs("id")%>' " class="btn"/>
<input type="button" name="Submit" value="删除" onclick="javascript:if(confirm('确定删除？删除后不可恢复!')){window.location.href='?id=<%=rs("id")%>&amp;deladmin=admin_yes';}else{history.go(0);}"  class="btn"/>
</li>
</ul>
</div>
<% 
rs.movenext 
if rs.eof then exit for 
next 
%>
<%
end if
%>
<div class="addadmin_title">
<h2>添加管理员</h2>
</div>
<form name="myform" class="myform" method="post" action="insert_admin.asp">
      <div class="sitesetlist" style="height:30px">
                <div class="bfont">用户名：</div>
                <div style="width:120px;float:left;"><input class="txtbox" type="text" name="book_name" value=""/> </div>
       </div>

      <div class="sitesetlist" style="height:30px">
                <div class="bfont">登录密码：</div>
                <div style="width:120px;float:left;"><input class="txtbox" type="text" name="password" value=""/> </div>
       </div>

      <div class="sitesetlist" style="height:30px">
                <div class="bfont">重复密码：</div>
                <div style="width:120px;float:left;"><input class="txtbox" type="text" name="password2" value=""/> </div>
       </div>

      <div class="sitesetlist" style="height:30px">
                <div class="bfont">电子邮箱：</div>
                <div style="width:120px;float:left;"><input class="txtbox" type="text" name="book_email" value=""/></div>
       </div>
 <div class="sitesetlist" style="height:30px">
       <input name="submit" type="submit" class="submit_button" value="新增管理员" />
      </div>
</form>

</div>

</div>
 <!--#include file="foot.asp"-->
</div>
</body>
</html>












