-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
42 lines (33 loc) · 1.15 KB
/
index.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
<?php
require 'Controllers/controllers_page.php' ;
require 'Controllers/controllers_reservations.php' ;
if (isset($_GET['action'])) {
$action = $_GET['action'] ;
switch ($action) {
case 'aboutcentre' : aboutCentreAction() ; break ;
case 'aboutdoctor' : aboutDoctorAction() ; break ;
case 'appoint' : appointAction() ; break ;
case 'login' : loginAction() ; break ;
case 'signup' : signupAction() ; break ;
case 'portfolio' : portfolioAction() ; break ;
case 'service' : detailsAction() ; break ;
case 'contact' : contactAction() ; break ;
case 'RDV' : PrendreRdv() ; break ;
case 'alert' : break ;
// mohamed_part added
case 'account':accountPatientAction();break;
case 'reservations':reservationsPatientAction();break;
// case 'request':requestPageAction();break;
case 'del_reservation':
if (isset($_GET['id'])) {
delete_patient_reservation($_GET['id']);
}
header('Location: index.php?action=reservations');
exit(0);
case 'show_image':
show_image();
break;
}
}else {
indexAction();
}