<!--#include file="../conn/conn.asp"-->
<!--#include file="../inc/classcount.asp"-->
<!--#include file="../inc/safe.asp"-->
<%
if Chkrequest(request("sortid")) then
sortid=request("sortid")
else
Response.Redirect ("../login/chklogin.asp?login=4")
end if

show=Replace_Text(request("show"))
qylb=Replace_Text(request("qylb"))

sql="select * from corporation where sortid="&sortid&" and cflag=1"

if qylb>"" then sql=sql&" and qylb like '%"&qylb&"%'"

if show="trust_score" then
sql=sql&" order by trust_score desc"
else
sql=sql&" order by id desc"
end if

Set rs= Server.CreateObject("ADODB.Recordset") 
rs.open sql,conn,1,1 

msg_per_page=20 '定义每页显示记录条数
%>
<!--#include file="../inc/headpage.asp"-->
<style type="text/css">
<!--
.searchbar1 {BORDER-TOP: #f1f1f1 3px solid;  FONT-WEIGHT: bold; BACKGROUND: #e7e7e7; BORDER-BOTTOM: #bebebe 3px solid; FONT-FAMILY: 宋体; padding-top:3px}
.companybar1 {background:url("/seller/images/search_bg.gif");border:#999999 solid;border-width:1 1 0 1;height:29px;border-bottom:#666666 3 solid;text-align:center;font:bold 14px;padding-top:4px;}
.orangeborder {border:#CC3300 2 solid;padding-left: 15px}
.cate {padding-left: 14px;font-size:12px;LINE-HEIGHT: 150%;}
-->
</style>
<!--#include file="head.asp"-->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
  <!--DWLayoutTable-->
    <tr> 
    <td width="750" height="5" valign="middle">
    </td>
  </tr>
  <tr> 
    <td width="750" height="22" valign="middle" class="S">您当前的位置： <a href="../index.asp"><%=webname%>首页</a> 
      &gt; <a href="index.asp">公司库</a> &gt; 
      <%sqlsort="select * from Class_1 where sortid="&sortid&""
set rssort=conn.execute(sqlsort) 
response.write"<strong>"&rssort("sort")&"</strong>"%>
    </td>
  </tr>
</table>
<TABLE width="750" border=0 align="center" cellPadding=0 cellSpacing=0 class="outborder">
  <TBODY>
    <TR>
      <FORM name=searchForm action="../select.asp" 
    onsubmit="javascript:if(doSearch()==false) return false;" method=post>
        <td height=40  valign=middle class="searchbar"><table width="700"  border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td><img src="../seller/images/img_search.gif" width=86 height=21 align=absmiddle>　
                  <input size=25 name="keywords">
                  <select class=text13 name=categoryId>
                    <option value="" selected>在所有行业</option>
                    <option 
      value="<%=sortid%>"><%=rssort("sort")%></option>
                  </select>
                  <select class=TEXT13 name="which">
                    <option value="all">供求信息</option>
                    <option value="sale">供应信息</option>
                    <option value="buy">求购信息</option>
                    <option value="productshow">产品目录</option>
                    <option value="corporation" selected>公司库</option>
                    <option value="news">行业资讯</option>
                </select>
&nbsp;
                <input name="imageField" type="image" src="../images/serch.gif" align="top" width="65" height="22" border="0">
              　</td>
              <td><img src="../images/icon_point.gif" width="18" height="19" align="absmiddle"> <a href="../help/Search_Answer.asp" target=_blank>如何搜索</a></td>
            </tr>
        </table></TD>
      </FORM>
      <SCRIPT LANGUAGE='JavaScript' SRC='../js/search.js' TYPE='text/javascript'></script>
    </TR>
  </TBODY>
</TABLE>
<SCRIPT LANGUAGE='JavaScript' SRC='../js/search.js' TYPE='text/javascript'></script>
<TABLE cellSpacing=0 cellPadding=10 width="750" align=center border=0 class="blackborder">
  
  <TBODY>
  <TR>
    <TD align=middle>
      <TABLE cellSpacing=3 cellPadding=0 width="95%" border=0>
        <TBODY>
<%
sqltype="select * from Class_2 where sortid="&sortid&""
set rstype=conn.execute(sqltype)
if rstype.eof then
response.write"暂无行业分类"
else
response.Write"<TR vAlign=top>"
do while not rstype.eof
response.Write"<TD vAlign=top width='33%' height='25'><a class=C href='list.asp?typeid="&rstype("typeid")&"'>"&rstype("typename")&"</a>"
response.Write"<font color='#636363'>("&erjicount_cor&")</font></td>"
a=a+1
if a=3 then
response.Write"</tr>"
a=0
end if
rstype.movenext
loop
end if
%>
            
</TBODY></TABLE></TD></TR></TBODY></TABLE>
<br>
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0" class="downborder">
    <tr>
      <td width="97" class="companybar"  onMouseOver="this.style.cursor='hand'" OnClick="location.href='../tradeinfo/smalllist.asp?sortid=<%=sortid%>'">供应商机</td>
      <td width="3" class="midbar">&nbsp;</td>
      <td width="97" class="companybar" onMouseOver="this.style.cursor='hand'" OnClick="location.href='../seller/smalllist.asp?sortid=<%=sortid%>'">采购信息</td>
      <td width="3" class="midbar">&nbsp;</td>
      <td width="97" class="buttonbar"><img src="../images/icon_black_45down.gif" border=0 align=absmiddle width=20 height=20><span class=head>公司库</span></td>
      <td width="3" class="midbar">&nbsp;</td>
      <td width="75" class="companybar" onMouseOver="this.style.cursor='hand'" OnClick="location.href='../tradeinfo/smalllist.asp?sortid=25'">加工商机</td>
      <td width="3" class="midbar">&nbsp;</td>
      <td width="75" class="companybar" onMouseOver="this.style.cursor='hand'" OnClick="location.href='../tradeinfo/smalllist.asp?sortid=31'">库存产品</td>
      <td width="3" class="midbar">&nbsp;</td>
      <td width="75" class="companybar" onMouseOver="this.style.cursor='hand'" OnClick="location.href='../tradeinfo/smalllist.asp?sortid=33'">二手设备</td>
      <td width="3" class="midbar">&nbsp;</td>
      <td width="75" class="companybar" onMouseOver="this.style.cursor='hand'" OnClick="location.href='../tradeinfo/smalllist.asp?sortid=32'">项目合作</td>
      <td width="3" class="midbar">&nbsp;</td>
      <td width="75" class="companybar" onMouseOver="this.style.cursor='hand'" OnClick="location.href='../tradeinfo/smalllist.asp?sortid=12'">商务服务</td>
      <td width="3" class="midbar">&nbsp;</td>
      <td class="midbar">&nbsp;</td>
    </tr>
</table>
<table width="750"  border="0" align="center" cellpadding="10" cellspacing="0"  class=outborder>
    <tr>
      <td bgcolor="E7E7E7">
        <table width="100%"  border="0" cellspacing="0" cellpadding="2">
          <tr>
            <td>  <b>“<%=rssort("sort")%>”的相关公司共 <%=yijicount_cor%> 条</b><br>            </td>
            <td align=right class=S> <a href="/staric/index.asp"><img src="../images/staric.gif" width=22 height=23 border=0  align=absmiddle></a> <font color=939393>商贸通会员 | <img src="../images/brand.gif" width=21 height=23 align=absmiddle> 网上有名</font>   
          </tr>
        </table>
        <table width="100%"  border="0" cellspacing="0" cellpadding="3">
          <tr>
            <td width=145 class="nobianbuttonborder M blackbordernobottom" nowrap> <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td>&nbsp;</td>
                  <td><div align="left"><b><a href="../tradeinfo/smalllist.asp?sortid=<%=sortid%>">供应信息</a></b> </div></td>
                </tr>
            </table></td>
            <td rowspan=3 class="orangeborder" bgcolor=#FFFFFF>
              <table width="100%"  border="0" cellspacing="0" cellpadding="7">
                <tr>
                  <td> <img src="../images/icon_point.gif" border=0 width=18 height=19  align=absmiddle>  <span class="text13">
                    <b>发布公司信息</b></span> <img src="../images/icon_point.gif" border=0 width=18 height=19  align=absmiddle> <b><a href="../member/tradeinfo/add_info.asp">修改公司信息</a> <img src="../images/icon_point.gif" border=0 width=18 height=19  align=absmiddle> <a href="../member/myemail/orderbegin.asp" class=red>按关键字定阅商业机会信息</a></b> </td>
                </tr>
                <tr>
                  <td>
				  <TABLE>
        <TBODY>
        <TR>
		<FORM name=searchForm action="smalllist_1.asp?sortid=<%=sortid%>" onsubmit="javascript:if(doSearch()==false) return false;" method=post>
          <TD width="88%">过滤信息：<INPUT maxLength=100 size=20 name="keywords">          
          <FONT 
            color=#999999><SELECT class=TEXT13 size=1 name=qylb> <OPTION 
              value="" selected>所有经营模式<OPTION value="生产型">生产型<OPTION 
              value="贸易型">贸易型<OPTION value="服务型">服务型<OPTION 
            value="政府或其他机构">政府或其他机构</OPTION></SELECT> <SELECT class=TEXT13 
            onchange=javascript:changeCountry1(this); name=country1>
                    </SELECT> <SELECT class=TEXT13 
            onchange=changeProvince(this); name=province>
                      <OPTION value="" 
              selected>省份</OPTION>
                    </SELECT> <SELECT class=TEXT13 name=city>
                      <OPTION value="" 
              selected>地级城市</OPTION>
                    </SELECT>
					
	<SCRIPT language=javascript src="../js/area.js"    
      purpose="INITIALIZER"></SCRIPT>
	  <SCRIPT language=javascript>
<!--
    //设置国家1的缺省值
    for (var i=0;i<5;i++){
	    if (country1Form1.options[i].value == ''){
		    country1Form1.options[i].selected=true;
		}
	}

    for (var i=0;i<catArr1.length;i++) {
		catForm1.options[i+1]=new Option(catArr1[i].title,catArr1[i].id);
		//设置省选择框的选择值
		if(catForm1.options[i+1].value == ''){
	        	catForm1.options[i+1].selected=true;
	        }
	}
	changeProvince(catForm1);
	var len = boardForm1.options.length;
	for (var i=0;i<len;i++) {
		//设置城市选择框的选择值
		if(boardForm1.options[i].value == '') {
		    boardForm1.options[i].selected=true;
		}
	}

-->
</SCRIPT>  
	  <input name="imageField" type="image" src="../images/serch.gif" align="top" width="65" height="22" border="0"> 
        </FONT></TD></FORM>
        </TR></TBODY></TABLE>
		</td>
                </tr>
              </table></td>
          </tr>
          <tr>
            <td width=145 class="nobianbuttonborder M blackbordernobottom" nowrap><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td>&nbsp;</td>
                  <td><div align="left"><b><a href="../productshow/smalllist.asp?sortid=<%=sortid%>">产品目录</a></b></div></td>
                </tr>
              </table></td>
          </tr>
          <tr>
            <td width=145 class="buttoncolor M" nowrap>              <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td>&nbsp;</td>
                  <td><div align="left"><b><font color=#FFFFFF>相关公司 (<%=yijicount_cor%>)</font></b></div></td>
                </tr>
              </table></td>
          </tr>
      </table></td>
    </tr>
</table>

<TABLE width=750 border=0 align="center" cellPadding=0 cellSpacing=0>
  <TBODY>
  <TR>
    <TD>
      <TABLE cellSpacing=0 cellPadding=0 width="50%" border=0>
        <TBODY>
        <TR>
              <TD class=C><STRONG><A 
            href="trade.asp?sortid=<%=sortid%>&qylb=<%=qylb%>&show=trust_score">按商贸通指数排序</A> 
            </STRONG></TD>
              <TD><SPAN class=M><A 
            href="../help/aboutvip.asp" 
            target=_blank><IMG height=23 
            src="../images/staric.gif" width=22 
            align=absMiddle border=0></A> <STRONG>商贸通会员</STRONG></SPAN> </TD>
              <TD>|&nbsp;<IMG height=23 src="images/brand.gif" 
            width=21 align=absMiddle> <SPAN class=M>网上有名</SPAN> </TD>
            
            </TR>
        <TR>
              <TD colSpan=3><IMG height=11 src="../images/offerfaq.gif" 
            width=11 align=absMiddle>&nbsp; <a href="javascript:win=window.open('../help/trust_score.asp','contact','width=550,height=450,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no');win.focus();">什么是商贸通指数</A> 
              </TD>
            </TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
    
<TABLE width=750 border=0 align="center" cellPadding=0 cellSpacing=0>
  <TBODY>
        <TR> 
          <TD align=middle><BR> 
		  		  <%
if rs.eof then
response.Write"暂无任何信息！"
else
%>
<%do while not rs.eof and rowcount > 0%>

        <TABLE width="100%" align=center border=0>
          <TBODY>
            <TR> 
              <TD 
          style="BORDER-RIGHT: #f2e7c1 1px solid; BORDER-TOP: #f2e7c1 1px solid; BORDER-LEFT: #f2e7c1 1px solid; BORDER-BOTTOM: #f2e7c1 1px solid" 
          width=30 bgColor=#ffffe6> 
		  <%if rs("flag")=1 then%>
		  <TABLE cellSpacing=0 cellPadding=3 width="100%" border=0>
                  <TBODY>
                    <TR> 
                      <TD align=middle><IMG 
                  src="../images/staric.gif" width="22" height="23" 
                  border=0 align=middle> <FONT size=2><A class=numb title=商贸通指数 
      href="javascript:win=window.open('../help/trust_score.asp','contact','width=550,height=550,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no');win.focus();"><%=rs("trust_score")%></A></FONT> </TD>
                    </TR>
                  </TBODY>
                </TABLE>
				   <%end if%>	
			  </TD>
              <TD class=C style="LINE-HEIGHT: 130%" <%if icolor=0 then response.write"bgColor=#ffffff" else response.write"bgColor=#f6f6f6" end if%> onMouseOver="this.style.backgroundColor='#FFF8F4'" onMouseOut="this.style.backgroundColor='<%if icolor=0 then response.write"#ffffff" else response.write"#f6f6f6" end if%>'"><font color="#666666">
<%if rs("flag")=1 then%>			  
			  <A class=C 
            href="../<%=rs("url")%>" 
            target=_blank><STRONG><%=rs("qymc")%></STRONG></A> <IMG src="images/brand.gif" align=middle alt="网上有名"
            border=0> 
<%else%>
			  <A class=C 
            href="../noshinecompany/index.asp?id=<%=rs("id")%>" 
            target=_blank><STRONG><%=rs("qymc")%></STRONG></A> 
<%end if%>
			 <BR>
                (<%=rs("qylb")%>) <FONT color=#009999 class=C>[<%=rs("sf")%>] </FONT><BR>
                主营产品/服务：<%=replace(rs("zycp"),keywords,"<font color=red>"&keywords&"</font>")%> <BR>
                <%=left(rs("qyjj"),80)%>…… <BR>
                电话：<%=rs("phone")%> 传真：<%=rs("fax")%> </font></TD>
            </TR>
          </TBODY>
        </TABLE>
            <BR>
<%
icolor=icolor+1
if icolor>1 then icolor=0
rowcount=rowcount-1
rs.movenext
loop
end if
%></TD>
        </TR>
        
  </TBODY>
</TABLE>
            </TD>
        </TR>
      </TBODY>
    </TABLE>
    </TD><BR>
<TABLE width=750 border=0 align="center" cellPadding=1 cellSpacing=0 bgColor=#fcdfb4>
  <TBODY>
    <TR> 
      <TD> <TABLE cellSpacing=0 cellPadding=4 width="750" bgColor=#fef8e2 
        border=0>
          <TBODY>
            <TR> 
              <TD class=M noWrap align=middle><%=listPages("smalllist.asp?sortid="&sortid&"&qylb="&qylb&"&show="&show&"")%> </TD>
            </TR>
          </TBODY>
        </TABLE></TD>
    </TR>
  </TBODY>
</TABLE></CENTER><BR><MAP name=Map>
  <AREA shape=RECT 
  coords=253,5,411,34 
href="index.asp">
</MAP><BR>
<!--#include file="../inc/end.asp"-->
<%
rs.close
set rs=nothing
conn.close
set conn=nothing
%>