-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpublic_holidays.php
110 lines (98 loc) · 3.97 KB
/
public_holidays.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
<?php
session_start();
if (!isset($_SESSION['logged']) || $_SESSION['logged'] != true) {
header("location: login.php");
exit();
}
$current_dir = __DIR__;
while ($current_dir != '/' && !file_exists($current_dir . '/index.php')) {
$current_dir = dirname($current_dir);
}
require_once $current_dir . '/vendor/autoload.php';
use Dotenv\Dotenv;
$dotenv = Dotenv::createImmutable($current_dir);
$dotenv->load();
require("./php/UIHandler.php");
$ui = new UIHandler();
require("./php/APIHandler.php");
$api = new APIHandler();
$session_user_info = $api->getUserInfo($_SESSION['user_id']);
if ($session_user_info['account_confirm'] != 1) {
header("location: account_confirm.php");
exit();
}
?>
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>Public Holidays - Presence v<?=$_ENV["VERSION"];?></title>
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="css/responsive.css">
<link rel="stylesheet" href="css/custom.css">
<script src="./assets/js/jquery.js"></script>
<script src="./assets/js/bootstrap.js"></script>
<script src="./assets/js/public-holidays.js?v=<?php echo time(); ?>"></script>
<link rel="stylesheet" href="./assets/css/datatables.css">
<link rel="stylesheet" href="css/nav.css">
<link rel="stylesheet" type="text/css" href="css/sweetalert.css">
<script src="js/sweetalert.js"></script>
<link href="./css/slimselect.css" rel="stylesheet">
<script src="./js/slimselect.js"></script>
<style>
#public-holidays * {
text-align: center;
}
#public-holidays tbody > tr > td:nth-child(4) {
display: flex;
align-items: center;
justify-content: center;
}
</style>
</head>
<body id="page-top" class="politics_version">
<!-- LOADER -->
<div id="preloader">
<div id="main-ld">
<div id="loader"></div>
</div>
</div><!-- end loader -->
<!-- END LOADER -->
<?php echo $ui->getNav(); ?>
<div id="services" class="section lb">
<div class="container">
<div class="section-title text-center">
<h3>Public Holidays</h3>
<div class="d-flex align-items-center justify-content-center">
<div class="d-flex align-items-center">
<label for="current_year" style="margin-right: 7.5px; font-size: 1.2rem;"><b>Year</b></label>
<input type="number" class="form-control w-20" min="2020" id="current_year" max="2040" step="1" value="<?php echo date("Y"); ?>" />
</div>
</div>
<div style="overflow-x: auto;">
<table id="public-holidays" class="table table-striped" style="width:100%">
<thead>
<tr>
<th>Name</th>
<th>Date</th>
</tr>
</thead>
</table>
</div>
</div><!-- end container -->
</div><!-- end section -->
<?php echo $ui->getFooter(); ?>
<a href="#" id="scroll-to-top" class="dmtop global-radius"><i class="fa fa-angle-up"></i></a>
<script src="js/all.js"></script>
<script src="js/jquery.easing.1.3.js"></script>
<script src="js/parallaxie.js"></script>
<script src="js/headline.js"></script>
<script src="js/jqBootstrapValidation.js"></script>
<script src="js/custom.js"></script>
<script src="js/jquery.vide.js"></script>
<script src="./assets/js/datatables.js"></script>
</body>
</html>