index.html
4.2 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
<include file="public@header" />
</head>
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li class="active"><a href="{:url('Order/index')}">订单列表</a></li>
</ul>
<form class="well form-inline margin-top-20" method="post" action="{:url('Order/index')}">
状态:
<select class="form-control" name="status">
<option value="0" <if condition="$status eq 0">selected</if>>全部</option>
<option value="1" <if condition="$status eq 1">selected</if>>托管中</option>
<option value="2" <if condition="$status eq 2">selected</if>>即将到期</option>
<option value="3" <if condition="$status eq 3">selected</if>>未托管</option>
</select>
关键字:
<input type="text" class="form-control" name="keyword" style="width: 150px;" value="{$keyword|default=''}" placeholder="请输入关键字...">
<input type="submit" class="btn btn-primary" value="搜索" />
<a class="btn btn-danger" href="{:url('Order/index')}">清空</a>
</form>
<form class="js-ajax-form" action="" method="post">
<table class="table table-hover table-bordered">
<div class="table-actions">
<button class="btn btn-danger btn-sm js-ajax-submit"
data-action="{:url('Order/delete')}" data-subcheck="true" data-msg="你确定删除吗?">
{:lang('DELETE')}
</button>
</div>
<thead>
<tr>
<th>
<label>
<input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x">
</label>
</th>
<th>ID</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="data" item="vo">
<tr>
<td>
<input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]"
value="{$vo.o_id}" title="ID:{$vo.o_id}">
</td>
<td>{$vo.id}</td>
<td>{$vo.num}</td>
<td>{$vo.insurance_num}</td>
<td>{$vo.product_name}</td>
<td>{$vo.application}</td>
<td>{$vo.insurer}</td>
<td>{$vo.insurance_company_name}</td>
<td>{:date('Y-m-d H:i:s',$vo['create_time'])}</td>
<td>
<if condition="$vo.status eq 1">
免费托管
<else />
<if condition="$vo['status'] eq 3">
<empty name="$vo['pay_time']">
无需再次支付
<else />
{:date('Y-m-d H:i:s',$vo['pay_time'])}
</empty>
<else />
未支付
</if>
</if>
</td>
<td>
<if condition="$vo['status'] eq 3 && $vo['order_about_time'] lt time() && ($vo['order_about_time']+30*24*60*60) gt time() || ($vo['status'] eq 1 && $vo['order_about_time'] lt time() && ($vo['order_about_time']+30*24*60*60) gt time())">
即将到期
<elseif condition="$vo['status'] eq 1 && $vo['order_expire_time2'] gt time()"/>
托管中
<elseif condition="$vo['status'] eq 3 && $vo['order_expire_time2'] gt time()"/>
托管中
<elseif condition="$vo['status'] eq 2"/>
未托管
<else />
未托管
</if>
</td>
<td>
<a href='{:url("Order/edit",array("id"=>$vo["id"]))}'>订单详情</a>|
<a class="js-ajax-delete" href="{:url('Order/delete',array('id'=>$vo['id']))}">{:lang('DELETE')}</a>
</td>
</tr>
</foreach>
</tbody>
<thead>
<tr>
<th>
<label>
<input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x">
</label>
</th>
<th>ID</th>
<th>订单号</th>
<th>保险单号</th>
<th>产品名</th>
<th>投保人</th>
<th>被保人</th>
<th>保险公司</th>
<th>创建时间</th>
<th>支付时间</th>
<th>状态</th>
<th>操作</th>
</tr>
</thead>
</table>
<div class="table-actions">
<button class="btn btn-danger btn-sm js-ajax-submit"
data-action="{:url('Order/delete')}" data-subcheck="true" data-msg="你确定删除吗?">
{:lang('DELETE')}
</button>
</div>
<div class="pagination">{$page}</div>
</form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>