Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahddry committed May 25, 2022
2 parents f1669e2 + 20accba commit 8c70f88
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 9 deletions.
26 changes: 25 additions & 1 deletion AffichageRDV.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,19 @@
justify-content: space-evenly;

}
#detailsProfil
{
width:30%;
height:100%;
transition: width 0.4s;
background: linear-gradient(#013d42, #266b6b);
display: flex;
flex-direction: column;
justify-content: center;
border:10px #f8f8f8 ;

}


#textDetails
{
Expand Down Expand Up @@ -69,4 +82,15 @@

#cardRDV:hover #annuler {
width:20%;
}
}


#photoProfil{
border-radius: 5px;
max-width: 80%;
max-height: 70%;
margin : auto;
margin-top: 5%;
overflow: hidden;
}

25 changes: 19 additions & 6 deletions AffichageRDV.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,29 +73,42 @@ function effacer() {
$memberStatement->execute();
$data = $memberStatement->fetchAll();
echo ('<div id="cardRDV">');
echo ('<div id="detailsRDV">');

// echo ('<div id="detailsRDV">');
echo ('<div id="detailsProfil">');
echo('<div id="titre">');
echo('Votre practicien : <br>');
echo($data[0]["Nom"] . $data[0]["Prenom"]);
echo ('</div>');
echo ('<div id="photoProfil">');
echo ('<img src="' . $data[0]["pp"] . '" id="image">');
echo ('</div> ');
echo ('</div> ');
// echo ('</div>');


echo ('<div id="detailsRDV">');
echo ('<div id="textDetails">');
echo('<div id="titreD">');
echo('Medecin :');
echo('Date :');
echo ('</div>');
echo('<div id="descriptionD">');
echo($data[0]["Nom"] . $data[0]["Prenom"]);
echo(substr($RDV["Date"],0,10));
echo ('</div>');
echo ('</div>');

echo ('<div id="textDetails">');
echo('<div id="titreD">');
echo('Date :');
echo('Heure :');
echo ('</div>');
echo('<div id="descriptionD">');
echo($RDV["Date"]);
echo(substr($RDV["Date"],10));
echo ('</div>');
echo ('</div>');


echo ('</div>');


echo ('<button id="annuler" onClick="effacer()" data-arg1="');
echo($RDV["Date"]);
echo('" data-arg2="');
Expand Down
3 changes: 2 additions & 1 deletion RDV.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ function reserver() {
let date = event.target.getAttribute('data-arg1');
let heure = event.target.getAttribute('data-arg2');
document.cookie = "Heure=" + heure + "; SameSite=None; Secure";
document.cookie = "Date=" + date + "; SameSite=None; Secure";
document.cookie = "Date=" + date + "; SameSite=None; Secure";
alert("Rendez-vous le " + date + " à " + heure + " confirmé!");

}
</script>
Expand Down
3 changes: 2 additions & 1 deletion style2.css
Original file line number Diff line number Diff line change
Expand Up @@ -258,4 +258,5 @@
{
max-height: 100%;
overflow: hidden;
}
}

0 comments on commit 8c70f88

Please sign in to comment.