list.html
3.15 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
<include file="public/header" /> <include file="Public:Left" />
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<include file="public/breadcrumb"/>
<!-- Main content -->
<section class="content">
<div class="container-fluid">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><i class="fa fa-list"></i> {$plugin.name}配送列表
<a href=""><button type="button" class="btn btn-info">
<i class="ace-icon fa fa-plus bigger-110"></i>
</button></a> </h3>
</div>
<div class="panel-body">
<div id="ajax_return">
<div class="table-responsive">
<table class="table table-bordered table-hover">
<thead>
<tr>
<td style="width: 1px;" class="text-center">
<input type="checkbox" onclick="$('input[name*=\'selected\']').prop('checked', this.checked);">
</td>
<td class="text-center">
公众号
</td>
<td class="text-center">
配送区域
</td>
<td class="text-center">操作</td>
</tr>
</thead>
<tbody>
<volist name="shipping_list" id="list">
<tr>
<td class="text-center">
<input type="checkbox" name="selected[]" value="{$list.shipping_area_id}">
</td>
<td class="text-center">{$list.shipping_area_name}</td>
<td class="text-center">{$list.region_list}</td>
<td class="text-center">
<a href="{:U('Admin/Plugin/shipping_list_edit',array('id'=>$list[shipping_area_id],'type'=>$plugin['type'],'code'=>$plugin['code']))}" data-toggle="tooltip" title="" class="btn btn-primary" data-original-title="编辑"><i class="fa fa-pencil"></i></a>
<a href="javascript:void(0);" data-href="{:U('Admin/Plugin/del_area',array('id'=>$list[shipping_area_id],'type'=>$plugin['type'],'code'=>$plugin['code']))}" onclick="del('{$list[shipping_area_id]}',this)" 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>
</div>
</div>
</div>
</div>
<!-- /.row -->
</section>
<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<script>
// 删除操作
function del(id,t)
{
if(!confirm('确定要删除吗?'))
return false;
location.href = $(t).data('href');
}
</script>
<include file="Public:footer" />