📄 ads_manage.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%Option Explicit%>
<!--#include file="../../Conn.asp"-->
<!--#include file="../../SysCls/KS_CommonCls.asp"-->
<!--#include file="../Inc/Session.asp"-->
<%
'===================================================================================================================
'软件名称:科汛网站管理系统
'当前版本:科汛网站管理系统 V2.2 SP2 Free
'Copyright (C) 2006-2008 Kesion.Com All rights reserved.
'产品咨询QQ:9537636,41904294
'技术支持QQ:111394,54004407
'程序版权:科汛网络
'程序开发:科汛网络开发组(总策划:林文仲)
'E-Mail :kesioncms@hotmail.com webmaster@kesion.com
'官方网站:http://www.kesion.com
'演示站点:http://test.kesion.com
'郑重声明:
' ①、免费版本请在程序首页保留版权信息,并做上本站LOGO友情连接,商业版本无此要求;
' ②、任何个人或组织不得在授权允许的情况下删除、修改、拷贝本软件及其他副本上一切关于版权的信息;
' ③、科汛网络保留此软件的法律追究权利
'===================================================================================================================
Dim KSCls
Set KSCls = New Ads_Option
KSCls.Execute()
Set KSCls = Nothing
Class Ads_Option
Private KSCMS
Private Sub Class_Initialize()
Set KSCMS=New CommonCls
End Sub
Private Sub Class_Terminate()
Call KSCMS.CloseConn()
Set KSCMS=Nothing
End Sub
Sub Execute()
Dim ttarg
Dim ComeUrl:ComeUrl=Cstr(Request.ServerVariables("HTTP_REFERER"))
IF ComeUrl="" Then ComeUrl="Ads_List.asp"
%>
<html>
<link href="Style.CSS" rel="stylesheet" type="text/css">
<div align=center>
<center><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td align=center>
<%
dim getid,RSObj,adssql
getid=cint(KSCMS.G("id"))
Select Case KSCMS.G("job")
case "close"
set RSObj=server.createobject("adodb.recordset")
adssql="Select id,sitename,act From KS_Advertise where id="&getid
RSObj.open adssql,Conn,1,3
RSObj("act")=0
RSObj.Update
Call KSCMS.Alert("广告条[" & RSObj("sitename") & "]被暂停!", ComeUrl)
RSObj.close
case "delit"
Call KSCMS.Confirm("删除此广告,则其 IP 记录也将被删除!广告及其IP记录被删除后不能恢复!", "Ads_Manage.asp?ComeUrl1=" & Server.URLEncode(ComeUrl) &"&id=" & getid &"&job=del",ComeUrl)
case "del"
adssql="delete From KS_Advertise where id="&getid
Conn.execute(adssql)
dim adssqldelip
adssqldelip="delete From KS_Adiplist where adid="&getid
Conn.execute(adssqldelip)
Call KSCMS.Alert("广告条删除成功!", KSCMS.G("ComeUrl1"))
case "yulan"
set RSObj=server.createobject("adodb.recordset")
adssql="Select id,sitename,intro,gif_url,window,show,place,time,xslei,wid,hei From KS_Advertise where id="&getid
RSObj.open adssql,Conn,3,3
RSObj("show")=RSObj("show")+1
RSObj("time")=now()
RSObj.Update
if RSObj("window")=0 then
ttarg = "_blank"
else
ttarg="_top"
end if
Dim GaoAndKuan
GaoAndKuan=""
if isnumeric(RSObj("hei")) then
GaoAndKuan=" height="&RSObj("hei")&" "
else
if right(RSObj("hei"),1)="%" then
if isnumeric(Left(len(RSObj("hei"))-1))=true then
GaoAndKuan=" height="&RSObj("hei")&" "
end if
end if
end if
if isnumeric(RSObj("wid")) then
GaoAndKuan=GaoAndKuan&" width="&RSObj("wid")&" "
else
if right(RSObj("wid"),1)="%" then
if isnumeric(Left(len(RSObj("wid"))-1))=true then
GaoAndKuan=GaoAndKuan&" width="&RSObj("wid")&" "
end if
end if
end if
Select Case RSObj("xslei")
Case "txt"%><a title="<%=RSObj("sitename")%>" href="url.asp?id=<%=RSObj("id")%>" target="<%=ttarg%>"><%=UBBCode(RSObj("intro"))%></a>
<% Case "gif"%><a href="url.asp?id=<%=RSObj("id")%>" target="<%=ttarg%>"><img art="<%=RSObj("sitename")%>" border=0 <%=GaoAndKuan%> src="<%=RSObj("gif_url")%>"></a>
<% Case "swf"%><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http:/download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0"; <%=GaoAndKuan%>><param name=movie value="<%=RSObj("gif_url")%>"><param name=quality value=high>
<embed src="<%=RSObj("gif_url")%>" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="<%=RSObj("wid")%>" height="<%=RSObj("hei")%>"></embed></object>
<% Case "dai"%><iframe marginwidth=0 marginheight=0 frameborder=0 bordercolor=000000 scrolling=no name="忠网WEB广告管理系统 zon.cn" src="daima.asp?id=<%=RSObj("id")%>" <%=GaoAndKuan%>></iframe>
<% Case else%><a href="url.asp?id=<%=RSObj("id")%>" target="<%=ttarg%>"><img art="<%=RSObj("sitename")%>" border=0 <%=GaoAndKuan%> src="<%=RSObj("gif_url")%>"></a>
<%
End Select
RSObj.close
case "yulanggw"
%>
<script language="javascript" src="<%=KSCMS.GetDomain%>Advertise.asp?i=<%=getid%>"></script>
<%
case "open"
set RSObj=server.createobject("adodb.recordset")
adssql="Select id,sitename,act From KS_Advertise where id="&getid
RSObj.open adssql,Conn,1,3
RSObj("act")=1
RSObj.Update
Call KSCMS.Alert("广告条[" & RSObj("sitename") & "]被激活!", ComeUrl)
RSObj.close
End Select
set RSObj=nothing
Conn.close
set Conn=nothing
%>
</td></tr><tr height=10 align=center>
<td><a href="javascript:this.history.go(-1)">返回</a></td>
</tr></table>
</center></div>
<%End Sub
End Class
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -