forked from vergnet/site-accueil-insa
patch
This commit is contained in:
parent
6362bf9fc3
commit
9b272f48f7
1 changed files with 39 additions and 39 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue