<!--{include file="<!--{$shoptplpath}--><!--{$shop.skin}-->/block_header.tpl"}-->
<!--{include file="<!--{$shoptplpath}--><!--{$shop.skin}-->/block_top.tpl"}-->

<div class="oe_shopmain">

  <div class="oe_dianping_layout">

    <h1>
	  店铺点评   <span>共有<b><!--{$total}--></b>条点评</span>
	</h1>

    <div class="oe_dianping_db">

      <div class="oe_dianping_nav">
		<ul>
      	  <li>
		    <span<!--{if $s_score=='0'}--> class="current"<!--{/if}-->><a href="<!--{routeurl module='dianping' action='list' items="shopid=<!--{$shop.shopid}-->|s_score=0"}-->">全部</a></span>
		    <span<!--{if $s_score=='5'}--> class="current"<!--{/if}-->><a href="<!--{routeurl module='dianping' action='list' items="shopid=<!--{$shop.shopid}-->|s_score=5"}-->">5分</a></span>
		    <span<!--{if $s_score=='4'}--> class="current"<!--{/if}-->><a href="<!--{routeurl module='dianping' action='list' items="shopid=<!--{$shop.shopid}-->|s_score=4"}-->">4分</a></span>
		    <span<!--{if $s_score=='3'}--> class="current"<!--{/if}-->><a href="<!--{routeurl module='dianping' action='list' items="shopid=<!--{$shop.shopid}-->|s_score=3"}-->">3分</a></span>
		    <span<!--{if $s_score=='2'}--> class="current"<!--{/if}-->><a href="<!--{routeurl module='dianping' action='list' items="shopid=<!--{$shop.shopid}-->|s_score=2"}-->">2分</a></span>
			<span<!--{if $s_score=='1'}--> class="current"<!--{/if}-->><a href="<!--{routeurl module='dianping' action='list' items="shopid=<!--{$shop.shopid}-->|s_score=1"}-->">1分</a></span>
		  </li>
		</ul>
        <label class="_addto" onclick="window.location.href='<!--{routeurl module="dianping" action="addto" items="shopid=<!--{$shop.shopid}-->"}-->'">我要点评</label>
      </div>
	  <!--//oe_dianping_nav End-->

      <div class="oe_dianping_list">

	    <!--{if empty($dianping)}-->
		<h6 class="oe_nodata">暂时没有您要查找的信息！</h6>
		<!--{else}-->
		<!--{foreach $dianping as $volist}-->
		<dl>
		  <dt><img  f="imgloading" data-original="<!--{$volist.headimgurl}-->" /></dt>
		  <dd>
			<h4><!--{$volist.username}--><label class="oem_xinxin"><em style="width:<!--{round((doubleval($volist.cmscore)/5), 2)*100}-->%"></em></label>   <span><!--{$volist.cmtime|date_format:"%Y-%m-%d %H:%M"}--></span></h4>
			<p><!--{$volist.content|nl2br}--></p>

			<div class="oe_dp_simg" id="div_<!--{$volist.commid}-->">
			  <ul>
			    <li><img  f="imgloading" data-original="<!--{$volist.consumeimg}-->" f="slideimg" data-img="<!--{$volist.consumeimg}-->" data-id="<!--{$volist.commid}-->" /> <span></span></li>
			    <li><img  f="imgloading" data-original="<!--{$volist.thumbimg}-->" f="slideimg" data-img="<!--{$volist.drawimg}-->" data-id="<!--{$volist.commid}-->" /> <span></span></li>
			    <div class="clear"></div>
			  </ul>
			</div>
			<div class="oe_dp_bimg" id="magicimg_<!--{$volist.commid}-->">
			  <span style="display:none;">收起</span><img f="stopmagic" data-id="<!--{$volist.commid}-->" src="<!--{$volist.consumeimg}-->" />
			</div>
			
			<!--{assign var="replylist" value=vo_list("mod={dianpingreply} where={v.commid='<!--{$volist.commid}-->'}")}-->
			<!--{if !empty($replylist)}-->
			<div class="oe_dp_reply">
			  <ul>
			    <!--{foreach $replylist as $val}-->

				<!--{if $val.userid > 0}-->
			    <li><span>网友追加：</span><!--{$val.content|nl2br}--> <label><!--{$val.replytime|date_format:"%Y-%m-%d %H:%M:%S"}--></label></li>
				<!--{/if}-->

				<!--{if $val.shopid > 0}-->
			    <li class="_shoper"><span>商家回复：</span><!--{$val.content|nl2br}--> <label><!--{$val.replytime|date_format:"%Y-%m-%d %H:%M:%S"}--></label></li>
				<!--{/if}-->

				<!--{/foreach}-->
			  </ul>
			</div>
			<!--{/if}-->

		  </dd>
		</dl>
		<!--{/foreach}-->
		<!--{/if}-->
	  
	  </div>
	  <!--//oe_dianping_list End-->

	  <div class="oem_page"><!--{$showpage}--></div>
	  
    </div>
    <!--//oe_dianping_db End-->
  
  </div>
</div>
<script type="text/javascript">
$(function(){

	
	$("img[f='slideimg']").bind("click", function(){  //展开放大

		$li_id = $(this).attr("data-id");
		$slide_img = $(this).attr("data-img");
		$("#div_"+$li_id+" li").removeClass("current");
		$(this).parent().addClass("current");
	
		$magic_obj = $("#magicimg_"+$li_id);
		$magic_obj.hide();
		$("#magicimg_"+$li_id+" img").attr("src", $slide_img+"?s="+get_rndnum(8));
		$magic_obj.toggle(200);

	});

	$("img[f='stopmagic']").bind("click", function(){ //关闭放大
		$li_id = $(this).attr("data-id");
		$magic_obj = $("#magicimg_"+$li_id);
		$magic_obj.hide();
	});


});
</script>
<!--{include file="<!--{$shoptplpath}--><!--{$shop.skin}-->/block_footer.tpl"}-->