index.html
6.3 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
<include file="public@header" />
</head>
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li class="active"><a>订单列表</a></li>
</ul>
<form class="well form-inline margin-top-20" method="post" action="{:url('zj_order/index')}">
订单状态:
<select class="form-control" name="order_type">
<option value>选择订单状态</option>
<option value="0">已取消订单</option>
<option value="1">未支付</option>
<option value="2">待分配</option>
<option value="3">已分配</option>
<option value="4">待评论</option>
<option value="5">已完成</option>
</select>
导师:
<select class="form-control" name="aid">
<option value>选择导师</option>
<foreach name="admin" item="val">
<option value="{$val.id}">{$val.user_login}</option>
</foreach>
</select>
服务分类:
<select class="form-control" name="ser_type">
<option value>选择服务分类</option>
<foreach name="ser" item="vo">
<option value="{$vo.id}">{$vo.name}</option>
</foreach>
</select>
订单编号:
<input type="text" name="order_num" placeholder="请输入12位订单编号" class="form-control">
<input type="submit" class="btn btn-primary" value="搜索" />
<a class="btn btn-danger" href="{:url('zj_order/index')}">清空</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>
<th>订单状态</th>
<th>支付方式</th>
<th>分配导师</th>
<th>总价</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<foreach name="allorder" item="vo">
<tr>
<td>{$vo['order_num']}</td>
<td>{$vo['sname']}</td>
<td>{$vo['tname']}</td>
<td>{$vo['uname']}</td>
<td>{$vo['name']}</td>
<td>
<if condition="mb_strlen($vo.remarks) gt '8'">
{:mb_substr($vo.remarks,0,8)}...
<else>
{$vo.remarks}
</if>
</td>
<td>{:date('Y-m-d H-i-s',$vo['create_time'])}</td>
<td>
<if condition="$vo.status_buy=='0'">
否
<else>
是
</if>
</td>
<td>
<if condition="$vo['order_type'] eq 0">
已取消订单
<elseif condition="$vo['order_type'] eq 1">
未支付
<elseif condition="$vo['order_type'] eq 2">
未分配
<elseif condition="$vo['order_type'] eq 3">
已分配
<elseif condition="$vo['order_type'] eq 4">
待评论
<elseif condition="$vo['order_type'] eq 5">
已完成
</if>
</td>
<td>
<if condition="$vo.order_type=='0'||$vo.order_type=='1'">
<else>
<if condition="$vo['parment_type'] eq 0">
余额支付
<elseif condition="$vo['parment_type'] eq 1">
支付宝支付
<elseif condition="$vo['parment_type'] eq 2">
微信支付
</if>
</if>
</td>
<td>
<if condition="$vo.order_type=='0'||$vo.order_type=='1'||$vo.order_type=='2'">
<else>
{$vo.aname}
</if>
</td>
<td>{$vo.whole}</td>
<td>
<a href="{:url('zj_order/one',array('id'=>$vo['id']))}">查看详情</a>
</td>
</tr>
</foreach>
</tbody>
</table>
<table class="table table-bordered" style="width: 80%;">
<thead>
<tr>
<th style="width: 25%;">已取消订单数量</th>
<th style="width: 25%;">未支付订单数量</th>
<th style="width: 25%;">已支付订单数量</th>
<th style="width: 25%;">总订单数量</th>
</tr>
</thead>
<tbody>
<tr>
<td>{$zd.0}</td>
<td>{$zd.1}</td>
<td>{$zd.2}</td>
<td>{$zd['0']+$zd['1']+$zd['2']}</td>
</tr>
</tbody>
</table>
<table class="table table-bordered" style="width: 100%;">
<thead>
<tr>
<th style="width: 20%;">已取消订单金额</th>
<th style="width: 20%;">未支付订单金额</th>
<th style="width: 20%;">已支付订单金额</th>
<th style="width: 20%;">未支付加已支付订单金额</th>
<th style="width: 20%;">所有订单总金额</th>
</tr>
</thead>
<tbody>
<tr>
<td>{$aa.1}</td>
<td>{$aa.2}</td>
<td>{$aa.3}</td>
<td>{$aa['2']+$aa['3']}</td>
<td>{$aa['1']+$aa['2']+$aa['3']}</td>
</tr>
</tbody>
</table>
<div class="pagination">{$allorder->render()}</div>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>