This commit is contained in:
Baptiste Rebillard 2022-08-15 21:14:48 +02:00
parent 6362bf9fc3
commit 9b272f48f7

View file

@ -215,6 +215,8 @@ if(isset($_GET['planning']) AND !empty(['planning']))
//début download planning avec php2ics (doc ici => https://github.com/baptistereb/php2ics) //début download planning avec php2ics (doc ici => https://github.com/baptistereb/php2ics)
include("assets/script/php2ics.php"); include("assets/script/php2ics.php");
if(isset($_POST['download_planning'])) {
$cal = new php2ics("accueil_insa", "voila les loustiks"); $cal = new php2ics("accueil_insa", "voila les loustiks");
for($day = 1; $day <= 7; $day++) { //on tourne sur les 7 jours for($day = 1; $day <= 7; $day++) { //on tourne sur les 7 jours
@ -259,8 +261,6 @@ if(isset($_GET['planning']) AND !empty(['planning']))
} }
$cal->End(); $cal->End();
//echo $cal->GetICS();
if(isset($_POST['download_planning'])) {
$cal->DownloadICS("planning_semaine_accueil_insa_toulouse"); $cal->DownloadICS("planning_semaine_accueil_insa_toulouse");
} }
//fin download planning //fin download planning