<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<% data_path="../" 'ACC连接数据库路径，对SQL无效 %>
<!--#include file="../conn/conn.asp"-->
<!--#include file="../inc/safe.asp"-->
<!--层--------------------------------start------------------------------------------------>
 
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_dragLayer(objName,x,hL,hT,hW,hH,toFront,dropBack,cU,cD,cL,cR,targL,targT,tol,dropJS,et,dragJS) { //v4.01
  //Copyright 1998 Macromedia, Inc. All rights reserved.
  var i,j,aLayer,retVal,curDrag=null,curLeft,curTop,IE=document.all,NS4=document.layers;
  var NS6=(!IE&&document.getElementById), NS=(NS4||NS6); if (!IE && !NS) return false;
  retVal = true; if(IE && event) event.returnValue = true;
  if (MM_dragLayer.arguments.length > 1) {
    curDrag = MM_findObj(objName); if (!curDrag) return false;
    if (!document.allLayers) { document.allLayers = new Array();
      with (document) if (NS4) { for (i=0; i<layers.length; i++) allLayers[i]=layers[i];
        for (i=0; i<allLayers.length; i++) if (allLayers[i].document && allLayers[i].document.layers)
          with (allLayers[i].document) for (j=0; j<layers.length; j++) allLayers[allLayers.length]=layers[j];
      } else {
        if (NS6) { var spns = getElementsByTagName("span"); var all = getElementsByTagName("div"); 
          for (i=0;i<spns.length;i++) if (spns[i].style&&spns[i].style.position) allLayers[allLayers.length]=spns[i];}
        for (i=0;i<all.length;i++) if (all[i].style&&all[i].style.position) allLayers[allLayers.length]=all[i]; 
    } }
    curDrag.MM_dragOk=true; curDrag.MM_targL=targL; curDrag.MM_targT=targT;
    curDrag.MM_tol=Math.pow(tol,2); curDrag.MM_hLeft=hL; curDrag.MM_hTop=hT;
    curDrag.MM_hWidth=hW; curDrag.MM_hHeight=hH; curDrag.MM_toFront=toFront;
    curDrag.MM_dropBack=dropBack; curDrag.MM_dropJS=dropJS;
    curDrag.MM_everyTime=et; curDrag.MM_dragJS=dragJS;
    curDrag.MM_oldZ = (NS4)?curDrag.zIndex:curDrag.style.zIndex;
    curLeft= (NS4)?curDrag.left:(NS6)?parseInt(curDrag.style.left):curDrag.style.pixelLeft; 
    if (String(curLeft)=="NaN") curLeft=0; curDrag.MM_startL = curLeft;
    curTop = (NS4)?curDrag.top:(NS6)?parseInt(curDrag.style.top):curDrag.style.pixelTop; 
    if (String(curTop)=="NaN") curTop=0; curDrag.MM_startT = curTop;
    curDrag.MM_bL=(cL<0)?null:curLeft-cL; curDrag.MM_bT=(cU<0)?null:curTop-cU;
    curDrag.MM_bR=(cR<0)?null:curLeft+cR; curDrag.MM_bB=(cD<0)?null:curTop+cD;
    curDrag.MM_LEFTRIGHT=0; curDrag.MM_UPDOWN=0; curDrag.MM_SNAPPED=false; //use in your JS!
    document.onmousedown = MM_dragLayer; document.onmouseup = MM_dragLayer;
    if (NS) document.captureEvents(Event.MOUSEDOWN|Event.MOUSEUP);
  } else {
    var theEvent = ((NS)?objName.type:event.type);
    if (theEvent == 'mousedown') {
      var mouseX = (NS)?objName.pageX : event.clientX + document.body.scrollLeft;
      var mouseY = (NS)?objName.pageY : event.clientY + document.body.scrollTop;
      var maxDragZ=null; document.MM_maxZ = 0;
      for (i=0; i<document.allLayers.length; i++) { aLayer = document.allLayers[i];
        var aLayerZ = (NS4)?aLayer.zIndex:parseInt(aLayer.style.zIndex);
        if (aLayerZ > document.MM_maxZ) document.MM_maxZ = aLayerZ;
        var isVisible = (((NS4)?aLayer.visibility:aLayer.style.visibility).indexOf('hid') == -1);
        if (aLayer.MM_dragOk != null && isVisible) with (aLayer) {
          var parentL=0; var parentT=0;
          if (NS6) { parentLayer = aLayer.parentNode;
            while (parentLayer != null && parentLayer.style.position) {             
              parentL += parseInt(parentLayer.offsetLeft); parentT += parseInt(parentLayer.offsetTop);
              parentLayer = parentLayer.parentNode;
          } } else if (IE) { parentLayer = aLayer.parentElement;       
            while (parentLayer != null && parentLayer.style.position) {
              parentL += parentLayer.offsetLeft; parentT += parentLayer.offsetTop;
              parentLayer = parentLayer.parentElement; } }
          var tmpX=mouseX-(((NS4)?pageX:((NS6)?parseInt(style.left):style.pixelLeft)+parentL)+MM_hLeft);
          var tmpY=mouseY-(((NS4)?pageY:((NS6)?parseInt(style.top):style.pixelTop) +parentT)+MM_hTop);
          if (String(tmpX)=="NaN") tmpX=0; if (String(tmpY)=="NaN") tmpY=0;
          var tmpW = MM_hWidth;  if (tmpW <= 0) tmpW += ((NS4)?clip.width :offsetWidth);
          var tmpH = MM_hHeight; if (tmpH <= 0) tmpH += ((NS4)?clip.height:offsetHeight);
          if ((0 <= tmpX && tmpX < tmpW && 0 <= tmpY && tmpY < tmpH) && (maxDragZ == null
              || maxDragZ <= aLayerZ)) { curDrag = aLayer; maxDragZ = aLayerZ; } } }
      if (curDrag) {
        document.onmousemove = MM_dragLayer; if (NS4) document.captureEvents(Event.MOUSEMOVE);
        curLeft = (NS4)?curDrag.left:(NS6)?parseInt(curDrag.style.left):curDrag.style.pixelLeft;
        curTop = (NS4)?curDrag.top:(NS6)?parseInt(curDrag.style.top):curDrag.style.pixelTop;
        if (String(curLeft)=="NaN") curLeft=0; if (String(curTop)=="NaN") curTop=0;
        MM_oldX = mouseX - curLeft; MM_oldY = mouseY - curTop;
        document.MM_curDrag = curDrag;  curDrag.MM_SNAPPED=false;
        if(curDrag.MM_toFront) {
          eval('curDrag.'+((NS4)?'':'style.')+'zIndex=document.MM_maxZ+1');
          if (!curDrag.MM_dropBack) document.MM_maxZ++; }
        retVal = false; if(!NS4&&!NS6) event.returnValue = false;
    } } else if (theEvent == 'mousemove') {
      if (document.MM_curDrag) with (document.MM_curDrag) {
        var mouseX = (NS)?objName.pageX : event.clientX + document.body.scrollLeft;
        var mouseY = (NS)?objName.pageY : event.clientY + document.body.scrollTop;
        newLeft = mouseX-MM_oldX; newTop  = mouseY-MM_oldY;
        if (MM_bL!=null) newLeft = Math.max(newLeft,MM_bL);
        if (MM_bR!=null) newLeft = Math.min(newLeft,MM_bR);
        if (MM_bT!=null) newTop  = Math.max(newTop ,MM_bT);
        if (MM_bB!=null) newTop  = Math.min(newTop ,MM_bB);
        MM_LEFTRIGHT = newLeft-MM_startL; MM_UPDOWN = newTop-MM_startT;
        if (NS4) {left = newLeft; top = newTop;}
        else if (NS6){style.left = newLeft; style.top = newTop;}
        else {style.pixelLeft = newLeft; style.pixelTop = newTop;}
        if (MM_dragJS) eval(MM_dragJS);
        retVal = false; if(!NS) event.returnValue = false;
    } } else if (theEvent == 'mouseup') {
      document.onmousemove = null;
      if (NS) document.releaseEvents(Event.MOUSEMOVE);
      if (NS) document.captureEvents(Event.MOUSEDOWN); //for mac NS
      if (document.MM_curDrag) with (document.MM_curDrag) {
        if (typeof MM_targL =='number' && typeof MM_targT == 'number' &&
            (Math.pow(MM_targL-((NS4)?left:(NS6)?parseInt(style.left):style.pixelLeft),2)+
             Math.pow(MM_targT-((NS4)?top:(NS6)?parseInt(style.top):style.pixelTop),2))<=MM_tol) {
          if (NS4) {left = MM_targL; top = MM_targT;}
          else if (NS6) {style.left = MM_targL; style.top = MM_targT;}
          else {style.pixelLeft = MM_targL; style.pixelTop = MM_targT;}
          MM_SNAPPED = true; MM_LEFTRIGHT = MM_startL-MM_targL; MM_UPDOWN = MM_startT-MM_targT; }
        if (MM_everyTime || MM_SNAPPED) eval(MM_dropJS);
        if(MM_dropBack) {if (NS4) zIndex = MM_oldZ; else style.zIndex = MM_oldZ;}
        retVal = false; if(!NS) event.returnValue = false; }
      document.MM_curDrag = null;
    }
    if (NS) document.routeEvent(objName);
  } return retVal;
}

