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

📄 adsurl.asp

📁 漂亮的企业网站系统v11 1、整体修改了上一版的一些BUG。 2、修改了页面底部的统计形式。 3、修改了“公告更新”栏目
💻 ASP
字号:
<!--#include file ="include/config.asp"-->
<!--#include file ="include/conn.asp"-->
<%
dim AdsID,rs1,ObjUrl
AdsID=request("AdsID")
if AdsID<>"" then

set rs=conn.execute("select ObjUrl,ClickState,ClickCount,AdsState,ClickFiltrationIP,ClickTime from Ads Where AdsID="&AdsID)
if rs.eof then response.end
if rs("ClickState")=true then
  set rs1=conn.execute("select count(*) as count from AdsAccessLog where AdsID="&AdsID&" and OpType='click' group by AdsID")  
  if not rs1.eof then 
    if rs1(0)>rs("ClickState") then conn.execute("Update Ads Set AdsState=0 where AdsID="&AdsID)
  end if
  rs1.close
  set rs1=nothing
end if

ObjUrl=rs(0)


response.redirect ObjUrl
end if
call close_conn()
%>

⌨️ 快捷键说明

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