adopen.asp
来自「1.支持文章」· ASP 代码 · 共 98 行
ASP
98 行
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%Option Explicit%>
<!--#include file="Conn.asp"-->
<!--#include file="SysCls/KS_CommonCls.asp"-->
<%
'===================================================================================================================
'软件名称:科汛网站管理系统
'当前版本:科汛网站管理系统 V2.2 0628 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_Url
KSCls.Execute()
Set KSCls = Nothing
Class Ads_Url
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()
%>
<html>
<head></head>
<body topmargin="0" leftmargin="0">
<%
Dim DomainStr:DomainStr=KSCMS.GetDomain
Dim ttarg:ttarg="_top"
Dim GaoAndKuan:GaoAndKuan=""
Dim Adsrs:Set adsrs=server.createobject("adodb.recordset")
Dim adssql:adssql="Select id,sitename,intro,gif_url,window,show,place,time,xslei,wid,hei from KS_Advertise where id="&trim(KSCMS.G("i"))
adsrs.open adssql,Conn,3,3
adsrs("show")=adsrs("show")+1
adsrs("time")=now()
adsrs.Update
if adsrs("window")=0 then
ttarg = "_blank"
end if
if isnumeric(adsrs("hei")) then
GaoAndKuan=" height="&adsrs("hei")&" "
else
if right(adsrs("hei"),1)="%" then
if isnumeric(Left(len(adsrs("hei"))-1))=true then
GaoAndKuan=" height="&adsrs("hei")&" "
end if
end if
end if
if isnumeric(adsrs("wid")) then
GaoAndKuan=GaoAndKuan&" width="&adsrs("wid")&" "
else
if right(adsrs("wid"),1)="%" then
if isnumeric(Left(len(adsrs("wid"))-1))=true then
GaoAndKuan=GaoAndKuan&" width="&adsrs("wid")&" "
end if
end if
end if
Select Case adsrs("xslei")
Case "txt"%><a title="<%=adsrs("intro")%>" href="<%=DomainStr%>/AdUrl.asp?id=<%=adsrs("id")%>" target="<%=ttarg%>"><font color=red><%=adsrs("sitename")%></font></a>
<% Case "gif"%><a title="<%=adsrs("intro")%>" href="<%=DomainStr%>/AdUrl.asp?id=<%=adsrs("id")%>" target="<%=ttarg%>"><img border=0 <%=GaoAndKuan%> src="<%=adsrs("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="<%=adsrs("gif_url")%>"><param name=quality value=high>
<% Case "dai"%><%=adsrs("intro")%>
<embed src="<%=adsrs("gif_url")%>" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"></embed></object>
<% Case else%><a title="<%=adsrs("intro")%>" href="<%=DomainStr%>/AdUrl.asp?id=<%=adsrs("id")%>" target="<%=ttarg%>"><img border=0 <%=GaoAndKuan%> src="<%=adsrs("gif_url")%>"></a>
<%
End Select%><%
adsrs.close
set adsrs=nothing
Conn.close
set Conn=nothing
%>
</body>
</html>
<%End Sub
End Class
%>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?