<!--#include file=config.asp -->
<html>
<head>
<meta http-equiv=Content-Language content=zh-cn>
<meta http-equiv=Content-Type content=text/html; charset=gb2312>
<meta http-equiv=Pragma content=no-cache>
<%=citycss%>
</head>
<body style="margin:0">
<%dim getid,adsrs,adssql
getid=cint(request.querystring("id"))

set adsrs=server.createobject("adodb.recordset")
adssql="select * from dlxf_ads where dlxf_id="&getid
adsrs.open adssql,conn,1,1

price=request("price")
placeid=request("placeid")
if price="" then price=request("price_")
if placeid="" then placeid=request("placeid_")%>

<table border=0 width=480 cellspacing=1 cellpadding=2><tr bgcolor=#ffffff> 
                    <td width=480 align=center><b>修 改 广 告 设 置</b></td>
                    </tr></table>
    <table border=0 cellspacing=0 cellpadding=0 width="480">
      <tr>
        <td bgcolor=#304050> 
          <table border=0 width=480 cellspacing=1 cellpadding=2>
            <form method=POST action=savemodi.asp?id=<%=adsrs("dlxf_id")%>>
              <tr bgcolor=#ffffff> 
                <td width=180>广告具体位置：</td>
                <td width=289>广告位种类：<font color=blue><%=price%></font> - <input type=hidden value="<%=price%>" name="price"><font color=blue><b><%set adsrs6=server.createobject("adodb.recordset")
adssql6="select * from dlxf_place where dlxf_place="&placeid&" and dlxf_price='"&price&"' order by dlxf_placeid"
adsrs6.open adssql6,conn,1,1%>
<%=adsrs6("dlxf_placename")%> (<%=adsrs6("dlxf_jg")%>/<%=adsrs6("dlxf_jgg")%>)
<%adsrs6.close%></b></font>
                  <input type=hidden value="<%=placeid%>" name="placeid">
                  位</td>
              </tr>
              <tr> 
                <td bgcolor=#ffffff colspan=2>中文站名： 
                  <input type=text name=name size=30 maxlength=30 value=<%=adsrs("dlxf_sitename")%>>
                  　广告ID：<font color=red><%=adsrs("dlxf_id")%></font></td>
              </tr>
              <tr> 
                <td  bgcolor=#ffffff colspan=2>显示类型： 
                  <input type="radio" name="itype" value="i" <%if adsrs("dlxf_showtype")="i" then%> checked<%end if%>>
                  图片 
                  <input type="radio" name="itype" value="f"  <%if adsrs("dlxf_showtype")="f" then%> checked<%end if%>>
                  Flash</td>
              </tr>
              <tr> 
                <td  bgcolor=#ffffff colspan=2>站点URL： 
                  <input type=text name=url size=40 value="<%=adsrs("dlxf_url")%>">
                </td>
              </tr>
              <tr> 
                <td  bgcolor=#ffffff colspan=2>客户姓名： 
                  <input type=text name=username size=40 value="<%=adsrs("dlxf_username")%>">
                </td>
              </tr>
              <tr> 
                <td  bgcolor=#ffffff colspan=2>联系方式： 
                  <input type=text name=contact size=40 value="<%=adsrs("dlxf_contact")%>">
                </td>
              </tr>
              <tr> 
                <td bgcolor=#ffffff colspan=2>图标URL： 
                  <input type=text name=gif_url size=40 value="<%=adsrs("dlxf_gif_url")%>"> <strong><font color="#FF0000">*</font></strong>
                </td>
              </tr>
              <tr> 
                <td bgcolor=#ffffff colspan=2>广告条大小：宽度： 
                  <input type="text" name="width" size="5" maxlength="3" value="<%=adsrs("dlxf_width")%>">
                  　高度： 
                  <input type="text" name="height" size="5" maxlength="3" value="<%=adsrs("dlxf_height")%>">
                  <strong><font color="#FF0000">*</font></strong>（一般标准尺寸为468X60或者88X31）</td>
              </tr>
              <tr> 
                <td bgcolor=#ffffff colspan=2>窗口打开方式： 
                  <select size=1 name=window>
                    <option value=0 <%if adsrs("dlxf_window")=0 then%>selected<%end if%>>新窗口打开</option>
                    <option value=1 <%if adsrs("dlxf_window")=1 then%>selected<%end if%>>原窗口打开</option>
                  </select>
                </td>
              </tr>
              <tr> 
                <td bgcolor=#c0d0e0 colspan=2>播放限制：受多个条件限制的广告，只要有一个条件满足，该广告<br>
                  　　　　　便自动进入休眠状态，你可以修改限制条件并激活广告。</td>
              </tr>
              <tr> 
                <td bgcolor=#ffffff colspan=2>日期格式严格按此格式:<font color=#FF0000>yyyy-mm-dd 
                  hh:mm:ss或yyyy-mm-dd</font> </td>
              </tr>
              <tr> 
                <td bgcolor=#ffffff width="180"> 
                  <%if adsrs("dlxf_class")=0 then%>
                  <table border=0 width="100%">
                    <tr> 
                      <td> 
                        <input type=radio value=0 name=class checked>
                      </td>
                      <td>无限制循环</td>
                    </tr>
                  </table>
                  <%else%>
                  <table border=0 width="100%">
                    <tr> 
                      <td> 
                        <input type=radio value=0 name=class>
                      </td>
                      <td>无限制循环</td>
                    </tr>
                  </table>
                  <%end if%>
                </td>
                <td bgcolor=#ffffee width="289"> 
                  <%if adsrs("dlxf_class")=1 then%>
                  <table border=0>
                    <tr> 
                      <td> 
                        <input type=radio value=1 name=class checked>
                      </td>
                      <td>点击数不超过</td>
                      <td> 
                        <input type=text name=clicks1 size=8 value="<%=adsrs("dlxf_clicks")%>">
                      </td>
                    </tr>
                  </table>
                  <%
else
%>
                  <table border=0>
                    <tr> 
                      <td> 
                        <input type=radio value=1 name=class>
                      </td>
                      <td>点击数不超过</td>
                      <td> 
                        <input type=text name=clicks1 size=8>
                      </td>
                    </tr>
                  </table>
                  <%
end if
%>
                </td>
              </tr>
              <tr> 
                <td bgcolor=#ffffee width="180"> 
                  <%
if adsrs("dlxf_class")=2 then
%>
                  <table border="0" width="100%">
                    <tr> 
                      <td> 
                        <input type=radio value=2 name=class checked>
                      </td>
                      <td>显示数不超过</td>
                      <td> 
                        <input type=text name=shows2 size=8 value="<%=adsrs("dlxf_shows")%>">
                      </td>
                    </tr>
                  </table>
                  <%else%>
                  <table border="0" width="100%">
                    <tr> 
                      <td> 
                        <input type=radio value=2 name=class>
                      </td>
                      <td>显示数不超过</td>
                      <td> 
                        <input type=text name=shows2 size=8>
                      </td>
                    </tr>
                  </table>
                  <%
end if
%>
                </td>
                <td bgcolor=#ffffff width="289"> 
                  <%
if adsrs("dlxf_class")=3 then
%>
                  <table border="0">
                    <tr> 
                      <td> 
                        <input type=radio value=3 name=class checked>
                      </td>
                      <td>显示截止期为</td>
                      <td> 
                        <input type=text name=time3 size=20 value="<%=adsrs("dlxf_lasttime")%>">
                      </td>
                    </tr>
                  </table>
                  <%
else
%>
                  <table border="0">
                    <tr> 
                      <td> 
                        <input type=radio value=3 name=class>
                      </td>
                      <td>显示截止期为</td>
                      <td> 
                        <input type=text name=time3 size=20>
                      </td>
                    </tr>
                  </table>
                  <%
end if
%>
                </td>
              </tr>
              <tr> 
                <td bgcolor=#ffffff colspan=2> 
                  <%
