📄 view.asp
字号:
<!--#include file=menu.asp -->
<%if request("action")="search" then
set adsrs=server.createobject("adodb.recordset")
adssql="select * from SMT_ads where SMT_place="&request("place")&" and SMT_priceid="&request("priceid")&" order by SMT_id desc"
adsrs.open adssql,conn,1,1
else
set adsrs=server.createobject("adodb.recordset")
adssql="select * from SMT_ads where SMT_id="&request("id")
adsrs.open adssql,conn,1,1
end if
do while not adsrs.eof%>
<table width="95%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr >
<td bgcolor="#FFCC00" colspan="3" height=20>
<div align="center">ID:<%=adsrs("SMT_id")%></div>
</td>
</tr>
<tr>
<td colspan="3" height="137">
<table width="100%" border="0" cellspacing="2" cellpadding="4" align="center" bgcolor="#eeeeee">
<tr bgcolor="#Ffffff">
<td width="160" height="17"><font color="#FF0000">广告(站点)名称:</font></td>
<td width="229" height="17"><a href=<%=adsrs("SMT_url")%> target=_blank><%=adsrs("SMT_sitename")%></a></td>
<td width="116" height="17"><font color="#FF0000">站点URL:</font></td>
<td width="210" height="17"><%=adsrs("SMT_url")%></td>
</tr>
<tr bgcolor="#F6f6f6">
<td width="128"><font color="#FF0000">广告位种类:</font></td>
<td width="229"><b><%=adsrs("SMT_price")%></b></td>
<td width="116"><font color="#FF0000">广告位:</font></td>
<td width="210"><font color=blue><b><%set adsrs6=server.createobject("adodb.recordset")
adssql6="select * from SMT_place where SMT_place="&adsrs("SMT_place")&" and SMT_price='"&adsrs("SMT_price")&"' order by SMT_placeid"
adsrs6.open adssql6,conn,1,1%>
<%=adsrs6("SMT_placename")%> (<%=adsrs6("SMT_jg")%>/<%=adsrs6("SMT_jgg")%>)
<%adsrs6.close%></b></font></td>
</tr>
<tr bgcolor="#Ffffff">
<td width="128"><font color="#FF0000">加入时间:</font></td>
<td width="229"><%=adsrs("SMT_regtime")%></td>
<td width="116"><font color="#FF0000">最近显示时间:</font></td>
<td width="210"><%=adsrs("SMT_time")%></td>
</tr>
<tr bgcolor="#F6f6f6">
<td width="128"><font color="#FF0000">客户姓名:</font></td>
<td width="229"><%=adsrs("SMT_username")%></td>
<td width="116"><font color="#FF0000">客户联系方式:</font></td>
<td width="210"><%=adsrs("SMT_contact")%></td>
</tr>
<tr bgcolor="#Ffffff">
<td width="128"><font color="#FF0000">广告条宽度:</font></td>
<td width="229"><b><%=adsrs("SMT_width")%></b> 像素</td>
<td width="116"><font color="#FF0000">广告条高度:</font></td>
<td width="210"><b><%=adsrs("SMT_height")%></b> 像素</td>
</tr>
<tr bgcolor="#F6f6f6">
<td width="128"><font color="#FF0000">显示:</font></td>
<td width="229"><font color=red><%=adsrs("SMT_show")%></font>次</td>
<td width="116"><font color="#FF0000">点击:</font></td>
<td width="210"><font color=red><%=adsrs("SMT_click")%></font>次</td>
</tr>
<tr bgcolor="#Ffffff">
<td width="128"><font color="#FF0000">位置:</font></td>
<td width="229">
<%if adsrs("SMT_place")=1 then%>
首要页面
<%else%>
一般页面
<%end if%>
</td>
<td width="116"><font color="#FF0000">打开窗口:</font></td>
<td width="210">
<%if adsrs("SMT_window")=1 then%>
原窗
<%else%>
新窗
<%end if%>
</td>
</tr>
<tr bgcolor="#f6f6f6">
<td width="128"><font color=red>广告图片URL:</font></td>
<td width="229"><a href="<%=adsrs("SMT_gif_url")%>" target=_blank><%=adsrs("SMT_gif_url")%> </a></td>
<td width="116"><font color="#FF0000">失效条件:</font></td>
<td width="210">
<%
if adsrs("SMT_class")=1 then
%>
点击<font color=red><%=adsrs("SMT_clicks")%></font>次
<%
elseif adsrs("SMT_class")=2 then
%>
显示<font color=red><%=adsrs("SMT_shows")%></font>次
<%
elseif adsrs("SMT_class")=3 then
%>
截止期:<font color=red><%=adsrs("SMT_lasttime")%></font>
<%if getdiftime<7 and getdiftime>0 then%>
<br>
<div style="width: 200; font-size:15pt; font-family: Arial ; color: red; position: relative; filter: glow(color=ffff00, strength=5)">还有
<%=getdiftime%> 天到期!</div>
<%end if%>
<%
elseif adsrs("SMT_class")=4 then
%>
点击<font color=red><%=adsrs("SMT_clicks")%></font>次,显示<font color=red><%=adsrs("SMT_shows")%></font>次
<%
elseif adsrs("SMT_class")=5 then
%>
点击<font color=red><%=adsrs("SMT_clicks")%></font>次,截止期:<font color=red><%=adsrs("SMT_lasttime")%></font>
<%if getdiftime<7 and getdiftime>0 then%>
<br>
<div style="width: 200; font-size:15pt; font-family: Arial ; color: red; position: relative; filter: glow(color=ffff00, strength=5)">还有
<%=getdiftime%> 天到期!</div>
<%end if%>
<%
elseif adsrs("SMT_class")=6 then
%>
显示<font color=red><%=adsrs("SMT_shows")%></font>次,截止期:<font color=red><%=adsrs("SMT_lasttime")%></font>
<%if getdiftime<7 and getdiftime>0 then%>
<br>
<div style="width: 200; font-size:15pt; font-family: Arial ; color: red; position: relative; filter: glow(color=ffff00, strength=5)">还有
<%=getdiftime%> 天到期!</div>
<%end if%>
<%
elseif adsrs("SMT_class")=7 then
%>
点击<font color=red><%=adsrs("SMT_clicks")%></font>次,显示<font color=red><%=adsrs("SMT_shows")%></font>次,截止期:<font color=red><%=adsrs("SMT_lasttime")%></font>
<%if getdiftime<7 and getdiftime>0 then%>
<br>
<div style="width: 200; font-size:15pt; font-family: Arial ; color: red; position: relative; filter: glow(color=ffff00, strength=5)">还有
<%=getdiftime%> 天到期!</div>
<%end if%>
<%
else
%>
无限制条件
<%
end if%>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="3">
<table width="100%" border="0" cellspacing="0" cellpadding="4" align="center">
<tr>
<td><font color=red>备注:</font><%=adsrs("SMT_note")%></td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="471" align="right">
<a href=javascript:opw('option.asp?id=<%=adsrs("SMT_id")%>&job=banner','banner<%=adsrs("SMT_id")%>',500,90)>查看banner</a>
<%if adsrs("SMT_act")=1 then%>
<a href=javascript:opw('option.asp?id=<%=adsrs("SMT_id")%>&job=close','close<%=adsrs("SMT_id")%>',300,140)>暂停</a>
<%else%>
<a href=javascript:opw('option.asp?id=<%=adsrs("SMT_id")%>&job=open','open<%=adsrs("SMT_id")%>',300,140)>激活</a>
<%end if%>
</td>
<td width="183" align="center">
<a href=javascript:opw('option.asp?id=<%=adsrs("SMT_id")%>&job=delit','del<%=adsrs("SMT_id")%>',300,140)>删除</a> <a href=javascript:opw('modifyads_place.asp?id=<%=adsrs("SMT_id")%>','<%=adsrs("SMT_id")%>',500,420)>修改详细设置</a>
</td>
<td width="116" align="center"><a href=javascript:history.go(-1)><strong>返回</strong></a></td>
</tr>
<tr bgcolor="#CCCCCC">
<td colspan=3> </td>
</tr>
</table>
<%adsrs.movenext
loop
adsrs.close
set sdars=nothing%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -