-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkalender.php
More file actions
125 lines (117 loc) · 3.8 KB
/
Copy pathkalender.php
File metadata and controls
125 lines (117 loc) · 3.8 KB
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
<?php
session_start();
if (isset($_SESSION['userweb'])) {
include './koneksi.php';
// Ambil id_user dari session
$id_user = $_SESSION['id_user'];
} else {
echo "<script>alert('Anda harus login terlebih dahulu!')</script>";
header("location:login.php");
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>TaskifyMe | Mudahkan Pengelolaan Tugas Anda</title>
<!-- Bootstrap CDN-->
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH"
crossorigin="anonymous"
/>
<!-- Google Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap"
rel="stylesheet"
/>
<!-- Favicon -->
<link
rel="apple-touch-icon"
sizes="180x180"
href="assets/img/favicon/apple-touch-icon.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="assets/img/favicon/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="assets/img/favicon/favicon-16x16.png"
/>
<link rel="manifest" href="assets/img/favicon/site.webmanifest" />
<!-- Main CSS -->
<link rel="stylesheet" href="assets/css/kalender.css" />
<link rel="stylesheet" href="assets/css/header.css" />
<link rel="stylesheet" href="assets/css/sidebar.css" />
<!-- Full Calendar -->
<link rel="stylesheet" href="assets/calendar/fullcalendar.css">
<script src="assets/calendar/jquery.min.js"></script>
<script src="assets/calendar/jquery-ui.min.js"></script>
<script src="assets/calendar/moment.min.js"></script>
<script src="assets/calendar/fullcalendar.min.js"></script>
</head>
<body>
<div class="wrapper d-flex">
<!-- Sidebar -->
<?php
include('partials/sidebar.php');
?>
<!-- Content -->
<section>
<div class="container">
<!-- Header -->
<?php
include('partials/header.php');
?>
<div class="content">
<div class="heading-page d-flex flex-row align-items-center gap-2">
<div class="line"></div>
<h5 class="mb-0">Kalender</h5>
</div>
<div class="cal p-3 border border-2 rounded">
<div id='calendar'></div>
</div>
</div>
</div>
</section>
</div>
<script src="script.js"></script>
<!-- Main JS -->
<script src="assets/js/script.js"></script>
<script>
$(document).ready(function(){
var calendar = $('#calendar').fullCalendar({
editable: false,
header: {
left: 'prev, next today',
center: 'title',
right: 'month, agendaWeek, agendaDay'
},
events: 'tampil-kalender.php?' + new Date().getTime(), // tampilkan data dari database
selectable: true,
selectHelper: true,
})
})
</script>
<!-- Bootstrap CDN-->
<script
src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.8/dist/umd/popper.min.js"
integrity="sha384-I7E8VVD/ismYTF4hNIPjVp/Zjvgyol6VFvRkX/vR+Vc4jQkC+hVqc2pM8ODewa9r"
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.min.js"
integrity="sha384-0pUGZvbkm6XF6gxjEnlmuGrJXVbNuzT9qBBavbLwCsOGabYfZo0T0to5eqruptLy"
crossorigin="anonymous"
></script>
</body>
</html>