'; } */ //echo_list($this->Html, 'Catégories', 'categories'); //echo_list($this->Html, 'Catégories', 'pages', 'tools_cat'); $entity_name = 'sur_categories'; $can_manage_this = $CAN_MANAGE || ( $role == 'Administration' && in_array($entity_name, $admin_can_manage) ); $this->MyHelper->echoListToManageOrViewWithIcon($can_manage_this, 'Domaines & Catégories', $entity_name); /* echo ''; */ // types de DOCUMENTS $entity_name = 'type_documents'; $can_manage_this = $CAN_MANAGE || ( $role == 'Administration' && in_array($entity_name, $admin_can_manage) ); $this->MyHelper->echoListToManageOrViewWithIcon($can_manage_this, 'types de Documents', $entity_name); /* echo ''; */ // FOURNISSEURS $entity_name = 'fournisseurs'; $can_manage_this = $CAN_MANAGE || ( $role == 'Administration' && in_array($entity_name, $admin_can_manage) ); $this->MyHelper->echoListToManageOrViewWithIcon($can_manage_this, 'Fournisseurs', $entity_name, 'index'); /* echo ''; */ // GROUPES métier & thématique foreach (['metier','thematique'] as $group_type) { //$names = explode(" ", $configuration->nom_groupe_thematique); $group_type_name = 'nom_groupe_'.$group_type; $names = explode(" ", $configuration->$group_type_name); if (isset($names[1])) { $nom = $names[0] . 's ' . $names[1] . 's'; } else { $nom = $names[0] . 's'; } $nom = ucwords($nom); //$this->MyHelper->echoListToManageOrViewWithIcon($this->Html, $nom, 'groupes_thematiques'); //$this->MyHelper->echoListToManageOrViewWithIcon($CAN_MANAGE, $nom, 'groupes_'.$group_type.'s'); $entity_name = 'groupes_'.$group_type.'s'; $can_manage_this = $CAN_MANAGE || ( $role == 'Administration' && in_array($entity_name, $admin_can_manage) ); $this->MyHelper->echoListToManageOrViewWithIcon($can_manage_this, $nom, $entity_name, 'index'); /* echo ''; */ } //$configuration->metrologie=true; // METROLOGIE MODULE ONLY if ($configuration->metrologie) { $this->MyHelper->echoListToManageOrViewWithIcon($CAN_MANAGE, 'Métrologie : Unités', 'unites'); /* echo ''; */ $this->MyHelper->echoListToManageOrViewWithIcon($CAN_MANAGE, 'Métrologie : Formules', 'formules'); /* echo ''; */ } // ORGANISMES //$this->MyHelper->echoListToManageOrViewWithIcon($CAN_MANAGE, 'Organismes', 'organismes'); $entity_name = 'organismes'; $can_manage_this = $CAN_MANAGE || ( $role == 'Administration' && in_array($entity_name, $admin_can_manage) ); $this->MyHelper->echoListToManageOrViewWithIcon($can_manage_this, 'Organismes', $entity_name); /* echo ''; */ //$this->MyHelper->echoListToManageOrViewWithIcon($CAN_MANAGE, 'Projets', 'projets'); $entity_name = 'projets'; $can_manage_this = $CAN_MANAGE || ( $role == 'Administration' && in_array($entity_name, $admin_can_manage) ); $this->MyHelper->echoListToManageOrViewWithIcon($can_manage_this, 'Projets', $entity_name, 'index'); //$this->MyHelper->echoListToManageOrViewWithIcon($CAN_MANAGE, 'Sites', 'sites'); $entity_name = 'sites'; $can_manage_this = $CAN_MANAGE || ( $role == 'Administration' && in_array($entity_name, $admin_can_manage) ); $this->MyHelper->echoListToManageOrViewWithIcon($can_manage_this, 'Sites', $entity_name, 'index'); /* echo ''; */ //$this->MyHelper->echoListToManageOrViewWithIcon($CAN_MANAGE, 'types de Suivis', 'type_suivis'); $entity_name = 'type_suivis'; $can_manage_this = $CAN_MANAGE || ( $role == 'Administration' && in_array($entity_name, $admin_can_manage) ); $this->MyHelper->echoListToManageOrViewWithIcon($can_manage_this, 'types de Suivis', $entity_name, 'index'); /* echo ''; */ ?>
'; //echo $this->Html->link('Gérer les Catégories', [ echo $html->link($local_verb . ' les ' . $list_name, [ 'controller' => $controller_name, // default action is 'index' 'action' => $action_name, 'sort' => 'nom' ]); echo '
'; //echo $this->Html->link('Gérer les Catégories', [ echo $this->Html->link($verb . ' les Catégories', [ 'controller' => 'pages', 'action' => 'tools_cat' ]); echo '
'; echo $this->Html->link('Gérer les types de Documents', [ 'controller' => 'type_documents', 'sort' => 'nom' ]); echo '
'; echo $this->Html->link('Gérer les Fournisseurs', [ 'controller' => 'fournisseurs', 'sort' => 'nom' ]); echo '
'; echo $this->Html->link('Gérer les ' . $nom, [ 'controller' => 'groupes_thematiques', 'sort' => 'nom' ]); echo '
'; echo $this->Html->link('Gérer les Unités (Métrologie)', [ 'controller' => 'unites', 'sort' => 'nom' ]); echo '
'; echo $this->Html->link('Gérer les Formules (Métrologie)', [ 'controller' => 'formules', 'sort' => 'nom' ]); echo '
'; echo $this->Html->link('Gérer les Organismes', [ 'controller' => 'organismes', 'sort' => 'nom' ]); echo '
'; echo $this->Html->link('Gérer les Sites', [ 'controller' => 'sites', 'sort' => 'nom', //'action' => 'index', ]); echo '
'; echo $this->Html->link('Gérer les types de Suivis', [ 'controller' => 'type_suivis', 'sort' => 'nom' ]); echo '