From c3de4a9914594719094e39686cd33a0b982da5df Mon Sep 17 00:00:00 2001 From: galaxyoyo Date: Wed, 28 Aug 2019 00:28:07 +0200 Subject: [PATCH] =?UTF-8?q?Am=C3=A9liorations=20au=20niveau=20de=20l'inscr?= =?UTF-8?q?iption?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server_files/connexion.php | 13 ++++++---- server_files/inscription.php | 49 +++++++++++++++++++----------------- 2 files changed, 34 insertions(+), 28 deletions(-) diff --git a/server_files/connexion.php b/server_files/connexion.php index e6bcefc..189ddae 100644 --- a/server_files/connexion.php +++ b/server_files/connexion.php @@ -56,17 +56,20 @@ if (isset($error_message) && $error_message === FALSE) {
- +
- - + + - + - + + + +
Mot de passe oublié ?
diff --git a/server_files/inscription.php b/server_files/inscription.php index a2e85b4..7e23a59 100644 --- a/server_files/inscription.php +++ b/server_files/inscription.php @@ -8,6 +8,7 @@ if (isset($_POST["submitted"])) { function register() { global $DB, $YEAR, $URL_BASE, $MAIL_ADDRESS; + global $email, $firstname, $surname, $birth_date, $gender, $address, $postal_code, $city, $country, $phone_number, $role, $school, $class, $responsible_name, $responsible_phone, $responsible_email; $email = strtolower(htmlspecialchars($_POST["email"])); @@ -145,70 +146,70 @@ function register() {
- +
- - + + - + - + - + - + - + - + - + - + - + - + - + - - + - - + - + - + - + - +
" required />
" required />
" required />
" />" required />
- /> + />
" />
" min="1000" max="95999" required />
" />
" />" required />
" />
" />
" />
" />
" />
@@ -242,6 +243,7 @@ function register() { case "participant": document.getElementById("school_label").style.display = "block"; document.getElementById("school").style.display = "block"; + document.getElementById("school").require = "true"; document.getElementById("class_label").style.display = "block"; document.getElementById("class").style.display = "block"; document.getElementById("responsible_name_label").style.display = "block"; @@ -256,6 +258,7 @@ function register() { case "encadrant": document.getElementById("school_label").style.display = "none"; document.getElementById("school").style.display = "none"; + document.getElementById("school").require = "false"; document.getElementById("class_label").style.display = "none"; document.getElementById("class").style.display = "none"; document.getElementById("responsible_name_label").style.display = "none";