⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dispcont.asp

📁 全球商务网站系统介绍 GLOBALEC.COM.CN[生成HTML版] 系统概述: 软件名称:全球商务网站系统 当前版本:V1.0 最新版本:V1.1 运行环境:WINNT+(IIS)
💻 ASP
字号:
<!--#include file="../../conn/conn.asp"-->
<%
if Request.Cookies("globalec")("globalecmaster")="" or Request.Cookies("globalec")("masterflag")="" then
response.write "<script language='javascript'>"
response.write"this.location.href='../login.asp';</SCRIPT>" 
response.end
end if
if instr(Request.Cookies("globalec")("masterflag"),"132")=0 then
response.redirect "../err.asp"
response.end
end if
%><head> 
<title>后台管理LOG日志</title> 
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head> 

<LINK href="../css/style.css" rel=stylesheet type=text/css>
<SCRIPT language=javascript>
function unselectall(){
    if(document.myform.chkAll.checked){
 document.myform.chkAll.checked = document.myform.chkAll.checked&0;
    }
}
function CheckAll(form){
  for (var i=0;i<form.elements.length;i++){
    var e = form.elements[i];
    if (e.Name != 'chkAll'&&e.disabled==false)
       e.checked = form.chkAll.checked;
    }
  }

</SCRIPT>
<% 
if not isempty(request("selAnnounce")) then
idlist=request("selAnnounce")
if instr(idlist,",")>0 then
dim idarr
idArr=split(idlist)
dim log_id
for i = 0 to ubound(idarr)
log_id=clng(idarr(i))
call deleteannounce(log_id)
next
else
call deleteannounce(clng(idlist))
end if
end if 

page3=request("pag") 
if page3="" then page3=session("contpag") '分页数,当前分页 
if page3="" then page3="1" 

pa=request("pa") 
if pa="" then pa=session("contpa") '每页显示数 
if pa="" then pa=20 '默认每页显示15条,可任意改 
session("contpag")=page3 
session("contpa")=pa 
pages=pa '每页显示数量***************以上一段程序用于实现分页功能 

SQL="SELECT * FROM web_manage_log order by -log_id" 
dim rs 
Set rs=Server.CreateObject("ADODB.RecordSet") 
rs.Open sql,conn,1,1 
csi=0 
cs1=0 
cs100=0 
csdat1=0 
do while not rs.eof 
csi=csi+rs("cs") 
if rs("cs")=1 then cs1=cs1+1 
if rs("cs")>=100 then cs100+1 
if datevalue(rs("dat"))=date then 
csdat1=csdat1+1 
end if 
rs.movenext 
loop 
ZS=RS.RECORDCOUNT 
'*****************************************************以下一段程序用于分页显示 
%>
<body style="font-size: 9pt">
<table cellpadding=2 cellspacing=1 border=0 width=98% class=tableBorder align=center>
<TR>
<TH class=tableHeaderText colSpan=2 height=25>网站后台日志管理</TH>
<TR><tr><td valign=top class=bodytitle><table width="100%"  border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td>共有 
  <%Response.Write zs%>
  条记录,现在是第 
  <%Response.Write page3%>
  页 [<a href="dispcont.asp">刷新] </a></td>
    <td><table border="0" cellpadding="0" style="font-size: 9pt"> 
<tr><td>页码</td><%page2=1 
for i=1 to zs step pages 
if page3=cstr(page2) then 
%><td >[<%Response.Write page2%>]</td> 
<% else %> 
<td ><a href="dispcont.asp?pag=<%Response.Write page2%>">[<%Response.Write page2%>]</a></td> 
<% end if 
page2=page2+1 
next 
sn=pages*(page3-1) '当前记录号=每页显示数*页数-每页显示数 
if sn>zs then sn=0 
rs.move sn,1 
'**********************************以上一段用于分页 
%> </tr></table></td>
  </tr>
</table></td>
</tr>
<tr align=center><td height=30>

<table width="100%" border="0" align="center" cellpadding="2" cellspacing="2">
 <Form name="form" method="POST" action="dispcont.asp"> 
 <tr>
    <td width="8%" class="forumRowHighlight">选中</td>
    <td width="10%" class="forumRowHighlight">编号</td>
    <td width="23%" class="forumRowHighlight">最后登陆后台时间</td>
    <td width="20%" class="forumRowHighlight">最后登陆IP</td>
    <td width="12%" class="forumRowHighlight">登陆后台次数</td>
    <td width="17%" class="forumRowHighlight">首次登陆后台日期</td>
    <td width="10%" class="forumRowHighlight">登陆用户</td>
  </tr><% 
for i=1 to pages 
Response.Write "</tr>"
Response.Write "<td class=forumRow><input name='selAnnounce' type='checkbox' value='"&cstr(rs("log_id"))&"'></td>" 
Response.Write "<td class=forumRow>"&rs("log_id")&"</td>" 
Response.Write "<td class=forumRow>"&rs("dat")&"</td>" 
Response.Write "<td class=forumRow>"&rs("IP")&"</td>" 
Response.Write "<td class=forumRow>"&rs("CS")&"</td>" 
Response.Write "<td class=forumRow>"&rs("DAT1")&" </td>"
Response.Write "<td class=forumRow>"&rs("admin_username")&" </td>"
Response.Write "</tr>" 
rs.movenext 
if rs.eof then exit for 
next 
rs.close 
%> 
<tr><td class=forumRow>合计<%=zs%></td>
    <td colspan="2" class=forumRow>登陆后台次数为100次以上的有<%=cs100%> </td>
    <td class=forumRow>登陆后台次数为1的有:<%=cs1%></td>
    <td class=forumRow>总登陆<%=csi%>次</td>
    <td colspan="4" class=forumRow>今天登陆:<%=csdat1%>次</td>
    </tr>
	<tr><td class=forumrowHighLight colspan=9>请选择要删除的事件,<input name='chkAll' type='checkbox' id='chkAll' onclick='CheckAll(this.form)' value='checkbox'>全选 <input type=submit name=act value=删除日志  onclick="{if(confirm('您确定执行的操作吗?')){this.document.even.submit();return true;}return false;}"> 
	</td>
	</tr></form> 
</table>
</td>
</tr>
</table>
<% 
sub deleteannounce(log_id)
dim rs,sql
set rs=server.createobject("adodb.recordset")
sql="delete from [web_manage_log] where log_id="&cstr(log_id)
conn.execute sql
End sub
%>
<br>
<!--#include file="../copy.asp"-->

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -