<!--#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
%>
<table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#000000" align="center">
  <tr>
    <td valign="top" bgcolor="#FFFFFF"> 
      <table width="100%" border="0" cellspacing="1" cellpadding="0" align="center" bgcolor="#FFFFFF">
        <tr> 
          <td bgcolor="#FFFFFF" valign="top" height="296"> 
            <div align="center"> 
              <table border="0" width="100%" cellspacing="0" cellpadding="0">
                <form method="POST" action="modify.asp?id=<%=getid%>">
<input name="price_" type="hidden" value="<%=adsrs("dlxf_price")%>">
<input name="placeID_" type="hidden" value="<%=adsrs("dlxf_place")%>">
<tr>                   
<td width="100%" height="18" colspan=2 align=center><b><br><br>现在的广告种类设置为：<font color=red><%=adsrs("dlxf_price")%></font> - <font color=red><%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%></font><br><br>不改请不要选择</b>
				   </td>
                  </tr>
                  <tr> 
                    <td align="center"> 
                      <p>　</p>
                      <p>　</p>
                      <p> 
<%adsrs.close
set adsrs=server.createobject("adodb.recordset")
adssql="select * from dlxf_price order by dlxf_priceID"
adsrs.Open adssql,conn,1,1%>
                        <select name="price" size="1" onChange="window.open('modifyads_place.asp?id=<%=getid%>&price='+this.options[this.selectedIndex].value,'_self')">
                          <option value="" <%if request("price")="" then%> selected<%end if%>>选择大类</option>
<%while not adsrs.EOF%>
                          <option<%if request("price")=adsrs("dlxf_price") and request("price")<>"" then%> selected<%end if%> value="<%=adsrs("dlxf_price")%>" name=price><%=adsrs("dlxf_price")%></option>
<%adsrs.MoveNext
wend%>
                        </select>
<%if request("price")<>"" then%>
                        <select name="placeID" size="1">
                          <option value="" <%if request("placeID")="" then%> selected<%end if%>>选择小类</option>
                          <%
set adsrs2=server.createobject("adodb.recordset")

adssql2="select * from dlxf_place where dlxf_price='"&request("price")&"' order by dlxf_placeid"

adsrs2.open adssql2,conn,1,1
Do while not adsrs2.eof%>
                          <option<%if cstr(request("placeID"))=cstr(adsrs2("dlxf_placeID")) and request("placeID")<>"" then%> selected<%end if%> value="<%=CStr(adsrs2("dlxf_place"))%>" name=placeID><%=adsrs2("dlxf_placename")%> (<%=adsrs2("dlxf_jg")%>/<%=adsrs2("dlxf_jgg")%>)</option>
                          <%
adsrs2.MoveNext
Loop
adsrs2.close%>
                          <%else%><select name="placeID" size="1">
                          <option value="" selected>选择小类</option>
                          <%end if%>
                        </select>
                      </p>
                      <p>　</p>
                      <p>&nbsp; </p>
                    </td>
                  </tr>
                  <tr> 
                    <td align="center" height="25"> 
                      <%if request("price")="" then%>
                      <input type="submit" value=" 确 定 " name="cmdok">
                      <%else%>
                      <input type="submit" value=" 确 定 " name="cmdok">
                      <%end if
adsrs.close
set adsrs2=nothing
set adsrs=nothing
%>
                    </td>
                  </tr>
                </form>
              </table>
            </div>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>