mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 02:12:05 +01:00 
			
		
		
		
	Améliorations du code
This commit is contained in:
		@@ -41,7 +41,7 @@ if (isset($error_message)) {
 | 
			
		||||
			</tr>
 | 
			
		||||
			<tr>
 | 
			
		||||
				<td colspan="2">
 | 
			
		||||
					<input style="width: 100%;" type="submit" name="send_synthese" value="Envoyer" />
 | 
			
		||||
					<input style="width: 100%;" type="submit" name="send_synthesis" value="Envoyer" />
 | 
			
		||||
				</td>
 | 
			
		||||
			</tr>
 | 
			
		||||
			</tbody>
 | 
			
		||||
@@ -54,11 +54,26 @@ if (isset($error_message)) {
 | 
			
		||||
	<h2>Notes de synthèse soumises :</h2>
 | 
			
		||||
 | 
			
		||||
<?php
 | 
			
		||||
while (($data = $syntheses_req->fetch()) !== false) {
 | 
			
		||||
	$file_id = $data["file_id"];
 | 
			
		||||
	$dest = $data["dest"];
 | 
			
		||||
	$version = $data["version"];
 | 
			
		||||
	echo "Note de synthèse pour " . ($dest == "OPPOSANT" ? "l'opposant" : "le rapporteur") . " (Version $version) : <a href=\"$URL_BASE/file/$file_id\">Télécharger</a><br />";
 | 
			
		||||
/** @var Synthesis $synthesis */
 | 
			
		||||
foreach ($syntheses as $synthesis) {
 | 
			
		||||
	$file_id = $synthesis->getFileId();
 | 
			
		||||
	$dest = $synthesis->getDest();
 | 
			
		||||
	$version = $synthesis->getVersion();
 | 
			
		||||
	echo "Note de synthèse pour " . ($dest == DestType::OPPOSANT ? "l'opposant" : "le rapporteur") . " (version $version) : <a href=\"$URL_BASE/file/$file_id\">Télécharger</a><br />";
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
if ($team->isSelectedForFinal()) { ?>
 | 
			
		||||
    <hr/>
 | 
			
		||||
 | 
			
		||||
    <h2>Notes de synthèse soumises pour la finale :</h2>
 | 
			
		||||
	<?php
 | 
			
		||||
	/** @var Synthesis $sol */
 | 
			
		||||
	foreach ($syntheses_final as $synthesis) {
 | 
			
		||||
		$file_id = $synthesis->getFileId();
 | 
			
		||||
		$dest = $synthesis->getDest();
 | 
			
		||||
		$version = $synthesis->getVersion();
 | 
			
		||||
		echo "Note de synthèse pour " . ($dest == DestType::OPPOSANT ? "l'opposant" : "le rapporteur") . " (version $version) : <a href=\"$URL_BASE/file/$file_id\">Télécharger</a><br />";
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
require_once "footer.php";
 | 
			
		||||
		Reference in New Issue
	
	Block a user