<% 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;
	 
}
 image{ border:none;}

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("../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: #FF6600;
}
a:active {
	text-decoration: none;
}

-->
</style>
<!--#include file="../inc/head.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 Yixiang_info.*,Yixiang_corporation.id,Yixiang_corporation.flag as corflag,Yixiang_corporation.qymc,Yixiang_corporation.tm,Yixiang_corporation.[user],Yixiang_corporation.country,Yixiang_corporation.gradeid,Yixiang_corporation.sf,Yixiang_corporation.city,Yixiang_corporation.web,Yixiang_corporation.url,Yixiang_corporation.trust_score from Yixiang_Info join Yixiang_corporation on Yixiang_corporation.flag=1 and   Yixiang_info.type='卖' and Yixiang_corporation.id=Yixiang_info.gsid and Yixiang_info.flag=1"
else
sql="select Yixiang_info.*,Yixiang_corporation.id,Yixiang_corporation.flag as corflag,Yixiang_corporation.qymc,Yixiang_corporation.tm,Yixiang_corporation.[user],Yixiang_corporation.country,Yixiang_corporation.gradeid,Yixiang_corporation.sf,Yixiang_corporation.city,Yixiang_corporation.web,Yixiang_corporation.url,Yixiang_corporation.trust_score from Yixiang_Info,Yixiang_corporation where Yixiang_corporation.flag=1 and   Yixiang_info.type='卖' and Yixiang_corporation.id=Yixiang_info.gsid and Yixiang_info.flag=1"
end if
if Chkrequest(sortid)   then
	if sortid<>0 then
	 sql=sql&" and Yixiang_info.sortid="&sortid&""
 	if Chkrequest(typeid) then 
	sql=sql&" and Yixiang_info.typeid="&typeid&""
	end if
	if Chkrequest(typeid_2) then 
	sql=sql&" and Yixiang_info.typeid_2="&typeid_2&""
	 end if
	 end if
 end if
	if keywords<>"" then sql=sql&" and (Yixiang_info.keywords like '%"&keywords&"%' or Yixiang_info.showname like '%"&keywords&"%'   )"
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 datetime<>"" then
	  if datetime<>"all" then
   		If Database_type=1 Then
 	  
  			if datetime="no" then 
			sql=sql&" and datediff(day,Yixiang_info.infoenddate,getdate())>0"
			elseif datetime="ok" then
			sql=sql&" and datediff(day,Yixiang_info.infoenddate,getdate())<=0"
			elseif datetime="10" then 
			sql=sql&" and datediff(day,Yixiang_info.infoenddate,getdate())<=10"
			elseif datetime="30" then 
			sql=sql&" and datediff(day,Yixiang_info.infoenddate,getdate())<=30"
 			end if
  		else
			if datetime="no" then 
			sql=sql&" and datediff('d',Yixiang_info.infoenddate,now())>0"
			elseif datetime="ok" then
			sql=sql&" and datediff('d',Yixiang_info.infoenddate,now())<=0"
			elseif datetime="10" then 
			sql=sql&" and datediff('d',Yixiang_info.infoenddate,now())>=10"
			elseif datetime="30" then 
			sql=sql&" and datediff('d',Yixiang_info.infoenddate,now())<=30"
			end if
		end if
	 end if
   end if
   	If Database_type=1 Then

    sql=sql&"    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&" order by yixiang_info.toprice desc,yixiang_history_price.price desc,Yixiang_corporation.trust_score desc  "
    
	else
	 sql=sql&"    order by Yixiang_corporation.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>
<SCRIPT language=JavaScript src="<%=HOPE_InstallDir%>mall.js"  type=text/JavaScript></SCRIPT>

 <DIV id=popImageLayer 
