<!--{include file="<!--{$oetplpath}-->widget_header.tpl"}-->
<div class="oe_content_layout">
  <!--{include file="<!--{$oetplpath}-->widget_menu.tpl"}-->

  <div class="oe_cont_rt">
    
	<div class="oe_content_widget">

	  <h3 class="oe_f_title">
	    <i></i>店铺点评
		<span>（会员对店铺的点评）</span>
	  </h3>

	  <div class="oe_tab_list">
        <ul>
          <li class="current"><a href="<!--{$oefile}-->&c=shopcomment">店铺点评</a></li>
          <li><a href="<!--{$oefile}-->&c=shopwords">店铺留言</a></li>
        </ul>
      </div>
	  
	  <!--{if $a == "run"}-->
	  <form id="search_form" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post">
	  <div class="oe_mer_search">
	    点评时间：
		<input type="text" name="stime" id="stime" readonly="only" class="input-100" value="<!--{$stime}-->" />
		<script>
		laydate({
			elem: '#stime',
			format: 'YYYY-MM-DD',
			istime: false,
			choose: function(datas){}
		});
		</script>

		~ 
		<input type="text" name="etime" id="etime" readonly="only" class="input-100" value="<!--{$etime}-->" />
		<script>
		laydate({
			elem: '#etime',
			format: 'YYYY-MM-DD',
			istime: false,
			choose: function(datas){}
		});
		</script>
		&nbsp;&nbsp;&nbsp;
		<span class="_search_btn" id="_btn_ser">搜索</span>
	  </div>
	  </form>
	  <script type="text/javascript">
	  $(function(){
		$("#_btn_ser").bind("click", function(){
			$("#search_form").submit();
		});
	  });
	  </script>

	  <table class="oe_table_list_3">
		<tr>
		  <th width="10%">点评会员</th>
		  <th width="10%">消费凭证</th>
	      <th>点评内容</th>
		  <th width="18%">点评时间</th>
		  <th width="8%">打分</th>
		  <th width="10%">操作</th>
	    </tr>
		<!--{if empty($comment)}-->
		<tr>
		  <td class="text_center" colspan="6">没有找到符合条件的信息</td>
		</tr>
		<!--{else}-->
		<!--{foreach $comment as $volist}-->
		<tr>
		  <td class="text_center">
		    <!--{if $volist.userid == '0'}-->
			~~
			<!--{else}-->
		    <img src="<!--{$volist.headimgurl}-->" width="60px" height="60px" class="_img_radius" /><br />
			<!--{$volist.username}-->
			<!--{/if}-->
		  </td>
		  <td class="text_center">
		    <img f="view" src="<!--{$volist.consumeimg}-->" width="40px" height="40px" />
		  </td>
		  <td valign="top" class="td_height"><!--{$volist.content}--></td>
		  <td class="text_center">
		    <!--{$volist.cmtime|date_format:"%Y-%m-%d %H:%M:%S"}-->
		  </td>
		  <td class="text_center"><b style="color:#ff6600;"><!--{$volist.cmscore}--> 分</b></td>
		  <td class="text_center">
		    <a href="javascript:;" f="addshopreply" data-id="<!--{$volist.commid}-->">回复</a>
		  </td>
		</tr>

		<!--{assign var="replylist" value=vo_list("mod={dianpingreply} where={v.commid='<!--{$volist.commid}-->' AND v.shopid='<!--{$login.shop.shopid}-->'}")}-->
		<!--{if !empty($replylist)}-->
		<tr style="border:none;" class="tr_b">
		  <td colspan="6">
			<div class="oe_reply">
			  <ul>
			    <!--{foreach $replylist as $val}-->
			    <li>
				  <span>【<!--{$val.replytime|date_format:"%Y-%m-%d %H:%M:%S"}-->】</span>
				  <!--{$val.content|nl2br}-->  
				  （<a href="javascript:;" f="editshopreply" data-id="<!--{$val.replyid}-->">编辑</a> | <a href="javascript:;" f="delshopreply" data-id="<!--{$val.replyid}-->">删除</a>）
				</li>
				<!--{/foreach}-->
			  </ul>
			</div>
		  </td>
		</tr>
		<!--{/if}-->

		<!--{/foreach}-->
		<!--{/if}-->
	  </table>
	  <div class="oe_page_layout">
	    <!--{$showpage}-->
	  </div>

	  <!--{/if}-->

	</div>
	<!--//oe_content_widget End-->

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