Skip to content
This repository was archived by the owner on Oct 17, 2021. It is now read-only.

Commit 8992054

Browse files
authored
Merge pull request #7 from waldronmatt/mw-feature/json-updates
Mw feature/json updates
2 parents b0f8293 + ffdb76d commit 8992054

File tree

3 files changed

+319
-279
lines changed

3 files changed

+319
-279
lines changed

README.md

Lines changed: 76 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,101 @@
1-
# fullcalendar-BS4-PHP-MySQL-JSON
2-
FullCalendar 3 integration with boostrap4, php, mysql / bootstrap4, php, json
1+
# FullCalendar-BS4-PHP-MySQL-JSON
2+
3+
A drag & drop event calendar with data permanence.
4+
5+
![FullCalendar with data permanence](img/main.png)
36

47
## Purpose
58

6-
Updates and expands on jamelbaz's FullCalendar-BS3-PHP-MySQL repository.
9+
MySQL/JSON integration with fullcalendar
710

8-
* Supports event scheduling using JSON / MySQL event scheduling updated
9-
* FullCalendar updated from 2.6.1 to 3.9.0
10-
* Clickable calendar date numbers
11-
* Added the calendar list view
12-
* Includes business hours and now indicator
13-
* Bootstrap updated from BS3 to BS4
14-
* Event title and description display on hover integration (popper.js)
15-
* Added event description field
16-
* Revamped delete button
17-
* Calendar resizing for optimal screen real estate
18-
* Week and Day views set to display times 8:00AM to 4:30PM without scroll
11+
* FC updated from v2.6.1 to v3.9.0
12+
* BS3 to BS4 update
13+
* Event title/description hover added
14+
* Repeating events (NEW!)
15+
* Weekday scheduling supported!
16+
* Recurring events, all-day events, multi-day events supported
17+
* Recurrence editing restricted to delete only
18+
* Available for JSON
19+
* Event scheduling
20+
* JSON scheduling added
21+
* Description field added for MySQL/JSON
1922

2023
## Getting Started
2124

22-
* Go to your MySQL via localhost, create a table called "calendar", and create the tables found in calendar.sql
23-
24-
* Open bdd.php and enter your database password
25+
MySQL
2526

26-
* Go to localhost and navigate to the project directory
27+
1. Copy files to localhost
28+
2. Create a table in DB called "calendar", and create the tables found in calendar.sql
29+
3. Open bdd.php and enter DB credentials
30+
4. Open index.php
2731

28-
* index.php enables event scheduling integration with PHP and MySQL
32+
JSON
2933

30-
* index-json.php and associated files enable event scheduling integration with PHP and JSON
34+
1. Copy files to localhost
35+
2. Open index-json.php
3136

3237
# Features
3338

34-
* Add events by clicking and dragging on the calendar
35-
36-
* Edit/delete events by double clicking them
37-
38-
* Supports event title, description, start date/time, end date/time, and color attributes
39-
40-
* Utilizes popper.js to show event title and description on hover
39+
* Repeating events (NEW!)
40+
* Weekday scheduling supported!
41+
* Recurring events, all-day events, multi-day events supported
42+
* Recurrence editing restricted to delete only
43+
* Available for JSON
44+
* Event scheduling
45+
* JSON scheduling added
46+
* Description field added for JSON/MySQL
47+
* FC updated from v2.6.1 to v3.9.0
48+
* BS3 to BS4 update
49+
* Event title/description onhover added
50+
51+
# Usage
52+
53+
JSON Object Event
54+
55+
```
56+
[{"id":4,
57+
"rid":4,
58+
"repeat":"no",
59+
"title":"Meeting",
60+
"description":"some text for meeting",
61+
"start":"2019-01-11 10:30:00",
62+
"end":"2019-01-11 12:30:00",
63+
"color":"#000"
64+
}]
65+
```
66+
67+
MySQL Event Schema
68+
69+
```
70+
('id', 'title', 'description', 'color', 'start', 'end')
71+
(5, 'Meeting', 'some text for meeting', '#000', '2019-01-11 10:30:00', '2019-01-11 12:30:00')
72+
```
73+
74+
* rid = recurrence id
75+
* repeat = repeat status
4176

4277
## Additional Readings & Resources
4378

4479
* FullCalendar documentation: https://fullcalendar.io/docs#toc
80+
* FullCalendar repo: https://github.com/fullcalendar/fullcalendar
81+
* FullCalendar with MySQL event scheduling: https://github.com/jamelbaz/FullCalendar-BS3-PHP-MySQL
4582

4683
## Built With
4784

48-
* Bootstrap
49-
* PHP5
50-
* MySQL
51-
* JSON / jQuery / JavaScript
52-
* HTML / CSS
85+
* FC v3.9.0
86+
* BS4
87+
* PHP5/7
88+
* JSON/MySQL
89+
* JavaScript/jQuery
90+
* HTML/CSS
5391

5492
## Contributing
5593

56-
When contributing to this repository, you may fork and submit a pull request. Add a description of what you are doing and I'll review it.
94+
Submit a PR and I'll review. Look for untagged issues to help with.
5795

5896
## Versioning
5997

60-
Version 1.0.0
98+
Version 1.1.0
6199

62100
## Authors
63101

@@ -71,5 +109,7 @@ This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md
71109

72110
## Acknowledgments
73111

74-
* Project forked from jamelbaz's repository: https://github.com/jamelbaz/FullCalendar-BS3-PHP-MySQL
75-
* JSON blog code used in the creation of event php forms: https://www.taniarascia.com/how-to-use-json-data-with-php-or-javascript/
112+
* Repo built on Adam Shaw's FC: https://github.com/fullcalendar/fullcalendar
113+
* Repo forked from jamelbaz's repository: https://github.com/jamelbaz/FullCalendar-BS3-PHP-MySQL
114+
* Code used for JSON event scheduling: https://www.taniarascia.com/how-to-use-json-data-with-php-or-javascript/
115+
* Code used for event scheduling recurrences: https://stackoverflow.com/questions/7061802/php-function-for-get-all-mondays-within-date-range

img/main.png

81.1 KB
Loading

0 commit comments

Comments
 (0)