index.html 7.0 KB
Newer Older
G
gongfuxiang 已提交
1 2 3 4 5 6
{{include file="public/header" /}}

<!-- right content start  -->
<div class="content-right">
	<div class="content">
		<!-- form start -->
D
devil_gong 已提交
7
		<form class="am-form view-list" action="{{:MyUrl('admin/answer/index')}}" method="POST">
G
gongfuxiang 已提交
8
			<div class="am-g">
D
admin  
devil_gong 已提交
9
				<input type="text" autocomplete="off" class="am-radius form-keyword" placeholder="联系人/内容" name="keywords" {{if !empty($params['keywords'])}} value="{{$params.keywords}}"{{/if}} />
D
devil_gong 已提交
10
				<button type="submit" class="am-btn am-btn-secondary am-btn-sm am-radius form-submit">查询</button>
G
gongfuxiang 已提交
11
				<label class="fs-12 m-l-5 c-p fw-100 more-submit">
D
devil_gong 已提交
12
					更多筛选
D
admin  
devil_gong 已提交
13
					<input type="checkbox" name="is_more" value="1" id="is_more" {{if isset($params['is_more']) and $params['is_more'] eq 1}}checked{{/if}} />
G
gongfuxiang 已提交
14 15 16
					<i class="am-icon-angle-down"></i>
				</label>

D
admin  
devil_gong 已提交
17
				<div class="more-where {{if !isset($params['is_more']) or $params['is_more'] neq 1}}none{{/if}}">
G
gongfuxiang 已提交
18
					<select name="is_show" class="am-radius c-p m-t-10 m-l-5 param-where">
D
admin  
devil_gong 已提交
19 20 21
						<option value="-1">是否显示</option>
						{{foreach $common_is_show_list as $v}}
							<option value="{{$v.id}}" {{if isset($params['is_show']) and $params['is_show'] eq $v['id']}}selected{{/if}}>{{$v.name}}</option>
G
gongfuxiang 已提交
22 23
						{{/foreach}}
					</select>
D
admin  
devil_gong 已提交
24 25
					<div class="param-date param-where m-l-5">
						<input type="text" autocomplete="off" name="time_start" class="Wdate am-radius m-t-10" placeholder="起始时间" onclick="WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM-dd HH:mm:ss'})" {{if isset($params['time_start'])}}value="{{$params.time_start}}"{{/if}}/>
G
gongfuxiang 已提交
26
						<span>~</span>
D
admin  
devil_gong 已提交
27
						<input type="text" autocomplete="off" class="Wdate am-radius m-t-10" placeholder="结束时间" name="time_end" onclick="WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM-dd HH:mm:ss'})" {{if isset($params['time_end'])}}value="{{$params.time_end}}"{{/if}}/>
G
gongfuxiang 已提交
28 29 30 31 32 33 34
					</div>
				</div>
			</div>
        </form>
        <!-- form end -->

		<!-- list start -->
D
admin  
devil_gong 已提交
35
		<table class="am-table am-table-striped am-table-hover am-text-middle m-t-10">
G
gongfuxiang 已提交
36 37
			<thead>
				<tr>
D
语言  
devil_gong 已提交
38 39 40
					<th class="am-hide-sm-only">用户信息</th>
					<th class="am-hide-sm-only">联系人</th>
					<th style="width: 25%;">内容</th>
D
devil_gong 已提交
41
					<th>是否显示</th>
D
语言  
devil_gong 已提交
42
					<th class="am-hide-sm-only">回复内容</th>
D
devil_gong 已提交
43 44 45
					<th class="am-hide-sm-only">创建时间</th>
					<th>更多</th>
					<th>操作</th>
G
gongfuxiang 已提交
46 47 48
				</tr>
			</thead>
			<tbody>
D
admin  
devil_gong 已提交
49 50 51
				{{if !empty($data_list)}}
					{{foreach $data_list as $v}}
						<tr id="data-list-{{$v.id}}" {{if $v['is_show'] eq 0}}class="am-active"{{/if}}>
G
gongfuxiang 已提交
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
							<td class="am-hide-sm-only">
								{{if !empty($v['username'])}}
									{{$v.username}}
									{{if !empty($v['nickname'])}}
										({{$v.nickname}})
									{{/if}}
									{{if !empty($v['gender_text'])}}
										({{$v.gender_text}})
									{{/if}}
								{{/if}}
								{{if !empty($v['mobile'])}}
									<br />{{$v.mobile}}
								{{/if}}
							</td>
							<td class="am-hide-sm-only">
								{{$v.name}}<br />
								{{$v.tel}}
							</td>
							<td>{{$v.content}}</td>
							<td>
D
devil_gong 已提交
72
								<a href="javascript:;" class="am-icon-btn am-icon-check submit-state {{if $v['is_show'] eq 1}}am-success{{else /}}am-default{{/if}}" data-url="{{:MyUrl('admin/answer/statusupdate')}}" data-id="{{$v.id}}" data-state="{{$v['is_show']}}" data-is-update-status="1"></a>
G
gongfuxiang 已提交
73 74 75 76
							</td>
							<td class="am-hide-sm-only">{{$v.reply}}</td>
							<td class="am-hide-sm-only">{{$v.add_time}}</td>
							<td>
D
devil_gong 已提交
77
								<span class="am-icon-caret-down c-p" data-am-modal="{target: '#my-popup{{$v.id}}'}"> 查看更多</span>
G
gongfuxiang 已提交
78 79 80
								<div class="am-popup am-radius" id="my-popup{{$v.id}}">
									<div class="am-popup-inner">
										<div class="am-popup-hd">
