diff options
author | polo <ordipolo@gmx.fr> | 2025-06-11 12:17:17 +0200 |
---|---|---|
committer | polo <ordipolo@gmx.fr> | 2025-06-11 12:17:17 +0200 |
commit | ba4c1d898fbcaa118ab6ff81317ef32839293d66 (patch) | |
tree | 83a79c4b681e03d503eb46c46aff442648fe3523 /src | |
download | fullcalendar-ba4c1d898fbcaa118ab6ff81317ef32839293d66.zip |
front-end bien avancé
Diffstat (limited to 'src')
-rw-r--r-- | src/load-events.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/load-events.php b/src/load-events.php new file mode 100644 index 0000000..5fdc140 --- /dev/null +++ b/src/load-events.php | |||
@@ -0,0 +1,30 @@ | |||
1 | <?php | ||
2 | $events = [ | ||
3 | [ | ||
4 | 'id' => 1, | ||
5 | 'title' => 'Évènement1', | ||
6 | 'start' => '2025-06-03T05:00:00Z', // Z indique que l'heure est en UTC | ||
7 | 'end' => '2025-06-03T09:00:00Z', | ||
8 | 'allDay' => false, | ||
9 | 'color' => '#ffa500', // couleur hexa, éviter les couleurs CSS qui ne fonctionnent pas dans value="" en HTML | ||
10 | ], | ||
11 | [ | ||
12 | 'id' => 2, | ||
13 | 'title' => 'Évènement2', | ||
14 | 'start' => '2025-06-06T08:00:00Z', | ||
15 | 'end' => '2025-06-07T08:00:00Z', | ||
16 | 'allDay' => false, | ||
17 | 'color' => '#e01b24', | ||
18 | ], | ||
19 | [ | ||
20 | 'id' => 3, | ||
21 | 'title' => 'Évènement3', | ||
22 | 'start' => '2025-06-08', | ||
23 | 'end' => '2025-06-09', | ||
24 | 'allDay' => true, // pas d'heure | ||
25 | 'color' => '#008000', | ||
26 | ] | ||
27 | ]; | ||
28 | |||
29 | header('Content-Type: application/json'); | ||
30 | echo json_encode($events); | ||