<!--{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><em>|</em> 收到系统发送的消息</span></h3>

	  <!--{if $a == "run"}-->
	  <script type="text/javascript">

	  function oeDel() { //删除
		$value = document.getElementsByName("id[]");;
		$valueArr = $value.length;
		$str = "";
		$num = 0;
		for (i=0; i<$valueArr; i++) {
			if($value[i].checked == true) {
				$str+=$value[i].value+",";
				$num++;
		   }
		}
		if ($num < 1) {
			ToastShow("请选择要删除的信息");
			return false;
		}
		$("#a").val("del");
		$("#myform").submit();
		return true;
	  }
	  </script>
	  <!--{if $total > 0}-->
	  <div class="oe_manage_but">
		<span><a href="javascript:;" onclick="oePopConfirm('确定要删除吗？', 'oeDel');">删除</a></span>
	  </div>
	  <!--{/if}-->
	
	  <form id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post" />
	  <input type="hidden" name="a" id="a" id="del" />
	  <table class="oe_table_list_3 table_cs">
		<tr>
	      <th width="8%"><input type="checkbox" id="selAll" onclick="oemarrySelectAll(this, 'selall');" class="icon-checkbox-unchecked" /></th>
		  <th>消息</th>
		  <th width="20%">时间</th>
		  <th width="10%">状态</th>
		  <th width="10%">操作</th>
	    </tr>
		<!--{if empty($msg)}-->
		<tr>
		  <td class="text_center" colspan="5">没有符合条件的信息</td>
		</tr>
		<!--{else}-->
		<!--{foreach $msg as $volist}-->
		<tr>
		  <td class="text_center"><input class="selall" type="checkbox" name="id[]" id="id[]" value="<!--{$volist.msgid}-->" /></td>
		  <td><!--{$volist.content}--></td>
		  <td class="text_center"><!--{$volist.sendtime|date_format:"%Y-%m-%d %H:%M:%S"}--></td>
		  <td class="text_center">
		  <span id="msg_status_<!--{$volist.msgid}-->">
			  <!--{if $volist.readflag == '0'}-->
			  <font color="gray">未读</font>
			  <!--{else}-->
			  <font color="green">已读</font>
			  <!--{/if}-->
		  </span>
		  </td>
		  <td class="text_center">
		    <span id="msg_btn_<!--{$volist.msgid}-->">
			  <!--{if $volist.readflag == '0'}-->
			  <a href="javascript:;" f="readmsg" data-value="<!--{$volist.msgid}-->">阅读</a>
			  <!--{else}-->
			  ~~
			  <!--{/if}-->
			</span>
		  </td>
		</tr>
		<!--{/foreach}-->
		<!--{/if}-->
	  </table>
	  </form>
	  <!--{if $total > 0}-->
	  <div class="oe_manage_but">
		<span><a href="javascript:;" onclick="oePopConfirm('确定要删除吗？', 'oeDel');">删除</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>