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/index.php b/index.php index 9c85ef3..c630bae 100644 --- a/index.php +++ b/index.php @@ -36,8 +36,15 @@
+
+ avatar +
+ Test Test +
+ Mon calendrier +
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