ajaxqyquanlist.html
3.38 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
<style type="text/css">
.flexigrid .bDiv tr{display: block;}
.bd-line{font-size: 0;}
.flexigrid .bDiv td{border: 0;}
.flexigrid div.bDiv tr:hover td{background-color: #F4FCFA;}
.flexigrid div.bDiv tr.trSelected td{ background: #ffffdf none repeat scroll 0 0;}
.flexigrid .bDiv a{color: #999;}
.flexigrid .bDiv .active a,.flexigrid .bDiv span a:hover{color: #FFF;}
.flexigrid .bDiv .row a:hover{text-decoration: none;color: #C4182E;background-color: #EEEEEE;text-decoration: underline;}
.flexigrid .bDiv .row .active a:hover{text-decoration: none;color: #fff;background-color: #999;text-decoration: underline;}
.ncsc-default-table thead {font-size: 0;}
.ncsc-default-table thead th{font-size: 12px; vertical-align: middle;display: inline-block;*display: inline;*zoom: 1;}
.w50{width: 5% !important;}
.w60{width: 6% !important;}
.w80{width: 10% !important;}
.w120{width: 20% !important;}
.w150{width: 15% !important;}
.w250{width: 30% !important;}
</style>
<table class="ncsc-default-table">
<thead>
<tr>
<th class="w150">名称</th>
<th class="w80">金额</th>
<th class="w60">需购满额</th>
<th class="w80">有效期</th>
<th class="w80">次数</th>
<th class="w100">使用对象</th>
<th class="w100">修改人</th>
<th class="w140">修改时间</th>
<th class="w150">操作</th>
</tr>
</thead>
<tbody>
<empty name="list">
<tr>
<td colspan="20" class="norecord">
<div class="warning-option"><i class="icon-warning-sign"></i><span>暂无符合条件的数据记录</span></div>
</td>
</tr>
<else/>
<volist name="list" id="list">
<tr class="bd-line">
<td class="w150">
<div>{$list.PrivilegeName}</div>
</td>
<td class="w80">
<div>{$list.CashSum}元</div>
</td>
<td class="w60">
<div>{$list.BuySum}元</div>
</td>
<td class="w80">
<div>
<if condition="$list.Cycle eq 0">
当月有效
<else/>
{$list.Cycle}天
</if>
</div>
</td>
<td class="w80">
<div>{$list.SecondNo}次</div>
</td>
<td class="w100">
<div>
【
<switch name="list.UseObjectType">
<case value="0">全场</case>
<case value="1">品牌</case>
<case value="2">品类</case>
<case value="11">用途</case>
<case value="12">分类一</case>
</switch>】<br/>{$list.UseObjectName}</div>
</td>
<td class="w100">
<div>{$list.ModifyMan}</div>
</td>
<td class="w140">
<div>{$list.ModifyDate}</div>
</td>
<td class="nscs-table-handle w150">
<div style="text-align: center; ">
<a class="btn blue" onclick="addqycontent('{$list[Id]}')"><i class="fa fa-pencil-square-o"></i>编辑</a>
<a class="btn red" href="javascript:void(0)" onClick="del('{$list[Id]}')"><i class="fa fa-trash-o"></i>删除</a>
</div>
</td>
</tr>
</volist>
</empty>
</tbody>
</table>
<!--分页位置--> {$page}
<script>
// 点击分页触发的事件
$(".pagination a").click(function(){
cur_page = $(this).data('p');
ajax_get_table('search-form2',cur_page);
});
$(document).ready(function(){
// 表格行点击选中切换
$('#flexigrid >table>tbody>tr').click(function(){
$(this).toggleClass('trSelected');
});
$('#good_count').empty().html("{$pager->totalRows}");
});
</script>