2019-09-06 11:48:50 +00:00
|
|
|
<?php
|
2019-09-07 11:42:36 +00:00
|
|
|
require_once "header.php";
|
|
|
|
|
|
|
|
if (date("yyyy-mm-dd") < $tournament->getSolutionsDate()) {
|
2019-09-06 11:48:50 +00:00
|
|
|
echo "<h3>Il est trop tôt pour se préoccuper des notes de synthèse, attendez le tirage des poules.</h3>";
|
2019-09-07 11:42:36 +00:00
|
|
|
require_once "server_files/views/footer.php";
|
2019-09-06 11:48:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (isset($error_message)) {
|
|
|
|
if ($error_message !== false) {
|
|
|
|
echo "<h2>Erreur : " . $error_message . "</h2>";
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
echo "<h2>Le fichier a été correctement envoyé !</h2>";
|
|
|
|
}
|
|
|
|
}?>
|
|
|
|
|
2019-09-07 11:42:36 +00:00
|
|
|
<?php if (date("yyyy-mm-dd") < $tournament->getSynthesesDate()) { ?>
|
2019-09-06 11:48:50 +00:00
|
|
|
<form method="post" enctype="multipart/form-data">
|
|
|
|
<input type="hidden" name="MAX_FILE_SIZE" value="5000000" />
|
|
|
|
<table style="width: 100%;">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<label for="dest">Destination de la note de synthèse :</label>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<select style="width: 100%;" id="dest" name="dest">
|
|
|
|
<option value="opposant">Opposant</option>
|
|
|
|
<option value="rapporteur">Rapporteur</option>
|
|
|
|
</select>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<label for="file">Fichier :</label>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<input type="file" id="file" name="synthese" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="2">
|
2019-09-07 23:35:05 +00:00
|
|
|
<input style="width: 100%;" type="submit" name="send_synthesis" value="Envoyer" />
|
2019-09-06 11:48:50 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
<div style="padding: 20px"></div>
|
|
|
|
|
|
|
|
<h2>Notes de synthèse soumises :</h2>
|
|
|
|
|
|
|
|
<?php
|
2019-09-07 23:35:05 +00:00
|
|
|
/** @var Synthesis $synthesis */
|
|
|
|
foreach ($syntheses as $synthesis) {
|
|
|
|
$file_id = $synthesis->getFileId();
|
|
|
|
$dest = $synthesis->getDest();
|
|
|
|
$version = $synthesis->getVersion();
|
2019-09-08 20:19:11 +00:00
|
|
|
echo "Note de synthèse pour " . ($dest == DestType::OPPOSANT ? "l'opposant" : "le rapporteur") . " (version $version) : <a href=\"/file/$file_id\">Télécharger</a><br />";
|
2019-09-07 23:35:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if ($team->isSelectedForFinal()) { ?>
|
|
|
|
<hr/>
|
|
|
|
|
|
|
|
<h2>Notes de synthèse soumises pour la finale :</h2>
|
|
|
|
<?php
|
|
|
|
/** @var Synthesis $sol */
|
|
|
|
foreach ($syntheses_final as $synthesis) {
|
|
|
|
$file_id = $synthesis->getFileId();
|
|
|
|
$dest = $synthesis->getDest();
|
|
|
|
$version = $synthesis->getVersion();
|
2019-09-08 20:19:11 +00:00
|
|
|
echo "Note de synthèse pour " . ($dest == DestType::OPPOSANT ? "l'opposant" : "le rapporteur") . " (version $version) : <a href=\"/file/$file_id\">Télécharger</a><br />";
|
2019-09-07 23:35:05 +00:00
|
|
|
}
|
2019-09-06 11:48:50 +00:00
|
|
|
}
|
2019-09-07 11:42:36 +00:00
|
|
|
|
|
|
|
require_once "footer.php";
|