📄 modifyads_place.asp
字号:
<!--#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>
<LINK href=../css/style.css rel=stylesheet type="text/css">
</head>
<body>
<%
dim Adid,adsrs,adssql
Adid=cint(request.querystring("id"))
set adsrs=server.createobject("adodb.recordset")
adssql="select * from JOB_ads where JOB_id="&Adid
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=<%=Adid%>">
<input name="price_" type="hidden" value="<%=adsrs("JOB_price")%>">
<input name="placeID_" type="hidden" value="<%=adsrs("JOB_place")%>">
<tr>
<td width="100%" height="18" colspan=2 align=center><b><br><br>现在的广告种类设置为:<font color=red><%=adsrs("JOB_price")%></font> - <font color=red><%set adsrs6=server.createobject("adodb.recordset")
adssql6="select * from JOB_place where JOB_place="&adsrs("JOB_place")&" and JOB_price='"&adsrs("JOB_price")&"' order by JOB_placeid"
adsrs6.open adssql6,conn,1,1%>
<%=adsrs6("JOB_placename")%> (<%=adsrs6("JOB_jg")%>/<%=adsrs6("JOB_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 JOB_price order by JOB_priceID"
adsrs.Open adssql,conn,1,1%>
<select name="price" size="1" onChange="window.open('modifyads_place.asp?id=<%=Adid%>&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("JOB_price") and request("price")<>"" then%> selected<%end if%> value="<%=adsrs("JOB_price")%>" name=price><%=adsrs("JOB_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 JOB_place where JOB_price='"&request("price")&"' order by JOB_placeid"
adsrs2.open adssql2,conn,1,1
Do while not adsrs2.eof%>
<option<%if cstr(request("placeID"))=cstr(adsrs2("JOB_placeID")) and request("placeID")<>"" then%> selected<%end if%> value="<%=CStr(adsrs2("JOB_place"))%>" name=placeID><%=adsrs2("JOB_placename")%> (<%=adsrs2("JOB_jg")%>/<%=adsrs2("JOB_jgg")%>)</option>
<%
adsrs2.MoveNext
Loop
adsrs2.close%>
<%else%><select name="placeID" size="1">
<option value="" selected>选择小类</option>
<%end if%>
</select>
</p>
<p> </p>
<p> </p>
</td>
</tr>
<tr>
<td align="center" height="25">
<%if request("price")="" then%>
<input name="cmdok" type="submit" class="inputs" value=" 确 定 ">
<%else%>
<input name="cmdok" type="submit" class="inputs" value=" 确 定 ">
<%end if
adsrs.close
set adsrs2=nothing
set adsrs=nothing
%>
</td>
</tr>
</form>
</table>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -