mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2025-02-11 11:01:17 +00:00
Affichage pour les équipes qui n'ont pas de réponse à fournir
This commit is contained in:
parent
0dd0f8461b
commit
72f8637fb2
@ -46,6 +46,14 @@ for ($i = 0; $i < 2; ++$i) {
|
||||
|
||||
<h5>Questions échangées :</h5>
|
||||
<?php
|
||||
|
||||
if (!strcmp($questions[1]->getQuestion(), Question::DEFAULT_QUESTIONS[0])
|
||||
&& !strcmp($questions[2]->getQuestion(), Question::DEFAULT_QUESTIONS[1])
|
||||
&& !strcmp($questions[3]->getQuestion(), Question::DEFAULT_QUESTIONS[2])) { ?>
|
||||
<div class="alert alert-danger">
|
||||
L'équipe n'a malheureusement transmis aucune question. Vous n'avez donc pas de réponse à donner.
|
||||
</div>
|
||||
<?php } else {
|
||||
for ($j = 0; $j <= 6; ++$j) {
|
||||
/** @var Question $question */
|
||||
$question = $questions[$j];
|
||||
@ -118,5 +126,6 @@ for ($i = 0; $i < 2; ++$i) {
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
require_once "footer.php";
|
@ -34,6 +34,14 @@ foreach ($questions as $questions_team) {
|
||||
$from = Team::fromId($questions_team[0]->getFrom());
|
||||
$remark = $questions_team[0];
|
||||
echo "<h4>Questions de l'équipe " . $from->getName() . " (" . $from->getTrigram() . ") :</h4>\n";
|
||||
if (!strcmp($questions_team[1]->getQuestion(), Question::DEFAULT_QUESTIONS[0])
|
||||
&& !strcmp($questions_team[2]->getQuestion(), Question::DEFAULT_QUESTIONS[1])
|
||||
&& !strcmp($questions_team[3]->getQuestion(), Question::DEFAULT_QUESTIONS[2])) { ?>
|
||||
<div class="alert alert-danger">
|
||||
L'équipe n'a malheureusement transmis aucune question. Vous n'avez donc pas de réponse à donner.
|
||||
</div>
|
||||
<?php }
|
||||
else {
|
||||
?>
|
||||
<form method="POST" enctype="multipart/form-data">
|
||||
<input type="hidden" name="from" value="<?= $from->getTrigram() ?>"/>
|
||||
@ -79,6 +87,7 @@ foreach ($questions as $questions_team) {
|
||||
</form>
|
||||
<hr />
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
||||
<?php
|
||||
require_once "footer.php";
|
@ -104,8 +104,8 @@ for ($problem = 1; $problem <= 4; ++$problem) { ?>
|
||||
if (!strcmp($from_questions[1]->getQuestion(), Question::DEFAULT_QUESTIONS[0])
|
||||
&& !strcmp($from_questions[2]->getQuestion(), Question::DEFAULT_QUESTIONS[1])
|
||||
&& !strcmp($from_questions[3]->getQuestion(), Question::DEFAULT_QUESTIONS[2])) { ?>
|
||||
<div class="alert alert-warning">
|
||||
Cette équipe n'a pas encore envoyé ses questions.
|
||||
<div class="alert alert-<?= Phase::getCurrentPhase() == Phase::PHASE2 ? "warning" : "danger" ?>">
|
||||
Cette équipe n'a pas <?= Phase::getCurrentPhase() == Phase::PHASE2 ? "encore" : "" ?> envoyé ses questions.
|
||||
</div>
|
||||
<?php } else {
|
||||
for ($i = 0; $i < sizeof($from_questions); ++$i) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user