<% data_path="../" 'ACC连接数据库路径，对SQL无效 %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<!--#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_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>
<!--#include file="../inc/headtop.asp"-->
<title><%=webname%>产品搜索</title>
<link rel='stylesheet' href="../News/new.css" type='text/css'/>
<%
      seakind=Replace_Text(request("seakind"))
   	 '^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
	'处理种类的id号 
 	sortid=Replace_Text(request("p_z_Z_RootCategory")) 
	if   Replace_Text(request("p_z_Z_CategoryId1"))<>"" then
  	   CategoryId=split(Replace_Text(request("p_z_Z_CategoryId1")),",")
 	 typeid=CategoryId(0)                                                                 '第二类
 	 if ubound(CategoryId)>=1 then
	 typeid_2=CategoryId(1)                                                               '第三类     
		else
	 typeid_2=0
		end if
 		if typeid="" then
		typeid=0
		end if
		if typeid_2="" then
		typeid_2=0
		end if
	  end if
	  if Replace_Text(request("sortid"))<>"" then
	  sortid=Replace_Text(request("sortid"))
	  typeid=Replace_Text(request("typeid"))
	  typeid_2=Replace_Text(request("typeid_2"))
	  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"))
    
	'^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     sadddate=month(date())
	 	If Database_type=1 Then

 sql="select Websen_productshow.*,Websen_corporation.id as corid,Websen_corporation.flag as corflag,Websen_corporation.qymc,Websen_corporation.tm,Websen_corporation.gradeid,Websen_corporation.[user],Websen_corporation.country,Websen_corporation.sf,Websen_corporation.city,Websen_corporation.web,Websen_corporation.url,Websen_corporation.trust_score from Websen_productshow join Websen_corporation  on Websen_corporation.flag=1 and  Websen_corporation.id=Websen_productshow.gsid and Websen_productshow.flag=1"
else
 sql="select Websen_productshow.*,Websen_corporation.id as corid,Websen_corporation.flag as corflag,Websen_corporation.qymc,Websen_corporation.tm,Websen_corporation.gradeid,Websen_corporation.[user],Websen_corporation.country,Websen_corporation.sf,Websen_corporation.city,Websen_corporation.web,Websen_corporation.url,Websen_corporation.trust_score from Websen_productshow,Websen_corporation where Websen_corporation.flag=1 and  Websen_corporation.id=Websen_productshow.gsid and Websen_productshow.flag=1"
 end if
	if Chkrequest(sortid)   then
	if sortid<>0 then
	 sql=sql&" and Websen_productshow.SortID="&sortid
 	if Chkrequest(typeid) then 
	sql=sql&" and Websen_productshow.TypeID="&typeid
	end if
	if Chkrequest(typeid_2) then 
	sql=sql&" and Websen_productshow.typeid_2="&typeid_2
	 end if
	 end if
	 end if
if keywords<>"" then
 sql=sql&" and (Websen_productshow.keywords like '%"&keywords&"%' or Websen_productshow.Cpmc like '%"&keywords&"%'    )"
 end if
if country<>"" then sql=sql&" and Websen_corporation.country like '%"&country&"%'"
if sf<>"" then sql=sql&" and Websen_corporation.sf like '%"&sf&"%'"
if city<>"" then sql=sql&" and Websen_corporation.city like '%"&city&"%'"
  	if datetime<>"" then
	  if datetime<>"all" then
 		If Database_type=1 Then
  			 if datetime="10" then 
			sql=sql&" and datediff(day,Websen_productshow.idate,getdate())<=10"
			elseif datetime="30" then 
			sql=sql&" and datediff(day,Websen_productshow.idate,getdate())<=30"
 			end if
  		else
  			 if datetime="10" then 
			sql=sql&" and datediff('d',Websen_productshow.idate,now())>=10"
			elseif datetime="30" then 
			sql=sql&" and datediff('d',Websen_productshow.idate,now())<=30"
			end if
		end if
	 end if
  end if
  
  	If Database_type=1 Then

   sql=sql&"    left join Websen_history_price  on  Websen_corporation.id=Websen_history_price.gsid  and Websen_history_price.keywords = '"&keywords&"' and  month(Websen_history_price.begintime)="&sadddate&" order by Websen_history_price.price desc,Websen_corporation.trust_score desc,Websen_productshow.idate desc  "
