From 8dc8ed71ab2a3338e4917a560a7ef7c8e02e50b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20MARQUET?= Date: Mon, 8 Apr 2024 09:29:08 +0200 Subject: [PATCH 1/2] Remove old php code --- calendrier.php | 90 --------------------------------------- search.php | 65 ---------------------------- src/php/db/Calendrier.php | 55 ------------------------ 3 files changed, 210 deletions(-) delete mode 100644 calendrier.php delete mode 100644 search.php diff --git a/calendrier.php b/calendrier.php deleted file mode 100644 index 34c42c4..0000000 --- a/calendrier.php +++ /dev/null @@ -1,90 +0,0 @@ - - - - - Oui....Stiti - - - - - - - - - -
-
- -

- Doct'ISEN -

-
-
-
-
- -
-
-
- -
-
-
-
-
-
- -
- '; - echo ''; - ?> -
- -
-
-
- -
-
-
-
-
- Veuillez choisir une date

'; - } - else{ - displayRDVForDate($pdo, $_POST['start'], $_POST['id']); - } - ?> -
-
-
-
- - \ No newline at end of file diff --git a/search.php b/search.php deleted file mode 100644 index 63b6f8e..0000000 --- a/search.php +++ /dev/null @@ -1,65 +0,0 @@ - - - - - Recherche - - - - - - - - - - - -
-
-
- -

- Doct'ISEN -

-
-
-
-
- -
-
-
- -
-
- -
- - - \ No newline at end of file diff --git a/src/php/db/Calendrier.php b/src/php/db/Calendrier.php index 148c1fd..bfa876a 100644 --- a/src/php/db/Calendrier.php +++ b/src/php/db/Calendrier.php @@ -61,59 +61,4 @@ function takeRDV($pdo, $rdv_id, $patient_id): void $query->execute(); Response::HTTP200(['success' => 'RDV taken']); } - -/* -function displayRDVForDate($pdo, $date, $medecin){ - $availableHours = selectRDVForDate($pdo, $date, $medecin); - if(!$availableHours){ - echo '

Aucun rendez-vous disponible

'; - } - else{ - echo '

Rendez-vous disponible :

'; - foreach ($availableHours as $hour){ - $hourValue = selectRDVTimeByID($pdo, $hour); - $hourValue = substr($hourValue, 0, 5); - $token = tokenDecode(); - $patient = $token[1]; - echo ''.$hourValue.''; - } - } -} - - - - -function DisplayMedecinCard($pdo, $medecin){ - $query = $pdo->prepare("SELECT * FROM medecin WHERE m_id = :id"); - $query->bindParam(':id', $medecin); - $query->execute(); - $result = $query->fetchAll(); - foreach ($result as $row){ - echo '
'; - echo '
'; - echo '
'; - $imageUrl = 'https://thispersondoesnotexist.com'; - echo 'doctor'; - echo '
'; - echo '
'; - echo '
'; - echo '
'.$row['m_name'].' '.$row['m_surname'].'
'; - echo '
'.$row['m_specialty'].'
'; - echo '
'; - echo '
'; - echo '
'; - echo '
'; - } -} - -function addRDVToDBThenRedirect($pdo, $rdv, $patient){ - $query = $pdo->prepare("UPDATE rendez_vous SET p_id = :p_id WHERE rdv_id = :rdv_id"); - $query->bindParam(':p_id', $patient); - $query->bindParam(':rdv_id', $rdv); - $query->execute(); - //Redirect to the rdv.php page - echo ''; -} -*/ - ?> \ No newline at end of file From fc1d6c1274d43aa9d0f191e57932eab45b53f6df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20MARQUET?= Date: Mon, 8 Apr 2024 09:33:06 +0200 Subject: [PATCH 2/2] Add temp mokup for practicien --- index.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 9c85ef3..c630bae 100644 --- a/index.php +++ b/index.php @@ -36,8 +36,15 @@
+