style=" background-color:#F6F6F6;BORDER-RIGHT: orange 1pt none; BORDER-TOP: orange 1pt none; VISIBILITY: hidden; BORDER-LEFT: orange 1pt none; WIDTH: 180px; CURSOR: hand; BORDER-BOTTOM: orange 1pt none; POSITION: absolute; HEIGHT: 180px" 
align=center calss="" name="popImageLayer"></DIV>
<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/searchCom.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>〗")%>
				 </td>
                </tr>
              </tbody>
            </table></td>
          </tr>
          <tr>
            <td bgcolor="#eeeeee" height="28"><table width="100%"  border="0" cellpadding="2" cellspacing="0" bgcolor="#FAFAFA">
              <tr>
                <td  class="S"><span class="text13">
                  <% 
			if keywords<>"" then
			response.Write("包含有<b>""<font color=red>"&keywords&"</font>""</b>的：<br>")
			end if
		    response.write" <img src="""&HOPE_InstallDir&"images/icon_point.gif"" border=0 width=18 height=19  align=absmiddle> <A href='"&HOPE_InstallDir&"search/searchall.asp?sortid="&sortid&"&typeid="&typeid&"&typeid_2="&typeid_2&"&keywords="&keywords&"'>所有供求信息</a>"
		    %>
                  <%response.write" <img src="""&HOPE_InstallDir&"images/icon_point.gif"" border=0 width=18 height=19  align=absmiddle> <A href='"&HOPE_InstallDir&"search/searchsale.asp?sortid="&sortid&"&typeid="&typeid&"&typeid_2="&typeid_2&"&keywords="&keywords&"'>供应信息</A>"%>
                  </span><span class="text13"> </span><img src="<%=HOPE_InstallDir%>images/icon_point.gif" border="0" width="18" height="19"  align="absmiddle" /> <span class="text13">
                  <%response.write"<A href='"&HOPE_InstallDir&"search/searchbuy.asp?sortid="&sortid&"&typeid="&typeid&"&typeid_2="&typeid_2&"&keywords="&keywords&"'>求购信息</A>"%>
                  </span> 
                </span> <img src="<%=HOPE_InstallDir%>images/icon_point.gif" border="0" width="18" height="19"  align="absmiddle" /><a href="<%=HOPE_InstallDir%>member/">发布求购信息</a><img src="<%=HOPE_InstallDir%>images/icon_point.gif" border="0" width="18" height="19"  align="absmiddle" /> <a href="<%=HOPE_InstallDir%>member/" class="red">按关键字定阅</a>  | <img src="<%=HOPE_InstallDir%>images/brand.gif" width="21" height="23" align="absmiddle" /> <a href="<%=HOPE_InstallDir%>allcom.asp">网上有名</a> </td>
              </tr>
            </table></td>
          </tr>
        </tbody>
      </table></td>
    </tr>
    <tr>
      <td height="5"></td>
    </tr>
  </tbody>
</table>
 
<!--最近搜索处理------------------------------------------------------------------------->
<table width="<%=HOPE_PageWidth%>"  border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F6F6F6">
  <tr>
<td  height="30">&nbsp;&nbsp;<b><font color="#0099CC">最近搜索词</font></b>:
<%=Replace(Request.Cookies("zhuyongjian"),",","&nbsp;&nbsp;<font color=#E7E7E7>|</font>&nbsp;&nbsp;")%>
 </td></tr>
</table>
<!---------------------------------------------------------------------------------------->
<table width="<%=HOPE_PageWidth%>"  border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
     <td width="581" valign=top>