else

sql=sql&" order by Websen_corporation.trust_score desc,Websen_productshow.idate 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>
</head>
<body>
 <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>
<div class="clear"></div>
<div id='yabock'>
  <div class='mulur'>搜索选项
  </div>
  <div class='fenli'>
    <table width="952"  border="0" cellpadding="0" cellspacing="0" >
        <form action="<%=HOPE_InstallDir%>search/searchproduct.asp" method="post" name="form" id="form" onsubmit="return subcheck();">
           <tr>
            <td valign="top">
              &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" style=" border: 1px #7F9DB9 solid; height: 18px" />
              &nbsp; 所属类别：
              <select name="p_z_Z_RootCategory" onchange="changeCategory(this)"  >
                <option value="0" selected="selected">--请选择行业大类--</option>
              </select>
              <select name="p_z_Z_CategoryId1" maxlength="80">
                <option value="0" selected="selected">--请选择行业子类--</option>
              </select>
              <br />
              <br /> 
              &nbsp;时&nbsp; 间：
              &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>
              &nbsp;&nbsp;&nbsp;地 &nbsp;&nbsp; 区：
               <select style="WIDTH: 90px"   onchange="javascript:changeCountry1(this);" name="country1">
              </select>
              &nbsp; <select style="WIDTH: 60px"  onchange="changeProvince(this);" name="province">
                <option value=""   selected="selected">省份</option>
              </select>
               <select name="city">
                <option value="" selected="selected">地 级</option>
              </select>
             &nbsp;  <input type="submit"  name="seabtn"  value="立即搜索">
             <br /></td>
          </tr>
        </form>
    </table>
  </div>
</div>
<div id="stecy">
  <div class="bodyet">
    <div class="titep">
      <div class="zlu"></div>
      <div class="zle">搜索结果列表</div>
      <div class="zla"></div>
    </div>
    <div id="lacket">
      <div class="Sclass1"></div>
      <div class="Sclass2">产品信息/公司</div>
      <div class="Sclass3">会员等级</div>
      <div class="Sclass4">网胜通指数</div>
      <div class="Sclass5">在线商务</div>
    </div>
    <div class="lacket_LAS">
	<table width="750"  border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td 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=""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/tradeinfo/add_info.asp"" style=' border-color:#ffffff'>告诉客户您需要什么，让他们找上门！<br><br><br> </td>"
response.Write"</tr></table>"
else
%>
      <%
do while not rs.eof and rowcount > 0
%>
<table width="100%" height="85" border="0" align="center" cellpadding="0" cellspacing="0">
          <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 align="middle" width="18%"><table class="porductborder" height="64" cellspacing="0" cellpadding="0" width="110" 
      border="0">
                  <tbody>
                    <tr>
                      <td width="110" align="middle"><%
if rs("picture")<>"../../UploadFile/nopicture.gif" then%>
                          <%
	  response.write"<A class=M href='"&HOPE_InstallDir&"productshow/offerdetail/"&rs("sortid")&"-"&rs("typeid")&"-"&rs("typeid_2")&"-"&rs("id")&".html' target=_blank>"
	  hurl=HOPE_InstallDir&"productshow/offerdetail/"&rs("sortid")&"-"&rs("typeid")&"-"&rs("typeid_2")&"-"&rs("id")&".html"
%>
                          <img    onmouseover="popImage(this,'<%=HOPE_InstallDir%>Vipcom/<%=rs("user")%>/<%=rs("picture")%>','<%=hurl%>');"   src="<%=HOPE_InstallDir%>Vipcom/<%=rs("user")%>/<%=rs("picture")%>"  width="100" height="100"    border="0"> </A>
                          <%else%>
                          <font class="C" 
      color="#cecfce">无图</font>
                          <%end if%>                      </td>
                    </tr>
                  </tbody>
              </table></td>
              <td width="44%" class="cate"><a class="M"   href="<%=HOPE_InstallDir%>productshow/offerdetail/<%=rs("sortid")%>-<%=rs("typeid")%>-<%=rs("typeid_2")%>-<%=rs("id")%>.html"  target="_blank"><span class="lh15">
                <%
 		 Set re = New RegExp
re.Pattern ="("&keywords&")"
re.IgnoreCase = True
re.Global=True
result = re.Replace(rs("cpmc"), "<font color=red>$1</font>")%>
                <b><u><font style="font-size:14px"><%=result%></font></u></b></span></a> <br />
                <font color="#999999"><%=rs("idate")%></font> <br />
                <%=Left(noHtml(rs("xxsm")),50)%>...<br />
                <FONT color=#666666>
                <%if rs("corflag")=1 then%>
                <%if is2weburl=1 then%>
                <a href="http://<%=rs("user")%>.<%=weburl1%>"   style="text-decoration:underline"  target="_blank"><font color="#666666"><%=rs("qymc")%></font></a>
                <%
	  else
	  %>
                <a href="<%=HOPE_InstallDir%>vipcom/<%=rs("user")%>/"  style="text-decoration:underline" target="_blank"><font color="#666666"><%=rs("qymc")%></font></a>
                <%
        end if
       else%>
                <a href="<%=HOPE_InstallDir%>Ptcom/<%=rs("user")%>.html" style="text-decoration:underline" target="_blank"><font color="#666666"><%=rs("qymc")%></font></a>
                <%end if%>                  </td>
              <td width="5%">&nbsp;</td>
              <td width="13%"><%
				  set rsmp1=server.CreateObject("adodb.recordset")
	       		  sqlmp1="select * from Websen_vipgrade where roleid="&rs("gradeid")
	   			  rsmp1.open sqlmp1,conn,1,1
	   			  FileFlag=rsmp1("FileFlag")
	   			  if not rsmp1.eof  then
	      		  if instr(rsmp1("rolelist"),"qw")>0 then			
	              '用于二级域名处理^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
	              end if
	              %>
	               <img border="0" src="../../UploadFile/vipgrade/<%=rsmp1("FileFlag")%>" width=20>
			      <% rsmp1.close
			 	  end if%></td>
              <td align="middle" width="10%"><div align="center"> <font   color="red"> <%=rs("trust_score")%> </font> </div></td>
              <td width="10%" align="center"><%If rs("tm")<>"" then%>
				  <a target=blank href=http://wpa.qq.com/msgrd?V=1&Uin=<%=rs("tm")%>Site=www.websen.net&Menu=yes><img border=0 SRC=http://wpa.qq.com/pa?p=1:<%=rs("tm")%>:1 alt=点击这里给我发消息></a><BR><BR>
				  <%end if%>
                  <%if rs("country")="中国" then response.write""&rs("sf")&""&rs("city")&"" else response.write""&rs("country")&"" end if%></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="100%" border="0" align="center" cellpadding="1" cellspacing="0" style="BORDER-TOP: #9C9A9C 1px solid">
          <tr>
            <td><table cellspacing="0" cellpadding="4" width="100%" 
        border="0">
                <tr>
                  <td align="middle" class="m"><%=listPages(""&HOPE_InstallDir&"search/searchproduct.asp?sortid="&sortid&"&typeid="&typeid&"&typeid_2="&typeid_2&"&keywords="&keywords&"&country1="&country&"&province="&sf&"&city="&city&"&datetime="&datetime&"")%></td>
                </tr>
            </table></td>
          </tr>
      </table></td>
  </tr>
</table>
    </div>
  </div>
  <div class="bodyat">
    <div class="zhanwei"></div>
    <div class="guangao">
      <p>
        <script src="/ads/JS/200817142139.js"></script>
      </p>
      <p>
        <script src="/ads/JS/20081491217.js"></script>
      </p>
      <p>
        <script src="/ads/JS/200814151336.js"></script>
      </p>
    </div>
  </div>
</div>
<!--最近搜索处理------------------------------------------------------------------------->
<!---------------------------------------------------------------------------------------->
</TABLE>
</TD>
</TR>
</TABLE>
</td>
</tr>
</table>
<script>setTimeout("loadwin('mycolor')",1000)</script>

<!---层效果 end --->

<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 src="<%=HOPE_InstallDir%>js/allCategorys.js"></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>
<div class="nav_950">   
<!--#include file="../inc/end.asp"-->
</div>
</body>
</html>
<%
rs.close
set rs=nothing
conn.close
set conn=nothing
%>