📄 search.asp
字号:
<!--#include file="main.asp"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>服务搜索 - <%=citytitle%></title>
<%sql = "select * from SMT_ypxxtwo order by SMT_date desc"
set rs=server.createobject("ADODB.Recordset")
rs.open sql,conn,1,1%>
<script language = "JavaScript">
var onecount;
onecount=0;
subcat = new Array();
<%count = 0
do while not rs.eof%>
subcat[<%=count%>] = new Array("<%= trim(rs("SMT_ypxxtwo"))%>","<%= trim(rs("SMT_ypxxone_id"))%>","<%= trim(rs("SMT_ypxxtwo_id"))%>");
<%count = count + 1
rs.movenext
loop
rs.close
set rs=nothing%>
onecount=<%=count%>;
function changelocation(ypxxone)
{
document.addform.ypxxtwo_id.length = 0;
var ypxxone_id=ypxxone_id;
var i;
document.addform.ypxxtwo_id.options[0] = new Option('所属小类','');
for (i=0;i < onecount; i++)
{
if (subcat[i][1] == ypxxone)
{
document.addform.ypxxtwo_id.options[document.addform.ypxxtwo_id.length] = new Option(subcat[i][0], subcat[i][2]);
}
}
}
</script>
<%sql = "select * from SMT_ypaddtwo order by SMT_date desc"
set rs=server.createobject("ADODB.Recordset")
rs.open sql,conn,1,1%>
<script language = "JavaScript">
var onecount1;
onecount1=0;
subcat1 = new Array();
<%count = 0
do while not rs.eof%>
subcat1[<%=count%>] = new Array("<%= trim(rs("SMT_addtwo"))%>","<%= trim(rs("SMT_addone_id"))%>","<%= trim(rs("SMT_addtwo_id"))%>");
<%count = count + 1
rs.movenext
loop
rs.close
set rs=nothing%>
onecount1=<%=count%>;
function changelocation1(addone)
{
document.addform.addtwo_id.length = 0;
var addone_id=addone_id;
var i;
document.addform.addtwo_id.options[0] = new Option('所属城市','');
for (i=0;i < onecount1; i++)
{
if (subcat1[i][1] == addone)
{
document.addform.addtwo_id.options[document.addform.addtwo_id.length] = new Option(subcat1[i][0], subcat1[i][2]);
}
}
}
</script>
</hand>
<body topmargin="0">
<%key=request("key")
if key="" or (key<>"yp" and key<>"sca" and key<>"cp" and key<>"ypdt" and key<>"zh") then key="sca"%>
<table width="760" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td valign=top>
<!--==================-->
<table width="80%" border="0" cellspacing="1" cellpadding="0" align=center>
<tr><td height=200 align=center><a href=<%=cityurl%>index.asp target=_blank><img src="<%=cityurl%>img/logo.gif" border="0"></a><img src="img/search_button.gif"></td></tr>
<form name="addform" method="post" action="search_redirect.asp">
<input name="key" type="hidden" value="<%=key%>">
<tr align="center">
<td style="border-bottom:1px #cc3300 solid" bgcolor=#efefef>
<table width="" border="0" cellspacing="0" cellpadding="0">
<tr align=center><td width=80 height=20<%if key="yp" then%> bgcolor=cc3300<%end if%>><a href=search.asp?key=yp<%if key="yp" then%> class=white<%end if%>><strong>企业</strong></a></td>
<td width=80<%if key="sca" then%> bgcolor=cc3300<%end if%>><a href=search.asp?key=sca<%if key="sca" then%> class=white<%end if%>><strong>商机</strong></a></td>
<td width=80<%if key="cp" then%> bgcolor=cc3300<%end if%>><a href=search.asp?key=cp<%if key="cp" then%> class=white<%end if%>><strong>产品</strong></a></td>
<td width=80<%if key="ypdt" then%> bgcolor=cc3300<%end if%>><a href=search.asp?key=ypdt<%if key="ypdt" then%> class=white<%end if%>><strong>信息</strong></a></td>
<td width=80<%if key="zh" then%> bgcolor=cc3300<%end if%>><a href=search.asp?key=zh<%if key="zh" then%> class=white<%end if%>><strong>展会</strong></a></td></tr>
</table>
</td>
</tr>
<tr><td height=50></td></tr>
<tr align="center">
<td height=30>
<%if key<>"cp" and key<>"ypdt" then%>
<select name="addone_id" onChange="changelocation1(document.addform.addone_id.options[document.addform.addone_id.selectedIndex].value)">
<option value="" selected>省份</option>
<%sql="select * from SMT_ypaddone order by SMT_date desc"
set rs=server.createobject("ADODB.Recordset")
rs.open sql,conn,1,1
while not rs.eof%>
<option value="<%=rs("SMT_addone_id")%>"><%=rs("SMT_addone")%></option>
<%rs.movenext
wend
rs.Close%>
</select>
<select name="addtwo_id">
<option selected value="">地级市</option>
</select>
<%end if%>
<%if key<>"ypdt" then%>
<select name="ypxxone_id" onChange="changelocation(document.addform.ypxxone_id.options[document.addform.ypxxone_id.selectedIndex].value)">
<option value="" selected>所属行业</option>
<%sql="select * from SMT_ypxxone order by SMT_date desc"
set rs=server.createobject("ADODB.Recordset")
rs.open sql,conn,1,1
while not rs.eof%>
<option value="<%=rs("SMT_ypxxone_id")%>"><%=rs("SMT_ypxxone")%></option>
<%rs.movenext
wend
rs.Close%>
</select>
<select name="ypxxtwo_id">
<option selected value="">所属小类</option>
</select>
<br>
<br>
<%end if%>
<input type="text" name="word" size=40 class=input2>
<input type="submit" name="Submit2" value=" 开 搜 " style="color:white;background:cc3300;border-top:#F67448 1px solid;border-left:#F67448 1px solid;border-bottom:#AA1000 1px solid;border-right:#AA1000 1px solid;"></td>
</tr>
</form>
<tr><td height=50></td></tr>
<tr><td align="center">
<table width="400" border="0" cellspacing="5" cellpadding="0" style="border:1px #cc3300 solid">
<tr>
<td width="22" align=center bgcolor="cc3300"><font color=white>热<br>门</font></td>
<td width="376" align="center"><p style="line-height:150%"><%=citysearch%></td>
</tr>
</table>
</td></tr>
<tr><td height=80></td></tr>
</table>
<!--==================-->
</td>
</tr>
</table>
<!--====== bottom ========-->
<table width="760" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor=#ffffff>
<tr><td height=2 bgcolor=#cc3300></td></tr>
<tr>
<td align="center" height=80><%=citybottom%></td>
</tr>
</table>
<script language="javascript">
changelocation(document.addform.ypxxone_id.options[document.addform.ypxxone_id.selectedIndex].value);
</script>
<%if key<>"cp" and key<>"ypdt" then%>
<script language="javascript">
changelocation1(document.addform.addone_id.options[document.addform.addone_id.selectedIndex].value);
</script>
<%end if%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -