<!--{include file="<!--{$oetplpath}-->block_header.tpl"}-->
<!--{include file="<!--{$oetplpath}-->block_top.tpl"}-->
<!--{include file="<!--{$oetplpath}-->block_menu.tpl"}-->

<div class="oem_nav">
  当前位置：<a href="<!--{$urlpath}-->">首页</a> &gt;&gt; <a href="<!--{routeurl module='goods'}-->">商城</a>
  <!--{if !empty($catinfo)}-->
  <!--{if $catinfo.parentid > 0}-->
  &gt;&gt; <a href="<!--{routeurl module='goods' action='list' items="s_area2=<!--{$s_area2}-->|s_area3=<!--{$s_area3}-->|s_area4=<!--{$s_area4}-->|s_catid=<!--{$catinfo.parentid}-->|s_startprice=<!--{$s_startprice}-->|s_endprice=<!--{$s_endprice}-->|s_serkey=<!--{$s_serkey|urlencode}-->|s_order=<!--{$s_order}-->"}-->"><!--{hook mod="goodscat" type="text" value=$catinfo.parentid}--></a>
  <!--{/if}-->
  &gt;&gt; <a href="<!--{routeurl module='goods' action='list' items="s_area2=<!--{$s_area2}-->|s_area3=<!--{$s_area3}-->|s_area4=<!--{$s_area4}-->|s_catid=<!--{$catinfo.catid}-->|s_startprice=<!--{$s_startprice}-->|s_endprice=<!--{$s_endprice}-->|s_serkey=<!--{$s_serkey|urlencode}-->|s_order=<!--{$s_order}-->"}-->"><!--{$catinfo.catname}--></a>
  <!--{/if}-->
</div>

<!--{assign var="goodsads" value=vo_list("mod={ads} where={v.admark='goods_banner'} num={1}")}-->
<!--{if !empty($goodsads)}-->
<!--{foreach $goodsads as $volist}-->
<div class="oe_banner_ads">
  <!--{if $volist.url != ""}-->
  <a href="<!--{$volist.url}-->" target="_blank">
    <img  f="imgloading" data-original="<!--{$volist.drawimg}-->"/>
  </a>
  <!--{else}-->
  <img  f="imgloading" data-original="<!--{$volist.drawimg}-->"/>
  <!--{/if}-->
</div>
<!--{/foreach}-->
<!--{/if}-->

<!--{if $s_area2 == 0}-->
<!--{assign var="s_area2" value="<!--{$city.cityid}-->"}-->
<!--{/if}-->
<div class="oem_sort">
  <dl>
  	<dt>分类：</dt>
  	<dd>
	  <!--{if $s_catid > 0}-->
	  <!--{assign var="goodscatlist" value=vo_list("mod={goodscat} where={v.parentid='<!--{$s_catid}-->'}")}-->
	  <!--{if empty($goodscatlist)}-->
	  <!--{assign var="goodscatlist" value=vo_list("mod={goodscat} where={v.parentid='<!--{$catinfo.parentid}-->'}")}-->
	  <!--{/if}-->
	  <!--{else}-->
	  <!--{assign var="goodscatlist" value=vo_list("mod={goodscat} where={v.parentid='0'}")}-->
	  <!--{/if}-->
	  <!--{foreach $goodscatlist as $volist}-->
	    <a<!--{if $s_catid == $volist.catid}--> class="current"<!--{/if}--> href="<!--{routeurl module='goods' action='list' items="s_area2=<!--{$s_area2}-->|s_area3=<!--{$s_area3}-->|s_area4=<!--{$s_area4}-->|s_catid=<!--{$volist.catid}-->|s_startprice=<!--{$s_startprice}-->|s_endprice=<!--{$s_endprice}-->|s_serkey=<!--{$s_serkey|urlencode}-->|s_order=<!--{$s_order}-->"}-->"><!--{$volist.catname}--></a>
	  <!--{/foreach}-->
	</dd>
  </dl>
   
  <!--{if $city.cityid == 0}-->
  <dl>
    <dt>地区：</dt>
	<dd>
	  <a href="<!--{routeurl module='city'}-->">请先选择城市&gt;&gt;</a>
	</dd>
  </dl>
  <!--{else}-->
  <dl>
  	<dt>地区：</dt>
    <dd>
	  <!--{assign var="distlist" value=vo_list("mod={area} where={v.parentid='<!--{$s_area2}-->'}")}-->
	  <a<!--{if $s_area3 == "0"}--> class="current"<!--{/if}--> href="<!--{routeurl module='goods' action='list' items="s_area2=<!--{$s_area2}-->|s_catid=<!--{$s_catid}-->|s_startprice=<!--{$s_startprice}-->|s_endprice=<!--{$s_endprice}-->|s_serkey=<!--{$s_serkey|urlencode}-->|s_order=<!--{$s_order|urlencode}-->"}-->">全部</a>
	  <!--{foreach $distlist as $volist}-->
	  <a<!--{if $s_area3 == $volist.areaid}--> class="current"<!--{/if}--> href="<!--{routeurl module='goods' action='list' items="s_area2=<!--{$s_area2}-->|s_area3=<!--{$volist.areaid}-->|s_catid=<!--{$s_catid}-->|s_startprice=<!--{$s_startprice}-->|s_endprice=<!--{$s_endprice}-->|s_serkey=<!--{$s_serkey|urlencode}-->|s_order=<!--{$s_order|urlencode}-->"}-->"><!--{$volist.areaname}--></a>
	  <!--{/foreach}-->
	</dd>
	
	<!--{if $s_area3 > 0}-->
	<!--{assign var="communitylist" value=vo_list("mod={area} where={v.parentid='<!--{$s_area3}-->'}")}-->
	<!--{if !empty($communitylist)}-->
	<dd class="oem_sort_1">
	  <!--{foreach $communitylist as $volist}-->
	  <a<!--{if $s_area4 == $volist.areaid}--> class="current"<!--{/if}--> href="<!--{routeurl module='goods' action='list' items="s_area2=<!--{$s_area2}-->|s_area3=<!--{$s_area3}-->|s_area4=<!--{$volist.areaid}-->|s_catid=<!--{$s_catid}-->|s_startprice=<!--{$s_startprice}-->|s_endprice=<!--{$s_endprice}-->|s_serkey=<!--{$s_serkey|urlencode}-->|s_order=<!--{$s_order|urlencode}-->"}-->"><!--{$volist.areaname}--></a>
	  <!--{/foreach}-->
	</dd>
	<!--{/if}-->
	<!--{/if}-->
  </dl>
  <!--{/if}-->
</div>



<div class="oem_listbar">

  <div class="oe_bar_left">

    <label f="orderby"<!--{if $s_order == ""}--> class="current"<!--{/if}-->>
	  <i><a href="<!--{routeurl module='goods' action='list' items="s_area2=<!--{$s_area2}-->|s_area3=<!--{$s_area3}-->|s_area4=<!--{$s_area4}-->|s_catid=<!--{$s_catid}-->|s_startprice=<!--{$s_startprice}-->|s_endprice=<!--{$s_endprice}-->|s_serkey=<!--{$s_serkey|urlencode}-->|s_order="}-->">默认排序</a></i>
	</label>
    <label f="orderby"<!--{if $s_order == "sales_desc" || $s_order == "sales_asc"}--> class="current"<!--{/if}-->><i>销量</i>
      <em class="oe_dcurrent" style="display:none;">
        <a href="<!--{routeurl module='goods' action='list' items="s_area2=<!--{$s_area2}-->|s_area3=<!--{$s_area3}-->|s_area4=<!--{$s_area4}-->|s_catid=<!--{$s_catid}-->|s_startprice=<!--{$s_startprice}-->|s_endprice=<!--{$s_endprice}-->|s_serkey=<!--{$s_serkey|urlencode}-->|s_order=sales_desc"}-->">销量从高到低</a>
        <a href="<!--{routeurl module='goods' action='list' items="s_area2=<!--{$s_area2}-->|s_area3=<!--{$s_area3}-->|s_area4=<!--{$s_area4}-->|s_catid=<!--{$s_catid}-->|s_startprice=<!--{$s_startprice}-->|s_endprice=<!--{$s_endprice}-->|s_serkey=<!--{$s_serkey|urlencode}-->|s_order=sales_asc"}-->">销量从低到高</a>
      </em>
    </label>
  
	<label f="orderby"<!--{if $s_order == "hits_desc" || $s_order == "hits_asc"}--> class="current"<!--{/if}-->><i>人气</i>
	  <em class="oe_dcurrent" style="display:none;">
	    <a href="<!--{routeurl module='goods' action='list' items="s_area2=<!--{$s_area2}-->|s_area3=<!--{$s_area3}-->|s_area4=<!--{$s_area4}-->|s_catid=<!--{$s_catid}-->|s_startprice=<!--{$s_startprice}-->|s_endprice=<!--{$s_endprice}-->|s_serkey=<!--{$s_serkey|urlencode}-->|s_order=hits_desc"}-->">人气从高到低</a>
	    <a href="<!--{routeurl module='goods' action='list' items="s_area2=<!--{$s_area2}-->|s_area3=<!--{$s_area3}-->|s_area4=<!--{$s_area4}-->|s_catid=<!--{$s_catid}-->|s_startprice=<!--{$s_startprice}-->|s_endprice=<!--{$s_endprice}-->|s_serkey=<!--{$s_serkey|urlencode}-->|s_order=hits_asc"}-->">人气从低到高</a>
	  </em>
	</label>

	<label f="orderby"<!--{if $s_order == "price_desc" || $s_order == "price_asc"}--> class="current"<!--{/if}-->><i>价格</i>
	  <em class="oe_dcurrent" style="display:none;">
	    <a href="<!--{routeurl module='goods' action='list' items="s_area2=<!--{$s_area2}-->|s_area3=<!--{$s_area3}-->|s_area4=<!--{$s_area4}-->|s_catid=<!--{$s_catid}-->|s_startprice=<!--{$s_startprice}-->|s_endprice=<!--{$s_endprice}-->|s_serkey=<!--{$s_serkey|urlencode}-->|s_order=price_desc"}-->">价格从高到低</a>
		<a href="<!--{routeurl module='goods' action='list' items="s_area2=<!--{$s_area2}-->|s_area3=<!--{$s_area3}-->|s_area4=<!--{$s_area4}-->|s_catid=<!--{$s_catid}-->|s_startprice=<!--{$s_startprice}-->|s_endprice=<!--{$s_endprice}-->|s_serkey=<!--{$s_serkey|urlencode}-->|s_order=price_asc"}-->">价格从低到高</a>
	  </em>
	</label>

	<label f="orderby"<!--{if $s_order == "collects_desc" || $s_order == "collects_asc"}--> class="current"<!--{/if}-->><i>收藏</i>
	  <em class="oe_dcurrent" style="display:none;">
	    <a href="<!--{routeurl module='goods' action='list' items="s_area2=<!--{$s_area2}-->|s_area3=<!--{$s_area3}-->|s_area4=<!--{$s_area4}-->|s_catid=<!--{$s_catid}-->|s_startprice=<!--{$s_startprice}-->|s_endprice=<!--{$s_endprice}-->|s_serkey=<!--{$s_serkey|urlencode}-->|s_order=collects_desc"}-->">收藏从高到低</a>
	    <a href="<!--{routeurl module='goods' action='list' items="s_area2=<!--{$s_area2}-->|s_area3=<!--{$s_area3}-->|s_area4=<!--{$s_area4}-->|s_catid=<!--{$s_catid}-->|s_startprice=<!--{$s_startprice}-->|s_endprice=<!--{$s_endprice}-->|s_serkey=<!--{$s_serkey|urlencode}-->|s_order=collects_asc"}-->">收藏从低到高</a>
	  </em>
	</label>

	<label class="oe_jgqj">
	  价格区间：
	  <input type="text" id="sprice" value="<!--{if $s_startprice>0}--><!--{$s_startprice}--><!--{/if}-->" /> 到 
	  <input type="text" id="eprice" value="<!--{if $s_endprice>0}--><!--{$s_endprice}--><!--{/if}-->" />
	  <b id="btn_selprice">确定</b>
	</label>

  </div>
  <!--//oe_bar_left End-->
  
  <div class="oe_bar_type" style="padding-right:10px;">
    共为您找到 <i style="color:red;"><!--{$total}--></i> 件商品 
  </div>
  
  <div class="clear"></div>
</div>
<!--//oem_listbar End-->
<form id="myform" action="<!--{routeurl module='goods' action='list'}-->" method="post">
<input type="hidden" name="s_area1" id="s_area1" value="<!--{$s_area1}-->" />
<input type="hidden" name="s_area2" id="s_area2" value="<!--{$s_area2}-->" />
<input type="hidden" name="s_area3" id="s_area3" value="<!--{$s_area3}-->" />
<input type="hidden" name="s_area4" id="s_area4" value="<!--{$s_area4}-->" />
<input type="hidden" name="s_showtype" id="s_showtype" value="<!--{$s_showtype}-->" />
<input type="hidden" name="s_catid" id="s_catid" value="<!--{$s_catid}-->" />
<input type="hidden" name="s_startprice" id="s_startprice" value="<!--{$s_startprice}-->" />
<input type="hidden" name="s_endprice" id="s_endprice" value="<!--{$s_endprice}-->" />
<input type="hidden" name="s_serkey" id="s_serkey" value="<!--{$s_serkey}-->" />
<input type="hidden" name="s_order" id="s_order" value="<!--{$s_order}-->" />
</form>
<script type="text/javascript">
$(function(){
	
	//显示隐藏排序
	$("label[f='orderby']").bind("mouseover", function(){
		$(this).find("em").show();
	});

	$("label[f='orderby']").bind("mouseout", function(){ 
		$(this).find("em").hide();
	});

	//价格区间
	$("#btn_selprice").bind("click", function(){
		$sprice = $("#sprice").val();
		$eprice = $("#eprice").val();
		$("#s_startprice").val($sprice);
		$("#s_endprice").val($eprice);
		$("#myform").submit();
	});

});
</script>


<div class="oem_main">

  <div class="oem_list_left oem_pr_list">
    <div class="oem_prl_left_con">
      <!--{if empty($goods)}-->
      <h6 class="oe_nodata">暂时没有您要查找的信息！</h6>
	  <!--{else}-->
      <!--{foreach $goods as $volist}-->  
	  <dl>
      	<dt><a target="_blank" href="<!--{$volist.url}-->"><img  f="imgloading" data-original="<!--{$volist.thumbimg}-->" /></a></dt>
      	<dd class="oem_prl_d1">
          <span>¥<i><!--{doubleval($volist.price)}--></i></span>
          <h4><a target="_blank" href="<!--{$volist.url}-->"><!--{$volist.goodsname}--></a></h4>
          <p>
            <em><a target="_blank" href="<!--{$volist.shopurl}-->"><!--{$volist.shopname}--></a></em>
            <label><!--{$volist.hits}--></label>
          </p>
        </dd>
      </dl>  
	  <!--{/foreach}-->
      <div class="clear"></div>
	  <!--{/if}-->
    </div>
    <div class="oem_page"><!--{$showpage}--></div>
    
  </div>
  <!--//oem_list_left End-->


  <div class="oem_list_right">
   
    <div class="oem_r_tui">
      <h3>推荐店铺</h3>
	  <!--{assign var="eliteshop" value=vo_list("mod={shop} where={v.elite='1'} catid={<!--{$s_catid}-->} child={1} num={10} city={1}")}-->
	  <!--{foreach $eliteshop as $volist}-->
      <dl>

		<dt><a target="_blank" href="<!--{$volist.url}-->"><img  f="imgloading" data-original="<!--{$volist.logourl}-->" /></a></dt>
	    <dd>
          <h4><a target="_blank" href="<!--{$volist.url}-->"><!--{$volist.shopname}--></a></h4>
          <p>评分：<!--{$volist.score}--></p>
          <p>人气：<!--{$volist.hits}--></p>
        </dd>
	  </dl>
	  <!--{/foreach}-->
	  <div class="clear"></div>
    </div>
	<!--//oem_listr_quan End-->
    
    <div class="oem_listr_tui">
      <h3 class="oem_righttitle">推荐商品 </h3>
      <!--{assign var="elitegoods" value=vo_list("mod={goods} where={v.elite='1'} city={1} num={8}")}-->
	  <!--{foreach $elitegoods as $volist}-->
      <dl>
      	<dt>
          <a target="_blank" href="<!--{$volist.url}-->" title="<!--{$volist.goodsname}-->"><!--{$volist.goodsname}--></a>
        </dt>
      	<dd>价格：¥<!--{doubleval($volist.price)}--></dd>
      </dl>
      <!--{/foreach}-->
    </div>
	<!--//oem_listr_tui End-->

  </div>
  <div class="clear"></div>
</div>
<!--{include file="<!--{$oetplpath}-->block_footer.tpl"}-->
</body>
</html>