100 |
aurelien |
1 |
<?php
|
|
|
2 |
/**
|
|
|
3 |
* PHP Version 5
|
|
|
4 |
*
|
|
|
5 |
* @category PHP
|
|
|
6 |
* @package annuaire
|
|
|
7 |
* @author aurelien <aurelien@tela-botanica.org>
|
|
|
8 |
* @copyright 2010 Tela-Botanica
|
|
|
9 |
* @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
|
|
|
10 |
* @version SVN: <svn_id>
|
|
|
11 |
* @link /doc/annuaire/
|
|
|
12 |
*/
|
|
|
13 |
|
120 |
aurelien |
14 |
class NavigationControleur extends AppControleur {
|
100 |
aurelien |
15 |
|
|
|
16 |
public function afficherContenuMenu($id_annuaire, $admin = false) {
|
|
|
17 |
|
|
|
18 |
$donnees['id_annuaire'] = $id_annuaire;
|
|
|
19 |
|
|
|
20 |
if($admin) {
|
|
|
21 |
$menu = $this->getVue(Config::get('dossier_squelettes_navigation').'menu_admin', $donnees);
|
|
|
22 |
} else {
|
|
|
23 |
$menu = $this->getVue(Config::get('dossier_squelettes_navigation').'menu', $donnees);
|
|
|
24 |
}
|
|
|
25 |
|
|
|
26 |
return $menu;
|
|
|
27 |
}
|
178 |
aurelien |
28 |
|
|
|
29 |
public function afficherBandeauNavigationUtilisateur($id_annuaire, $id_utilisateur = null, $page = 'fiche') {
|
|
|
30 |
|
|
|
31 |
if($id_utilisateur == null) {
|
|
|
32 |
$id_utilisateur = Registre::getInstance()->get('identification_id');
|
|
|
33 |
}
|
|
|
34 |
|
|
|
35 |
$donnees['id_annuaire'] = $id_annuaire;
|
|
|
36 |
$donnees['id_utilisateur'] = $id_utilisateur;
|
|
|
37 |
$donnees['page'] = $page;
|
|
|
38 |
|
|
|
39 |
$navigation = $this->getVue(Config::get('dossier_squelettes_navigation').'bandeau', $donnees);
|
|
|
40 |
|
|
|
41 |
return $navigation;
|
|
|
42 |
|
|
|
43 |
}
|
221 |
aurelien |
44 |
|
|
|
45 |
public function afficherBandeauNavigationCartographie($donnees) {
|
|
|
46 |
|
|
|
47 |
$navigation = $this->getVue(Config::get('dossier_squelettes_navigation').'chemin_cartographie', $donnees);
|
|
|
48 |
|
|
|
49 |
return $navigation;
|
|
|
50 |
|
|
|
51 |
}
|
100 |
aurelien |
52 |
}
|