2019-09-12 13:35:16 +00:00
|
|
|
<?php require_once "header.php"; ?>
|
|
|
|
|
2019-09-18 22:46:32 +00:00
|
|
|
<?php if (isset($_GET["edit"])) { ?>
|
|
|
|
<form method="post">
|
|
|
|
<table style="width: 100%;">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td style="width: 30%;">
|
|
|
|
<label for="date_inscription">Fin des inscriptions :</label>
|
|
|
|
</td>
|
|
|
|
<td style="width: 70%;">
|
|
|
|
<input style="width: 49%;" type="date" id="date_inscription" name="date_inscription"
|
|
|
|
value="<?= substr($CONFIG->getInscriptionDate(), 0, 10) ?>"/>
|
|
|
|
<input style="width: 49%;" type="time" id="time_inscription" name="time_inscription"
|
|
|
|
value="<?= substr($CONFIG->getInscriptionDate(), 11, 5) ?>"/>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td style="width: 30%;">
|
|
|
|
<label for="date_start_phase1">Début de la phase 1 :</label>
|
|
|
|
</td>
|
|
|
|
<td style="width: 70%;">
|
|
|
|
<input style="width: 49%;" type="date" id="date_start_phase1" name="date_start_phase1"
|
|
|
|
value="<?= substr($CONFIG->getStartPhase1Date(), 0, 10) ?>"/>
|
|
|
|
<input style="width: 49%;" type="time" id="time_start_phase1" name="time_start_phase1"
|
|
|
|
value="<?= substr($CONFIG->getStartPhase1Date(), 11, 5) ?>"/>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td style="width: 30%;">
|
|
|
|
<label for="date_end_phase1">Fin de la phase 1 :</label>
|
|
|
|
</td>
|
|
|
|
<td style="width: 70%;">
|
|
|
|
<input style="width: 49%;" type="date" id="date_end_phase1" name="date_end_phase1"
|
|
|
|
value="<?= substr($CONFIG->getEndPhase1Date(), 0, 10) ?>"/>
|
|
|
|
<input style="width: 49%;" type="time" id="time_end_phase1" name="time_end_phase1"
|
|
|
|
value="<?= substr($CONFIG->getEndPhase1Date(), 11, 5) ?>"/>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td style="width: 30%;">
|
|
|
|
<label for="date_start_phase1">Début de la phase 2 :</label>
|
|
|
|
</td>
|
|
|
|
<td style="width: 70%;">
|
|
|
|
<input style="width: 49%;" type="date" id="date_start_phase2" name="date_start_phase2"
|
|
|
|
value="<?= substr($CONFIG->getStartPhase2Date(), 0, 10) ?>"/>
|
|
|
|
<input style="width: 49%;" type="time" id="time_start_phase2" name="time_start_phase2"
|
|
|
|
value="<?= substr($CONFIG->getStartPhase2Date(), 11, 5) ?>"/>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td style="width: 30%;">
|
|
|
|
<label for="date_end_phase1">Fin de la phase 2 :</label>
|
|
|
|
</td>
|
|
|
|
<td style="width: 70%;">
|
|
|
|
<input style="width: 49%;" type="date" id="date_end_phase2" name="date_end_phase2"
|
|
|
|
value="<?= substr($CONFIG->getEndPhase2Date(), 0, 10) ?>"/>
|
|
|
|
<input style="width: 49%;" type="time" id="time_end_phase2" name="time_end_phase2"
|
|
|
|
value="<?= substr($CONFIG->getEndPhase2Date(), 11, 5) ?>"/>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td style="width: 30%;">
|
|
|
|
<label for="date_start_phase1">Début de la phase 3 :</label>
|
|
|
|
</td>
|
|
|
|
<td style="width: 70%;">
|
|
|
|
<input style="width: 49%;" type="date" id="date_start_phase3" name="date_start_phase3"
|
|
|
|
value="<?= substr($CONFIG->getStartPhase3Date(), 0, 10) ?>"/>
|
|
|
|
<input style="width: 49%;" type="time" id="time_start_phase3" name="time_start_phase3"
|
|
|
|
value="<?= substr($CONFIG->getStartPhase3Date(), 11, 5) ?>"/>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td style="width: 30%;">
|
|
|
|
<label for="date_end_phase1">Fin de la phase 3 :</label>
|
|
|
|
</td>
|
|
|
|
<td style="width: 70%;">
|
|
|
|
<input style="width: 49%;" type="date" id="date_end_phase3" name="date_end_phase3"
|
|
|
|
value="<?= substr($CONFIG->getEndPhase3Date(), 0, 10) ?>"/>
|
|
|
|
<input style="width: 49%;" type="time" id="time_end_phase3" name="time_end_phase3"
|
|
|
|
value="<?= substr($CONFIG->getEndPhase3Date(), 11, 5) ?>"/>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td style="width: 30%;">
|
|
|
|
<label for="date_start_phase1">Début de la phase 4 :</label>
|
|
|
|
</td>
|
|
|
|
<td style="width: 70%;">
|
|
|
|
<input style="width: 49%;" type="date" id="date_start_phase4" name="date_start_phase4"
|
|
|
|
value="<?= substr($CONFIG->getStartPhase4Date(), 0, 10) ?>"/>
|
|
|
|
<input style="width: 49%;" type="time" id="time_start_phase4" name="time_start_phase4"
|
|
|
|
value="<?= substr($CONFIG->getStartPhase4Date(), 11, 5) ?>"/>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td style="width: 30%;">
|
|
|
|
<label for="date_end_phase1">Fin de la phase 4 :</label>
|
|
|
|
</td>
|
|
|
|
<td style="width: 70%;">
|
|
|
|
<input style="width: 49%;" type="date" id="date_end_phase4" name="date_end_phase4"
|
|
|
|
value="<?= substr($CONFIG->getEndPhase4Date(), 0, 10) ?>"/>
|
|
|
|
<input style="width: 49%;" type="time" id="time_end_phase4" name="time_end_phase4"
|
|
|
|
value="<?= substr($CONFIG->getEndPhase4Date(), 11, 5) ?>"/>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="2" style="width: 100%;">
|
|
|
|
<input style="width: 100%;" type="submit" name="update_calendar"
|
|
|
|
value="Mettre à jour le calendrier"/>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
<?php } else { ?><h2>Calendrier</h2>
|
2019-09-12 13:35:16 +00:00
|
|
|
|
2019-09-18 22:46:32 +00:00
|
|
|
<?= Phase::getTranslatedName(Phase::INSCRIPTION) ?> :
|
|
|
|
<strong><?= formatDate($CONFIG->getInscriptionDate(), true) ?></strong><br/>
|
|
|
|
<?= Phase::getTranslatedName(Phase::PHASE1) ?> : Du
|
|
|
|
<strong><?= formatDate($CONFIG->getStartPhase1Date(), true) ?></strong> au
|
|
|
|
<strong><?= formatDate($CONFIG->getEndPhase1Date(), true) ?></strong><br/>
|
|
|
|
<?= Phase::getTranslatedName(Phase::PHASE2) ?> : Du
|
|
|
|
<strong><?= formatDate($CONFIG->getStartPhase2Date(), true) ?></strong> au
|
|
|
|
<strong><?= formatDate($CONFIG->getEndPhase2Date(), true) ?></strong><br/>
|
|
|
|
<?= Phase::getTranslatedName(Phase::PHASE3) ?> : Du
|
|
|
|
<strong><?= formatDate($CONFIG->getStartPhase3Date(), true) ?></strong> au
|
|
|
|
<strong><?= formatDate($CONFIG->getEndPhase3Date(), true) ?></strong><br/>
|
|
|
|
<?= Phase::getTranslatedName(Phase::PHASE4) ?> : Du
|
|
|
|
<strong><?= formatDate($CONFIG->getStartPhase4Date(), true) ?></strong> au
|
|
|
|
<strong><?= formatDate($CONFIG->getEndPhase4Date(), true) ?></strong><br/>
|
|
|
|
<br/>
|
|
|
|
Phase actuelle : <strong><?= Phase::getTranslatedName(Phase::getCurrentPhase()) ?></strong><br/>
|
|
|
|
|
|
|
|
<?php if ($_SESSION["role"] == Role::ADMIN) { ?>
|
2019-09-23 22:16:50 +00:00
|
|
|
<a href="/calendrier/modifier">Modifier le calendrier</a>
|
2019-09-18 22:46:32 +00:00
|
|
|
<?php }
|
|
|
|
}
|
|
|
|
|
|
|
|
require_once "footer.php";
|