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

c

parent 39475124
No related branches found
No related tags found
No related merge requests found
......@@ -4,24 +4,24 @@
*/
// Implemented actions
$actions = array("listeAnimal", "addAnimal", "editAnimal");
$actions = array("liste", "add", "edit");
// Check action is correct
if(!in_array($action, $actions)) {
$action = "listeAnimal";
$action = "liste";
}
switch($action) {
case "listeAnimal":
case "liste":
$listArray = Animal::getAll();
$listParams = array("title" => "Liste des animaux de la clinique",
"keys" => array("nom", "proprio", "race", "poids", "genre", "sterile", "dateNaissance", "dateDeces", "taille", "code"));
include 'view/list.php';
break;
case "addAnimal":
case "add":
break;
case "editAnimal":
case "edit":
break;
default:
......
......@@ -4,24 +4,30 @@
*/
// Implemented actions
$actions = array("listeFact", "addFact", "editFact");
$actions = array("liste", "add", "edit");
// Check action is correct
if(!in_array($action, $actions)) {
$action = "listeFact";
$action = "liste";
}
switch($action) {
case "listeFact":
case "liste":
$listArray = Facture::getAll();
$listParams = array("title" => "Liste des factures",
"keys" => array("id", "employe", "animal", "dateEdition", "datePaiement", "moyenPaiement", "prixTotal"));
include 'view/list.php';
break;
case "addFact":
case "listePersonnel":
$listArray = Employe::getAll();
$listParams = array("title" => "Liste du personnel",
"keys" => array("id", "nom", "prenom", "isVeterinaire", "idNational"));
include 'view/list.php';
break;
case "add":
break;
case "editFact":
case "edit":
break;
default:
......
......@@ -4,24 +4,24 @@
*/
// Implemented actions
$actions = array("listeOrd", "addOrd", "editOrd");
$actions = array("liste", "add", "edit");
// Check action is correct
if(!in_array($action, $actions)) {
$action = "listeOrd";
$action = "liste";
}
switch($action) {
case "listeOrd":
case "liste":
$listArray = Ordonnance::getAll();
$listParams = array("title" => "Liste des ordonnances",
"keys" => array("id", "animal", "veterinaire", "date", "prix"));
include 'view/list.php';
break;
case "addOrd":
case "add":
break;
case "editOrd":
case "edit":
break;
default:
......
......@@ -4,24 +4,24 @@
*/
// Implemented actions
$actions = array("listeRdv", "addRdv", "editRdv");
$actions = array("liste", "add", "edit");
// Check action is correct
if(!in_array($action, $actions)) {
$action = "listeRdv";
$action = "liste";
}
switch($action) {
case "listeRdv":
case "liste":
$listArray = Rdv::getAll();
$listParams = array("title" => "Liste des rendez-vous",
"keys" => array("id", "animal", "veterinaire", "date", "duree"));
include 'view/list.php';
break;
case "addPersonnel":
case "add":
break;
case "addClient":
case "edit":
break;
default:
......
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