-
Notifications
You must be signed in to change notification settings - Fork 0
/
rdv_patient.php
72 lines (57 loc) · 1.75 KB
/
rdv_patient.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?php
require_once ('includes/connexion_bdd.php');
require_once ('includes/header.php');
//script qui affiche tout les rendez-vous pris par un patient
?>
<html>
<head>
<title>CHIC LFM Rdv patient</title>
</head>
<div id="corps">
<?php
?>
<?php
$id=$_GET['id_patient'];
?>
<?php
$select = $db->query ("SELECT * FROM `agenda_patient`,`agenda_rdv`, `agenda_praticien`
WHERE agenda_patient.id_patient = agenda_rdv.id_patient
AND agenda_praticien.id_praticien = agenda_rdv.id_praticien
AND agenda_patient.id_patient=$id
ORDER by date_debut ASC");
$s = $select->fetch ( PDO::FETCH_OBJ )
?>
<h1>Rendez-vous du patient: <a href="fiche_patient.php?action=afficher&id_patient=<?php echo $s->id_patient?>"><?php echo $s->nom;?> <?php echo $s->prenom;?> <?php echo "$s->date_naissance"; ?></a></h1>
<table>
<tr>
<th>Fiche rdv</th>
<th>Date rdv</th>
<th>Heure rdv</th>
<th>Médecin</th>
<th>Description</th>
</tr>
<?php
$select = $db->query ("SELECT * FROM `agenda_patient`,`agenda_rdv`, `agenda_praticien`
WHERE agenda_patient.id_patient = agenda_rdv.id_patient
AND agenda_praticien.id_praticien = agenda_rdv.id_praticien
AND agenda_patient.id_patient=$id
ORDER by date_debut ASC");
while ($s = $select->fetch ( PDO::FETCH_OBJ )){
?>
<tr>
<td> <a href="fiche_rdv.php?action=afficher&id=<?php echo $s->id_rdv;?>"><img src="image/fiche.png" width="30"/></a></td>
<td width=100><?php echo $s->date_debut;?></td>
<td width=100><?php echo $s->heure_deb;?></td>
<td width=100><?php echo $s->nom_medecin;?></td>
<td width=700><?php echo $s->observation;?></td>
</tr>
<?php }?>
</table>
<script type="text/javascript">
function change()
{
document.dt.submit();
}
</script>
</div>
</html>