<%
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="&HOPE_PageWidth&"  border=""0"" cellspacing=""0"" cellpadding=""0"" class=blackborder>"
response.Write"<tr><td  >"
response.Write"· 缩短或更换产品名后重新搜索 <font color=""#666666"">(例:将“彩色电视机”改为""电视机""后重新搜索),对类别和范围做调整查询！</font><br><br>" 
response.Write"· 您也可以<input name=""postOffer"" type=""button"" value=""立即发布供求信息"" onclick=location.href="""&HOPE_InstallDir&"member/"" style=' border-color:#E7E7E7'>告诉客户您需要什么，让他们找上门！<br><br><br> </td>"
response.Write"</tr></table>"
else
%>
      <table width=<%=HOPE_PageWidth%> height=26   border="0" align="center" cellpadding="0" cellspacing="1">
  <TR>
    <TD align=middle width=18% bgColor=#dedede  class=s><div align="center"><img src='<%=HOPE_InstallDir%>images/arrow_19X19.gif' width="19" height="19" align="top">图片</div></TD>
          <TD width="41%" align=middle bgColor=#dedede  class=s>求购信息/公司</TD>
      <TD align=middle width=10% bgColor=#dedede><table border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td   align=center> 指数</td>
          <td>           </td>
        </tr>
      </table>        <B>        </B></TD>
    <TD width=13% bgColor=#dedede class=s align=center>产地</TD>
    <TD width=18% bgColor=#dedede class=s align=center>提交订单</TD>
  </TR>
      </table> 
<%
do while not rs.eof and rowcount > 0

if trim(rs("draw")&"ok")="ok" and trim(rs("draw1")&"ok")="ok"  and trim(rs("draw2")&"ok")="ok" then 
		   PTpic=HOPE_InstallDir&"UploadFile/nopicture.gif"
		   else
		      if trim(rs("draw1"))<>"" and  trim(rs("draw2"))<>""  and trim(rs("draw"))<>"" then 
		       PTpic=HOPE_InstallDir&"Vipcom/"&rs("User")&"/"&rs("draw")
			  elseif trim(rs("draw2"))="" and trim(rs("draw1"))="" then
			    PTpic=HOPE_InstallDir&"Vipcom/"&rs("User")&"/"&rs("draw")
			  elseif trim(rs("draw2"))="" and trim(rs("draw"))="" then
				 PTpic=HOPE_InstallDir&"Vipcom/"&rs("User")&"/"&rs("draw1")
			  else
			     PTpic=HOPE_InstallDir&"Vipcom/"&rs("User")&"/"&rs("draw2")
			  end if 
		   end if 
%> 
<TABLE width="<%=HOPE_PageWidth%>" border=0 align="center" cellPadding=0 cellSpacing=1>
  <TBODY>
  <TR <%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%>'">
    <TD width=23% align=middle>
           <TABLE class=porductborder height=64 cellSpacing=0 cellPadding=0 width=64 
      border=0>
        <TBODY>
        <TR>
          <TD align=middle>
	 
 <A class=M  href="<%=HOPE_InstallDir%>tradeinfo/offerdetail/<%=rs("sortid")%>-<%=rs("typeid")%>-<%=rs("typeid_2")%>-<%=rs("info_id")%>.html"  target=_blank>
 
 <IMG    onmouseover="popImage(this,'<%=PTpic%>','<%=HOPE_InstallDir%>tradeinfo/offerdetail/<%=rs("sortid")%>-<%=rs("typeid")%>-<%=rs("typeid_2")%>-<%=rs("info_id")%>.html');"   src="<%=PTpic%>"  width="55" height="55"    border=0 > </A></TD></TR></TBODY></TABLE></TD>
 
 <TD width=36% class=cate style="word-break:break-all">
  
 <A class=M href="<%=HOPE_InstallDir%>tradeinfo/offerdetail/<%=rs("sortid")%>-<%=rs("typeid")%>-<%=rs("typeid_2")%>-<%=rs("info_id")%>.html" target=_blank>
 <SPAN class=lh15> 
 
<%
 Set re = New RegExp
re.Pattern ="("&keywords&")"
re.IgnoreCase = True
re.Global=True
result = re.Replace(rs("showname"), "<font color=red>$1</font>")
%>
<b><u><font style="font-size:14px"><%=result%></font></u></b> </SPAN></A>	<%
 '是否为特色商机类型
	if rs("tsbz")=0 then
		tsbz=""
	elseif rs("tsbz")=1 then 
		tsbz="<img src='"&HOPE_InstallDir&"images/xinpin.gif'>"
	elseif rs("tsbz")=2 then 
		tsbz="<img src='"&HOPE_InstallDir&"images/youhui.gif'>"
	elseif rs("tsbz")=3 then 
		tsbz="<img src='"&HOPE_InstallDir&"images/jiangjia.gif'>"
	end if 
	

 %><%=tsbz%>
 <%
 	'在线联系
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>"	
 %>
 <BR><font color="#999999">
 有效期:<%=rs("infostartdate")%>---<%=rs("infoenddate")%></font> <br />
 <%
