

<!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>
<link href="css/Untitled-1.css" rel="stylesheet" type="text/css">
<!--#include file="main.asp"-->
<%sql = "select *  from dlxf_ypxxtwo order by dlxf_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("dlxf_ypxxtwo"))%>","<%= trim(rs("dlxf_ypxxone_id"))%>","<%= trim(rs("dlxf_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 dlxf_ypaddtwo order by dlxf_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("dlxf_addtwo"))%>","<%= trim(rs("dlxf_addone_id"))%>","<%= trim(rs("dlxf_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="img/logo_no_new.gif" width="240" height="60" 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 #FF7900 solid" bgcolor=#efefef>
<table width="" border="0" cellspacing="0" cellpadding="0">
  <tr align=center><td width=80 height=20<%if key="yp" then%> bgcolor=FF7900<%end if%>><a href=search.asp?key=yp<%if key="yp" then%> <%end if%>><strong>企业</strong></a></td>
  <td width=80<%if key="sca" then%> bgcolor=FF7900<%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=FF7900<%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=FF7900<%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=FF7900<%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 dlxf_ypaddone order by dlxf_date desc"
set rs=server.createobject("ADODB.Recordset")
rs.open sql,conn,1,1
while not rs.eof%>
<option value="<%=rs("dlxf_addone_id")%>"><%=rs("dlxf_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 dlxf_ypxxone order by dlxf_date desc"
set rs=server.createobject("ADODB.Recordset")
rs.open sql,conn,1,1
while not rs.eof%>
<option value="<%=rs("dlxf_ypxxone_id")%>"><%=rs("dlxf_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:FF7900;border-top:#FCFF00 1px solid;border-left:#FCFF00 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 #FF7900 solid">
  <tr>
    <td width="22" align=center bgcolor="FF7900"><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=#FD7400></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>
<script language="javascript"> 
    changelocation1(document.addform.addone_id.options[document.addform.addone_id.selectedIndex].value); 
</script>
</body>
</html>