mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-07-04 09:32:17 +02:00
First week fixes
This commit is contained in:
@ -146,4 +146,39 @@ require_once "header.php";
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($team->getValidationStatus() == ValidationStatus::VALIDATED) { ?>
|
||||
<hr>
|
||||
<h2>Solutions à opposer/rapporter</h2>
|
||||
<div class="alert alert-warning">
|
||||
Modèle vierge de note de synthèse (<a data-turbolinks="false" href="Note de synthèse.pdf">PDF</a> -- <a data-turbolinks="false" href="Note de synthèse.tex">TEX</a>)
|
||||
</div>
|
||||
<?php
|
||||
if ($opposed_solution == null && $rapported_solution == null) { ?>
|
||||
<div class="alert alert-warning">
|
||||
Les solutions du tour 1 seront disponibles sur cette page peu après le tirage.
|
||||
</div>
|
||||
<?php } else if (date("Y-m-d H:i", true) < $tournament->getSolutionsDate2()) { ?>
|
||||
<div class="alert alert-warning">
|
||||
Les solutions du tour 2 pourront être téléchargées sur cette page à partir du <?= formatDate($tournament->getSolutionsDate2(), true) ?>.
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
foreach ([[$opposed_solution, DestType::OPPOSANT, 1], [$rapported_solution, DestType::RAPPORTEUR, 1],
|
||||
[$opposed_solution_2, DestType::OPPOSANT, 2], [$rapported_solution_2, DestType::RAPPORTEUR, 2]] as $arr) {
|
||||
$sol = $arr[0];
|
||||
$source = $arr[1];
|
||||
$round = $arr[2];
|
||||
if ($sol === null)
|
||||
continue;
|
||||
$file_id = $sol->getFileId();
|
||||
$problem = $sol->getProblem();
|
||||
$t = Team::fromId($sol->getTeamId());
|
||||
$trigram = $t->getTrigram();
|
||||
echo "<div class=\"alert alert-" . ($round == 2 && date("Y-m-d H:i") < $tournament->getSolutionsDate2() ? "danger" : "info") . "\"><strong>Problème $problem "
|
||||
. " de l'équipe $trigram " . ($source == DestType::OPPOSANT ? "opposé" : "rapporté") . ", tour $round</strong> : <a data-turbolinks=\"false\" href=\"/file/$file_id\">Télécharger</a></div>\n";
|
||||
}
|
||||
?>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<?php require_once "footer.php" ?>
|
Reference in New Issue
Block a user