if rs("Specifications")<>"" then
response.write"规格要求："&rs("Specifications")&"<BR>"
end if
if rs("Packaging")<>"" then
response.write"包装要求："&rs("Packaging")&"<BR>"
end if
if rs("PriceTerms")<>"" then
response.write"价格要求："&rs("PriceTerms")&"<BR>"
end if
response.write""&left(noHtml(rs("content")),30)&"...<BR>"
response.write"<FONT color=#666666>"&rs("dateandtime")&"发布</FONT> <BR>"&vbCrlf

'--是否使用的名片页------------------------------------------------------------
	   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 rs("corflag")=1 then 
  	   if instr(rsmp("rolelist"),"qw")>0 then		

 if  is2weburl=1 then
 %>
 <a href="http://<%=rs("user")%>.<%=weburl1%>  "  target="_blank" style="text-decoration:underline" >
 <%else%>
 <a href="<%=HOPE_InstallDir%>vipcom/<%=rs("user")%>/"  target="_blank" style="text-decoration:underline">
 <%end if
 else
 %>
  <a href="<%=HOPE_InstallDir%>Ptcom/<%=rs("user")%>.html"  target="_blank" style="text-decoration:underline">
  <%end if
  end if 
 
  end if
  
  %>
 <%=rs("qymc")%></a></TD>
      <TD width="10%"  align=middle><div align="center">
	  <%
	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
%>
      <font   color="red"><%=rs("trust_score")%></font></div></TD> 
    <TD width="13%"     align=middle class=s><div align="center">
          <%if rs("country")="中国" then response.write""&rs("sf")&""&rs("city")&"" else response.write""&rs("country")&"" end if%> 
        </div></TD>
    <TD width="18%"     align=middle class=s><a href="../buycart/cart.asp?gtype=1&gid=<%=rs("info_id")%>&comid=<%=rs("gsid")%>" target="_blank"><img src="../images/buycart.jpg" width="35" height="35" border="0"/></a></TD>
  </TR></TBODY></TABLE>
<br>
<%
icolor=icolor+1
if icolor>1 then icolor=0
rowcount=rowcount-1
rs.movenext
loop
end if
%>

	   <br>
 <TABLE width="<%=HOPE_PageWidth%>" 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/searchsale.asp?sortid="&sortid&"&typeid="&typeid&"&typeid_2="&typeid_2&"&keywords="&keywords&"&country1="&country&"&province="&sf&"&city="&city&"&datetime="&datetime&"&show="&show&"")%></TD>
                  </TR>
                <tr><td><% response.Write("&nbsp;<b><font color=red>→</font></b> 〖<a href='"&HOPE_InstallDir&"search/searchproduct.asp'>产品搜索</a>〗 〖<a href='"&HOPE_InstallDir&"search/searchCom.asp'>公司搜索</a>〗 〖<a href='"&HOPE_InstallDir&"search/News_search.asp'>行业资讯搜索</a>〗 〖<a href='"&HOPE_InstallDir&"search/searchhelp.asp'>帮助搜索</a>〗〖<a href='"&HOPE_InstallDir&"search/searchvipinfo.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>
      </TABLE></TD>
  </TR>
</TABLE>
</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/searchsale.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>
              <br />
              <br /> &nbsp;时   间:<br />&nbsp;
              <select name="DateTime" size="1">
                <option value="all" selected="selected">显示所有</option>
                <option  value="ok" >显示所有未过期</option>
                   <option value="10">显示最近10天</option>
                <option  value="30">显示最近30天</option>
                 <option  value="no">显示所有过期</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 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"-->
<%
 rsmp.close
rs.close
set rs=nothing
conn.close
set conn=nothing
%>