mirror of
https://github.com/BreizhHardware/ProjetS4COMWEB.git
synced 2026-01-18 16:47:35 +01:00
@@ -30,7 +30,7 @@ $router->GET('/api/search-postal', ["postal"], function($postal){
|
||||
$router->GET('/api/search', ["type", "postal"], function($type, $postal){
|
||||
global $pdo;
|
||||
searchDoctorByLocation($pdo, $postal, $type);
|
||||
})
|
||||
});
|
||||
|
||||
$router->GET('/api/rdv', ["id"], function($id){
|
||||
global $pdo;
|
||||
@@ -99,9 +99,9 @@ $router->DELETE('/api/cancel-rdv', ["id"], function($id){
|
||||
CancelRDV($pdo, $id);
|
||||
});
|
||||
|
||||
$router->POST('/api/create-rdv', ["id", "date", "time", "lieu"], function($id, $date, $time, $lieu){
|
||||
$router->POST('/api/create-rdv', ["medID", "date", "time", "lieu"], function($medID, $date, $time, $lieu){
|
||||
global $pdo;
|
||||
createRDV($pdo, $id, $date, $time, $lieu);
|
||||
CreateRDV($pdo, $medID, $date, $time, $lieu);
|
||||
});
|
||||
|
||||
$router->run();
|
||||
|
||||
@@ -99,7 +99,7 @@ function getLieuID($pdo, $adress, $postal, $city){
|
||||
}
|
||||
|
||||
function getAllLieux($pdo){
|
||||
$statement = $pdo->prepare("SELECT l_adress, l_city, l_postal FROM lieu");
|
||||
$statement = $pdo->prepare("SELECT l_adress, l_city, l_postal FROM lieu ORDER BY l_postal ASC");
|
||||
$statement->execute();
|
||||
$result = $statement->fetchAll(PDO::FETCH_ASSOC);
|
||||
|
||||
|
||||
@@ -373,6 +373,8 @@ function ButtonShowRdvPraticient() {
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
//End Call
|
||||
|
||||
ButtonShowRdvPraticient();
|
||||
|
||||
Reference in New Issue
Block a user