Menu
This commit is contained in:
parent
5524796ed0
commit
96fceb4186
21
application/configs/menu.admin.php
Normal file
21
application/configs/menu.admin.php
Normal 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',
|
||||
),
|
||||
);
|
@ -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",
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user