-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcategories.php
More file actions
182 lines (178 loc) · 6.61 KB
/
categories.php
File metadata and controls
182 lines (178 loc) · 6.61 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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
<!DOCTYPE html>
<html>
<head>
<?php include('include/head.php'); ?>
<link rel="stylesheet" type="text/css" href="src/plugins/datatables/media/css/jquery.dataTables.css">
<link rel="stylesheet" type="text/css" href="src/plugins/datatables/media/css/dataTables.bootstrap4.css">
<link rel="stylesheet" type="text/css" href="src/plugins/datatables/media/css/responsive.dataTables.css">
</head>
<body>
<?php include('include/header.php'); ?>
<?php include('include/sidebar.php'); ?>
<div class="main-container">
<div class="pd-ltr-20 customscroll customscroll-10-p height-100-p xs-pd-20-10">
<div class="min-height-200px">
<div class="page-header">
<div class="row">
<div class="col-md-6 col-sm-12">
<div class="title">
<h4>Catégories</h4>
</div>
<nav aria-label="breadcrumb" role="navigation">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index.php">Accueil</a></li>
<li class="breadcrumb-item active" aria-current="page">Catégories</li>
</ol>
</nav>
</div>
<div class="col-md-6 col-sm-12 text-right">
<div class="dropdown">
<a class="btn btn-primary dropdown-toggle" href="#" role="button" data-toggle="dropdown">
Options
</a>
<div class="dropdown-menu dropdown-menu-right">
<a class="dropdown-item" href="gerer-categories.php"><i class="fa fa-plus"> Ajouter</i></a>
<a class="dropdown-item" href="#"><i class="fa fa-refresh"></i> Rafraichir</a>
<a class="dropdown-item btn-danger" href="#"><i class="fa fa-trash"></i> Supprimer</a>
</div>
</div>
</div>
</div>
</div>
<!-- Export Datatable start -->
<div class="pd-20 bg-white border-radius-4 box-shadow mb-30">
<div class="clearfix mb-20">
<div class="pull-left">
<h5 class="text-blue">Liste des catégories</h5>
</div>
</div>
<div class="row">
<table class="stripe hover multiple-select-row categories nowrap">
<thead>
<tr>
<th class="datatable-nosort"><input type="checkbox" id="customCheck1" class="selectall">
<label for="customCheck1">Tout selectionner</label>
</th>
<th>Nom</th>
<th>Rang</th>
<th class="datatable-nosort">Actions</th>
</tr>
</thead>
<tbody>
<tr>
<td><input type="checkbox"></td>
<td>Electronique</td>
<td>1</td>
<td>
<div class="dropdown">
<a class="btn btn-outline-primary dropdown-toggle" href="#" role="button" data-toggle="dropdown">
<i class="fa fa-ellipsis-h"></i>
</a>
<div class="dropdown-menu dropdown-menu-right">
<a class="dropdown-item" href="#"><i class="fa fa-pencil"></i> Modifier</a>
<a class="dropdown-item" href="#"><i class="fa fa-trash"></i> Supprimer</a>
</div>
</div>
</td>
</tr>
<tr>
<td><input type="checkbox"></td>
<td>Electronique > Télévisions</td>
<td>2</td>
<td>
<div class="dropdown">
<a class="btn btn-outline-primary dropdown-toggle" href="#" role="button" data-toggle="dropdown">
<i class="fa fa-ellipsis-h"></i>
</a>
<div class="dropdown-menu dropdown-menu-right">
<a class="dropdown-item" href="#"><i class="fa fa-pencil"></i> Modifier</a>
<a class="dropdown-item" href="#"><i class="fa fa-trash"></i> Supprimer</a>
</div>
</div>
</td>
</tr>
<tr>
<td><input type="checkbox"></td>
<td>Electronique > Enceintes sonores</td>
<td>3</td>
<td>
<div class="dropdown">
<a class="btn btn-outline-primary dropdown-toggle" href="#" role="button" data-toggle="dropdown">
<i class="fa fa-ellipsis-h"></i>
</a>
<div class="dropdown-menu dropdown-menu-right">
<a class="dropdown-item" href="#"><i class="fa fa-pencil"></i> Modifier</a>
<a class="dropdown-item" href="#"><i class="fa fa-trash"></i> Supprimer</a>
</div>
</div>
</td>
</tr>
<tr>
<td><input type="checkbox"></td>
<td>Electromenager</td>
<td>4</td>
<td>
<div class="dropdown">
<a class="btn btn-outline-primary dropdown-toggle" href="#" role="button" data-toggle="dropdown">
<i class="fa fa-ellipsis-h"></i>
</a>
<div class="dropdown-menu dropdown-menu-right">
<a class="dropdown-item" href="#"><i class="fa fa-pencil"></i> Modifier</a>
<a class="dropdown-item" href="#"><i class="fa fa-trash"></i> Supprimer</a>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- Export Datatable End -->
</div>
<?php include('include/footer.php'); ?>
</div>
</div>
<?php include('include/script.php'); ?>
<script src="src/plugins/datatables/media/js/jquery.dataTables.min.js"></script>
<script src="src/plugins/datatables/media/js/dataTables.bootstrap4.js"></script>
<script src="src/plugins/datatables/media/js/dataTables.responsive.js"></script>
<script src="src/plugins/datatables/media/js/responsive.bootstrap4.js"></script>
<!-- buttons for Export datatable -->
<script src="src/plugins/datatables/media/js/button/dataTables.buttons.js"></script>
<script src="src/plugins/datatables/media/js/button/buttons.bootstrap4.js"></script>
<script src="src/plugins/datatables/media/js/button/buttons.print.js"></script>
<script src="src/plugins/datatables/media/js/button/buttons.html5.js"></script>
<script src="src/plugins/datatables/media/js/button/buttons.flash.js"></script>
<script src="src/plugins/datatables/media/js/button/pdfmake.min.js"></script>
<script src="src/plugins/datatables/media/js/button/vfs_fonts.js"></script>
<script>
$('document').ready(function(){
$('.selectall').click(function() {
if ($(this).is(':checked')) {
$('div input').attr('checked', true);
} else {
$('div input').attr('checked', false);
}
});
$('.categories').DataTable({
scrollCollapse: true,
autoWidth: false,
responsive: true,
columnDefs: [{
targets: "datatable-nosort",
orderable: false,
}],
"lengthMenu": [[10, 25, 50, -1], [10, 25, 50, "Tout"]],
"language": {
"info": "_START_-_END_ of _TOTAL_ Categories",
searchPlaceholder: "Recherche"
},
dom: 'Bfrtip',
buttons: [
'copy', 'csv', 'pdf', 'print'
]
});
});
</script>
</body>
</html>