min-header.html
3.74 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>管理后台</title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Bootstrap 3.3.4 -->
<link href="__PUBLIC__/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<!-- FontAwesome 4.3.0 -->
<link href="__PUBLIC__/bootstrap/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<!-- Ionicons 2.0.0 --
<link href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css" rel="stylesheet" type="text/css" />
<!-- Theme style -->
<link href="__PUBLIC__/dist/css/AdminLTE.min.css" rel="stylesheet" type="text/css" />
<!-- AdminLTE Skins. Choose a skin from the css/skins
folder instead of downloading all of them to reduce the load. -->
<link href="__PUBLIC__/dist/css/skins/_all-skins.min.css" rel="stylesheet" type="text/css" />
<!-- iCheck -->
<link href="__PUBLIC__/plugins/iCheck/flat/blue.css" rel="stylesheet" type="text/css" />
<!-- jQuery 2.1.4 -->
<script src="__PUBLIC__/plugins/jQuery/jQuery-2.1.4.min.js"></script>
<script src="__PUBLIC__/js/global.js"></script>
<script src="__PUBLIC__/js/myFormValidate.js"></script>
<script src="__PUBLIC__/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script src="__PUBLIC__/js/layer/layer-min.js"></script><!-- 弹窗js 参考文档 http://layer.layui.com/-->
<script src="__PUBLIC__/js/myAjax.js"></script>
<script type="text/javascript">
function delfunc(obj){
layer.confirm('确认删除?', {
btn: ['确定','取消'] //按钮
}, function(){
// 确定
$.ajax({
type : 'post',
url : $(obj).attr('data-url'),
data : {act:'del',del_id:$(obj).attr('data-id')},
dataType : 'json',
success : function(data){
if(data==1){
layer.msg('操作成功', {icon: 1});
$(obj).parent().parent().remove();
}else{
layer.msg(data, {icon: 2,time: 2000});
}
// layer.closeAll();
}
})
}, function(index){
layer.close(index);
return false;// 取消
}
);
}
function selectAll(name,obj){
$('input[name*='+name+']').prop('checked', $(obj).checked);
}
function get_help(obj){
layer.open({
type: 2,
title: '帮助手册',
shadeClose: true,
shade: 0.3,
area: ['70%', '80%'],
content: $(obj).attr('data-url'),
});
}
function delAll(obj,name){
var a = [];
$('input[name*='+name+']').each(function(i,o){
if($(o).is(':checked')){
a.push($(o).val());
}
})
if(a.length == 0){
layer.alert('请选择删除项', {icon: 2});
return;
}
layer.confirm('确认删除?', {btn: ['确定','取消'] }, function(){
$.ajax({
type : 'get',
url : $(obj).attr('data-url'),
data : {act:'del',del_id:a},
dataType : 'json',
success : function(data){
if(data == 1){
layer.msg('操作成功', {icon: 1});
$('input[name*='+name+']').each(function(i,o){
if($(o).is(':checked')){
$(o).parent().parent().remove();
}
})
}else{
layer.msg(data, {icon: 2,time: 2000});
}
layer.closeAll();
}
})
}, function(index){
layer.close(index);
return false;// 取消
}
);
}
</script>
</head>
<body style="background-color:#ecf0f5;">