-
Notifications
You must be signed in to change notification settings - Fork 1
/
ban-list-booker.php
108 lines (102 loc) · 3.6 KB
/
ban-list-booker.php
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
<?php require_once 'config/config.php';
$Title = "Booker";
$title = "booker";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Ban List <?=$Title?></title>
<!-- Data Table CSS -->
<link href="<?=$base_url?>vendors/datatables.net-dt/css/jquery.dataTables.min.css" rel="stylesheet" type="text/css" />
<link href="<?=$base_url?>vendors/datatables.net-responsive-dt/css/responsive.dataTables.min.css" rel="stylesheet"
type="text/css" />
<?php require_once $include_path.'head.php'; ?>
</head>
<body>
<!-- HK Wrapper -->
<div class="hk-wrapper hk-vertical-nav">
<!-- Top Navbar -->
<?php require_once $include_path.'navbar.php'; ?>
<!-- /Top Navbar -->
<!-- Vertical Nav -->
<?php require_once $include_path.'sidebar.php'; ?>
<!-- /Vertical Nav -->
<!-- Setting Panel -->
<?php require_once $include_path.'setting.php'; ?>
<!-- /Setting Panel -->
<!-- Main Content -->
<div class="hk-pg-wrapper">
<!-- Container -->
<div class="container mt-xl-50 mt-sm-30 mt-15">
<!-- Title -->
<!-- /Title -->
<!-- Row -->
<div class="row">
<div class="col-xl-12">
<section class="hk-sec-wrapper">
<h5 class="hk-sec-title">Banned <?=$Title?> List</h5>
<div class="row">
<div class="col-sm">
<div class="table-wrap">
<?php require_once $action_path.'ban_'.$title.'_view_list.php'; ?>
</div>
</div>
</div>
</section>
</div>
<!-- /Row -->
</div>
<!-- /Container -->
<!-- Footer -->
<?php require_once $include_path.'footer.php'; ?>
<!-- /Footer -->
</div>
<!-- /Main Content -->
</div>
<!-- /HK Wrapper -->
<?php require_once $include_path.'footTable.php'; ?>
<script type="text/javascript">
function activate(mech_id,row_index) {
iziToast.settings({
timeout: 2500,
resetOnHover: true,
animateInside: true,
transitionIn: 'bounceInUp',
transitionOut: 'flipOutX'
});
$.ajax({
type: "POST",
url : "<?=$action_url?>activate_<?=$title?>.php",
data: {id:mech_id},
beforeSend: function() {
$(row_index).prop('disabled', true);
},
complete: function() {
$(row_index).prop('disabled', false);
},
success: function (response) {
if (response == "Success") {
iziToast.success({
title: 'Succes',
message: '<?=$Title?> Activated'
});
var i = row_index.parentNode.parentNode.rowIndex;
document.getElementById("datable_1").deleteRow(i);
}else if (response == "Invalid") {
iziToast.error({
title: 'Invalid',
message: 'Something Went Wrong'
});
}
},
error: function(e) {
iziToast.warning({
title: 'Request Error',
message: e.statusText
});
}
});
}
</script>
</body>
</html>