-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.php
More file actions
100 lines (87 loc) · 3.67 KB
/
index.php
File metadata and controls
100 lines (87 loc) · 3.67 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<?php include_once "dashboard.php"; ?>
<div class="center">
<div class="profile">
<table>
<tr>
<td>
<div class="title-header">CREATE BOOKINGS</div>
</td>
</tr>
</table>
<div id="target">
</div>
<script>
// Get reference to the target div
const targetDiv = document.getElementById('target');
// Create an iframe element
const iframe = document.createElement('iframe');
// Set attributes for the iframe
iframe.src = 'https://schedule.nylas.com/justbfitness-booking';
iframe.width = '10000px'; // Set width as needed
iframe.height = '1000px'; // Set height as needed
iframe.frameBorder = '0'; // Optional: remove border
// Append the iframe to the target div
targetDiv.appendChild(iframe);
</script>
</div>
</div>
<!--
<div class="center">
<div class="profile">
<table>
<tr>
<td>
<div class="title-header">MY BOOKINGS</div>
</td>
<td>
<form method="post" action="?controller=booking&action=create">
<button type="submit" class="default-button" name="book">Book Now</button>
</form>
</td>
</tr>
</table>
<?php
/*
if (isset($data) && is_array($data) && !empty($data)) {
echo '<table>
<tr>
<th scope="col"><label>BOOKING ID</label></th>
<th scope="col"><label>APPOINTMENT DATE</label></th>
<th scope="col"><label>SESSION TIME</label></th>
<th scope="col"><label>RESERVATION DATE</label></th>
<th scope="col"><label>OPERATIONS</label></th>
</tr>';
foreach ($data as $booking) {
echo '
<tr>
<td class="table-content"><label>' . $booking->booking_id . '</label></td>
<td class="table-content"><label>' . $booking->appointment_date . '</label></td>
<td class="table-content"><label>' . $booking->session_time . '</label></td>
<td class="table-content"><label>' . $booking->booking_time . '</label></td>
<td class="table-content">
<form method="post" action="?controller=booking&action=cancel">
<input type="hidden" name="booking_id" value="' . $booking->booking_id . '">
<button type="submit" class="delete-button" name="cancel">Cancel Appointment</button>
</form>
</td>
</tr>';
}
echo '</table>';
} else {
echo '<div class="null-box"><div class="grey-label">No bookings have been made yet. Please click \'Book Now\' to make a reservation.</div></div>';
}
*/
?>
</div>
</div>
-->
<?php include_once "footer.php"; ?>
</body>
</html>