1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-26 05:57:39 +02:00

Restructuration de la page d'inscription

This commit is contained in:
galaxyoyo
2019-09-07 15:51:16 +02:00
parent 25a31b7f40
commit b8dfe1a607
7 changed files with 291 additions and 247 deletions

View File

@ -74,7 +74,7 @@ class User
$this->country = $data["country"];
$this->phone_number = $data["phone_number"];
$this->school = $data["school"];
$this->class = $data["class"];
$this->class = SchoolClass::fromName($data["class"]);
$this->responsible_name = $data["responsible_name"];
$this->responsible_phone = $data["responsible_phone"];
$this->responsible_email = $data["responsible_email"];
@ -250,7 +250,7 @@ class User
{
global $DB;
$this->class = $class;
$DB->prepare("UPDATE `users` SET `class` = ? WHERE `id` = ?;")->execute([$class, $this->getId()]);
$DB->prepare("UPDATE `users` SET `class` = ? WHERE `id` = ?;")->execute([SchoolClass::getName($class), $this->getId()]);
}
public function getResponsibleName()