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

controller with new cat menu

parent dfef11eb
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@
class Espece extends Objet
{
protected $nom;
protected $prix_consultationation;
protected $prix_consultation;
public function nom()
{
......
......@@ -16,7 +16,7 @@ switch($action) {
$listArray = Animal::getAll();
$listParams = array("title" => "Liste des animaux de la clinique",
"keys" => array("id", "nom", "proprio", "race", "poids", "genre", "sterile", "date_naissance", "date_deces", "taille", "code"));
$editLink = "edit";
$editLink = "editAnimal";
include 'view/list.php';
break;
case "addAnimal":
......
......@@ -16,12 +16,7 @@ switch($action) {
$listArray = Facture::getAll();
$listParams = array("title" => "Liste des factures",
"keys" => array("id", "employe", "animal", "date_edition", "date_paiement", "moyen_paiement", "prix_total"));
include 'view/list.php';
break;
case "listePersonnel":
$listArray = Employe::getAll();
$listParams = array("title" => "Liste du personnel",
"keys" => array("id", "nom", "prenom", "is_veterinaire", "id_national"));
$editLink = "edit";
include 'view/list.php';
break;
case "add":
......@@ -30,7 +25,10 @@ switch($action) {
include 'view/form.php';
break;
case "edit":
$facture = new Facture();
$facture->select($_GET['id']);
$formConf = $facture->getForm();
include 'view/form.php';
break;
default:
include 'view/404.php';
......
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