mirror of
				https://gitlab.com/animath/si/plateforme-corres2math.git
				synced 2025-11-04 12:32:23 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			37 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?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";
 |