From ba4c1d898fbcaa118ab6ff81317ef32839293d66 Mon Sep 17 00:00:00 2001 From: polo Date: Wed, 11 Jun 2025 12:17:17 +0200 Subject: =?UTF-8?q?front-end=20bien=20avanc=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/load-events.php | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/load-events.php (limited to 'src/load-events.php') 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, + 'title' => 'Évènement1', + 'start' => '2025-06-03T05:00:00Z', // Z indique que l'heure est en UTC + 'end' => '2025-06-03T09:00:00Z', + 'allDay' => false, + 'color' => '#ffa500', // couleur hexa, éviter les couleurs CSS qui ne fonctionnent pas dans value="" en HTML + ], + [ + 'id' => 2, + 'title' => 'Évènement2', + 'start' => '2025-06-06T08:00:00Z', + 'end' => '2025-06-07T08:00:00Z', + 'allDay' => false, + 'color' => '#e01b24', + ], + [ + 'id' => 3, + 'title' => 'Évènement3', + 'start' => '2025-06-08', + 'end' => '2025-06-09', + 'allDay' => true, // pas d'heure + 'color' => '#008000', + ] +]; + +header('Content-Type: application/json'); +echo json_encode($events); -- cgit v1.2.3