Skip to content
Snippets Groups Projects
Commit a8f97c72 authored by clement's avatar clement
Browse files

c

parent e70129b4
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,9 @@ switch($action) {
include 'view/list.php';
break;
case "add":
$animal = new Animal();
$formConf = $animal->getForm();
include 'view/form.php';
break;
case "edit":
......
......@@ -25,7 +25,9 @@ switch($action) {
include 'view/list.php';
break;
case "add":
$facture = new Facture();
$formConf = $facture->getForm();
include 'view/form.php';
break;
case "edit":
......
......@@ -19,7 +19,9 @@ switch($action) {
include 'view/list.php';
break;
case "add":
$ordonnance = new Ordonnance();
$formConf = $ordonnance->getForm();
include 'view/form.php';
break;
case "edit":
......
......@@ -19,7 +19,9 @@ switch($action) {
include 'view/list.php';
break;
case "add":
$rdv = new Rdv();
$formConf = $rdv->getForm();
include 'view/form.php';
break;
case "edit":
......
<?php
/*
Controller personne, handle CRUD for personnel and client.
Controller Statistiques, handle CRUD for statistiques.
*/
// Implemented actions
$actions = array("listePersonnel", "listeClient", "addPersonnel", "addClient", "editPersonnel", "editClient");
// Check action is correct
if(!in_array($action, $actions)) {
$action = "listePersonnel";
}
switch($action) {
case "listePersonnel":
$listArray = Employe::getAll();
$listParams = array("title" => "Liste du personnel",
"keys" => array("id", "nom", "prenom", "isVeterinaire", "idNational"));
include 'view/list.php';
break;
case "listeClient":
$listArray = Client::getAll();
$listParams = array("title" => "Liste des clients",
"keys" => array("id", "nom", "prenom", "numTel"));
include 'view/list.php';
break;
case "addPersonnel":
break;
case "addClient":
break;
default:
include 'view/404.php';
break;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment