?? logmanage.asp
字號:
<!--#INCLUDE FILE="checklogin1.asp" -->
<!--#INCLUDE FILE="theme.asp" -->
<%
if request.form("operation")="DEL" then
num=request.form("ID").Count
for i=1 to num
conn.execute("delete from Log where ID="&request.form("ID")(i))
next
end if
page=request.querystring("page")
if page<=1 or page="" then page=1
set rs=server.createobject("adodb.recordset")
sql="select ID,User,ErrorPas,LoginIP,Date,OS,result from Log order by Date desc"
rs.open sql,conn,1,1
rs.pagesize=15
for i=1 to rs.pagesize*(page-1)
if not rs.eof then
rs.movenext
end if
next
%>
<html>
<head>
<title>登陸信息</title>
<link href="include/site.css" type="text/css" rel="stylesheet">
</head>
<SCRIPT LANGUAGE='JavaScript' SRC='script/jsfun.js' TYPE='text/javascript'></script>
<body>
<form name=form method=post action="">
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="<%=tablebordercolor%>">
<tr bgcolor="<%=tabletitlecolor%>">
<td colspan="3" width="100%" height="25">
<!--#include file = topMenu.htm--></td>
</tr>
<tr bgcolor="<%=tabletitlecolor%>" valign="middle" align="center">
<td height="2" colspan="3">
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="<%=tablebordercolor%>">
<%
if rs.eof and rs.bof then
%>
<tr>
<td width="100%" align="center" height="40"><font color=#ffffff>暫時沒有任何登陸信息</font></td>
</tr>
<%
response.end
end if
for i=1 to rs.pagesize
if rs.eof then exit for
if rs("result")="Error" then
%>
<tr bgcolor="<%=tabletitlecolor%>">
<td bgcolor=#ffffff height="20" onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';>
<font color="#FF0000">非法登錄--> </font>用戶名:<font color="#FF0000"><%=rs("User")%></font> 密碼:<font color="#FF0000"><%=rs("ErrorPas")%> </font>登錄IP:<font color="#FF0000"><%=rs("LoginIP")%> </font>登錄日期:<%=rs("Date")%><font color="#FF0000"> </font>操作系統:<font color="#FF0000"><%=rs("OS")%></font>
</td>
<td height="20" bgcolor=#ffffff>
<input type=checkbox Name=ID Value=<%=rs("ID")%>>
</td>
</tr>
<%
else
%>
<tr bgcolor="<%=tabletitlecolor%>">
<td height="20"bgcolor=#ffffff onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';>
用戶名:<%=rs("User")%> 登錄IP:<%=rs("LoginIP")%> 登錄日期:<%=rs("Date")%> 操作系統:<%=rs("OS")%>
</td>
<td height="20" bgcolor=#ffffff>
<input type=checkbox Name=ID Value=<%=rs("ID")%>>
</td>
</tr>
<%
end if
rs.movenext
next
%>
<tr bgcolor="#FFFFFF">
<td width="100%" height=20 colspan=4 align=right onMouseOver=this.style.backgroundColor='#FAFBFC'; onMouseOut=this.style.backgroundColor=''; this.style.cursor='hand';>
<input type=hidden value=DEL name=operation>
<input type="checkbox" name="chkall" onclick="CheckAll(this.form)">選中所有
<input type=submit value=刪除 onclick="return Del()">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="100%" height=20 colspan=4 onMouseOver=this.style.backgroundColor='#FAFBFC'; onMouseOut=this.style.backgroundColor=''; this.style.cursor='hand';>
<%
for i=1 to rs.PageCount
response.write("第<a href=LogManage.asp?Page="&i&"><b> "&i&" </a></b>頁")
next
rs.close
%>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -