<!--#include file="Conn.asp"--><%Checklogin("信息管理")%><!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> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>管理区域</title> <link rel="stylesheet" href="css/common.css" type="text/css" /> <link rel="stylesheet" href="css/jquery.galpop.css" type="text/css" /> <script language="javascript" src="js/jquery-1.7.2.min.js"></script> <script type="text/javascript" src="js/js.js"></script> <script type="text/javascript" src="xheditor-1.1.9/xheditor-1.1.9-zh-cn.min.js"></script> <script type="text/javascript" src="js/jquery.galpop.min.js"></script> </head> <body> <div id="man_zone"> <% Page = Request.QueryString("Page") Keys = Server.UrlEnCode(Request.QueryString("Keys")) Keyscode=TextEnCode(Request.QueryString("Keys")) Set Rs=Server.CreateObject("ADODB.RecordSet") Rs.Open "Select * From logRecord Where loginAct like '%"&Keyscode&"%' Order By id Desc",Conn,1,1 %> <table width="100%" border="0" cellpadding="3" cellspacing="1" class="table1"> <thead> <tr> <th width="10%">序号</th> <th width="20%">时间</th> <th width="70%">日志</th> </tr> </thead> <tbody> <% If Not Rs.Bof And Not Rs.Eof Then Rs.PageSize = 20 If Page = "" Then Page = 1 If Page = "end" Then Page = Rs.PageCount If Not IsNumeric(Page) Or Page < 1 Then Page = 1 Page = Cint(Page) If Page > Rs.PageCount Then Page = Rs.PageCount Rs.AbsolutePage = Page TempNum = Rs.PageSize * (Page - 1) Set Rs1=Server.CreateObject("ADODB.RecordSet") For i=1 To Rs.PageSize If Rs.Bof Or Rs.Eof Then Exit For TempNum=TempNum+1:classid=Rs(1) %> <tr onMouseOver="this.style.background='#F7FCFF'" onMouseOut="this.style.background='#FFFFFF'"> <td align="center"><%=TempNum%></td> <td align="center"><%=Rs("loginTime")%></td> <td align="center"><%=Rs("loginAct")%></td> </tr> <% Rs.MoveNext Next Else %> <tr> <td colspan="4">暂无相关记录 </td> </tr> <% End If %> </tbody> <tfoot> <tr> <td colspan="4"> <div class="showpagebox"> <% If Rs.PageCount > 1 Then PageName="?Keys="&Keys&"&Ord="&Ord&"&" Pagelen=3 If Page>1 Then Response.Write "<a href="""&PageName&"Page=1"">首页</a>" Response.Write "<a href="""&PageName&"Page="&Page-1&""">上一页</a>" End If If Pagelen*2+1 >= Rs.PageCount Then StartPage=1:EndPage=Rs.PageCount Else If Page<=Pagelen+1 Then StartPage=1 EndPage=Pagelen*2+1 Else StartPage=Page-Pagelen EndPage=Page+Pagelen End If If Page+Pagelen>Rs.PageCount Then StartPage=Rs.PageCount-Pagelen*2:EndPage=Rs.PageCount End If For i = StartPage To EndPage If i = Page Then Response.Write "<a class=""current"">"&i&"</a>" Else Response.Write "<a href="""&PageName&"Page="&i&""">"&i&"</a>" End If Next If Page<Rs.PageCount Then If Rs.PageCount - Page > Pagelen Then Response.Write "<a href="""&PageName&"Page="&Rs.PageCount&""">..."&Rs.PageCount&"</a>" Response.Write "<a href="""&PageName&"Page="&Page+1&""">下一页</a>" Response.Write "<a href="""&PageName&"Page="&Rs.PageCount&""">尾页</a>" End If End If %> </div> <div class="searchbox"> <input type="text" id="keys" class="inputTxt" value="<%If Keyscode="" Then Response.Write "请输入搜索关键词" Else Response.Write Keyscode%>" onFocus="if(this.value == '<%If Keyscode="" Then Response.Write "请输入搜索关键词" Else Response.Write Keyscode%>'){this.value='';}" onBlur="if(this.value == ''){this.value='<%If Keyscode="" Then Response.Write "请输入搜索关键词" Else Response.Write Keyscode%>';}" onKeyDown="if(event.keyCode==13){location.href='?Keys='+escape(document.getElementById('keys').value)+'&Page=<%=Page%>'}" /><input type="button" id="searchgo" class="searchgo" value="go" onClick="location.href='?Keys='+escape(document.getElementById('keys').value)+'&Page=<%=Page%>'" /> </div> </td> </tr> </tfoor> </table> <%Rs.Close:Set Rs=Nothing:Set Rs1=Nothing:Conn.Close:Set Conn=Nothing%> </div> </body> </html>