+
+ Équipe « = $team->getName() ?> » (= $team->getTrigram() ?>)
+
+
+ Lien de la vidéo (version = $version ?>) :
= $link ?>
+
+ getValidation() == 0) { ?>
-
- La vidéo a été " . ($video->getValidation() == 1 ? "acceptée" : "refusée") . ".
\n";
+ if ($video->getValidation() == 0) { ?>
+
+
a
+
+
">
+ La vidéo a été = $video->getValidation() == 1 ? "acceptée" : "refusée" ?>.
+
+ getValidation() != Video::ACCEPTED) {
- $last_validated_video = Video::getVideo(Reason::SOLUTION, $team, Video::ACCEPTED);
- if ($last_validated_video !== null) {
- $link = $last_validated_video->getLink();
- echo "\n
\nLien de la dernière vidéo validée de cette équipe :
$link\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 "
Questions posées par l'équipe " . $from->getName() . " (" . $from->getTrigram() . ") :
\n";
- for ($i = 0; $i < sizeof($from_questions); ++$i) {
- $question = $from_questions[$i];
- if ($question->getQuestion() == null)
- continue;
-
- echo "Question " . ($i + 1) . " : " . $question->getQuestion() . "
\n";
- if ($question->getAttachedFile() != null)
- echo "
Pièce jointe attachée : getAttachedFile() . "\">Télécharger\n";
- if ($question->getAnswer() != null)
- echo "Réponse apportée : " . $question->getAnswer() . "
\n";
- if ($question->getAttachedFileAnswer() != null)
- echo "
Pièce jointe attachée pour la réponse : getAttachedFileAnswer() . "\">Télécharger\n";
- }
- echo "
\n";
- if (Phase::getCurrentPhase() >= Phase::PHASE4) {
- $answer = Video::getVideo($from->getVideoTeamIds()[0] == $team->getId() ? Reason::ANSWER1 : Reason::ANSWER2, $from);
- $link = $answer->getLink();
- $version = $answer->getVersion();
- echo "
Vidéo de réponse :
\n";
- echo "Lien de la vidéo (version $version) :
$link";
+ if ($video->getValidation() != Video::ACCEPTED) {
+ $last_validated_video = Video::getVideo(Reason::SOLUTION, $team, Video::ACCEPTED);
+ if ($last_validated_video !== null) {
+ $link = $last_validated_video->getLink(); ?>
+
+ Lien de la vidéo validée de cette équipe (version = $version ?>) :
= $link ?>
+
+ getValidation() == 0) { ?>
-
- La vidéo a été " . ($answer->getValidation() == 1 ? "acceptée" : "refusée") . ".
\n";
+ if (Phase::getCurrentPhase() > Phase::PHASE1) {
+ /** @var Question[] $from_questions */
+ foreach (Question::getQuestionsTo($team) as $from_questions) {
+ $from = Team::fromId($from_questions[0]->getFrom());
+ echo "
Questions posées par l'équipe " . $from->getName() . " (" . $from->getTrigram() . ") :
\n";
+ for ($i = 0; $i < sizeof($from_questions); ++$i) {
+ $question = $from_questions[$i];
+ if ($question->getQuestion() == null)
+ continue;
- if ($answer->getValidation() != Video::ACCEPTED) {
- $last_validated_answer = Video::getVideo($from->getVideoTeamIds()[0] == $team->getId() ? Reason::ANSWER1 : Reason::ANSWER2, $team, Video::ACCEPTED);
- if ($last_validated_answer !== null) {
- $link = $last_validated_answer->getLink();
- echo "\n
\nLien de la dernière vidéo validée de cette équipe :
$link\n";
- displayVideo($link);
- }
+ echo "
\n";
+ echo "
Question " . ($i + 1) . " : " . $question->getQuestion() . "
\n";
+ if ($question->getAttachedFile() != null)
+ echo "
Pièce jointe attachée : getAttachedFile() . "\">Télécharger\n";
+ if ($question->getAnswer() != null)
+ echo "
Réponse apportée : " . $question->getAnswer() . "
\n";
+ if ($question->getAttachedFileAnswer() != null)
+ echo "
Pièce jointe attachée pour la réponse : getAttachedFileAnswer() . "\">Télécharger\n";
+ echo "
\n";
}
- }
- }
- }
- }
+ echo "
\n";
+ if (Phase::getCurrentPhase() >= Phase::PHASE4) {
+ $answer = Video::getVideo($from->getVideoTeamIds()[0] == $team->getId() ? Reason::ANSWER1 : Reason::ANSWER2, $from);
+ $link = $answer->getLink();
+ $version = $answer->getVersion();
+ echo "
Vidéo de réponse :
\n";
+ echo "Lien de la vidéo (version $version) :
$link";
+ displayVideo($link);
+
+ if ($answer->getValidation() == 0) { ?>
+
+ La vidéo a été " . ($answer->getValidation() == 1 ? "acceptée" : "refusée") . ".
\n";
+
+ if ($answer->getValidation() != Video::ACCEPTED) {
+ $last_validated_answer = Video::getVideo($from->getVideoTeamIds()[0] == $team->getId() ? Reason::ANSWER1 : Reason::ANSWER2, $team, Video::ACCEPTED);
+ if ($last_validated_answer !== null) {
+ $link = $last_validated_answer->getLink();
+ echo "\n
\nLien de la dernière vidéo validée de cette équipe :
$link\n";
+ displayVideo($link);
+ }
+ }
+ }
+ }
+ } ?>
+
+ \n";
}