mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2025-06-25 11:00:29 +02:00
Phase 2 : questions (en cours)
This commit is contained in:
@ -60,6 +60,9 @@
|
||||
case Phase::PHASE1: ?>
|
||||
<li><a href="<?= $URL_BASE ?>/envoyer-video-1">Envoyer ma vidéo (phase 1)</a></li>
|
||||
<?php break;
|
||||
case Phase::PHASE2: ?>
|
||||
<li><a href="<?= $URL_BASE ?>/poser-questions-2">Poser des questions (phase 2)</a></li>
|
||||
<?php break;
|
||||
}
|
||||
} ?>
|
||||
<?php } ?>
|
||||
|
37
server_files/views/poser_questions.php
Normal file
37
server_files/views/poser_questions.php
Normal file
@ -0,0 +1,37 @@
|
||||
<?php
|
||||
require_once "header.php";
|
||||
|
||||
for ($i = 0; $i < 2; ++$i) {
|
||||
$receiver = $receivers[$i];
|
||||
$video = $videos[$i]; ?>
|
||||
<h2>Questions pour l'équipe <?= $receiver->getName() ?> (<?= $receiver->getTrigram() ?>) :</h2>
|
||||
Lien de la vidéo : <a href="<?= $video->getLink() ?>"><?= $video->getLink() ?></a><br/>
|
||||
<?php displayVideo($video->getLink()) ?>
|
||||
<br/>
|
||||
<form method="POST">
|
||||
<input type="hidden" name="to" value="<?= $receiver->getTrigram() ?>"/>
|
||||
<table style="width: 100%;">
|
||||
<tbody>
|
||||
<?php
|
||||
for ($j = 0; $j < 6; ++$j) { ?>
|
||||
<tr>
|
||||
<td style="width: 30%;">
|
||||
<label for="question_<?= $j + 1 ?>">Question <?= $j + 1 ?> :</label>
|
||||
</td>
|
||||
<td style="width: 70%;">
|
||||
<textarea style="width: 100%;" id="question_<?= $j + 1 ?>" name="question_<?= $j + 1 ?>"><?= $questions[$i][$j]->getQuestion() ?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<input style="width: 100%;" type="submit" name="give_questions" value="Poser les questions" />
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
<hr/>
|
||||
<?php }
|
||||
|
||||
require_once "footer.php";
|
Reference in New Issue
Block a user