-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.php
69 lines (61 loc) · 1.85 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>BrightSmile Family Dentistry</title>
<link href="styles.css" rel="stylesheet" />
</head>
<body>
<header>
<div class="container">
<div id="branding">
<h1>BrightSmile Family Dentistry</h1>
</div>
<nav>
<ul>
<li class="current"><a href="index.php">Home</a></li>
<li><a href="services.php">Services</a></li>
<?php
// Check if user is logged in
session_start();
if (isset($_SESSION["user_id"])) {
// logged in, display "My Appointments" and "Logout"
echo '<li><a href="my-appointments.php">My Appointments</a></li>';
echo '<li><a href="logout.php">Logout</a></li>';
} else {
// Unot logged in, display "Login" and "Register"
echo '<li><a href="login.php">Login</a></li>';
echo '<li><a href="register.php">Register</a></li>';
}
?>
</ul>
</nav>
</div>
</header>
<div class="container">
<section id="main">
<h1>Welcome to BrightSmile Family Dentistry</h1>
</section>
</div>
<div id="calendar"></div>
<script src="fullcalendar-6.1.9/dist/index.global.min.js"></script>
<link href="styles.css" rel="stylesheet" />
<script>
document.addEventListener('DOMContentLoaded', function () {
var calendarEl = document.getElementById('calendar');
var calendar = new FullCalendar.Calendar(calendarEl, {
editable: true,
selectable: true,
businessHours: true,
dayMaxEvents: true,
aspectRatio: 3, // Adjust this value as needed
events: [
// Your events here
],
});
calendar.render();
});
</script>
</body>
</html>