2019-09-20 12:57:06 +00:00
|
|
|
<?php
|
|
|
|
require_once "header.php";
|
2019-09-21 12:51:58 +00:00
|
|
|
?>
|
2019-09-20 12:57:06 +00:00
|
|
|
|
2019-09-21 12:51:58 +00:00
|
|
|
<h1>Veuillez toujours enregistrer votre travail ailleurs que sur la plateforme !</h1>
|
|
|
|
<hr />
|
|
|
|
|
|
|
|
<?php
|
2019-09-20 12:57:06 +00:00
|
|
|
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/>
|
2019-09-21 11:37:48 +00:00
|
|
|
<form method="POST" enctype="multipart/form-data">
|
2019-09-20 12:57:06 +00:00
|
|
|
<input type="hidden" name="to" value="<?= $receiver->getTrigram() ?>"/>
|
2019-09-24 21:44:38 +00:00
|
|
|
<table >
|
2019-09-20 12:57:06 +00:00
|
|
|
<tbody>
|
|
|
|
<?php
|
2019-09-21 11:37:48 +00:00
|
|
|
for ($j = 0; $j < 6; ++$j) {
|
|
|
|
$question = $questions[$i][$j]; ?>
|
2019-09-20 12:57:06 +00:00
|
|
|
<tr>
|
|
|
|
<td style="width: 30%;">
|
2019-09-21 11:37:48 +00:00
|
|
|
<label for="question_<?= $j + 1 ?>">Question <?= $j + 1 ?> <?= $j >= 3 ? "(<em>facultatif</em>)" : "" ?> :</label>
|
2019-09-20 12:57:06 +00:00
|
|
|
</td>
|
|
|
|
<td style="width: 70%;">
|
2019-09-24 21:44:38 +00:00
|
|
|
<textarea id="question_<?= $j + 1 ?>" name="question_<?= $j + 1 ?>"><?= $question->getQuestion() ?></textarea>
|
2019-09-20 12:57:06 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
2019-09-21 11:37:48 +00:00
|
|
|
<?php
|
|
|
|
if ($question->getAttachedFile() != null) { ?>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
Pièce jointe :
|
|
|
|
</td>
|
|
|
|
<td>
|
2019-09-23 22:16:50 +00:00
|
|
|
<a href=/file/<?= $question->getAttachedFile() ?>">Télécharger</a>
|
2019-09-21 11:37:48 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<?php } ?>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<label for="file_<?= $j + 1 ?>">Ajouter une pièce jointe (<em>facultatif</em>) :</label>
|
|
|
|
</td>
|
|
|
|
<td>
|
2019-09-24 21:44:38 +00:00
|
|
|
<input type="file" name="file_<?= $j + 1 ?>" id="file_<?= $j + 1 ?>" />
|
2019-09-21 11:37:48 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
2019-09-20 12:57:06 +00:00
|
|
|
<?php } ?>
|
2019-09-21 11:37:48 +00:00
|
|
|
<tr>
|
|
|
|
<td style="text-align: center" colspan="2">
|
|
|
|
<input type="checkbox" name="no_drawing" id="no_drawing" /> <label for="no_drawing">Je confirme que mes pièces jointes ne contiennent pas de texte.</label>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2019-09-20 12:57:06 +00:00
|
|
|
<tr>
|
|
|
|
<td colspan="2">
|
2019-09-24 21:44:38 +00:00
|
|
|
<input type="submit" name="give_questions" value="Poser les questions" />
|
2019-09-20 12:57:06 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
<hr/>
|
|
|
|
<?php }
|
|
|
|
|
|
|
|
require_once "footer.php";
|