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

<!-- right content start  -->
<div class="content-right">
	<div class="content">
		<!-- form start -->
		<form class="am-form view-list" action="{{:url('Admin/Message/Index')}}" method="POST">
			<div class="am-g">
				<input type="text" class="am-radius form-keyword" placeholder="{{:lang('message_so_keyword_tips')}}" name="keyword" <present name="param['keyword']"> value="{{$param.keyword}}"{{/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
					更多筛选
G
gongfuxiang 已提交
13 14 15 16 17 18
					<input type="checkbox" name="is_more" value="1" id="is_more" {{if isset($param['is_more']) and $param['is_more'] eq 1)}}checked{{/if}} />
					<i class="am-icon-angle-down"></i>
				</label>

				<div class="more-where {{if !isset($param['is_more']) or $param['is_more'] neq 1)}}none{{/if}}">
					<select name="gender" class="am-radius c-p m-t-10 m-l-5 param-where">
D
devil_gong 已提交
19
						<option value="-1)}}性别</option>
G
gongfuxiang 已提交
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
						<foreach name="common_gender_list" item="v">
							<option value="{{$v.id}}" {{if isset($param['gender']) and $param['gender'] eq $v['id']">selected{{/if}}>{{$v.name}}</option>
						{{/foreach}}
					</select>
					<select name="type" class="am-radius c-p m-t-10 m-l-5 param-where">
						<option value="-1)}}{{:lang('message_type_name')}}</option>
						<foreach name="common_message_type_list" item="v">
							<option value="{{$v.id}}" {{if isset($param['type']) and $param['type'] eq $v['id']">selected{{/if}}>{{$v.name}}</option>
						{{/foreach}}
					</select>
					<select name="is_read" class="am-radius c-p m-t-10 m-l-5 param-where">
						<option value="-1)}}{{:lang('message_is_read_name')}}</option>
						<foreach name="common_is_read_list" item="v">
							<option value="{{$v.id}}" {{if isset($param['is_read']) and $param['is_read'] eq $v['id']">selected{{/if}}>{{$v.name}}</option>
						{{/foreach}}
					</select>
					<div class="param-date param-where m-l-5)}}
D
devil_gong 已提交
37
						<input type="text" name="time_start" class="Wdate am-radius m-t-10" placeholder="起始时间" onclick="WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM-dd HH:mm:ss'})" {{if isset($param['time_start'])}}value="{{$param.time_start}}"{{/if}}/>
G
gongfuxiang 已提交
38
						<span>~</span>
D
devil_gong 已提交
39
						<input type="text" class="Wdate am-radius m-t-10" placeholder="结束时间" name="time_end" onclick="WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM-dd HH:mm:ss'})" {{if isset($param['time_end'])}}value="{{$param.time_end}}"{{/if}}/>
G
gongfuxiang 已提交
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
					</div>
				</div>
			</div>
        </form>
        <!-- form end -->

		<!-- list start -->
		<table class="am-table am-table-striped am-table-hover am-text-middle m-t-10 m-l-5)}}
			<thead>
				<tr>
					<th>{{:lang('message_user_name')}}</th>
					<th>{{:lang('message_type_name')}}</th>
					<th>{{:lang('message_title_name')}}</th>
					<th class="am-hide-sm-only">{{:lang('message_detail_name')}}</th>
					<th class="am-hide-sm-only">{{:lang('message_is_read_name')}}</th>
					<th class="am-hide-sm-only">{{:lang('message_add_time_name')}}</th>
D
devil_gong 已提交
56
					<th>操作</th>
G
gongfuxiang 已提交
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
				</tr>
			</thead>
			<tbody>
				{{if !empty($list)}}
					<foreach name="list" item="v">
						<tr id="data-list-{{$v.id}}">
							<td>
								{{if !empty($v['username'])}}
									{{$v.username}}
									{{if !empty($v['nickname'])}}
										({{$v.nickname}})
									{{/if}}
									<br />
								{{/if}}
								{{if !empty($v['mobile'])}}
									{{$v.mobile}}<br />
								{{/if}}
								{{$v.gender_text}}
							</td>
							<td>
D
devil_gong 已提交
77
								{{if empty($v['type_text'])}}<span class="cr-ddd">未填写</span>{{else /}}{{$v.type_text}}{{/if}}
G
gongfuxiang 已提交
78 79
							</td>
							<td>
D
devil_gong 已提交
80
								{{if empty($v['title'])}}<span class="cr-ddd">未填写</span>{{else /}}{{$v.title}}{{/if}}
G
gongfuxiang 已提交
81 82
							</td>
							<td class="am-hide-sm-only">
D
devil_gong 已提交
83
								{{if empty($v['detail'])}}<span class="cr-ddd">未填写</span>{{else /}}{{$v.detail}}{{/if}}
G
gongfuxiang 已提交
84 85
							</td>
							<td class="am-hide-sm-only">
D
devil_gong 已提交
86
								{{if empty($v['is_read_text'])}}<span class="cr-ddd">未设置</span>{{else /}}{{$v.is_read_text}}{{/if}}
G
gongfuxiang 已提交
87 88
							</td>
							<td class="am-hide-sm-only">
D
devil_gong 已提交
89
								{{if empty($v['add_time'])}}<span class="cr-ddd">未设置</span>{{else /}}{{$v.add_time}}{{/if}}
G
gongfuxiang 已提交
90 91
							</td>
							<td class="view-operation">
D
devil_gong 已提交
92
								<button class="am-btn am-btn-default am-btn-xs am-radius am-icon-trash-o submit-delete" data-url="{{:url('Admin/Message/Delete')}}" data-id="{{$v.id}}"> 删除</button>
G
gongfuxiang 已提交
93 94 95 96
							</td>
						</tr>
					{{/foreach}}
				{{else /}}
D
devil_gong 已提交
97
					<tr><td colspan="7" class="table-no">没有相关数据</td></tr>
G
gongfuxiang 已提交
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
				{{/if}}
			</tbody>
		</table>
		<!-- list end -->

		<!-- page start -->
		{{if !empty($list)}}
			{{$page_html}}
		{{/if}}
		<!-- page end -->
	</div>
</div>
<!-- right content end  -->
		
<!-- footer start -->
{{include file="public/footer" /}}
<!-- footer end -->