index.html
4.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
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
<include file="public@header" />
</head>
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li class="active"><a>服务列表</a></li>
<li><a href="{:url('zj_service/add')}">添加服务</a></li>
</ul>
<form class="well form-inline margin-top-20" method="post" action="{:url('zj_service/index')}">
服务分类:
<select class="form-control" name="ser_type">
<option value>选择服务类别</option>
<foreach name="ser" item="vo">
<option value="{$vo.id}">{$vo.name}</option>
</foreach>
</select>
适用阶段:
<select class="form-control" name="apply">
<option value>选择适用阶段</option>
<option value="0">无经验</option>
<option value="1">1-2年经验</option>
<option value="2">3-5年经验</option>
<option value="3">5年以上经验</option>
</select>
价格范围(现价):
<input type="text" class="form-control" name="price_min" style="width: 40px;">
-
<input type="text" class="form-control" name="price_max" style="width: 40px;">
<input type="submit" class="btn btn-primary" value="搜索" />
<a class="btn btn-danger" href="{:url('zj_service/index')}">清空</a>
</form>
<form class="js-ajax-form" action="" method="post">
<div class="table-actions">
<notempty name="category">
<button class="btn btn-primary btn-sm js-ajax-submit" type="submit"
data-action="{:url('zj_service/listOrder')}">{:lang('SORT')}
</button>
</notempty>
<button class="btn btn-primary btn-sm js-ajax-submit" type="submit"
data-action="{:url('zj_service/publish',array('yes'=>1))}" data-subcheck="true">发布
</button>
<button class="btn btn-primary btn-sm js-ajax-submit" type="submit"
data-action="{:url('zj_service/publish',array('no'=>1))}" data-subcheck="true">取消发布
</button>
<button class="btn btn-primary btn-sm js-ajax-submit" type="submit"
data-action="{:url('zj_service/recommend',array('yes'=>1))}" data-subcheck="true">推荐
</button>
<button class="btn btn-primary btn-sm js-ajax-submit" type="submit"
data-action="{:url('zj_service/recommend',array('no'=>1))}" data-subcheck="true">取消推荐
</button>
<button class="btn btn-danger btn-sm js-ajax-submit" type="submit"
data-action="{:url('zj_service/delete')}" data-subcheck="true" data-msg="您确定删除吗?">
{:lang('DELETE')}
</button>
</div>
<table class="table table-hover table-bordered">
<thead>
<tr>
<th width="15">
<label>
<input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x">
</label>
</th>
<notempty name="category">
<th width="50">{:lang('SORT')}</th>
</notempty>
<th>ID</th>
<th>服务名称</th>
<th>服务分类</th>
<th>原价</th>
<th>现价</th>
<th width="130">服务简介</th>
<th>适用阶段</th>
<th>建立时间</th>
<th>最后修改时间</th>
<th>状态</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<foreach name="allser" item="vo">
<tr>
<td>
<input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]"
value="{$vo.id}" title="ID:{$vo.id}">
</td>
<td>{$vo['id']}</td>
<td>{$vo['name']}</td>
<td>{$vo['tname']}</td>
<td>{$vo['price_ori']}</td>
<td>{$vo['price_new']}</td>
<td>{$vo['describes']}</td>
<td>
<if condition="$vo['apply'] eq 0">
无经验
<elseif condition="$vo['apply'] eq 1">
1-2年经验
<elseif condition="$vo['apply'] eq 2">
3-5年经验
<elseif condition="$vo['apply'] eq 3">
5年以上经验
</if>
</td>
<td>{:date('Y-m-d H-i-s',$vo['create_time'])}</td>
<td>{:date('Y-m-d H-i-s',$vo['update_time'])}</td>
<td>
<if condition="$vo['is_dis'] eq 1">
已发布,
<else>
未发布,
</if>
<if condition="$vo['is_rec'] eq 0">
未推荐
<else>
已推荐
</if>
</td>
<td>
<a class="js-ajax-delete" href="{:url('zj_service/delete',array('id'=>$vo['id']))}" data-msg="确认删除">{:lang('DELETE')}</a>
<a href="{:url('zj_service/edit',array('id'=>$vo['id']))}">编辑</a>
</td>
</tr>
</foreach>
</tbody>
</table>
<div class="pagination">{$allser->render()}</div>
</form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>