-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshipping.php
More file actions
41 lines (35 loc) · 879 Bytes
/
shipping.php
File metadata and controls
41 lines (35 loc) · 879 Bytes
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
<?php include("includes/header.php");
if (empty($_SESSION['session'])) {
header("Location:index.php");
} else {
if (!empty($_SESSION['session'])) {
if ($_SESSION['type'] == 'ADM') {
include("shipping-adm.php");
}elseif($_SESSION['type'] == 'EMP'){
include("shipping-emp.php");
}elseif($_SESSION['type'] == 'CUST'){
include("shipping-cust.php");
}else{}
} } include("includes/footer.php"); ?>
<script type="text/javascript">
$(document).ready(function(){
$('#select_all').on('click',function(){
if(this.checked){
$('.checkbox').each(function(){
this.checked = true;
});
}else{
$('.checkbox').each(function(){
this.checked = false;
});
}
});
$('.checkbox').on('click',function(){
if($('.checkbox:checked').length == $('.checkbox').length){
$('#select_all').prop('checked',true);
}else{
$('#select_all').prop('checked',false);
}
});
});
</script>