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
<include file="public@header" />
</head>
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li class="active"><a href="###">用户答题列表</a></li>
</ul>
<form class="well form-inline margin-top-20" method="post" action="{:url('UserAnswer/index')}">
用户电话:
<input type="text" class="form-control" name="mobile" style="width: 140px;" value="{:input('mobile','')}" placeholder="请输入用户电话">
时间:
<input type="text" class="form-control js-bootstrap-datetime" name="start_time"
value="{:input('start_time','')}"
style="width: 140px;" autocomplete="off">-
<input type="text" class="form-control js-bootstrap-datetime" name="end_time"
value="{:input('end_time','')}"
style="width: 140px;" autocomplete="off">
<input type="submit" class="btn btn-primary" value="搜索" />
<a class="btn btn-danger" href="{:url('UserAnswer/index')}">清空</a>
<a class="btn btn-primary" href="###" onclick="openexl()">导出</a>
</form>
<table class="table table-hover table-bordered">
<thead>
<tr>
<th>用户昵称</th>
<th>用户电话</th>
<th>题目编号</th>
<th>用户答案</th>
<th>答题分数</th>
<th>答题总分数</th>
<th>当前优惠券信息</th>
<th>答题时间</th>
</tr>
</thead>
<tbody>
<foreach name="list" item="vo">
<foreach name="vo.question_text" item="qt">
<tr>
<td>{$vo.user_nickname}</td>
<td>{$vo.mobile}</td>
<td>{$qt.order}</td>
<td>{$qt.title}</td>
<td>{$qt.score}</td>
<td>{$vo.all_score}</td>
<td>{$vo.user_coupon_text}</td>
<td>{:date('Y-m-d H:i',$vo.create_time)}</td>
</tr>
</foreach>
</foreach>
</tbody>
</table>
<div class="pagination">{$page}</div>
</div>
<script src="__STATIC__/js/admin.js"></script>
<script>
function openexl() {
var mobile = $('input[name=mobile]').val();
var start_time = $('input[name=start_time]').val();
var end_time = $('input[name=end_time]').val();
window.location.href="{:url('UserAnswer/Exl')}?mobile="+mobile+"&start_time="+start_time+"&end_time="+end_time;
}
</script>
</body>
</html>