if adsrs("dlxf_class")=4 then
%>
                  <table border="0">
                    <tr> 
                      <td> 
                        <input type=radio value=4 name=class checked>
                      </td>
                      <td>点击数不超过</td>
                      <td> 
                        <input type=text name=clicks4 size=8 value="<%=adsrs("dlxf_clicks")%>">
                      </td>
                      <td>显示数不超过</td>
                      <td> 
                        <input type=text name=shows4 size=8 value="<%=adsrs("dlxf_shows")%>">
                      </td>
                    </tr>
                  </table>
                  <%else%>
                  <table border="0">
                    <tr> 
                      <td> 
                        <input type=radio value=4 name=class>
                      </td>
                      <td>点击数不超过</td>
                      <td> 
                        <input type=text name=clicks4 size=8>
                      </td>
                      <td>显示数不超过</td>
                      <td> 
                        <input type=text name=shows4 size=8>
                      </td>
                    </tr>
                  </table>
                  <%end if%>
                </td>
              </tr>
              <tr> 
                <td bgcolor=#ffffee colspan=2> 
                  <%if adsrs("dlxf_class")=5 then%>
                  <table border="0">
                    <tr> 
                      <td> 
                        <input type=radio value=5 name=class checked>
                      </td>
                      <td>点击数不超过</td>
                      <td> 
                        <input type=text name=clicks5 size=8 value="<%=adsrs("dlxf_clicks")%>">
                      </td>
                      <td>显示截止期为</td>
                      <td> 
                        <input type=text name=time5 size=20 value="<%=adsrs("dlxf_lasttime")%>">
                      </td>
                    </tr>
                  </table>
                  <%else%>
                  <table border="0">
                    <tr> 
                      <td> 
                        <input type=radio value=5 name=class>
                      </td>
                      <td>点击数不超过</td>
                      <td> 
                        <input type=text name=clicks5 size=8>
                      </td>
                      <td>显示截止期为</td>
                      <td> 
                        <input type=text name=time5 size=20>
                      </td>
                    </tr>
                  </table>
                  <%end if%>
                </td>
              </tr>
              <tr> 
                <td bgcolor=#ffffff colspan=2> 
                  <%if adsrs("dlxf_class")=6 then%>
                  <table border="0">
                    <tr> 
                      <td> 
                        <input type=radio value=6 name=class checked>
                      </td>
                      <td>显示数不超过</td>
                      <td> 
                        <input type=text name=shows6 size=8 value="<%=adsrs("dlxf_shows")%>">
                      </td>
                      <td>显示截止期为</td>
                      <td> 
                        <input type=text name=time6 size=20 value="<%=adsrs("dlxf_lasttime")%>">
                      </td>
                    </tr>
                  </table>
                  <%else%>
                  <table border="0">
                    <tr> 
                      <td> 
                        <input type=radio value=6 name=class>
                      </td>
                      <td>显示数不超过</td>
                      <td> 
                        <input type=text name=shows6 size=8>
                      </td>
                      <td>显示截止期为</td>
                      <td> 
                        <input type=text name=time6 size=20>
                      </td>
                    </tr>
                  </table>
                  <%
end if
%>
                </td>
              </tr>
              <tr> 
                <td bgcolor=#ffffee colspan=2> 
                  <%
if adsrs("dlxf_class")=7 then
%>
                  <table border="0">
                    <tr> 
                      <td> 
                        <input type=radio value=7 name=class checked>
                      </td>
                      <td>点击数不超过</td>
                      <td> 
                        <input type=text name=clicks7 size=8 value="<%=adsrs("dlxf_clicks")%>">
                      </td>
                      <td>显示数不超过</td>
                      <td> 
                        <input type=text name=shows7 size=8 value="<%=adsrs("dlxf_shows")%>">
                      </td>
                    </tr>
                    <tr> 
                      <td></td>
                      <td>显示截止期为</td>
                      <td colspan=3> 
                        <input type=text name=time7 size=20 value="<%=adsrs("dlxf_lasttime")%>">
                      </td>
                    </tr>
                  </table>
                  <%
else
%>
                  <table border="0">
                    <tr> 
                      <td> 
                        <input type=radio value=7 name=class>
                      </td>
                      <td>点击数不超过</td>
                      <td> 
                        <input type=text name=clicks7 size=8>
                      </td>
                      <td>显示数不超过</td>
                      <td> 
                        <input type=text name=shows7 size=8>
                      </td>
                    </tr>
                    <tr> 
                      <td></td>
                      <td>显示截止期为</td>
                      <td colspan=3> 
                        <input type=text name=time7 size=20>
                      </td>
                    </tr>
                  </table>
                  <%
end if
%>
                </td>
              </tr>
              <tr bgcolor=#ffffff> 
                <td width="180" valign="top" align="right">备注： </td>
                <td width="289"> 
                  <textarea name="note" cols="40" rows="5" ><%=adsrs("dlxf_note")%></textarea>
                </td>
              </tr>
              <tr> 
                <td align=center bgcolor=#ffffff colspan=2> 
                  <input type=submit value=提交 name=B1>
                  <input type=reset value=重写 name=B2>
                </td>
              </tr>
            </form>
          </table>
        </td>
      </tr></form></table>

</center></div>

<%
adsrs.close
set adsrs=nothing
conn.close
set conn=nothing
%>
</body>
</html>