<!--#include file="menu.asp"-->
<%if request("action")="search" then
set adsrs=server.createobject("adodb.recordset")
adssql="select * from dlxf_ads where dlxf_place="&request("place")&" and dlxf_priceid="&request("priceid")&" order by dlxf_id desc"
adsrs.open adssql,conn,1,1
else
set adsrs=server.createobject("adodb.recordset")
adssql="select * from dlxf_ads where dlxf_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("dlxf_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("dlxf_url")%> target=_blank><%=adsrs("dlxf_sitename")%></a></td>
          <td width="116" height="17"><font color="#FF0000">站点URL：</font></td>
          <td width="210" height="17"><%=adsrs("dlxf_url")%></td>
        </tr>
<tr bgcolor="#F6f6f6"> 
          <td width="128"><font color="#FF0000">广告位种类：</font></td>
          <td width="229"><b><%=adsrs("dlxf_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 dlxf_place where dlxf_place="&adsrs("dlxf_place")&" and dlxf_price='"&adsrs("dlxf_price")&"' order by dlxf_placeid"
adsrs6.open adssql6,conn,1,1%>
<%=adsrs6("dlxf_placename")%> (<%=adsrs6("dlxf_jg")%>/<%=adsrs6("dlxf_jgg")%>)
<%adsrs6.close%></b></font></td>
        </tr>
        <tr bgcolor="#Ffffff"> 
          <td width="128"><font color="#FF0000">加入时间：</font></td>
          <td width="229"><%=adsrs("dlxf_regtime")%></td>
          <td width="116"><font color="#FF0000">最近显示时间：</font></td>
          <td width="210"><%=adsrs("dlxf_time")%></td>
        </tr>
        <tr  bgcolor="#F6f6f6">
          <td width="128"><font color="#FF0000">客户姓名：</font></td>
          <td width="229"><%=adsrs("dlxf_username")%></td>
          <td width="116"><font color="#FF0000">客户联系方式：</font></td>
          <td width="210"><%=adsrs("dlxf_contact")%></td>
        </tr>
<tr bgcolor="#Ffffff">
          <td width="128"><font color="#FF0000">广告条宽度：</font></td>
          <td width="229"><b><%=adsrs("dlxf_width")%></b> 像素</td>
          <td width="116"><font color="#FF0000">广告条高度：</font></td>
          <td width="210"><b><%=adsrs("dlxf_height")%></b> 像素</td>
        </tr>
        <tr  bgcolor="#F6f6f6"> 
          <td width="128"><font color="#FF0000">显示：</font></td>
          <td width="229"><font color=red><%=adsrs("dlxf_show")%></font>次</td>
          <td width="116"><font color="#FF0000">点击：</font></td>
          <td width="210"><font color=red><%=adsrs("dlxf_click")%></font>次</td>
        </tr>
        <tr bgcolor="#Ffffff"> 
          <td width="128"><font color="#FF0000">位置：</font></td>
          <td width="229"> 
            <%if adsrs("dlxf_place")=1 then%>
            首要页面 
            <%else%>
            一般页面 
            <%end if%>
          </td>
          <td width="116"><font color="#FF0000">打开窗口：</font></td>
          <td width="210"> 
            <%if adsrs("dlxf_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("dlxf_gif_url")%>" target=_blank><%=adsrs("dlxf_gif_url")%> </a></td>
          <td width="116"><font color="#FF0000">失效条件：</font></td>
          <td width="210"> 
            <%
if adsrs("dlxf_class")=1 then
%>
            点击<font color=red><%=adsrs("dlxf_clicks")%></font>次 
            <%
elseif adsrs("dlxf_class")=2 then
%>
            显示<font color=red><%=adsrs("dlxf_shows")%></font>次 
            <%
elseif adsrs("dlxf_class")=3 then
%>
            截止期：<font color=red><%=adsrs("dlxf_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("dlxf_class")=4 then
%>
            点击<font color=red><%=adsrs("dlxf_clicks")%></font>次，显示<font color=red><%=adsrs("dlxf_shows")%></font>次 
            <%
elseif adsrs("dlxf_class")=5 then
%>
            点击<font color=red><%=adsrs("dlxf_clicks")%></font>次，截止期：<font color=red><%=adsrs("dlxf_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("dlxf_class")=6 then
%>
            显示<font color=red><%=adsrs("dlxf_shows")%></font>次，截止期：<font color=red><%=adsrs("dlxf_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("dlxf_class")=7 then
%>
            点击<font color=red><%=adsrs("dlxf_clicks")%></font>次，显示<font color=red><%=adsrs("dlxf_shows")%></font>次，截止期：<font color=red><%=adsrs("dlxf_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("dlxf_note")%></td>
        </tr>
        <tr>
          <td>&nbsp;</td>
        </tr>
      </table>

    </td>
  </tr>

  <tr> 
    <td width="471" align="right"> 
        <a href=javascript:opw('option.asp?id=<%=adsrs("dlxf_id")%>&job=banner','banner<%=adsrs("dlxf_id")%>',500,90)>查看banner</a> 
        &nbsp;&nbsp;&nbsp;&nbsp;
        <%if adsrs("dlxf_act")=1 then%>
        <a href=javascript:opw('option.asp?id=<%=adsrs("dlxf_id")%>&job=close','close<%=adsrs("dlxf_id")%>',300,140)>暂停</a> 
        <%else%>
        <a href=javascript:opw('option.asp?id=<%=adsrs("dlxf_id")%>&job=open','open<%=adsrs("dlxf_id")%>',300,140)>激活</a> 
        <%end if%>
    </td>
    <td width="183" align="center"> 
      <a href=javascript:opw('option.asp?id=<%=adsrs("dlxf_id")%>&job=delit','del<%=adsrs("dlxf_id")%>',300,140)>删除</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href=javascript:opw('modifyads_place.asp?id=<%=adsrs("dlxf_id")%>','<%=adsrs("dlxf_id")%>',500,420)>修改详细设置</a>
    </td>
    <td width="116" align="center"><a href=javascript:history.go(-1)><strong>返回</strong></a></td>
  </tr>
  <tr bgcolor="#6C90D1"> 
    <td colspan=3>&nbsp;</td>
  </tr>
</table>
<%adsrs.movenext
loop
adsrs.close
set sdars=nothing%>