function loadwin(obj){
	with(MM_findObj(obj))with(style){
		filters[0].apply();
		display='';
		filters[0].play();
	}
}
function cs(captionBG,bodyBG,tableBG){
oldBody=document.body;
	with(oldBody){
		var newBody=cloneNode();
		style.filter='blendtrans(duration=1)';
		filters[0].apply();
		with(document.styleSheets[0]){
			with(rules[0].style){backgroundColor=captionBG;}
			with(rules[1].style){backgroundColor=bodyBG;}
			with(rules[2].style){backgroundColor=tableBG}
		}
		filters[0].play();
		setTimeout(function(){
				if(oldBody!=null){
					oldBody.applyElement(newBody, "inside")
					oldBody.swapNode(newBody);
					oldBody.removeNode(true);
					}
				},1500);
	}
}
//-->
</script>
<style type="text/css">
<!--
.caption {
 
 
	background-color: #00CCFF;
	padding-left: 5px;
	cursor: default;
	font-family: "Verdana", "Arial";
	border: 1px inset;
}
body {
 
	border: 1px inset;
	 
}
table {
	 
}
td {
  
}
.win {
--	filter:BlendTrans(duration=1) DropShadow(Color=#cccccc, OffX=3, OffY=3) alpha(opacity=90)
}
a {
	text-decoration: none;
	color: #003399;
}
a:hover {
	color: #FF0000;
}
input {
  
	border-width: 1px;
}
.statusbar {
 	padding-left: 3px;
}
.button {
 
	text-align: center;
}
.navframe {
	padding: 5px;
}
-->
</style>

 <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("<%=HOPE_InstallDir%>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%;}
.smalltoppad3 {padding-top:3px}
.orangeborder2 {border:#cc3300 1 solid;padding-left: 15px}
a:link {
	color: #333333;
	text-decoration: none;
}
a:visited {
	text-decoration: none;
	color: #333333;
}
a:hover {
	text-decoration: underline;
	color: #FF3300;
}
a:active {
	text-decoration: none;
}
-->
</style>
<%
HOPE_className=3
HOPE_className_new=5
HOPE_searchName="searchcom.asp"
keywords=Replace_Text(request("keywords"))
if keywords<>"" then
	HOPE_classKeywords=keywords
else
	HOPE_classKeywords="请输入你感兴趣的公司信息"
end if
%>
<!--#include file="../inc/head1.asp"-->
<title><%=webname%>公司库搜索</title>

<%
   	 seakind=Replace_Text(request("seakind"))
  	 '^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
	'处理种类的id号 
 
sortid=Replace_Text(Request.form("topCatFormKey"))                                     '第一类
typeid=Replace_Text(Request.form("secondCatFormKey"))
                                                                                '第二类
if typeid="" then
	typeid=0
end if
typeid_2=Replace_Text(Request.form("leafCatFormKey"))
if typeid_2="" then
	typeid_2=0
end if
	'^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 	keywords=replace_text(request("keywords"))
 	proadd=replace_text(request("proadd"))
  	country=Replace_Text(request("country1"))
	sf=Replace_Text(request("province"))
	city=Replace_Text(request("city"))
	DateTime=replace_text(request("DateTime"))
    comkind=replace_text(request("comkind"))
      sadddate=month(date())
	  
	  
'

	If Database_type=1 Then

sql="select * from Yixiang_corporation left join yixiang_history_price  on   Yixiang_corporation.id=yixiang_history_price.gsid  and yixiang_history_price.keywords = '"&keywords&"' and  month(yixiang_history_price.begintime)="&sadddate&"   where yixiang_corporation.flag=1"

else
sql="select * from Yixiang_corporation where  flag=1"
end if
  if keywords<>"" then sql=sql&" and (Yixiang_corporation.zycp like '%"&keywords&"%' or Yixiang_corporation.qymc like '%"&keywords&"%'  )" 
   if Chkrequest(sortid)   then
	if sortid<>0 then
	 sql=sql&" and Yixiang_corporation.sortid="&sortid&""
 	if Chkrequest(typeid) then 
	sql=sql&" and Yixiang_corporation.typeid="&typeid&""
	end if
	if Chkrequest(typeid_2) then 
	sql=sql&" and Yixiang_corporation.typeid_2="&typeid_2&""
    end if
   end if
  end if
if country<>"" then sql=sql&" and Yixiang_corporation.country like '%"&country&"%'"
if sf<>"" then sql=sql&" and Yixiang_corporation.sf like '%"&sf&"%'"
if city<>"" then sql=sql&" and Yixiang_corporation.city like '%"&city&"%'"

if comkind<>"all" then sql=sql&" and Yixiang_corporation.qylb like '%"&comkind&"%'"

	If Database_type=1 Then

   sql=sql&"   order by yixiang_history_price.price desc,Yixiang_corporation.trust_score desc  "
   else
    sql=sql&"  order by trust_score desc "

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

msg_per_page=20 '定义每页显示记录条数
%>
  
<!--#include file="../inc/headpage.asp"-->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="javascript">
	 function subcheck()
	 {
  	var str=document.form.keywords.value;
	if(str.replace(/\s+/g,"")==""||str=="请输入关键字")
	{
	//alert("请输入关键字！");
	//document.form.keywords.focus();
	//return false;
	}
	 }
	 
</script><SCRIPT language=javascript> 
<!-- Hide 
function killErrors() { 
return true; 
} 
window.onerror = killErrors; 
 // --> 
</SCRIPT> 


<table cellspacing="0" cellpadding="0" width="<%=HOPE_PageWidth%>" align="center" border="0">
  <tbody>
    <tr>
      <td height="3"></td>
    </tr>
    <tr>
      <td><table cellspacing="0" bordercolordark="#ffffff" cellpadding="0" width="100%" bordercolorlight="#cccccc" border="1">
        <tbody>
          <tr>
            <td height="22"><table cellspacing="0" cellpadding="0" width="100%" border="0">
              <tbody>
                <tr>
                  <td width="23%"><img height="25" src="<%=HOPE_InstallDir%>search/images/so.gif" width="176" /></td>
                  <td width="77%"><% response.Write("&nbsp;<b><font color=red>→</font></b> 〖<a href='"&HOPE_InstallDir&"search/searchproduct.asp'>产品搜索</a>〗 〖<a href='"&HOPE_InstallDir&"search/News_search.asp'>资讯搜索</a>〗 〖<a href='"&HOPE_InstallDir&"search/searchhelp.asp'>帮助搜索</a>〗 〖<a href='"&HOPE_InstallDir&"search/searchsale.asp'>供应搜索</a>〗 〖<a href='"&HOPE_InstallDir&"search/searchbuy.asp'>求购搜索</a>〗 〖<a href='"&HOPE_InstallDir&"corporation/sitemap.html' target=_blank>行业类别导航</a>〗")%> <a href='<%=HOPE_InstallDir%>search/searchnear.asp'><font color="#0099CC"><b>模糊搜索</b></font></a></td>
                </tr>
              </tbody>
            </table></td>
          </tr>
          <tr>
            <td bgcolor="#eeeeee" height="28"><div align="center"><%=HOPE_ShowSearch(0)%></div></td>
          </tr>
        </tbody>
      </table></td>
    </tr>
    <tr>
      <td height="5"></td>
    </tr>
  </tbody>
</table>
<table bordercolor="#d6dde2" cellspacing="0" bordercolordark="#ffffff" cellpadding="0" width="780" align="center" border="1" style="text-align:left;">
  <tbody>
    <tr>
      <td bgcolor="#ffffff" height="20"><table cellspacing="0" cellpadding="0" width="100%" align="left" border="0">
        <tbody>
          <tr>
            <td height="20"><%
if rs.eof then
response.Write"<table width=""100%""  border=""0"" cellspacing=""0"" cellpadding=""0"">"
response.Write"<tr><td class=buttoncolor2 align=left>"
response.Write"<br><b>&nbsp;您查找的<font color=red>“"&keywords&"”</font>的信息暂时没有找到</b><br><br>"
response.Write"</tr></table>"
response.Write"<table width=""100%""  border=""0"" cellspacing=""0"" cellpadding=""0"" class=blackborder>"
response.Write"<tr><td class=""lh17 c"">"
response.Write"· 缩短或更换搜索关键字后重新搜索<span class=""S""><font color=""#666666"">（例：将“成都易想网络”改为“易想”后重新搜索）,对类别和范围做调整查询！</font></span>；<br><br>" 
response.Write"· 您也可以<input name=""postOffer"" type=""button"" value=""修改自己的公司介绍"" onclick=location.href="""&HOPE_InstallDir&"member/corporation/company_edit.asp"" style=' border-color:#ffffff'>让客户更快的找到你，让他们找上门！<br><br><br> </td>"
response.Write"</tr></table>"
else
%>
              <br />
              <b>&nbsp;您查找的有关&quot;<font color="red"><%=keywords%></font>&quot;</b>的搜索结果：</td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td width="90%" height="20"><span class="S"><span class="text13"><img src="<%=HOPE_InstallDir%>images/icon_point.gif" border="0" width="18" height="19"  align="absmiddle" />
                  <%response.write"<A href='"&HOPE_InstallDir&"search/searchcom.asp?sortid="&sortid&"&typeid="&typeid&"&typeid_2="&typeid_2&"'><b>所有公司</b></a>"%>
                  <img src="<%=HOPE_InstallDir%>images/icon_point.gif" border="0" width="18" height="19"  align="absmiddle" /> <b><a 
            href="<%=HOPE_InstallDir%>member/">发布公司介绍</a></b> <img src="<%=HOPE_InstallDir%>images/icon_point.gif" border="0" width="18" height="19"  align="absmiddle" /></span> <span class="text13"><b><a 
            href="<%=HOPE_InstallDir%>member/">修改公司介绍</a> <img src="<%=HOPE_InstallDir%>images/icon_point.gif" border="0" width="18" height="19"  align="absmiddle" /> <b><a       href="<%=HOPE_InstallDir%>member/" class="red">按关键字订阅商机</a></b></b></span>  | <img src="<%=HOPE_InstallDir%>images/brand.gif" width="21" height="23" align="absmiddle" /> <a href="<%=HOPE_InstallDir%>allcom.asp">网上有名</a></span></td>
            <td width="6%">&nbsp;</td>
          </tr>
        </tbody>
      </table></td>
    </tr>
    <tr bgcolor="#FAFAFA">
      <td  class="S"><table width="<%=HOPE_PageWidth%>"  border="0" cellspacing="0" cellpadding="0" align="center">
        <tr>
          <td valign="top"><table width="100%" border="0" align="center" cellpadding="1" cellspacing="0" style="BORDER-TOP: #9C9A9C 1px solid;BORDER-Bottom: #9C9A9C 1px solid">
            <tr> </tr>
          </table></td>
        </tr>
      </table></td>
    </tr>
    <tr>
      <td width="100%" height="20" valign="top" bgcolor="#ffffff">
        <table width="100%" height="21" border="0" align="center" cellpadding="0" cellspacing="1">
          <tbody>
            <tr>
              <td width="11%" height="19" align="center" bgcolor="E7E7E7" class="S"><font color="#666666">公司/主营产品、服务</font></td>
              <td align="center" bgcolor="E7E7E7" class="S"><font color="#666666">年营业额(元)</font></td>
              <td bgcolor="E7E7E7" align="center"  class="S"><font color="#666666">诚信指数</font></td>
              <td bgcolor="E7E7E7" align="center"  class="S"><font color="#666666">在线联系</font></td>
            </tr>
        
        <%
do while not rs.eof and rowcount > 0
'response.write"<TABLE width=100% height=105 border=0 align=center cellPadding=0 cellSpacing=1>"&vbCrlf
'response.write"<TBODY>"&vbCrlf
response.write"<TR"
if icolor=0 then 
response.write" bgColor=#ffffff" 
else 
response.write" bgColor=#f6f6f6" 
end if
response.write">"&vbCrlf

response.write"<TD width=""40%"" class=cate style=""WORD-BREAK: break-all"">"&vbCrlf

	   Set re = New RegExp
		re.Pattern ="("&keywords&")"
		re.IgnoreCase = True
		re.Global=True
		result = re.Replace(rs("qymc"), "<font color=red>$1</font>") 
'--是否使用的名片页------------------------------------------------------------
	   set rsmp=server.CreateObject("adodb.recordset")
	   sqlmp="select * from yixiang_vipgrade where roleid="&rs("gradeid")
	   rsmp.open sqlmp,conn,1,1
	   if not rsmp.eof  then 
  	   if instr(rsmp("rolelist"),"qw")>0 then		
	   

	   
		 if is2weburl=1 then
		response.write"<A href=http://"&rs("user")&"."&weburl1&" target=_blank class=m style='text-decoration:underline'><STRONG>"&result&"</STRONG></A>"&vbCrlf 
		else
		response.write"<A href="""&HOPE_InstallDir&"vipcom/"&rs("user")&""" target=_blank style='text-decoration:underline' class=m><STRONG>"&result&"</STRONG></A>"&vbCrlf 
		end if
		 else
		response.write"<A href="""&HOPE_InstallDir&"Ptcom/"&rs("user")&".html"" style='text-decoration:underline' target=""_blank"" class=M><b>"&result&"</b></A>"&vbCrlf
		end if
		 
		end if
		
response.write"<BR><font color=""#666666"">（"
if rs("country")="中国" then
response.write""&rs("sf")&""&rs("city")&""
else
response.write""&rs("country")&""
end if
response.write"）"
response.write"</FONT><FONT color=#666666>&nbsp;"
c="select * from Yixiang_cor_format where id="&rs("p_z_Z_LegalStatus")&""
set rsc=server.CreateObject("adodb.recordset")
rsc.open c,conn,1,1 
if not rsc.eof then response.write""&rsc("title")&"&nbsp;"
rsc.close
set rsc=nothing

'--是否使用的名片页------------------------------------------------------------
	   set rsmp1=server.CreateObject("adodb.recordset")
	   sqlmp1="select * from yixiang_vipgrade where roleid="&rs("gradeid")
	   rsmp1.open sqlmp1,conn,1,1
	   if not rsmp1.eof  then 
 
	   if instr(rsmp1("rolelist"),"qw")>0 then		

 if is2weburl=1 then
 response.write" <a href=http://"&rs("user")&"."&weburl1&"  target=""_blank""><FONT color=#666666>查看该会员企业网站</font></a>"
else
response.write" <a href="""&HOPE_InstallDir&"vipcom/"&rs("user")&""" target=""_blank""><FONT color=#666666>查看该会员企业网站</font></a>"
 end if
  end if
 
  end if
  
response.write"</FONT><BR>"&vbCrlf
   
		Set re1 = New RegExp
		re1.Pattern ="("&keywords&")"
		re1.IgnoreCase = True
		re1.Global=True
		if rs("zycp")<>"" then 
		result1 = re1.Replace(rs("zycp"), "<font color=red>$1</font>") 
		else
		result=""
		end if
 response.write" <font class=s color=666666>主营:"&result1&"</FONT> <BR>"&vbCrlf
 
		 Set re2 = New RegExp
		re2.Pattern ="("&keywords&")"
		re2.IgnoreCase = True
		re2.Global=True
		if rs("qyjj")<>"" then
		result2 = re2.Replace(rs("qyjj"), "<font color=red>$1</font>") 
		
		else
		result2=""
		end if
response.write" <font color=""#666666"" class=s>"&left(result2,40)&"<font color=#666666>……</font></font> "
 
 response.Write("<br>经营模式:"&rs("qylb")&"")
response.Write("</TD>"&vbCrlf)





response.write"<TD class=S align=center>"&vbCrlf
c4="select * from Yixiang_cor_bank where id="&rs("p_z_Z_AnnualRevenue")&""
set rsc4=server.CreateObject("adodb.recordset")
rsc4.open c4,conn,1,1
if rsc4.eof then
response.write"未提供"
else
response.write""&rsc4("title")&""
end if
rsc4.close
set rsc4=nothing 
response.write"</TD>"&vbCrlf

'等级图片

response.write"<TD align=middle width='10%'>"&vbCrlf
if rsmp("gradepic")<>"" then
response.Write"<img src='../UploadFile/"&rsmp("gradepic")&"' alt='"&rsmp("gradename")&"' width=30 height=30 border=0>"&vbCrlf
response.Write"<br>"&vbCrlf
end if
response.write"<FONT color=red >"&rs("trust_score")&"</FONT>"&vbCrlf 
response.write"</TD>"&vbCrlf

'在线联系
response.Write"<td align=middle width='10%'>"&vbCrlf
if rs("tm")<>"" then
	response.Write"<a href='http://wpa.qq.com/msgrd?V=1&Uin="&rs("tm")&"&Site=在线交谈&Menu=yes' target=_bank><img border='0'  SRC=http://wpa.qq.com/pa?p=1:"&rs("tm")&":6 alt='点击这里给我发消息'></a>"
else
	response.Write("<font color='#AC7D06'>暂无联系方式</font>")
end if
response.Write"</td>"&vbCrlf

response.write"</TR>"&vbCrlf
'response.write"</TBODY>"&vbCrlf
'response.write"</TABLE>"&vbCrlf

icolor=icolor+1
if icolor>1 then icolor=0
rowcount=rowcount-1
rs.movenext
loop
end if
%>  </tbody>
        </table>
        <br />
        <table width="100%" 
        border="0" cellpadding="4" cellspacing="0" style="BORDER-TOP: #9C9A9C 1px solid;BORDER-Bottom: #9C9A9C 1px solid">
          <tbody>
            <tr>
              <td class="m" align="middle"><%=listPages(""&HOPE_InstallDir&"search/searchcom.asp?sortid="&sortid&"&typeid="&typeid&"&typeid_2="&typeid_2&"&keywords="&keywords&"&comkind="&comkind&"&country1="&country&"&province="&sf&"&city="&city&"&datetime="&datetime)%></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
            </tr>
          </tbody>
        </table></td>
    </tr>
  </tbody>
</table>
<table width="<%=HOPE_PageWidth%>"  border="0" align="center" cellpadding="2" cellspacing="0" bgcolor="#FAFAFA">
  <tr>
    <td  class="S" align="center">&nbsp;</td>
  </tr>
</table>
<!--最近搜索处理------------------------------------------------------------------------->
<table width="<%=HOPE_PageWidth%>"  border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F6F6F6">
  <tr>
<td  height="30" align="left">&nbsp;&nbsp;<b><font color="#0099CC">最近搜索词</font></b>:
<%=Replace(Request.Cookies("zhuyongjian"),",","&nbsp;&nbsp;<font color=#E7E7E7>|</font>&nbsp;&nbsp;")%>
 </td></tr>
</table>
 


<!---层效果 start --->

<div id="mycolor" style="position:absolute; left:5px; top:0px; width:185px; z-index:1;display:none;" class="win" onMouseDown="MM_dragLayer('mycolor','',0,0,150,18,true,false,-1,-1,-1,-1,15,320,100,'',false,'')">
		<table width="100%" border="1"  bordercolor="#CDD8EB" cellpadding="0"  bgcolor="#F8FAFC" cellspacing="0">
		 	<tr><td>
			<table width="100%"   border="0" bordercolor="#CDD8EB" cellpadding="0" bgcolor="#CCCCCC" cellspacing="0">
 				<tr bgcolor="#FF7300"><td   height="25"    >&nbsp; <font color="#FFFFFF"><b>搜索范围</b></font>&nbsp;<font color="#000000"><b>↓</b></font></td>
						<td width="14"  bgcolor="#F5F5F5" align="center"><a href="#" onClick="with(MM_findObj('mycolorwin').style)display=display=='none'?'':'none'"><font color="#FF0000">—</font></a></td>
						<td width="14"  bgcolor="#F5F5F5" align="center"><a href="#" onClick="MM_showHideLayers('mycolor','','hide')"><font  color="#FF0000">×</font></a></td>
				</tr></table>
				</td></tr>
  <tr id="mycolorwin"><td>
 		<table bordercolor="#d6dde2" cellspacing="0" bordercolordark="#ffffff" cellpadding="0" width="100%" align="center" border="1">
  <tbody>
    <tr>
      <td bgcolor="#EEF0F2" height="20"><table cellspacing="0" cellpadding="0" width="100%" align="left" border="0">
           <tr>
            <td width="76%"><b><font color="#E54312">&nbsp;我的垂直搜索页面</font></b></td>
           </tr>
       </table></td>
    </tr>
    <tr>
      <td width="490" bgcolor="#ffffff" height="30"><table width="100%"  border="1" bordercolor="#F9F9F9" align="center" cellpadding="0" cellspacing="0" >
        <form action="<%=HOPE_InstallDir%>search/searchcom.asp" method="post" name="form" id="form" onsubmit="return subcheck();">
          <tr>
            <td><hr size="1" noshade="noshade" color="#FF9900" /></td>
          </tr>
           <tr>
            <td>  
              &nbsp;搜索类型: <span class="s">公司</span>类 <br />
              
              &nbsp;关 键 字:
              &nbsp;<input name="keywords" type="text" id="keywords"  onfocus="if(this.value=='请输入关键字'){this.value='';}" onblur="this.value=this.value.replace(/\s/g,'')" value=""   maxlength="25" />
              <br /><br /> &nbsp;所属类别:<br />
             &nbsp;&nbsp;<SELECT id=topCatFormKey onchange=onChangeTopCategory() name=topCatFormKey maxlength="80">
			 <option value="0" selected="selected">--请选择行业大类--</option>
    </SELECT><br /><br />
              &nbsp;
              <SELECT id=secondCatFormKey onchange=onChangeSecondCategory() maxlength="80" name=secondCatFormKey>					
			  	<option value="0" selected="selected">--请选择行业中类--</option>
    </SELECT> 
              <br />  <br />
			   &nbsp;
	<SELECT id=leafCatFormKey onchange=onChangeLeafCategory() maxlength="80"
                  name=leafCatFormKey>
				  <option value="0" selected="selected">--请选择行业小类--</option>
    </SELECT>
              <br />
              <br />  <br />
<input name="topCatFormKeyValue" type="hidden" id="topCatFormKeyValue" value="">
<input name="secondCatFormKeyValue" type="hidden" id="secondCatFormKeyValue" value="">
<input name="leafCatFormKeyValue" type="hidden" id="leafCatFormKeyValue" value="">
<SCRIPT language=JavaScript src="<%=HOPE_InstallDir%>js/changehope.js"></SCRIPT>
<SCRIPT language=JavaScript src="<%=HOPE_InstallDir%>js/allCategorys.js"></SCRIPT>
<SCRIPT language=JavaScript>
//调用initTopCategoryForm函数向列表中加入数据
initTopCategoryForm();
</SCRIPT>
              &nbsp;经营模式:<br />&nbsp;
              <select name="comkind" size="1">
                <option value="all" >不限</option>
	 <option value="生产型" <%if   replace_text(request("comkind"))="生产型" then response.Write("selected")	  end if %>>生产型</option>
     <option value="贸易型" <%if   replace_text(request("comkind"))="贸易型" then response.Write("selected")	  end if %>>贸易型</option>
     <option value="服务型" <%if   replace_text(request("comkind"))="服务型" then response.Write("selected")	  end if %>>服务型</option>
	 <option value="政府或其他机构" <%if   replace_text(request("comkind"))="政府或其他机构" then response.Write("selected")	  end if %>>政府或其他机构</option>
              </select><br /><br />
              &nbsp;地  区:<br />
             &nbsp; <select style="WIDTH: 90px"   onchange="javascript:changeCountry1(this);" name="country1">
              </select><br /><br />
              &nbsp; <select style="WIDTH: 60px"  onchange="changeProvince(this);" name="province">
                <option value=""   selected="selected">省份</option>
              </select><br /><br />
             &nbsp; <select name="city">
                <option value="" selected="selected">地 级</option>
              </select><br /><br /><hr size="1" color="#CCCCCC" width="90%" />
              <center><input type="submit"  name="seabtn"  value="立即搜索" style=" background-color:red;color:#ffffff; font-weight:bold; border:double; border-color:#E7E7E7"/></center><br /><br />
			  
             </td>
          </tr>
        </form>
      </table></td>
    </tr>
  </tbody>
</table>
   </td>
		  </tr>
  </table>
 		
</div>
<script>setTimeout("loadwin('mycolor')",1000)</script>

<!---层效果 end --->
<!---------------------------------------------------------------------------------------->
<br />
<script>
     function Category(id,title) {
			this.id = id;
			this.title=title;
			this.boardlist=new Array();
			this.addBoard=addBoard;
			this.getOptions = getOptions;
        }        
       function addBoard(board) {
            this.boardlist = this.boardlist.concat(board);
        }
       function getOptions() {
			var tmp = new Array();
			for(var i=0; i < this.boardlist.length;i++) {
			var b = this.boardlist[i];
			tmp[i]= b.getOption();
			}
			return tmp;
        }
      function Board(catid,id,title,total) {                
			this.catid=catid;
			this.id=id;
			this.title=title;
			this.getOption=getOption;
        }
     function getOption() {
       return new Option(this.title,this.id);                
        }
     function changeCategory(list) {
        if (list.selectedIndex<=0) {
                catForm.options[0].selected=true;
                var len = boardForm.options.length;
                for (var i=len-1;i>0;i--){
                        boardForm.options[i]=null;
                }                                        
         }
        else {
                var boards = catArr[list.selectedIndex-1].getOptions();
                var len = boardForm.options.length;
                for (var i=len-1;i>0;i--){
                        boardForm.options[i]=null;
                }                
                for (var i=0;i<boards.length;i++) {
                        boardForm.options[i+1]=boards[i];
                }
                }
                boardForm.options[0].selected=true;
        }
     function selectBoard(catid,bid,list) {
		var isExist = false; //是否是叶子类目
		for(var i=0;i<catForm.length;i++) {
				if (catForm.options[i].value==catid) {
						//alert("get Category");
						catForm.options[i].selected=true;
						changeCategory(catForm);
						break;                        
				}                        
		}                                
		for(var i=0;i<boardForm.length;i++) {
				if (boardForm.options[i].value==bid) {
						//alert("get Board");
						boardForm.options[i].selected=true;  
						isExist = true;                              
						break;
				}                        
		}   
		 if (!isExist) {//如果是二级类目，则下拉框只显示该二级类目下所有类目                   
			var boards = catArr[catForm.selectedIndex-1].getOptions();
			var len = boardForm.options.length;
			for (var i=len-1;i>0;i--){
				boardForm.options[i]=null;
			}     
			var locate = 1;           
			for (var i=0;i<boards.length;i++) {                                                              
				if(boards[i].text.indexOf(bid) == 0){
					boardForm.options[locate]=boards[i];
					locate++;
				}                                                
			}
			 boardForm.options[0].selected=true;   
		}            
        }        
	  var catArr = new Array();
	  var cur;   
	  var catForm = document.form.p_z_Z_RootCategory;
	  var boardForm = document.form.p_z_Z_CategoryId1;
    function showCategorys() {
		var catId = catForm.value
		if(boardForm.value){
			catId = boardForm.value
		}else if(catForm.value){
			catId = catForm.value
		}
	   }
        for (var i=0;i<catArr.length;i++) {
          catForm.options[i+1]=new Option(catArr[i].title,catArr[i].id);
        }
     function initRootCategorys(){
	    for (var i=0;i<catArr.length;i++) {
	    catForm.options[i+1]=new Option(catArr[i].title,catArr[i].id);
	    }
	}  
 </script>
<script>
//initRootCategorys(); 
</script>
 <SCRIPT language=javascript src="<%=HOPE_InstallDir%>js/area.js" purpose="INITIALIZER"></SCRIPT>
 <SCRIPT language=javascript>
 <!--
     for (var i=0;i<5;i++){
	    if (country1Form1.options[i].value == '<%=country%>'){
		    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 == '<%if country="中国" then response.write""&sf&""%>'){
	        	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 == '<%if country="中国" then response.write""&city&""%>') {
		    boardForm1.options[i].selected=true;
		}
	}
     if (country1Form1.options[country1Form1.selectedIndex].value!='中国') {
	    catForm1.style.display = 'none';
	    boardForm1.style.display = 'none';
		}
     for (var i=0;i<9;i++){
       if (document.form.DateTime[i].value =='<%=datetime%>'){
            document.form.DateTime[i].selected = true;
        }
    }
-->
</SCRIPT> 
<!--#include file="../inc/end.asp"-->
<%
rsmp1.close
rsmp.close
rs.close
set rs=nothing
conn.close
set conn=nothing
%>