<!--#Include File="Connection.Asp"-->
<!--#Include File="JaClog.Asp"-->
<%
Dim Rs,sqlstr,Img,MaxPerPage,text,checkpage,CurrentPage,i
sqlstr = "SELECT * FROM [JaAdmin] Order By ID DESC"
Set Rs=Server.CreateObject("ADODB.RecordSet")
rs.Open sqlstr,conn,1,1
MaxPerPage=30
text="0123456789"
Rs.PageSize=MaxPerPage
for i=1 to len(request("page"))
checkpage=instr(1,text,mid(request("page"),i,1))
if checkpage=0 then
exit for
end if
next

If checkpage<>0 then
If NOT IsEmpty(request("page")) Then
CurrentPage=Cint(request("page"))
If CurrentPage < 1 Then CurrentPage = 1
If CurrentPage > Rs.PageCount Then CurrentPage = Rs.PageCount
Else
CurrentPage= 1
End If
If not Rs.eof Then Rs.AbsolutePage = CurrentPage end if
Else
CurrentPage=1
End if
i=0
%> 
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<link href="JaImg/css.css" rel="stylesheet" type="text/css">
</head>
<script src="../JsInc/AdminPages.js"></script>
<body>
<form action="?action=del" method="post" id="form1" name="form1">
<table width="100%" height="25" border="0" cellpadding="0" cellspacing="0" class="itemhead">
  <tr>
    <td valign="bottom" bgcolor="#BCDBFE" class="itemheadtd"><table width="238" height="18" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td width="238" class="item">管理员管理</td>
        </tr>
    </table></td>
  </tr>
</table>

  <table width="100%" border="0" align="center" cellpadding="3" cellspacing="0" bgcolor="#FFFFFF" style="margin-bottom:1px">
    <tr> 
      <td height="28" bgcolor="#ACD2FD" style="padding-left:10px"><strong> 管理员列表 
        (<a href="AdminAdd.asp">添加管理员</a>)</strong> </td>
    </tr>
  </table>
	  
  <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#164481">
    <tr bgcolor="#DAEBFE"> 
      <td width="73" align="center" bgcolor="#DAEBFE"><strong>ID</strong></td>
      <td width="235" align="center" bgcolor="#DAEBFE"><strong>管理员</strong></td>
      <td width="278" align="center" bgcolor="#DAEBFE"><strong>登陆IP</strong></td>
      <td width="220" align="center" bgcolor="#DAEBFE"><strong>日期</strong></td>
      <td width="159" align="center" bgcolor="#DAEBFE"><strong>操作</strong></td>
    </tr>
    <%Do While Not Rs.Eof%>
    <tr bgcolor="#FFFFFF"> 
      <td align="center"><%=Rs(0)%></td>
      <td align="center"><%=Rs(1)%></td>
      <td align="center"><%=Rs(3)%></td>
      <td align="center"><%=Rs(4)%></td>
      <td align="center" bgcolor="#FFFFFF"  style="padding-left:5px"><a href="AdminEdit.asp?adminID=<%=Rs(0)%>">编辑</a> 
        | <a href="AdminDel.asp?adminID=<%=Rs(0)%>" onClick="{if(confirm('确定删除吗?')){return true;}return false;}">删除</a></td>
    </tr>
    <%
i=i+1 
If i >= MaxPerpage Then Exit do 
rs.MoveNext
Loop
%>
  </table>
      </form>
<div align="center">
  <Script Language="JavaScript">Pages(<%=CurrentPage%>,<%=Rs.PageCount%>,<%=Rs.RecordCount%>,'page');</Script>
</div>
</body>
</html>
