<!--#include file="main.asp"-->
<%id=request("id")
if id="" then
response.write"<script>alert('操作出错，下面是产生错误的可能原因：\n\n·请选择相关参数');history.go(-1);</script>"
response.end
end if

scasort=request("scasort")

set rs=server.createobject("adodb.recordset")
sql="select *  from dlxf_ypxxone where dlxf_ypxxone_id="&id&" order by dlxf_date desc"
rs.open sql,conn,1,1
ypxxone=rs("dlxf_ypxxone")
rs.close%>


<!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 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>
<link href="css/Untitled-1.css" rel="stylesheet" type="text/css">
<body topmargin="0">
<%dlxf_TOP%>

<table width="760" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td width="100%" valign="top">
<!--=========left=========-->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height=60 class="redbar"><p>当前位置：<a href=index.asp>首页</a> >> <a href=sca.asp>商贸机会</a> >> <a href=sca_list.asp?id=<%=id%>&scasort=999><%=ypxxone%></a></p>
      </td>
  </tr>
  <tr>
    <td><%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="100%" height="54"  border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="54" class="searchbar"><table width="100%" height="56" border="0" align=center cellpadding="0" cellspacing="1">
      <form name="addform" method="post" action="search_redirect.asp">
        <input name="key" type="hidden" value="<%=key%>">
        <tr align="center">
          <td width="74%" height=55><div align="right">
                <%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>
                <%end if%>
                <input type="text" name="word" size=30 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;"> 
               </div></td>
          <td width="7%"><div align="right"><img src="images/icon_point.gif" width="18" height="19"></div></td>
          <td width="8%"><a href="search.asp">高级搜索</a></td>
          <td width="11%">&nbsp;</td>
        </tr>
      </form>
    </table></td>
  </tr>
</table>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="8"></td>
  </tr>
</table>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="14%" height="31" class="leimubar"><IMG height=20 
src="img/icon_black_45down.gif" 
width=20 align=absMiddle border=0><SPAN class=head> 商业机会</SPAN></td>
    <td width="36%">&nbsp;</td>
    <td width="25%">&nbsp;</td>
    <td width="25%">&nbsp;</td>
  </tr>
  <tr bgcolor="#000000">
    <td height="2" colspan="4"></td>
  </tr>
  <tr>
    <td height="26" colspan="4" class="searchbar"><%set rs=Server.CreateObject("Adodb.Recordset")
sql="select * from dlxf_scasort order by dlxf_date desc"
rs.open sql,conn,1,1
do while not rs.eof
%>
　<a href=sca_tlist.asp?scasort=<%=rs("dlxf_id")%>><%=rs("dlxf_scasort")%></a>
      <%rs.movenext
loop
rs.close
set rs=nothing%>
　<a href=sca_tlist.asp?scasort=0>其它</a></td>
    </tr>
</table>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td  height="2" bgcolor="#CCCCCC"></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="5" bgcolor=#f8f8f8 style="border:1px #999999 solid">
<tr>
  <td colspan="7"><a href="sca_list.asp?id=<%=id%>&scasort=999" style="font-size: 14px; font-weight: bold; color: #FF6633"><%= ypxxone %></a>&nbsp; 的分类信息</td>
</tr>
<tr><%set rs=server.createobject("adodb.recordset")
sql="select * from dlxf_ypxxtwo where dlxf_ypxxone_id="&id&" order by dlxf_date desc"
rs.open sql,conn,1,1
n=0
nn=rs.recordcount
do while not rs.eof
n=n+1%>
<td height=33 width=140>
<a href=sca_vlist.asp?id=<%=rs("dlxf_ypxxtwo_id")%> class="black"><%=rs("dlxf_ypxxtwo")%></a></td>
<%if n mod 4<>0 then response.write("<td width=10></td>")
if n mod 4=0 and nn<>n then response.write("</tr><tr>")
rs.movenext
loop
rs.close%>
  </tr>
</table>
	</td>
  </tr>
  <tr>
    <td>
<!---->
<%Call dlxf_Sca_View2(0,10,1,0,id,0,ScaSort,0,5,0,150,1,2,2,1,1,"sca_list.asp")%>
<!---->
	</td>
  </tr>
</table>
<!--=========left end=========-->
	</td>
  </tr>
</table>
<!--====== bottom ========-->
<table width="760" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor=#ffffff>
<tr><td height=10></td></tr>
<tr><td height=4 bgcolor=#FF9933></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>