📄 op_rec.asp
字号:
<!--#include file="../config.asp"-->
<!--#include file="../inc/check_login.asp"-->
<!--#include file="../inc/functions.asp"-->
<%
Application_ID = 6000400 '本功能编号,含义请查看编码表
if not CheckAuth(Session("Employee_ID"),Application_ID) then '验证权限
Server.Transfer "../err/un_authorized.htm"
response.end
end if
%>
<!--**************身份验证部分****************-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK rel="stylesheet" type="text/css" href="../style.css">
<script language="JavaScript" type="text/javascript" src="../js/functions.js"></script>
</head>
<body>
<a href="op_rec_clear.asp" onClick="return ConfirmOption('清除日志');" target="foot">清除日志</a>
<hr size=1>
<table bgcolor="#FFFFFF" border=0 cellpadding=1 cellspacing=1 width="100%">
<tr bgcolor="#EFEFEF">
<td>操作员</td>
<td>操作内容</td>
<td>操作时间</td>
<td>IP地址</td>
<td>执行命令</td>
</tr>
<%
Set conn = Server.CreateObject("ADODB.Connection")
Set rs = Server.CreateObject("ADODB.Recordset")
conn.open connstr
sql = "sp_Employee_Op_Rec_List"
'response.write sql
rs.open sql,conn,1
if rs.eof then
response.write "<tr><td colspan=18>暂时没有记录</td></tr></table>"
response.end
end if
PageSize = request.Cookies("PageSize")
if not IsNot(PageSize,"n") then PageSize = DefaultPageSize
rs.pagesize = PageSize
PageCount = rs.PageCount
PageNo = request("PageNo")
if PageNo = "" or CInt(PageNo) < 1 then PageNo = 1
if CInt(PageNo) > PageCount then PageNo = PageCount
rs.absolutepage = PageNo
i = 0
while not rs.eof and i < rs.pagesize
Rec_ID = rs("Rec_ID")
ID_Pointer = Rec_ID
Employee_ID = rs("Employee_ID")
Employee_Name = rs("Employee_Name")
Rec_Content = rs("Rec_Content")
Rec_Date = rs("Rec_Date")
Remote_Addr = rs("Remote_Addr")
Command_Line = rs("Command_Line")
if i mod 2 = 0 then
response.write "<tr>"
else
response.write "<tr bgcolor=#EFEFEF>"
end if
%>
<td><a href="../employee/detail.asp?Employee_ID=<%=Employee_ID%>" target="foot"><%=Employee_Name%></a> </td>
<td><%=Rec_Content%> </td>
<td><%=Rec_Date%> </td>
<td><%=Remote_Addr%> </td>
<td><a href="#" onClick="return view_command_line('<%=Command_Line%>');">查看</a> </td>
</tr>
<%
i = i + 1
rs.movenext
wend
rs.close
set rs = nothing
set conn = nothing
%>
<tr bgcolor="#EFEFEF">
<td colspan="6">
<a href="op_rec.asp?PageNo=1&Customer_Name=<%= Customer_Name %>&State=<%= State %>&City=<%= City %>&Address=<%= Address %>&Tel=<%= Tel %>&Fax=<%= Fax %>&Email=<%= Email %>&Homepage=<%= Homepage %>&Contract_Status=<%= Contract_Status %>"><font face="Webdings">5</font>第一页</a>
<a href="op_rec.asp?PageNo=<%= PageNo - 1 %>&Customer_Name=<%= Customer_Name %>&State=<%= State %>&City=<%= City %>&Address=<%= Address %>&Tel=<%= Tel %>&Fax=<%= Fax %>&Email=<%= Email %>&Homepage=<%= Homepage %>&Contract_Status=<%= Contract_Status %>"><font face="Webdings">3</font>上一页</a>
<a href="op_rec.asp?PageNo=<%= PageNo + 1 %>&Customer_Name=<%= Customer_Name %>&State=<%= State %>&City=<%= City %>&Address=<%= Address %>&Tel=<%= Tel %>&Fax=<%= Fax %>&Email=<%= Email %>&Homepage=<%= Homepage %>&Contract_Status=<%= Contract_Status %>"><font face="Webdings">4</font>下一页</a>
<a href="op_rec.asp?PageNo=<%= PageCount %>&Customer_Name=<%= Customer_Name %>&State=<%= State %>&City=<%= City %>&Address=<%= Address %>&Tel=<%= Tel %>&Fax=<%= Fax %>&Email=<%= Email %>&Homepage=<%= Homepage %>&Contract_Status=<%= Contract_Status %>"><font face="Webdings">4</font>最后一页</a>
</td>
</tr>
</table>
</body>
</html>
<script language="JavaScript" type="text/javascript">
function view_command_line(command_line){
parent.foot.document.writeln(command_line);
parent.foot.document.close();
return false;
}
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -