-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
172 lines (141 loc) · 5.06 KB
/
footer.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta content="" name="description">
<meta content="" name="keywords">
<!-- Favicons -->
<link href="assets/img/favicon.png" rel="icon">
<link href="assets/img/apple-touch-icon.png" rel="apple-touch-icon">
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Roboto:300,300i,400,400i,500,500i,600,600i,700,700i|Poppins:300,300i,400,400i,500,500i,600,600i,700,700i"
rel="stylesheet">
<!-- Template Main CSS File -->
<link href="assets/css/style.css" rel="stylesheet">
<!-- =======================================================
* Template Name: Medicio - v4.0.0
* Template URL: https://bootstrapmade.com/medicio-free-bootstrap-theme/
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
======================================================== -->
</head>
<!-- ======= Footer ======= -->
<footer id="footer">
<div class="container">
<div class="copyright">
© Copyright <strong><span><?php echo $_SESSION['setting_name'] ?></span></strong>. All Rights Reserved
</div>
<div class="credits">
Designed by <a href="https://lishufang1121.wixsite.com/blog">LI SHUFANG</a>
</div>
</div>
</footer>
<!-- End Footer -->
<style>
.modal-dialog.large {
width: 70% !important;
max-width: unset;
}
.modal-dialog.mid-large {
width: 70% !important;
max-width: unset;
}
</style>
<script>
$('.datepicker').datepicker({
format: "yyyy-mm-dd"
});
window.start_load = function () {
$('body').prepend('<di id="preloader2"></di>');
};
window.end_load = function () {
$('#preloader2').fadeOut('fast', function () {
$(this).remove();
});
};
window.my_modal = function ($title = '', $url = '', $size = '') {
start_load();
$.ajax({
url: $url,
error: err => {
alert("An error occured " + err);
},
success: function (resp) {
if (resp) {
$('#my_modal .modal-title').html($title);
$('#my_modal .modal-body').html(resp);
if ($size != '') {
$('#my_modal .modal-dialog').addClass($size);
} else {
$('#my_modal .modal-dialog').removeAttr("class").addClass("modal-dialog modal-md");
}
$('#my_modal').modal('show');
end_load();
}
}
});
};
window.my_modal_right = function ($title = '', $url = '') {
start_load();
$.ajax({
url: $url,
error: err => {
alert("An error occured " + err);
},
success: function (response) {
if (response) {
$('#my_modal_right .modal-title').html($title);
$('#my_modal_right .modal-body').html(response);
$('#my_modal_right').modal('show');
end_load();
}
}
});
};
window.alert_toast = function ($msg = 'TEST', $bg = 'success') {
$('#alert_toast').removeClass('bg-success');
$('#alert_toast').removeClass('bg-danger');
$('#alert_toast').removeClass('bg-info');
$('#alert_toast').removeClass('bg-warning');
if ($bg == 'success') {
$('#alert_toast').addClass('bg-success');
}
if ($bg == 'danger') {
$('#alert_toast').addClass('bg-danger');
}
if ($bg == 'info') {
$('#alert_toast').addClass('bg-info');
}
if ($bg == 'warning') {
$('#alert_toast').addClass('bg-warning');
}
$('#alert_toast .toast-body').html($msg);
$('#alert_toast').toast({delay: 3000}).toast('show');
};
window.load_cart = function () {
$.ajax({
url: 'admin/ajax.php?action=get_cart_count',
success: function (response) {
if (response > -1) {
response = response > 0 ? response : 0;
$('.item_count').html(response);
}
}
});
};
// pop up login modal
$('#login_now').click(function () {
my_modal("Login Modal", 'login.php');
});
$(document).ready(function () {
load_cart();
});
</script>
<!-- Bootstrap core JS-->
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.bundle.min.js"></script>
<!-- Third party plugin JS-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.4.1/jquery.easing.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.1.0/jquery.magnific-popup.min.js"></script>
<!-- Core theme JS-->
<script src="assets/js/scripts.js"></script>