Modifs mineures

This commit is contained in:
xdrm-brackets 2015-12-14 10:16:29 +01:00
parent b145b13dea
commit 5858f4013f
8 changed files with 8 additions and 7 deletions

View File

@ -4,7 +4,6 @@ if(!Authentification::checkUser(0)){
header("Location: http://".$_SERVER['HTTP_HOST']."/index.php"); header("Location: http://".$_SERVER['HTTP_HOST']."/index.php");
die(); die();
}; };
// formattage $_GET['type'] // formattage $_GET['type']
$answerType = (isset($_GET['type'])) ? $_GET['type'] : null; $answerType = (isset($_GET['type'])) ? $_GET['type'] : null;

0
css/login-material.css Normal file → Executable file
View File

0
js/lib/API.js Normal file → Executable file
View File

View File

@ -12,13 +12,15 @@ class Patient
$params['date_naissance'] = DateTime::createFromFormat('d/m/Y', $params['date_naissance']); $params['date_naissance'] = DateTime::createFromFormat('d/m/Y', $params['date_naissance']);
if(PatientRepo::add($params['civilite'],strtolower($params['prenom']),strtolower($params['nom']),$params['adresse'],$params['adresse2'],$params['ville'],$params['code_postal'], if(PatientRepo::add($params['civilite'],strtolower($params['prenom']),strtolower($params['nom']),$params['adresse'],$params['adresse2'],$params['ville'],$params['code_postal'],
$params['date_naissance']->format('Y-m-d'),$params['lieu_naissance'],$params['num_secu'],$params['medecin_traitant']) !==FALSE){ $params['date_naissance']->format('Y-m-d'),$params['lieu_naissance'],$params['num_secu'],$params['medecin_traitant']) !==FALSE){
$response = new Response(); // $response = new Response();
$response->setHeader('Location',"http://".$_SERVER['HTTP_HOST']."/Patients.php?type=creation"); // $response->setHeader('Location',"http://".$_SERVER['HTTP_HOST']."/Patients.php?type=creation");
$response->send(); // $response->send();
Response::quickResponse(200, json_encode(['status'=>'success']));
}else{ }else{
$response = new Response(500); Response::quickResponse(200, json_encode(['status'=>'error']));
$response->setHeader('Location',"http://".$_SERVER['HTTP_HOST']."/Patients.php?type=error"); // $response = new Response(500);
$response->send(); // $response->setHeader('Location',"http://".$_SERVER['HTTP_HOST']."/Patients.php?type=error");
// $response->send();
} }
} }

0
src/svg/notifications/close.svg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

0
src/svg/notifications/error.svg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

0
src/svg/notifications/info.svg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

0
src/svg/notifications/success.svg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB