assess2.html
7.36 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
{template 'public/header'}
{template 'public/comhead'}
<link rel="stylesheet" type="text/css" href="../addons/zh_cjdianc/template/public/ygcsslist.css">
<style type="text/css">
.yg5_key>div{float: left;line-height: 34px;}
.store_td1{height: 45px;}
.store_list_img{width: 20px;height: 20px;border-radius: 50%;}
.yg5_tabel{border-color: #e5e5e5;outline: 1px solid #e5e5e5;}
.yg5_tr2>td{padding: 15px;border: 1px solid #e5e5e5;text-align: center;line-height:20px;}
.table>tbody>tr>td{line-height: 20px;}
.yg5_tr1>th{
border: 1px solid #e5e5e5;
background-color: #FAFAFA;
font-weight: bold;
text-align: center;
}
.yg5_btn{background-color: #EEEEEE;color: #333;border: 1px solid #E4E4E4;border-radius: 6px;width: 100px;height: 34px;}
.accout_inp{width: 100%;height: 35px;border: 1px solid #cccccc;font-size: 14px;color: #333;}
.table{margin-bottom: 0px;}
.navback{display: none;}
.yg_back{margin-left: 170px;}
</style>
<ul class="nav nav-tabs">
<span class="ygxian"></span>
<div class="ygdangq">当前位置:</div>
<li class="active"><a href="javascript:void(0);">评论列表</a></li>
</ul>
<div class="main">
<div class="row">
<div class="col-lg-6">
<form action="" method="POST">
<div class="input-group" style="width: 300px">
<input type="text" name="keywords" class="form-control" placeholder="请输入评论内容">
<span class="input-group-btn">
<input type="submit" class="btn btn-md btn-default" name="submit" value="查找" style="font-size: 14px;" />
</span>
</div>
</div>
<input type="hidden" name="token" value="{$_W['token']}"/>
</form>
</div>
<div class="main">
<!-- <div class="panel panel-default">
<div class="panel-body">
<a class="btn btn-primary" href="javascript:location.reload()"><i class="fa fa-refresh"></i>刷新</a>
</div>
</div> -->
<!-- 门店列表部分开始 -->
<div class="panel panel-default">
<div class="panel-heading">
评论列表
</div>
<div class="panel-body" style="padding: 0px 15px;">
<div class="row">
<table class="table" >
<tr class="yg5_tr1">
<th class="col-md-2 store_td1">评价内容</th>
<th class="col-md-2">评价分数</th>
<th class="col-md-2">评价时间</th>
<th class="col-md-2">状态</th>
<th class="col-md-2">回复</th>
<th class="col-md-2">操作</th>
</tr>
{loop $list $key $item}
<tr class="yg5_tr2">
<td>
{$item['content']}
</td>
<td>
{$item['score']}
</td>
<td>
{$item['cerated_time']}
</td>
{if $item['status']==1}
<td>
<span class="label storeblue">未回复</span>
</td>
{elseif $item['status']==2}
<td>
<span class="label storegrey">已回复</span>
</td>
{/if}
<td>
{if $item['status']==1}
<a href="javascript:void(0);" data-toggle="modal" data-target="#myModal{$item['id']}"><span class="label storeblue">回复</span></a>
{else}
<span class="label storeblue">已回复</span>
{/if}
</td>
<td>
<a href="{php echo $this->createWebUrl('assessinfo', array('id'=>$item['id'],'op'=>'info'));}" class="storespan btn btn-xs">
<span class="fa fa-pencil"></span>
<span class="bianji">编辑
<span class="arrowdown"></span>
</span>
</a>
<a href="{php echo $this->createWebUrl('assess2', array('op'=>delete,'id'=>$item['id']));}" class="storespan btn btn-xs" onclick="if(!confirm('删除后将不可恢复,确定删除吗?')) return false;" data-toggle="tooltip" data-placement="top" title="" data-original-title="删除">
<span class="fa fa-trash-o"></span>
<span class="bianji">删除
<span class="arrowdown"></span>
</span>
</a>
<!-- <a href="{php echo $this->createWebUrl('assessinfo', array('id'=>$item['id'],'op'=>'info'));}" class="btn btn-sm btn-info" >查看 </a>
<a onclick="if(!confirm('删除后将不可恢复,确定删除吗?')) return false;" href="{php echo $this->createWebUrl('assess', array('op'=>delete,'id'=>$item['id']));}" class="btn btn-default btn-danger" data-toggle="tooltip" data-placement="top" title="" data-original-title="删除"><i class="fa fa-times"></i> </a> -->
</td>
</tr>
<div class="modal fade" id="myModal{$item['id']}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<form action="" method="post" enctype="multipart/form-data">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel" style="font-size: 20px;">编辑回复内容</h4>
</div>
<div class="modal-body" style="font-size:20px">
<input type="text" name="reply" class="accout_inp" placeholder="请输入回复内容">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
<input type="submit" name="submit2" class="btn btn-info" value="确定">
<input type="hidden" name="token" value="{$_W['token']}"/>
<input type="hidden" name="id" value="{$item['id']}"/>
</div>
</div>
</form>
</div>
</div>
{/loop}
<!-- 这是弹框部分开始 -->
<!-- 这是弹框部分结束 -->
{if empty($list)}
<tr class="yg5_tr2">
<td colspan="6">
暂无评论
</td>
</tr>
{/if}
</table>
</div>
</div>
</div>
</div>
<div class="text-right we7-margin-top">
{$pager}
</div>
</div>
<script type="text/javascript">
$(function(){
// $("#frame-8").addClass("in");
// $("#frame-9").show();
$("#yframe-9").addClass("wyactive");
})
</script>