index.html
2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li class="active"><a href="javascript:;">系统消息列表</a></li>
<li><a href="{:url('add')}">添加系统消息</a></li>
</ul>
<form class="js-ajax-form" action="" method="post">
<table class="table table-hover table-bordered table-list">
<thead>
<tr>
<th style="width: 30px;">id</th>
<th>标题</th>
<th>内容</th>
<th style="width: 130px;">添加时间</th>
<th style="width: 80px;">状态</th>
<th style="width: 130px;">操作</th>
</tr>
</thead>
<foreach name="all" item="vo">
<tr>
<td>{$vo.id}</td>
<td>{$vo.title}</td>
<td>{$vo.content}</td>
<td>{:date('Y-m-d H:i',$vo.create_time)}</td>
<td>
<if condition="$vo.is_sta eq 1">
发布
<else>
未发布
</if>
</td>
<td>
<if condition="$vo.is_sta eq 1">
<a href="{:url('sta',array('id'=>$vo['id'],'is_sta'=>2))}" class="js-ajax-dialog-btn" data-msg="确定取消发布?">不发布</a>
<else>
<a href="{:url('sta',array('id'=>$vo['id'],'is_sta'=>1))}" class="js-ajax-dialog-btn" data-msg="确定发布?">发布</a>
</if>
<a href="{:url('edit',array('id'=>$vo['id']))}">编辑</a>
<a href="{:url('delete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:lang('DELETE')}</a>
</td>
</tr>
</foreach>
</table>
<ul class="pagination">{$page|default=''}</ul>
</form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>