1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-24 21:40:34 +02:00

Amélioration des fichiers d'ajout de tournoi

This commit is contained in:
galaxyoyo
2019-09-07 18:08:40 +02:00
parent 0f0c082437
commit 8606ae7b95
8 changed files with 129 additions and 93 deletions

View File

@ -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";