⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 addads_place.asp

📁 嘉缘人才6.0精简 ,很好用的人才系统
💻 ASP
字号:
<!--#include file="menu.asp"-->
<script language="javascript">
function checkplace()

{
if(document.place.price.value=="")
{
alert("请选择大类");
document.place.price.focus();
return false;
}
if(document.place.placeID.value=="")
{
alert("请选择小类");
document.place.placeID.focus();
return false;
}
}
</script><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="tableBorder">
<%if request("job")="" then%>
  <tr>
    <th height=25 align="center" >选 择 类 别</th>
  </tr>
  <tr>
    <td height=200 align="center"><form method="POST" action="Addads.asp" name="place" onSubmit="return checkplace()">
<%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('Addads_place.asp?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_place"
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>
</select>
<%end if%>


<%if request("price")="" then%>
<input name="cmdok" type="button" class="inputs" onClick="window.alert('请先选择广告种类!')" value=" 确 定 ">
<%else%>
<input name="cmdok" type="submit" class="inputs" onClick="return checkplace()" value=" 确 定 ">
<%end if
adsrs.close
set adsrs2=nothing
set adsrs=nothing%>
</form></td>
  </tr>
<%else%>
  <tr>
    <td height=200 align="center"><strong><font color=red>发 布 成 功</font></strong></td>
  </tr>
<%end if%>
</table>



⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -