1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-06-25 12:17:23 +02:00

Phase 2 : envoi des questions

This commit is contained in:
galaxyoyo
2019-09-21 14:51:58 +02:00
parent 81acf09fbf
commit 0885141db5
3 changed files with 43 additions and 1 deletions

View File

@ -30,6 +30,24 @@ for ($problem = 1; $problem <= 4; ++$problem) {
echo "\nLien de la dernière vidéo validée de cette équipe : <a href=\"$link\">$link</a><br />\n";
displayVideo($link);
}
if (Phase::getCurrentPhase() > Phase::PHASE1) {
/** @var Question[] $from_questions */
foreach (Question::getQuestionsTo($team) as $from_questions) {
$from = Team::fromId($from_questions[0]->getFrom());
echo "<hr />\n<h5>Questions posées par l'équipe " . $from->getName() . " (" . $from->getTrigram() . ") :</h5>\n";
for ($i = 0; $i < sizeof($from_questions); ++$i) {
$question = $from_questions[$i];
if ($question->getQuestion() == null)
continue;
echo "Question " . ($i + 1) . " : " . $question->getQuestion() . "<br />\n";
if ($question->getAttachedFile() != null) {
echo "<em>Pièce jointe attachée :</em> <a href=\"$URL_BASE/file/" . $question->getAttachedFile() . "\">Télécharger</a><br />\n";
}
}
}
}
}
echo "<hr />\n";
}