<!--{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><a href="<!--{$oefile}-->&c=shopcomment">店铺点评</a></li>
          <li class="current"><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>

	  <!--{if $total > 0}-->
	  <div class="oe_manage_but">
		<span><a href="javascript:;" f="multidel" data-idname="id[]" data-a="del" data-form="myform">批量删除</a></span>
	  </div>
	  <!--{/if}-->
	  
	  <form id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post" />
	  <input type="hidden" name="a" id="a" value="del" />
	  <input type="hidden" name="oeform" id="oeform" value="myform" />
	  <table class="oe_table_list_3">
		<tr>
		  <th width="8%"><input type="checkbox" id="selAll" onclick="oemarrySelectAll(this, 'selall');" class="icon-checkbox-unchecked" /></th>
		  <th width="15%">留言人</th>
		  <th width="15%">联系电话</th>
		  <th width="18%">留言时间</th>
		  <th>留言内容</th>
		  <th width="10%">操作</th>
	    </tr>
		<!--{if empty($words)}-->
		<tr>
		  <td class="text_center" colspan="6">没有找到符合条件的信息</td>
		</tr>
		<!--{else}-->
		<!--{foreach $words as $volist}-->
		<tr>
		  <td class="text_center"><input class="selall" type="checkbox" name="id[]" id="id[]" value="<!--{$volist.wordid}-->" /></td>
		  <td valign="top" class="text_center"><!--{$volist.contname}--></td>
		  <td valign="top" class="text_center"><!--{$volist.contmobile}--></td>
		  <td valign="top" class="text_center"><!--{$volist.addtime|date_format:"%Y-%m-%d %H:%M:%S"}--></td>
		  <td valign="top" class="td_height">
		    【留言】：<!--{$volist.words}--> <br />
			<!--{if !empty($volist.reply)}-->
			<font color="#ff6600">
			【回复】：<!--{$volist.reply}-->
			</font>
			<!--{/if}-->
		  </td>
		  <td valign="top" class="text_center">
		    <a href="javascript:;" f="shopwordsreply" data-id="<!--{$volist.wordid}-->">回复</a>
		  </td>
		</tr>
		<!--{/foreach}-->
		<!--{/if}-->
	  </table>
	  </form>

	  <!--{if $total > 0}-->
	  <div class="oe_manage_but">
		<span><a href="javascript:;" f="multidel" data-idname="id[]" data-a="del" data-form="myform">批量删除</a></span>
	  </div>
	  <!--{/if}-->

	  <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>