📄 logmanage.asp
字号:
<%Admin="log"%>
<!--#include file="check.asp"-->
<!--#include file="mdb_path_user.asp"-->
<%
'#################################################################
'# 晓宇听幽网站内容管理系统(xoYu CMS)
'#
'# 版权所有: 晓宇听幽工作室
'#
'# 制作人 : xoyu(晓宇)
'#
'# 主页地址: http://www.xoYu.com 晓宇听幽工作室
'# 论坛地址: http://www.xoYu.com/bbs/ 晓宇听幽讨论区
'#
'#【版权声明】
'#################################################################
'# 本软体为共享软体(shareware)提供个人网站免费使用,请勿非法修改,
'# 转载,散播,或用于其他图利行为,并请勿删除版权声明。
'# 如果您的网站正式起用了这个脚本,请您通知我们,以便我们能够知晓!
'# 如果可能,请在您的网站做上我们的链接,希望能给予合作。谢谢!
'#################################################################
'# 程序名称:晓宇听幽网站内容管理系统·网站内容管理系统
'# 英文名称:xoYu News 2004 Professional For xoYu CMS
'# 程序创建时间:2003-7-10
'# 程序完成时间:2003-9-11
'# 最后修改时间:2003-11-15
'#################################################################
'# 请您尊重我们的劳动和版权,不要删除以上的版权声明部分,谢谢合作
'# 如有任何问题请到我们的论坛(http://www.xoyu.com/bbs/)告诉我们。
'#################################################################
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=20
for i=1 to rs.pagesize*(page-1)
if not rs.eof then
rs.movenext
end if
next
%>
<html>
<head>
<title>管理中心 - 晓宇听幽 网站内容管理系统</title>
<meta copy="程序制作:xoyu(QQ:5964887)www.xoyu.com">
<link rel="stylesheet" href="admin.css" type="text/css">
</head>
<body background="images/BLogo.gif">
<form name=form method=post action="">
<script language="javascript">
function CheckAll(form)
{
for (var i=0;i<form.elements.length;i++)
{
var e = form.elements[i];
if (e.name != 'chkall')
e.checked = form.chkall.checked;
}
}
function Isvalidity(val,name){
if (val.value!='' && (isNaN(val.value) || val.value<=0))
{alert(name+"应填有效数字!");
val.value="";
val.focus();}
}
</script>
<table width="95%" border="0" cellspacing="1" cellpadding="3" align=center class="tableBorder">
<tr>
<th width="19%" height="25" align="center">
<b>
<font color="#FF0000">晓宇听幽 网站内容管理系统 </font>登陆日志管理</b></th>
</tr>
<tr valign="middle" align="center">
<td height="2" class=forumrow>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<%
if rs.eof and rs.bof then
%>
<tr>
<td class=forumrow width="100%" align="center">暂时没有登陆纪录!</td>
</tr>
<%
response.end
end if
for i=1 to rs.pagesize
if rs.eof then exit for
if rs("result")="Error" then
%>
<tr>
<td class=forumrow 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" class=forumrow>
<input type=checkbox Name=ID Value=<%=rs("ID")%>>
</td>
</tr>
<%
else
%>
<tr>
<td height="20" class=forumrow 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" class=forumrow>
<input type=checkbox Name=ID Value=<%=rs("ID")%>>
</td>
</tr>
<%
end if
rs.movenext
next
%>
<tr>
<td class=forumrow height=20 width="100%" colspan=4 align=right onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';>
<input type=hidden value=DEL name=operation>
<input type="checkbox" name="chkall" onclick="CheckAll(this.form)" value="ON">选中所有
<input type=submit value=删除 onclick="return Del()">
</td>
</tr>
<tr>
<td class=forumHeaderBackgroundAlternate height=20 width="100%" colspan=4 onMouseOver=this.style.backgroundColor='#FAFBFC'; this.style.cursor='hand'; onMouseOut=this.style.backgroundColor='';>
<%
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 + -