From 7f38cc98ef79fae0ca8da08f2b1294983d7b1d19 Mon Sep 17 00:00:00 2001
From: Matthieu Guffroy <mattgu74@gmail.com>
Date: Sat, 14 Jun 2014 16:15:57 +0200
Subject: [PATCH] list personnel

---
 controller/personne.php | 4 ++++
 view/list.php           | 3 ---
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/controller/personne.php b/controller/personne.php
index e887381..0967102 100644
--- a/controller/personne.php
+++ b/controller/personne.php
@@ -13,6 +13,10 @@ if(!in_array($action, $actions)) {
 
 switch($action) {
 	case "listePersonnel":
+		$listArray = Client::getAll();
+		$listParams = array("title" => "Liste du personnel",
+							"keys" => array("id", "nom", "prenom", "isVeterinaire", "idNational"));
+		include 'view/list.php';
 		break;
 	case "listeClient":
 		$listArray = Client::getAll();
diff --git a/view/list.php b/view/list.php
index 4d76ad8..f8e3e09 100644
--- a/view/list.php
+++ b/view/list.php
@@ -19,7 +19,4 @@
             <?php endforeach; ?>
         </tbody>
     </table>
-    <pre>
-     <?php print_r($listArray); ?>
-    </pre>
 </div>
\ No newline at end of file
-- 
GitLab