diff --git a/application/modules/frontend/controllers/GestionController.php b/application/modules/frontend/controllers/GestionController.php index 0f96d8fd..8e4502a7 100644 --- a/application/modules/frontend/controllers/GestionController.php +++ b/application/modules/frontend/controllers/GestionController.php @@ -6,6 +6,11 @@ class GestionController extends Zend_Controller_Action } + public function init() + { + $this->view->headLink()->appendStylesheet('/themes/default/styles/dashboard.css', 'all'); + } + public function indexAction() { @@ -14,13 +19,44 @@ class GestionController extends Zend_Controller_Action public function profilsAction() { + $profilsM = new Table_EnrichissementProfils(); + $sql = $profilsM->select() + ->from($profilsM, array('id', 'idClient', 'login', 'reference', 'tarifLigne', 'dateAjout', 'dateSuppr', 'actif')); + $profils = $profilsM->fetchAll($sql); - + $this->view->assign('profils', $profils); } public function profilAction(){} - public function profiladdAction(){} + public function profiladdAction() + { + $request = $this->getRequest(); + + //Sauvegarde du formulaire + if ( $request->isPost() ){ + + + } + + //Affichage du formulaire + require_once 'Scores/Field.php'; + $fieldsM = new Fields(); + $allFields = $fieldsM->getFields(); + + $fields = array(); + foreach($allFields as $name => $item) + { + if ( array_key_exists('extract', $item) ) { + $fields[$name] = $item; + } + } + + + + + + } public function profildelAction(){} diff --git a/application/modules/frontend/views/scripts/gestion/profils.phtml b/application/modules/frontend/views/scripts/gestion/profils.phtml index e69de29b..2551c7c7 100644 --- a/application/modules/frontend/views/scripts/gestion/profils.phtml +++ b/application/modules/frontend/views/scripts/gestion/profils.phtml @@ -0,0 +1,33 @@ +
idClient | +login | +reference | +tarifLigne | +dateAjout | +dateSuppr | +actif | +Action | +
---|---|---|---|---|---|---|---|
=$profil['idClient']?> | +=$profil['login']?> | +=$profil['reference']?> | +=$profil['tarifLigne']?> | +=$profil['dateAjout']?> | +=$profil['dateSuppr']?> | +=$profil['actif']?> | ++ |