mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 13:12:17 +01:00 
			
		
		
		
	Amélioration des fichiers d'ajout de tournoi
This commit is contained in:
		@@ -1,10 +1,11 @@
 | 
			
		||||
<?php
 | 
			
		||||
require_once "header.php";
 | 
			
		||||
 | 
			
		||||
if (isset($error_message)) {
 | 
			
		||||
	if ($error_message !== false) {
 | 
			
		||||
if (isset($tournament)) {
 | 
			
		||||
	if ($has_error) {
 | 
			
		||||
		echo "<h2>Erreur : " . $error_message . "</h2>";
 | 
			
		||||
	} else {
 | 
			
		||||
	}
 | 
			
		||||
	else {
 | 
			
		||||
		echo "<h2>Tournoi de " . htmlspecialchars($_POST["name"]) . " ajouté avec succès !</h2>";
 | 
			
		||||
	}
 | 
			
		||||
}?>
 | 
			
		||||
@@ -23,10 +24,10 @@ if (isset($error_message)) {
 | 
			
		||||
		</tr>
 | 
			
		||||
		<tr>
 | 
			
		||||
			<td>
 | 
			
		||||
				<label for="organizer">Organisateur :</label>
 | 
			
		||||
				<label for="organizers">Organisateurs :</label>
 | 
			
		||||
			</td>
 | 
			
		||||
			<td>
 | 
			
		||||
				<select style="width: 100%;" id="organizer" name="organizer[]" multiple size="4" required>
 | 
			
		||||
				<select style="width: 100%;" id="organizers" name="organizers[]" multiple size="4" required>
 | 
			
		||||
					<?php
 | 
			
		||||
					while (($data = $orgas_response->fetch()) !== FALSE) {
 | 
			
		||||
						echo "<option value=\"" . $data["id"] . "\">" . $data["first_name"] . " " . $data["surname"] . "</option>\n";
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user