D
devil_gong 已提交
81
											<h4 class="am-popup-title">详情内容</h4>
G
gongfuxiang 已提交
82 83 84 85 86
											<span data-am-modal-close
											class="am-close">&times;</span>
										</div>
										<div class="am-popup-bd">
											<dl class="dl-content">
D
语言  
devil_gong 已提交
87
												<dt>用户信息</dt>
G
gongfuxiang 已提交
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
												<dd>
													{{if !empty($v['username'])}}
														{{$v.username}}
														{{if !empty($v['nickname'])}}
															({{$v.nickname}})
														{{/if}}
														{{if !empty($v['gender_text'])}}
															({{$v.gender_text}})
														{{/if}}
													{{/if}}
													{{if !empty($v['mobile'])}}
														<br />{{$v.mobile}}
													{{/if}}
												</dd>

D
语言  
devil_gong 已提交
103
												<dt>联系人</dt>
G
gongfuxiang 已提交
104 105 106 107
												<dd>
													{{$v.name}}<br />{{$v.tel}}
												</dd>

D
语言  
devil_gong 已提交
108
												<dt>内容</dt>
G
gongfuxiang 已提交
109 110
												<dd>{{$v.content}}</dd>

D
devil_gong 已提交
111 112
												<dt>是否显示</dt>
												<dd>{{if empty($v['is_show_text'])}}<span class="cr-ddd">未填写</span>{{else /}}{{$v.is_show_text}}{{/if}}</dd>
G
gongfuxiang 已提交
113

D
语言  
devil_gong 已提交
114
												<dt>回复内容</dt>
D
devil_gong 已提交
115
												<dd>{{if empty($v['reply'])}}<span class="cr-ddd">未填写</span>{{else /}}{{$v.reply}}{{/if}}</dd>
G
gongfuxiang 已提交
116

D
devil_gong 已提交
117
												<dt>创建时间</dt>
G
gongfuxiang 已提交
118 119
												<dd>{{$v.add_time}}</dd>

D
devil_gong 已提交
120
												<dt>更新时间</dt>
G
gongfuxiang 已提交
121 122 123 124 125 126 127
												<dd>{{$v.upd_time}}</dd>
											</dl>
										</div>
									</div>
								</div>
							</td>
							<td class="view-operation">
D
admin  
devil_gong 已提交
128
								{{if $v['is_reply'] eq 0}}
D
devil_gong 已提交
129
									<button class="am-btn am-btn-default am-btn-xs am-radius submit-reply am-icon-gavel" data-am-modal="{target: '#my-popup-reply'}" data-json='{{:json_encode($v)}}'> 回复</button>
G
gongfuxiang 已提交
130
								{{/if}}
D
devil_gong 已提交
131
								<button class="am-btn am-btn-default am-btn-xs am-radius am-icon-trash-o submit-delete" data-url="{{:MyUrl('admin/answer/delete')}}" data-id="{{$v.id}}"> 删除</button>
G
gongfuxiang 已提交
132 133 134 135
							</td>
						</tr>
					{{/foreach}}
				{{else /}}
D
devil_gong 已提交
136
					<tr><td colspan="20" class="table-no">没有相关数据</td></tr>
G
gongfuxiang 已提交
137 138 139 140 141 142 143 144 145
				{{/if}}
			</tbody>
		</table>
		<!-- list end -->

		<!-- 处理窗口 -->
		<div class="am-popup am-radius" id="my-popup-reply">
			<div class="am-popup-inner">
				<div class="am-popup-hd">
D
devil_gong 已提交
146
					<h4 class="am-popup-title">回复</h4>
G
gongfuxiang 已提交
147 148 149 150
					<span data-am-modal-close class="am-close">&times;</span>
				</div>
				<div class="am-popup-bd">
					<dl class="dl-content">
D
语言  
devil_gong 已提交
151
						<dt>联系人</dt>
G
gongfuxiang 已提交
152 153 154 155 156
						<dd>
							<span class="reply-name"></span> - <span class="reply-tel"></span>
						</dd>
					</dl>

D
devil_gong 已提交
157
					<form class="am-form form-validation" action="{{:MyUrl('admin/answer/reply')}}" method="POST" request-type="ajax-reload" enctype="multipart/form-data">
G
gongfuxiang 已提交
158
						<div class="am-form-group">
D
语言  
devil_gong 已提交
159 160
							<label>回复内容</label>
							<textarea name="reply" rows="5" class="am-radius" placeholder="回复内容格式 2~230 个字符" data-validation-message="回复内容格式 2~230 个字符" maxlength="230"></textarea>
G
gongfuxiang 已提交
161 162 163 164
						</div>

						<div class="am-form-group reply-submit t-c">
							<input type="hidden" name="id" value="" />
D
devil_gong 已提交
165
							<button type="submit" class="am-btn am-btn-success am-radius am-btn-sm" data-am-loading="{loadingText:'处理中...'}" data-status="0">回复</button>
G
gongfuxiang 已提交
166 167 168 169 170 171 172
						</div>
					</form>
				</div>
			</div>
		</div>

		<!-- page start -->
D
admin  
devil_gong 已提交
173 174
		{{if !empty($data_list)}}
			{{$page_html|raw}}
G
gongfuxiang 已提交
175 176 177 178 179 180 181 182 183
		{{/if}}
		<!-- page end -->
	</div>
</div>
<!-- right content end  -->
		
<!-- footer start -->
{{include file="public/footer" /}}
<!-- footer end -->