diff --git a/add_calendar_event_modal.php b/add_calendar_event_modal.php
index 42a7c520..4e8e6815 100644
--- a/add_calendar_event_modal.php
+++ b/add_calendar_event_modal.php
@@ -64,7 +64,7 @@
diff --git a/calendar_events.php b/calendar_events.php
index 566ff7e2..901c2200 100644
--- a/calendar_events.php
+++ b/calendar_events.php
@@ -6,95 +6,9 @@ if(isset($_GET['calendar_id'])){
$calendar_selected_id = intval($_GET['calendar_id']);
}
-//Get Calendar list for the select box
-$sql_calendars = mysqli_query($mysqli,"SELECT * FROM calendars ORDER BY calendar_name DESC");
-
-$sql = mysqli_query($mysqli,"SELECT * FROM calendars, calendar_events WHERE calendars.calendar_id = calendar_events.calendar_id AND calendar_events.calendar_id LIKE '%$calendar_selected_id%' ORDER BY calendar_event_id DESC");
-
?>
-
-
-
-
-
-
-
-
-
-
-
-
-
- | Date |
- Times |
- Title |
- Calendar |
- Actions |
-
-
-
-
-
- |
- - |
- |
- |
-
-
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
+
@@ -108,25 +22,36 @@ $sql = mysqli_query($mysqli,"SELECT * FROM calendars, calendar_events WHERE cale
var calendar = new FullCalendar.Calendar(calendarEl, {
plugins: [ 'interaction', 'dayGrid', 'timeGrid', 'list' ],
defaultView: 'dayGridMonth',
+ customButtons: {
+ myCustomButton: {
+ text: 'New',
+ click: function() {
+ $("#addCalendarEventModal").modal("show");
+ }
+ }
+ },
header: {
left: 'prev,next today',
center: 'title',
- right: 'dayGridMonth,timeGridWeek,timeGridDay,listMonth'
+ right: 'dayGridMonth,timeGridWeek,timeGridDay,listMonth myCustomButton'
},
events: [
- ]
+ ],
+ eventClick: function(calEvent, jsEvent, view, resourceObj) {
+ $("#addCalendarEventModal").modal("show");
+ }
});
calendar.render();
diff --git a/calendar_events_w_side.php b/calendar_events_w_side.php
new file mode 100644
index 00000000..72881f0b
--- /dev/null
+++ b/calendar_events_w_side.php
@@ -0,0 +1,86 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/dashboard.php b/dashboard.php
index 7d7b5cd2..e7953cc0 100644
--- a/dashboard.php
+++ b/dashboard.php
@@ -2,7 +2,6 @@
-
+
diff --git a/edit_calendar_event_modal.php b/edit_calendar_event_modal.php
index ac5e5e34..4d6b0e23 100644
--- a/edit_calendar_event_modal.php
+++ b/edit_calendar_event_modal.php
@@ -1,14 +1,14 @@
-
diff --git a/footer.php b/footer.php
index 457871f2..e8043321 100644
--- a/footer.php
+++ b/footer.php
@@ -31,6 +31,7 @@
+
diff --git a/guest_footer.php b/guest_footer.php
new file mode 100644
index 00000000..782c8b0d
--- /dev/null
+++ b/guest_footer.php
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+