<!--#include file ="Conn.asp"-->
<!--#include file ="Check_Manager.asp"-->
<!--#include file ="Char.asp"-->
<%
If Request.QueryString("action")="del" Then
uid = Request.QueryString("id")
Set deluser = conn.execute("Delete From [Manager] Where id = "&uid)
JaSys("管理员" & session("ManagerUser") & "<font color=red>删除ID为"&uid&"的管理员</font>")
Response.Redirect "Admin.asp"
End If
%>
<html><head><title>管理中心</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="admin/admin.css" type=text/css rel=stylesheet>
</head><body text="#000000">
<table width="98%" border="0" cellpadding="0" cellspacing="0" align="center" class=TableBorder>
  <tr height="22" valign="middle" align="center"> 
    <th width="10%">ID</th>
    <th width="30%">登陆名</th>
    <th width="20%">上次登陆时间</th>
    <th width="10%">上次登陆IP</th>

	<th width="20%">操作</th>
  </tr>
<%
Set u = conn.execute("Select * From [Manager]") 
Do while Not (u.Eof or u.Bof)
%>
  <tr valign="middle" bgcolor="#FFFFFF" align="center" height="22"> 
    <td width="10%"><%=u(0)%></td>
    <td width="30%"><a href="Admin_Edit.asp?id=<%=u(0)%>" title="点击编辑"><%=strkill(u(1))%></a></td>
    <td width="20%"><%=u(4)%></td>
    <td width="10%"><%=u(3)%></td>
	
    <td width="20%"><a href="Admin_Edit.asp?id=<%=u(0)%>">编辑</a> | <a href="Admin.asp?action=del&id=<%=u(0)%>" onclick="{if(confirm('确定删除吗?')){return true;}return false;}">删除</a> 
      | <a href="Admin_Add.asp?action=add">添加</a> </td>
  </tr>
<%
u.movenext
Loop
%>  
</table>