display.html
1.58 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
{template 'common/header'}
<div class="we7-margin-bottom">
<a href="{php echo url('site/entry/post', array('m' => $_GPC['m']))}" class="btn btn-primary we7-padding-horizontal pull-right">添加专题页面</a>
</div>
<div class="clearfix we7-padding-top">
<div class="panel panel-default">
<div class="panel-heading">
微页面
</div>
<div class="table-responsive panel-body">
<table class="table table-hover">
<thead class="navbar-inner">
<tr>
<th>名称</th>
<th style="width:200px;">关键字</th>
<th style="width:210px;">创建时间</th>
<th style="width:250px;">操作</th>
</tr>
</thead>
<tbody>
{loop $list $page}
<tr>
<td>{$page['title']}</td>
<td>{$page['params'][0]['property'][0]['params']['keyword']}</td>
<td>{php echo date('Y-m-d H:i', $page['createtime'])}</td>
<td style="position:relative;">
<a href="{php echo url('site/entry/post', array('m' => 'we7_diyspecial', 'id' => $page['id']))}">编辑</a>
-
<span><a class="js-clip" href="javascript:;" data-url="{php echo murl('home/page', array('id' => $page['id']), true ,true)}">复制链接</a></span>
-
<a href="{php echo url('site/entry/del', array('m' => 'we7_diyspecial', 'id' => $page['id']))}" onclick="if(!confirm('确定删除该微页面吗?')) return false;">删除</a>
</td>
</tr>
{/loop}
</tbody>
</table>
</div>
</div>
{$pager}
</div>
<script>
$('.js-clip').each(function(){
util.clip(this, $(this).data('url'));
});
</script>
{template 'common/footer'}