admin_index.html
2.0 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
52
<include file="public@head" />
</head>
<body>
<div class="wrap js-check-wrap">
<table class="table table-hover table-bordered margin-top-20">
<thead>
<tr>
<th width="50">ID</th>
<th>上层ID</th>
<th>名称</th>
<th>正文</th>
<th>文章</th>
<th>日期</th>
<td>状态</td>
<th width="160">{:lang('ACTIONS')}</th>
</tr>
</thead>
<tbody>
<php>
$user_status=array("0"=>"未审核","1"=>"已审核");
</php>
<foreach name="comments" item="vo">
<tr>
<td>{$vo.id}</td>
<td>{$vo.parent_id}</td>
<td>{$vo.full_name}</td>
<td>{$vo.content}</td>
<td><a href="{$vo.url}" target="_blank">{$vo.object_id}</a></td>
<td>{:date('Y-m-d H:i:s',$vo['create_time'])}</td>
<td>{$user_status[$vo['status']]}</td>
<td>
<empty name="vo.status">
<a href="{:cmf_plugin_url('TcComment://AdminIndex/cancelban',array('id'=>$vo['id']))}"
class="js-ajax-dialog-btn"
data-msg="确定要审核这条信息吗?">审核</a>
<else/>
<a href="{:cmf_plugin_url('TcComment://AdminIndex/ban',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn"
data-msg="确定要加入未审核吗?">未审核</a>
</empty>
<a class="js-ajax-dialog-btn" href="{:cmf_plugin_url('TcComment://AdminIndex/delete',array('id'=>$vo['id']))}" data-msg="您确定要删除评论吗?" data-ok="" data-cacel="取消">删除评论</a>
</td>
</tr>
</foreach>
</tbody>
</table>
<ul class="pagination">
{$page}
</ul>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>