1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2024-12-26 07:02:24 +00:00

Correction d'un problème

This commit is contained in:
galaxyoyo 2019-09-08 01:47:30 +02:00
parent 228c683dc8
commit ca1a9e4415
2 changed files with 2 additions and 1 deletions

View File

@ -14,6 +14,7 @@ if (isset($_POST["edit_tournament"])) {
} }
$orgas = $tournament->getOrganizers(); $orgas = $tournament->getOrganizers();
$teams = $tournament->getAllTeams(); $teams = $tournament->getAllTeams();
$orgas_response = $DB->query("SELECT `id`, `surname`, `first_name` FROM `users` WHERE (`role` = 'ORGANIZER' OR `role` = 'ADMIN') AND `year` = '$YEAR';");
function updateTournament() { function updateTournament() {
global $DB, $URL_BASE, $YEAR, $tournament, $orgas; global $DB, $URL_BASE, $YEAR, $tournament, $orgas;

View File

@ -123,7 +123,7 @@ else {
<select style="width: 100%;" id="organizer" name="organizer[]" multiple size="4" required> <select style="width: 100%;" id="organizer" name="organizer[]" multiple size="4" required>
<?php <?php
while (($orga_data = $orgas_response->fetch()) !== FALSE) { while (($orga_data = $orgas_response->fetch()) !== FALSE) {
echo "<option value=\"" . $orga_data["id"] . "\" " . ($tournament->organize($_SESSION["user_id"]) ? "selected" : "") echo "<option value=\"" . $orga_data["id"] . "\" " . ($tournament->organize($orga_data["id"]) ? "selected" : "")
. ">" . $orga_data["first_name"] . " " . $orga_data["surname"] . "</option>\n"; . ">" . $orga_data["first_name"] . " " . $orga_data["surname"] . "</option>\n";
} }
?> ?>