mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-06-25 06:20:36 +02:00
Redesign du site
This commit is contained in:
@ -1,52 +1,38 @@
|
||||
<?php
|
||||
require_once "header.php";
|
||||
|
||||
|
||||
if (date("yyyy-mm-dd") < $tournament->getSolutionsDate()) {
|
||||
echo "<h3>Il est trop tôt pour se préoccuper des notes de synthèse, attendez le tirage des poules.</h3>";
|
||||
echo "<div class=\"alert alert-danger\"><h4>Il est trop tôt pour se préoccuper des notes de synthèse, attendez le tirage des poules.</h4></div>";
|
||||
require_once "server_files/views/footer.php";
|
||||
}
|
||||
|
||||
if (isset($error_message)) {
|
||||
if ($error_message !== false) {
|
||||
echo "<h2>Erreur : " . $error_message . "</h2>";
|
||||
}
|
||||
else {
|
||||
echo "<h2>Le fichier a été correctement envoyé !</h2>";
|
||||
}
|
||||
}?>
|
||||
if (isset($save_synthesis) && !$has_error) { ?>
|
||||
<div class="alert alert-success">
|
||||
Le fichier a été correctement envoyé !
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if (date("yyyy-mm-dd") < $tournament->getSynthesesDate()) { ?>
|
||||
<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">
|
||||
<input style="width: 100%;" type="submit" name="send_synthesis" value="Envoyer" />
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="MAX_FILE_SIZE" value="5000000"/>
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-6">
|
||||
<label for="dest">Destination de la note de synthèse :</label>
|
||||
<select class="custom-select" id="dest" name="dest">
|
||||
<option value="opposant">Opposant</option>
|
||||
<option value="rapporteur">Rapporteur</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-6">
|
||||
<label for="file">Fichier :</label>
|
||||
<input class="form-control" type="file" id="file" name="synthese" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input class="btn btn-lg btn-primary btn-block" type="submit" name="send_synthesis" value="Envoyer" />
|
||||
</form>
|
||||
<?php } ?>
|
||||
|
||||
<div style="padding: 20px"></div>
|
||||
@ -59,7 +45,7 @@ foreach ($syntheses as $synthesis) {
|
||||
$file_id = $synthesis->getFileId();
|
||||
$dest = $synthesis->getDest();
|
||||
$version = $synthesis->getVersion();
|
||||
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 />";
|
||||
echo "<div class=\"alert alert-info\"><strong>Note de synthèse pour " . ($dest == DestType::OPPOSANT ? "l'opposant" : "le rapporteur") . "</strong> (version $version) : <a href=\"/file/$file_id\">Télécharger</a></div>";
|
||||
}
|
||||
|
||||
if ($team->isSelectedForFinal()) { ?>
|
||||
@ -72,7 +58,7 @@ if ($team->isSelectedForFinal()) { ?>
|
||||
$file_id = $synthesis->getFileId();
|
||||
$dest = $synthesis->getDest();
|
||||
$version = $synthesis->getVersion();
|
||||
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 />";
|
||||
echo "<div class=\"alert alert-info\"><strong>Note de synthèse pour " . ($dest == DestType::OPPOSANT ? "l'opposant" : "le rapporteur") . "</strong> (version $version) : <a href=\"/file/$file_id\">Télécharger</a></div>";
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user