index.html
2.6 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<!DOCTYPE html>
<html>
<head>
<title>{$user_login} - 我的评论</title>
<meta name="keywords" content=""/>
<meta name="description" content="">
<include file="public@head"/>
</head>
<body class="body-white" id="top">
<include file="public@nav"/>
<div class="container tc-main">
<div class="row">
<div class="col-md-3">
<include file="public@usernav"/>
</div>
<div class="col-md-9">
<div class="tabs">
<ul class="nav nav-tabs">
<li class="active"><a href="#one" data-toggle="tab"><i class="fa fa-comments-o"></i> 我的评论</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="one">
<br>
<table class="table table-bordered table-striped table-hover">
<thead>
<tr>
<th>#</th>
<th>评论内容</th>
<th width="150">评论时间</th>
<th width="150">操作</th>
</tr>
</thead>
<tbody>
<foreach name="comments" item="vo">
<tr>
<td>{$vo.id}</td>
<td>{$vo.content}</td>
<td>{$vo.create_time}</td>
<td>
<php>
$url = json_decode($vo['url'],true);
</php>
<a href="{:cmf_url($url['action'],$url['param'])}#comment{$vo.id}">查看</a> |
<a class="js-ajax-dialog-btn"
href="{:url('user/comment/delete',array('id'=>$vo['id']))}"
data-msg="您确定要删除评论吗?" data-ok="" data-cacel="取消">删除评论</a>
</td>
</tr>
</foreach>
</tbody>
</table>
</div>
<ul class="pagination">{$page}</ul>
</div>
</div>
</div>
</div>
<include file="public@footer"/>
</div>
<!-- /container -->
<include file="public@scripts"/>
</body>
</html>