This commit is contained in:
Michael RICOIS 2016-05-26 16:01:32 +02:00
parent 5524796ed0
commit 96fceb4186
3 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,21 @@
<?php
return array(
array(
'label' => "Compte client",
'module' => 'admin',
'controller' => 'client',
'action' => 'index',
),
array(
'label' => "Services",
'module' => 'admin',
'controller' => 'service',
'action' => 'index',
),
array(
'label' => "Utilisateurs",
'module' => 'admin',
'controller' => 'user',
'action' => 'index',
),
);

View File

@ -195,6 +195,15 @@ return array(
'controller' => 'evaluation',
'action' => 'indiscore',
'reset_params' => false,
'pages' => array(
array(
'label' => "Rapport de synthèse",
'module' => 'legal',
'controller' => 'evaluation',
'action' => 'scoreshisto',
'reset_params' => false,
),
),
),
array(
'label' => "Rapport de synthèse",

View File

@ -39,6 +39,18 @@ class Application_Controller_Plugin_Menu extends Zend_Controller_Plugin_Abstract
$user = new Scores_Utilisateur();
if ($user->isLog()) {
switch ($module) {
case 'admin':
$view = $layout->getView();
$view->MenuAdvanced = true;
$view->MenuLabel = 'Administration';
$config = include APPLICATION_PATH . '/configs/menu.admin.php';
$container = new Zend_Navigation($config);
$view->navigation($container);
$view->headLink()
->appendStylesheet('/libs/metisMenu/metisMenu.min.css', 'all');
$view->headScript()
->appendFile('/libs/metisMenu/metisMenu.min.js', 'text/javascript');
break;
case 'search':
$view = $layout->getView();
$view->MenuAdvanced = true;