<!--{include file="<!--{$oapath}-->public/ins_page.tpl"}-->
<block name="content">
	<div class="page-header clearfix">
	<h1 class="col-sm-8">公告管理</h1>
	
</div>
	
	<div class="space-8"></div>
	<div class="operate panel panel-default">
		<div class="panel-body">
		
				<div class="pull-right">
					<a class="btn btn-sm btn-primary" onclick="add()">发布公告</a>
				</div>
			
		</div>
	</div>
	<div class="ul_table ul_table_responsive">
		<ul>
			<li class="thead">
				<div class="pull-left">
					<span class="col-8 ">序号</span>
                                        <span class="col-12">标题</span>
				</div>
				<div class="pull-right">
					
					<span class="col-20">发布时间</span>
					<span class="col-6 ">发布人</span>
					<span class="col-6 text-center">操作</span>
				</div>
			</li>
			<!--{if empty($list)}-->
				<li class="no-data">
					没找到数据
				</li>
				<!--{else}-->
				<!--{foreach $list as  $key=>$vo}-->
					<li class="tbody">
						<div class="pull-left">
							<span class="col-8 "><!--{$vo.id}--></span>
                                                        <span class="col-12 "><!--{$vo.title}--></span>
						</div>
						<div class="pull-right">
							<span class="col-20"><!--{$vo.time|date_format:'%Y-%m-%d %H:%M:%S'}-->&nbsp;</span>
							<span class="col-6"> <!--{$vo.user_name}--> &nbsp;</span>
							<span class="col-6 text-center">
     
                                                                  <a onclick="save(<!--{$vo.id}-->)">修改</a>&nbsp;<a href="oa.php?c=Notice&a=del&id=<!--{$vo.id}-->">删除</a>
                                                           
								
                                                        </span>
						</div>
						<div class="auto autocut">
							<a href="oa.php?c=Task&a=read&id=<!--{$vo.id}-->"><!--{$vo.name}--></a>
						</div>
					</li>
				 <!--{/foreach}-->
				<div class="pagination">
					<!--{$showpage}-->
				</div>
			<!--{/if}-->
		</ul>
	</div>
</block>

					
				</div>
			</div>
		</div>
		<!--<iframe src="{:U('push/client')}" class="push" id="push"></iframe>-->
		<!-- Mainly scripts -->
		<script src="<!--{$oapath}-->Ins/js/jquery-2.1.1.js"></script>
		<script src="<!--{$oapath}-->Ins/js/bootstrap.min.js"></script>
		<script src="<!--{$oapath}-->Ins/js/plugins/metisMenu/jquery.metisMenu.js"></script>
		<script src="<!--{$oapath}-->Ins/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
		<!-- Custom and plugin javascript -->
		<script src="<!--{$oapath}-->Ins/js/inspinia.js"></script>
		<script src="<!--{$oapath}-->Ins/js/common.js"></script>
		<script src="<!--{$oapath}-->Ins/js/plugins/pace/pace.min.js"></script>
                
		<script src="<!--{$oapath}-->Ins/js/plugins/toastr/toastr.min.js"></script>
                <script src="<!--{$oapath}-->Ins/js/plugins/gritter/jquery.gritter.min.js"></script>
                <script src="<!--{$oapath}-->Ins/js/plugins/bootbox/bootbox.min.js"></script>
		<include file="Layout:ins_plugin_js"/>
<block name="js">
	<script type="text/javascript">
		function add() {
			winopen("oa.php?c=Notice&a=add",560, 470);
                 };
function save(id) {

			winopen("oa.php?c=Notice&a=add&id="+id,560, 470);
                 };

		$(document).ready(function() {
			set_return_url();
		});

	</script>
</block>
	</body>
</html>
