📄 diao_old.asp
字号:
<!-- #include file="lwconn.asp" -->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<body bgcolor="#E0E0E0" onload="setup()">
<table width="760" height="24" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="3%" align="right" background="images/img02.jpg"><div align="left">
</div></td>
<td width="30%" align="right" background="images/img02.jpg"><div align="left">欢迎您乘坐<font color="#FF6600">看房直达车</font> ,请选择站点:
</div></td>
<td align="left" background="images/img02.jpg">
<style>
body,select
{
font-size:9pt;
font-family:Verdana;
}
a
{
color:red;
text-decoration:none;
}
a:hover{
text-decoration:underline;
}
</style>
<SCRIPT LANGUAGE="JavaScript">
<!--
function Dsy()
{
this.Items = {};
}
Dsy.prototype.add = function(id,iArray)
{
this.Items[id] = iArray;
}
Dsy.prototype.Exists = function(id)
{
if(typeof(this.Items[id]) == "undefined") return false;
return true;
}
function change(v){
var str="0";
for(i=0;i<v;i++){ str+=("_"+(document.getElementById(s[i]).selectedIndex-1));};
var ss=document.getElementById(s[v]);
with(ss){
length = 0;
options[0]=new Option(opt0[v],opt0[v]);
if(v && document.getElementById(s[v-1]).selectedIndex>0 || !v)
{
if(dsy.Exists(str)){
ar = dsy.Items[str];
for(i=0;i<ar.length;i++)options[length]=new Option(ar[i],ar[i]);
if(v)options[0].selected = true;
}
}
if(++v<s.length){change(v);}
}
document.form2.old4.value=document.form1.s2.options[document.form1.s2.selectedIndex].value;
document.form2.old3.value=document.form1.s3.options[document.form1.s3.selectedIndex].value;
}
var dsy = new Dsy();
dsy.add("0",["上海","浙江","江苏"]);
dsy.add("0_0",["上海市"]);
dsy.add("0_0_0",["黄浦","浦东","卢湾","静安","徐汇","长宁","普陀","闸北","虹口","杨浦","宝山","嘉定","青浦","闵行","松江","金山","奉贤","南汇","崇明"]);
dsy.add("0_1",["杭州","宁波","温州","金华","绍兴","嘉兴","湖州","台州"]);
dsy.add("0_1_0",["上城","下城","拱墅","西湖","滨江","江干","萧山","余杭","临安","富阳","其他0"]);
dsy.add("0_1_1",["江东","江北","海曙","镇海","北仑","鄞州","慈溪","余姚","奉化","其他1"]);
dsy.add("0_1_2",["鹿城","龙湾","瓯海","瑞安","乐清","永嘉","其他2"]);
dsy.add("0_1_3",["婺城","金东","义乌","东阳","永康","其他3"]);
dsy.add("0_1_4",["越城","绍兴县","诸暨","嵊州","其他4"]);
dsy.add("0_1_5",["秀城","秀洲","嘉善","海宁","桐乡","其他5"]);
dsy.add("0_1_6",["南浔","吴兴","其他6"]);
dsy.add("0_1_7",["椒江","黄岩","路桥","其他7"]);
dsy.add("0_2",["南京","苏州","无锡","常州","镇江"]);
dsy.add("0_2_0",["玄武","白下","秦淮","建邺","鼓楼","下关","浦口","六合","栖霞","雨花台","江宁","其他8"]);
dsy.add("0_2_1",["金阊","沧浪","平江","虎丘","吴中","相城","昆山","其他9"]);
dsy.add("0_2_2",["崇安","北塘","南长","滨湖","惠山","锡山","其他10"]);
dsy.add("0_2_3",["钟楼","天宁","新北","戚墅堰","武进","其他11"]);
dsy.add("0_2_4",["京口","润州","丹徒","其他12"]);
//-->
</SCRIPT>
<SCRIPT LANGUAGE = JavaScript>
<!--
var s=["s1","s2","s3"];
var opt0 = ["省份","地级市","任意区县"];
function setup()
{
for(i=0;i<s.length-1;i++)
document.getElementById(s[i]).onchange=new Function("change("+(i+1)+")");
change(0);
}
function lw_change()
{
document.form2.old3.value=document.form1.s3.options[document.form1.s3.selectedIndex].value;
}
//-->
</SCRIPT>
<form action="new.asp" method="post" name="form1" id="form1">
<select id="s1" name="s1"><option>省份</option></select>
—
<select id="s2" name="s2" ><option>地级市</option></select>
— <select id="s3" name="s3" onChange="lw_change()">
<option>区县</option>
</select> </td>
</tr>
</table>
<table width="760" height="11" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="11" align="right" background="images/img022.jpg"> </td>
<td align="left" valign="middle" background="images/img022.jpg" height=2>新楼-
<select name="s003" size="1" id="s003">
<option value="snew_" selected>在 售</option>
<option value="syk_">预 开</option>
</select>
- <script language="javascript">
function ch(formid,zhouname,countryname){
tt=document.form1.s004.selectedIndex;
if(tt==1){
document.form1.s005.options[0]=new Option("不限物业类型","1");
document.form1.s005.options[1]=new Option("高层","高层");
document.form1.s005.options[2]=new Option("小高层","小高层");
document.form1.s005.options[3]=new Option("排屋","排屋");
document.form1.s005.options[4]=new Option("多层","多层");
document.form1.s005.options[5]=new Option("别墅","别墅");
document.form1.s005.options[6]=new Option("小户型","小户型");
}
if(tt==2){
document.form1.s005.options[0]=new Option("不限物业类型","1");
document.form1.s005.options[1]=new Option("公寓式写字楼","公寓式写字楼");
document.form1.s005.options[2]=new Option("纯写字楼","纯写字楼");
document.form1.s005.options[3]=new Option("","0");
document.form1.s005.options[4]=new Option("","0");
document.form1.s005.options[5]=new Option("","0");
document.form1.s005.options[6]=new Option("","0");
}
if(tt==3){
document.form1.s005.options[0]=new Option("不限物业类型","1");
document.form1.s005.options[1]=new Option("街面独立商铺","街面独立商铺");
document.form1.s005.options[2]=new Option("店中店","店中店");
document.form1.s005.options[3]=new Option("","0");
document.form1.s005.options[4]=new Option("","0");
document.form1.s005.options[5]=new Option("","0");
document.form1.s005.options[6]=new Option("","0");
}
}
</script>
<select name="s004" size="1" onChange="javascript:ch()">
<option value="0" selected>请选择新楼类型</option>
<option value="zhu_zai" >住宅</option>
<option value="xie_zi">写字楼</option>
<option value="shang_pu">商铺</option>
</select>
- <select name="s005" size="1" >
<option value="0">==</option>
</select>
<input type="submit" name="Submit2" value="信息查询"> </td>
</tr>
</form>
<tr>
<td height="11" align="right" background="images/img022.jpg"> </td>
<td align="left" background="images/img022.jpg" valign="top"><form action="old.asp" method="post" name="form2">二手-
<select name="old1" size="1" >
<option value="zhu_zai" selected>住 宅</option>
<option value="xie_zi">写字楼</option>
<option value="shang_pu">商 铺</option>
<option value="chang_fang">厂 房</option>
</select>
-
<select name="old2" size="1" >
<option value="s_" selected>出售</option>
<option value="z_">出租</option>
</select> - <select name="info_type" size="1" id="info_type">
<option value="1">中介</option>
<option selected value="2">非中介</option>
</select>
- <select name="company" size="1" >
<option selected value="1" name="company">请选择中介</option>
<%
set rs2=server.CreateObject("ADODB.RecordSet")
rs2.Source="select * from user Where ttype='3'"
rs2.Open rs2.Source,conn,1,1
if rs2.EOF then %>
<option value=0>暂无任何中介</option>
<%else
while not rs2.EOF
%>
<option value=<%=rs2("company2")%>><%=trim(rs2("company2"))%></option>
<%
rs2.MoveNext
wend
end if
rs2.close
set rs2=nothing
%>
</select>
<input type="hidden" name="old3">
<input type="hidden" name="old4" value="<%=ddd3%>">
<input type="submit" name="Submit" value="信息查询">
</td></tr></form>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -