<!--{include file="<!--{$oetplpath}-->block_head.tpl"}-->

<!--{if $a == "run"}-->
<div class="oemarry_layout">
  <div class="oe_top_nav"><i></i>站内消息->消息列表</div>
  <div class="oe_content">
	
	<form id="serform" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post">
	<div class="oe_txtwrap">
	  会员：<input type="text" name="susername" id="susername" class="input-120" value="<!--{$susername}-->" />&nbsp;
	  阅读状态：
	  <select name="sflag" id="sflag">
	  <option value="">=全部=</option>
	  <option value="1"<!--{if $sflag == '1'}--> selected<!--{/if}-->>未读</option>
	  <option value="2"<!--{if $sflag == '2'}--> selected<!--{/if}-->>已读</option>
	  </select>
	  &nbsp;&nbsp;<input type="submit" name="btn_search" id="btn_search" class="button_2" value="搜索" />
	</div>
	</form>

    <div class="oe_tools_bar clearfix">
      <a class="icon-checkbox-unchecked" href="javascript:;" id="selAll" onclick="oemarrySelectAll(this, 'selall');">全选/反选</a>
      <a class="icon-remove-2" onclick="oemarryDialogFormDel('myform');">删除</a>
    </div>
    
	<form id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->&a=del" method="post">
    <table class="oe_table_list table_cs">
	  <tr>
	    <th width="8%">ID</th>
		<th width="8%">会员</th>
		<th width="12%">店铺</th>
		<th width="9%">时间</th>
		<th width="6%">状态</th>
		<th width="15%">标题</th>
		<th>消息</th>
		<th width="10%">操作</th>
	  </tr>
	  <!--{if empty($msg)}-->
	  <tr>
	    <td class="text_center" colspan="8">没有符合条件的信息！</td>
	  </tr>
	  <!--{else}-->
	  <!--{foreach $msg as $volist}-->
	  <tr>
	    <td class="text_center"><input type="checkbox" name="id[]" id="id[]" class="selall" value="<!--{$volist.msgid}-->" /><!--{$volist.msgid}--></td>
		<td>
		<!--{if $volist.userid > 0}-->
		<!--{$volist.username}-->
		<!--{else}-->
		~
		<!--{/if}-->
		</td>
		<td>
		<!--{if $volist.shopid > 0}-->
		<!--{$volist.shopname}-->
		<!--{else}-->
		~
		<!--{/if}-->
		</td>
		<td class="text_center"><!--{$volist.sendtime|date_format:"%Y-%m-%d"}--><br /><!--{$volist.sendtime|date_format:"%H:%M:%S"}--></td>
		<td class="text_center">
		<!--{if $volist.readflag == '1'}-->
		<font color="green">已读</font>
		<!--{else}-->
		<font color="gray">未读</font>
		<!--{/if}-->
		</td>
		<td><!--{$volist.title}--></td>
		<td><!--{$volist.content|filterhtml:100}-->...</td>
		<td class="text_center">
		 <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=view&id=<!--{$volist.msgid}-->&<!--{$comeurl}-->" class="oe_ico_green">查看</a>
		 <a href="javascript:;" onclick="oemarryDialogUrlDel('<!--{$oefile}-->&c=<!--{$c}-->&a=del&id[]=<!--{$volist.msgid}-->&<!--{$comeurl}-->');" class="oe_ico_red">删除</a>
		</td>
	  </tr>
	  <!--{/foreach}-->
	  <!--{/if}-->
	</table>
	</form>

	<div class="oe_page_box"><!--{$showpage}--></div>

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


<!--{if $a == 'view'}-->
<div class="oemarry_layout">
  <div class="oe_top_nav">
	<i></i>站内消息->查看消息
	<span><a href="<!--{$oefile}-->&c=<!--{$c}-->&<!--{$comeurl}-->">&lt;&lt;返回列表</a></span>
  </div>
  <div class="oe_content">
    <h6>查看消息</h6>
    <table class="oe_table_wrap">
	  <tr>
	    <th width="15%">会员：<span class="f_red"></span></th>
		<td width="85%">
		<!--{if $msg.userid > 0}-->
		<!--{$msg.username}-->
		<!--{else}-->
		~
		<!--{/if}-->
		</td>
	  </tr>
	  <tr>
		<th>店铺：<span class="f_red"></span></th>
		<td>
		<!--{if $msg.shopid > 0}-->
		<!--{$msg.shopname}-->
		<!--{else}-->
		~
		<!--{/if}-->
		</td>
	  </tr>

	  <tr>
	    <th>发送时间：<span class="f_red"></span></th>
		<td><!--{$msg.sendtime|date_format:"%Y-%m-%d %H:%M:%S"}--></td>
	  </tr>
	  <tr>
	    <th>消息标题：<span class="f_red"></span></th>
		<td><!--{$msg.title}--></td>
	  </tr>

	  <tr>
	    <th>消息内容：<span class="f_red"></span> </th>
		<td><!--{$msg.content}--></td>
	  </tr>
	</table>
  </div>
</div>
<!--{/if}-->
</body>
</html>