-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.php
97 lines (88 loc) · 3.68 KB
/
main.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
<?php
session_start();
if (empty($_SESSION['IsLogged'])) {
header("location: masuk");
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>PeduliDiri</title>
<!-- CSS -->
<link rel="stylesheet" href="assets/vendors/mdi/css/materialdesignicons.min.css">
<link rel="stylesheet" href="assets/vendors/feather/feather.css">
<link rel="stylesheet" href="assets/vendors/base/vendor.bundle.base.css">
<link rel="stylesheet" href="assets/vendors/flag-icon-css/css/flag-icon.min.css" />
<link rel="stylesheet" href="assets/vendors/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="assets/vendors/jquery-bar-rating/fontawesome-stars-o.css">
<link rel="stylesheet" href="assets/vendors/jquery-bar-rating/fontawesome-stars.css">
<link rel="stylesheet" href="assets/vendors/jquery.skeleton.loader/dist/jquery.skeleton.css">
<link rel="stylesheet" href="assets/css/animate.min.css">
<link rel="stylesheet" href="assets/vendors/DataTables/css/dataTables.bootstrap4.min.css">
<link rel="stylesheet" href="assets/vendors/gijgo/css/gijgo.min.css">
<link rel="stylesheet" href="assets/css/jquery-ui.css">
<link rel="stylesheet" href="assets/css/style.css">
<!-- Shortcut Icon -->
<link rel="shortcut icon" href="assets/images/icon_app.png" />
</head>
<body>
<div class="container-scroller">
<!-- Navbar -->
<?php include "layout/navbar_layout.php"; ?>
<div class="container-fluid page-body-wrapper">
<!-- Sidebar -->
<?php include "layout/sidebar_layout.php"; ?>
<!-- Content -->
<div class="main-panel">
<?php include "content.php"; ?>
<!-- Footer -->
<?php include "layout/footer_layout.php"; ?>
</div>
</div>
</div>
<!-- Script -->
<script src="assets/vendors/base/vendor.bundle.base.js"></script>
<script src="assets/js/off-canvas.js"></script>
<script src="assets/js/hoverable-collapse.js"></script>
<script src="assets/js/template.js"></script>
<script src="assets/vendors/chart.js/Chart.min.js"></script>
<script src="assets/vendors/jquery-bar-rating/jquery.barrating.min.js"></script>
<script src="assets/js/dashboard.js"></script>
<script src="assets/vendors/jquery.skeleton.loader/dist/jquery.scheletrone.js"></script>
<script src="assets/vendors/DataTables/js/jquery.dataTables.min.js"></script>
<script src="assets/vendors/DataTables/js/dataTables.bootstrap4.min.js"></script>
<script src="assets/vendors/sweetalert2/package/dist/sweetalert2.all.min.js"></script>
<script src="assets/js/logout.js"></script>
<script src="assets/vendors/typed.js/lib/typed.js"></script>
<script src="assets/js/app.js"></script>
<script src="assets/vendors/gijgo/js/gijgo.min.js"></script>
<script src="assets/js/jquery-ui.js"></script>
<script>
$("#datepicker").datepicker({
inline: true,
dateFormat: "dd-mm-yy",
minDate: "-30d",
maxDate: new Date()
});
</script>
<script>
$('#jam').timepicker();
</script>
<?php
if ($_GET['page'] == 'home') { ?>
<script src="assets/js/home.js"></script>
<script src="assets/js/visited.js"></script>
<?php
} else if ($_GET['page'] == 'catatan-perjalanan') { ?>
<script src="assets/js/travel-log.js"></script>
<?php
} else if ($_GET['page'] == 'tambah-catatan') { ?>
<script src="assets/js/insert.js"></script>
<?php
}
?>
</body>
</html>