one.html
9.9 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
226
227
228
229
230
231
232
233
234
<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 action="{:url('ZjOrder/editPost')}" method="post" class="form-horizontal js-ajax-form margin-top-20">
<div class="row">
<div class="col-md-5">
<table class="table table-bordered">
<tr>
<th>订单编号</th>
<td>
<span>{$one.order_num}</span>
</td>
</tr>
<tr>
<th>所购服务</th>
<td>
<span>{$one.sname}</span>
</td>
</tr>
<tr>
<th>服务分类</th>
<td>{$one['tname']}</td>
</tr>
<tr>
<th>服务价格</th>
<td>
<span>{$one.price}</span>
</td>
</tr>
<tr>
<th>购买用户</th>
<td>
<span>{$one.uname}</span>
</td>
</tr>
<tr>
<th>客户名称</th>
<td>
<span>{$one.name}</span>
</td>
</tr>
<tr>
<th>是否加急</th>
<td>
<span>
<if condition="$one.status_buy eq 0">
否
<else>
是
</if>
</span>
</td>
</tr>
<tr>
<th>客户留言</th>
<td>
<span>{$one.remarks}</span>
</td>
</tr>
<tr>
<th>下单时间</th>
<td>
<span>{:date('Y-m-d H-i-s',$one.create_time)}</span>
</td>
</tr>
<tr>
<th>用户支付时间</th>
<td>
<span>
<if condition="strlen($one.pay_time) eq 0">
<else>
{:date('Y-m-d H-i-s',$one.pay_time)}
</if>
</span>
</td>
</tr>
<tr>
<th>交流完成时间</th>
<td>
<span><if condition="strlen($one.comm_time) eq 0">
<else>
{:date('Y-m-d H-i-s',$one.pay_time)}
</if>
</span>
</td>
</tr>
<tr>
<th>订单状态</th>
<td>
<span>
<if condition="$one['order_type'] eq 0">
已取消订单
<elseif condition="$one['order_type'] eq 1">
未支付
<elseif condition="$one['order_type'] eq 2">
未分配
<elseif condition="$one['order_type'] eq 3">
已分配
<elseif condition="$one['order_type'] eq 4">
待评论
<elseif condition="$one['order_type'] eq 5">
已完成
</if>
</span>
</td>
</tr>
<if condition="$one.order_type eq 0">
<tr>
<th>取消订单时间</th>
<td>
<span>{:date('Y-m-d H-i-s',$one.delete_time)}</span>
</td>
</tr>
</if>
<tr>
<th>订单支付方式</th>
<td>
<span>
<if condition="$one.order_type=='0'||$one.order_type=='1'">
<else>
<if condition="$one['parment_type'] eq 0">
余额支付
<elseif condition="$one['parment_type'] eq 1">
支付宝支付
<elseif condition="$one['parment_type'] eq 2">
微信支付
</if>
</if>
</span>
</td>
</tr>
<tr>
<th>订单总价</th>
<td>
<span>{$one.whole}</span>
</td>
</tr>
</table>
</div>
<div class="col-md-5">
<if condition="$role eq 1&&$one.order_type lt '4'&&$one.order_type neq '0'">
<table class="table table-bordered">
<tr>
<th>客户电话</th>
<td>
<input type="text" value="{$one.phone}" name="phone" class="form-control">
</td>
</tr>
<tr>
<th>预约时间</th>
<td>
<input type="date" value="{$one.contact_date}" class="form-control" name="contact_date">
<select class="form-control" name="contact_time">
<option value>选择时间</option>
<foreach name="allcon" item="val">
<option value="{$val.id}" <if condition="$val.contact eq $one.contact"> selected</if>>{$val['contact']}</option>
</foreach>
</select>
</td>
</tr>
<tr>
<th>订单分配导师</th>
<td>
<select class="form-control" name="admin_id">
<option value>选择导师</option>
<foreach name="admin" item="val">
<option value="{$val.id}" <if condition="$val.id eq $one.admin_id"> selected </if>>{$val.user_login}</option>
</foreach>
</select>
</td>
</tr>
<input type="hidden" name="order_type" value="{$one.order_type}">
<input type="hidden" name="id" value="{$one.id}">
</table>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-primary js-ajax-submit">保存</button>
<a class="btn btn-default" href="{:url('ZjOrder/index')}">{:lang('BACK')}</a>
</div>
</div>
<else>
<table class="table table-bordered">
<tr>
<th>客户电话</th>
<td>
{$one.phone}
</td>
</tr>
<tr>
<th>预约时间</th>
<td>
{$one.contact_date} ,
<foreach name="allcon" item="val">
<if condition="$val.contact eq $one.contact">{$val['contact']}</if>
</foreach>
</td>
</tr>
<tr>
<th>订单分配导师</th>
<td>
<foreach name="admin" item="val">
<if condition="$val.id eq $one.admin_id">{$val.user_login}</if>
</foreach>
</td>
</tr>
</table>
<if condition="$one.order_type eq '3'">
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<a class="btn btn-default" href="javascript:parent.openIframeLayer('{:url('ZjOrder/complete',array('id'=>$one['id']))}');">辅导完成</a>
</div>
</div>
</if>
</if>
</div>
</div>
</form>
</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
</body>
</html>