ajaxSpecList2.html
2.44 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
<form method="post" enctype="multipart/form-data" target="_blank" id="form-goodsType">
<div class="table-responsive">
<table class="table table-bordered table-hover">
<thead>
<tr>
<th style="width: 1px;" class="text-center"><input type="checkbox" onclick="$('input[name*=\'selected\']').prop('checked', this.checked);"></th>
<th class="sorting text-left">ID</th>
<th class="sorting text-left">规格名称</th>
<th class="sorting text-left">所属分类</th>
<th class="sorting text-left">排序</th>
<th class="sorting text-right">操作</th>
</tr>
</thead>
<tbody>
<volist name="specList" id="list">
<tr>
<td class="text-center">
<input type="checkbox" name="selected[]" value="6">
</td>
<td class="text-left">{$list.id}</td>
<td class="text-left">{$list.name}</td>
<td class="text-left">{$cat_list[$list[cat_id1]]}</td>
<td class="text-right">
<input type="text" class="form-control input-sm" onchange="updateSort('spec','id','{$list.id}','order',this)" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onpaste="this.value=this.value.replace(/[^\d]/g,'')" size="4" value="{$list.order}" />
</td>
<td class="text-right">
<a href="{:U('Admin/goods/addEditSpec',array('id'=>$list['id']))}" data-toggle="tooltip" title="" class="btn btn-primary" data-original-title="编辑"><i class="fa fa-pencil"></i></a>
<a href="javascript:del_fun('{:U('Goods/delGoodsSpec',array('id'=>$list['id']))}');" id="button-delete6" data-toggle="tooltip" title="" class="btn btn-danger" data-original-title="删除"><i class="fa fa-trash-o"></i></a></td>
</tr>
</volist>
</tbody>
</table>
</div>
</form>
<div class="row">
<div class="col-sm-6 text-left"></div>
<div class="col-sm-6 text-right">{$page}</div>
</div>
<script>
// 点击分页触发的事件
$(".pagination a").click(function(){
cur_page = $(this).data('p');
ajax_get_table('search-form2',cur_page);
});
</script>