Subversion Repositories Applications.projet

Rev

Rev 67 | Rev 111 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 67 Rev 78
1
<?php
1
<?php
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */ 
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */ 
3
// +------------------------------------------------------------------------------------------------------+
3
// +------------------------------------------------------------------------------------------------------+
4
// | PHP version 4.1                                                                                      |
4
// | PHP version 4.1                                                                                      |
5
// +------------------------------------------------------------------------------------------------------+
5
// +------------------------------------------------------------------------------------------------------+
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
7
// +------------------------------------------------------------------------------------------------------+
7
// +------------------------------------------------------------------------------------------------------+
8
// | This library is free software; you can redistribute it and/or                                        |
8
// | This library is free software; you can redistribute it and/or                                        |
9
// | modify it under the terms of the GNU General Public                                                  |
9
// | modify it under the terms of the GNU General Public                                                  |
10
// | License as published by the Free Software Foundation; either                                         |
10
// | License as published by the Free Software Foundation; either                                         |
11
// | version 2.1 of the License, or (at your option) any later version.                                   |
11
// | version 2.1 of the License, or (at your option) any later version.                                   |
12
// |                                                                                                      |
12
// |                                                                                                      |
13
// | This library is distributed in the hope that it will be useful,                                      |
13
// | This library is distributed in the hope that it will be useful,                                      |
14
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
14
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
15
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
15
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
16
// | General Public License for more details.                                                             |
16
// | General Public License for more details.                                                             |
17
// |                                                                                                      |
17
// |                                                                                                      |
18
// | You should have received a copy of the GNU General Public                                            |
18
// | You should have received a copy of the GNU General Public                                            |
19
// | License along with this library; if not, write to the Free Software                                  |
19
// | License along with this library; if not, write to the Free Software                                  |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
21
// +------------------------------------------------------------------------------------------------------+
21
// +------------------------------------------------------------------------------------------------------+
22
// CVS : $Id: projet.php,v 1.9 2005-11-25 14:48:44 alexandre_tb Exp $
22
// CVS : $Id: projet.php,v 1.10 2005-12-01 16:38:32 alexandre_tb Exp $
23
/**
23
/**
24
* Application projet
24
* Application projet
25
*
25
*
26
* Fichier d'appel pour papyrus
26
* Fichier d'appel pour papyrus
27
*
27
*
28
*@package projet
28
*@package projet
29
//Auteur original :
29
//Auteur original :
30
*@author        Alexandre Granier <alexandre@tela-botanica.org>
30
*@author        Alexandre Granier <alexandre@tela-botanica.org>
31
//Autres auteurs :
31
//Autres auteurs :
32
*@author        Aucun
32
*@author        Aucun
33
*@copyright     Tela-Botanica 2000-2004
33
*@copyright     Tela-Botanica 2000-2004
34
*@version       $Revision: 1.9 $
34
*@version       $Revision: 1.10 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
37
 
37
 
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
39
// |                                            ENTETE du PROGRAMME                                       |
39
// |                                            ENTETE du PROGRAMME                                       |
40
// +------------------------------------------------------------------------------------------------------+
40
// +------------------------------------------------------------------------------------------------------+
41
 
41
 
42
include_once 'configuration/projet.config.inc.php' ;
42
include_once 'configuration/projet.config.inc.php' ;
43
include_once PROJET_CHEMIN_CLASSES.'projetControleur.class.php' ;
43
include_once PROJET_CHEMIN_CLASSES.'projetControleur.class.php' ;
44
 
44
 
45
// Inclusion des styles selon papyrus
45
// Inclusion des styles selon papyrus
46
if (function_exists("GEN_stockerStyleExterne")) {
46
if (function_exists("GEN_stockerStyleExterne")) {
47
    GEN_stockerStyleExterne('projet','client/projet/projet.css') ;
47
    GEN_stockerStyleExterne('projet','client/projet/projet.css') ;
48
    GEN_stockerStyleExterne('projet_arbre','client/projet/arbre.css') ;
48
    GEN_stockerStyleExterne('projet_arbre','client/projet/arbre.css') ;
49
}
49
}
50
 
50
 
51
// +------------------------------------------------------------------------------------------------------+
51
// +------------------------------------------------------------------------------------------------------+
52
// |                                           LISTE des constantes                                       |
52
// |                                           LISTE des constantes                                       |
53
// +------------------------------------------------------------------------------------------------------+
53
// +------------------------------------------------------------------------------------------------------+
54
 
54
 
55
define ("PROJET_DEFAUT", 1) ;
55
define ("PROJET_DEFAUT", 1) ;
56
define ("PROJET_VOIR", 2) ;
56
define ("PROJET_VOIR", 2) ;
57
define ('PROJET_MENU_AFFICHER_CONTENU_CORPS', 1) ;
57
define ('PROJET_MENU_AFFICHER_CONTENU_CORPS', 1) ;
58
// +------------------------------------------------------------------------------------------------------+
58
// +------------------------------------------------------------------------------------------------------+
59
// |                                           LISTE de FONCTIONS                                         |
59
// |                                           LISTE de FONCTIONS                                         |
60
// +------------------------------------------------------------------------------------------------------+
60
// +------------------------------------------------------------------------------------------------------+
61
 
61
 
62
if (isset($_REQUEST[PROJET_VARIABLE_ID_PROJET])) {
62
if (isset($_REQUEST[PROJET_VARIABLE_ID_PROJET])) {
63
    function afficherContenuNavigation () {
63
    function afficherContenuNavigation () {
64
        $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ID_PROJET, $_REQUEST[PROJET_VARIABLE_ID_PROJET]) ;
64
        $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ID_PROJET, $_REQUEST[PROJET_VARIABLE_ID_PROJET]) ;
65
        if (empty($_REQUEST[PROJET_VARIABLE_ACTION])) {
65
        if (empty($_REQUEST[PROJET_VARIABLE_ACTION])) {
66
            $_REQUEST[PROJET_VARIABLE_ACTION] = PROJET_ACTION_VOIR_RESUME ;
66
            $_REQUEST[PROJET_VARIABLE_ACTION] = PROJET_ACTION_VOIR_RESUME ;
67
        }
67
        }
68
        $res = '' ;
68
        $res = '' ;
69
        if (isset($GLOBALS['_GEN_commun']['info_application']->presentation) && 
69
        if (isset($GLOBALS['_GEN_commun']['info_application']->presentation) && 
70
        			(($GLOBALS['_GEN_commun']['info_application']->presentation == 'arbre')
70
        			(($GLOBALS['_GEN_commun']['info_application']->presentation == 'arbre')
71
        			||($GLOBALS['_GEN_commun']['info_application']->presentation == 'liste'
71
        			||($GLOBALS['_GEN_commun']['info_application']->presentation == 'liste'
72
        			||($GLOBALS['_GEN_commun']['info_application']->presentation == 'tela')))) {
72
        			||($GLOBALS['_GEN_commun']['info_application']->presentation == 'tela')))) {
73
            $res .= '<ul class="onglets">';
73
            $res .= '<ul class="onglets">';
74
            $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_RESUME);
74
            $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_RESUME);
75
            $res .= '<li class="'.cma(PROJET_ACTION_VOIR_RESUME).'"><a href="'.$GLOBALS['url']->getURL().'">'.PROJET_SYNTHESE.'</a></li>';
75
            $res .= '<li class="'.cma(PROJET_ACTION_VOIR_RESUME).'"><a href="'.$GLOBALS['url']->getURL().'">'.PROJET_SYNTHESE.'</a></li>';
76
            $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_DESCRIPTION);
76
            $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_DESCRIPTION);
77
            $res .= '<li class="'.cma(PROJET_ACTION_VOIR_DESCRIPTION).'"><a href="'.$GLOBALS['url']->getURL().'">'.PROJET_DESCRIPTION.'</a></li>';
77
            $res .= '<li class="'.cma(PROJET_ACTION_VOIR_DESCRIPTION).'"><a href="'.$GLOBALS['url']->getURL().'">'.PROJET_DESCRIPTION.'</a></li>';
78
            $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_WIKINI);
78
            $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_WIKINI);
79
            $res .= '<li class="'.cma(PROJET_ACTION_VOIR_WIKINI).'"><a href="'.$GLOBALS['url']->getURL().'">'.PROJET_WIKINI.'</a></li>';
79
            $res .= '<li class="'.cma(PROJET_ACTION_VOIR_WIKINI).'"><a href="'.$GLOBALS['url']->getURL().'">'.PROJET_WIKINI.'</a></li>';
80
            $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_DOCUMENT) ;
80
            $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_DOCUMENT) ;
81
            $res .= '<li class="'.cma(PROJET_ACTION_VOIR_DOCUMENT).'"><a href="'.$GLOBALS['url']->getURL().'">Documents</a></li>';
81
            $res .= '<li class="'.cma(PROJET_ACTION_VOIR_DOCUMENT).'"><a href="'.$GLOBALS['url']->getURL().'">Documents</a></li>';
82
            $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_FORUM) ;
82
            $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_FORUM) ;
83
            $res .= '<li class="'.cma(PROJET_ACTION_VOIR_FORUM).'"><a href="'.$GLOBALS['url']->getURL().'">Forum</a></li>';
83
            $res .= '<li class="'.cma(PROJET_ACTION_VOIR_FORUM).'"><a href="'.$GLOBALS['url']->getURL().'">Forum</a></li>';
84
            $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_PARTICIPANT) ;
84
            $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_PARTICIPANT) ;
85
            $res .= '<li class="'.cma(PROJET_ACTION_VOIR_PARTICIPANT).'"><a href="'.$GLOBALS['url']->getURL().'">Participants</a></li>';
85
            $res .= '<li class="'.cma(PROJET_ACTION_VOIR_PARTICIPANT).'"><a href="'.$GLOBALS['url']->getURL().'">Participants</a></li>';
86
            $res .= '</ul>';
86
            $res .= '</ul>';
87
            $GLOBALS['url']->removeQueryString (PROJET_VARIABLE_ACTION) ;
87
            $GLOBALS['url']->removeQueryString (PROJET_VARIABLE_ACTION) ;
88
        }
88
        }
89
        if (isset ($GLOBALS['_GEN_commun']['info_application']->seulement_forum)) {
89
        if (isset ($GLOBALS['_GEN_commun']['info_application']->seulement_forum)) {
90
        	$res = '' ;
90
        	$res = '' ;
91
    	}
91
    	}
92
        return $res ;
92
        return $res ;
93
    }
93
    }
94
}
94
}
95
 
95
 
96
function afficherContenuMenu()
96
function afficherContenuMenu()
97
{
97
{
98
    $sortie  = '';
98
    $sortie  = '';
99
    // on fait de même pour id_projet
99
    // on fait de même pour id_projet
100
    $id_projet = isset($_REQUEST[PROJET_VARIABLE_ID_PROJET]) ? $_REQUEST[PROJET_VARIABLE_ID_PROJET] :  '';
100
    $id_projet = isset($_REQUEST[PROJET_VARIABLE_ID_PROJET]) ? $_REQUEST[PROJET_VARIABLE_ID_PROJET] :  '';
101
    
101
    
102
       // On recherche une action dans la variable $action, s'il n'y a pas, on envoie defaut
102
       // On recherche une action dans la variable $action, s'il n'y a pas, on envoie defaut
103
    $action = isset($_REQUEST[PROJET_VARIABLE_ACTION]) ? $_REQUEST[PROJET_VARIABLE_ACTION] : PROJET_DEFAUT;
103
    $action = isset($_REQUEST[PROJET_VARIABLE_ACTION]) ? $_REQUEST[PROJET_VARIABLE_ACTION] : PROJET_DEFAUT;
104
    
104
    
105
    // et pour id_repertoire
105
    // et pour id_repertoire
106
    $id_repertoire = isset($_REQUEST['id_repertoire']) ? $_REQUEST['id_repertoire'] : '';
106
    $id_repertoire = isset($_REQUEST['id_repertoire']) ? $_REQUEST['id_repertoire'] : '';
107
 
107
 
108
    $controleur = new projetControleur($GLOBALS['projet_db'], $GLOBALS['projet_auth'], $GLOBALS['url']) ;
108
    $controleur = new projetControleur($GLOBALS['projet_db'], $GLOBALS['projet_auth'], $GLOBALS['url']) ;
109
    
109
    
110
    if ($id_projet != '' && projet::projetExiste($GLOBALS['projet_db'], $id_projet)) {
110
    if ($id_projet != '' && projet::projetExiste($GLOBALS['projet_db'], $id_projet)) {
111
        $controleur->setIdProjet($id_projet) ;
111
        $controleur->setIdProjet($id_projet) ;
112
    }
112
    }
113
    if ($id_repertoire != "") {
113
    if ($id_repertoire != "") {
114
        $controleur->setIdRepertoire($id_repertoire) ;
114
        $controleur->setIdRepertoire($id_repertoire) ;
115
    }
115
    }
116
    if (isset ($GLOBALS['_GEN_commun']['info_application']->prive)) {
116
    if (isset ($GLOBALS['_GEN_commun']['info_application']->prive)) {
117
        $controleur->setPrive() ;
117
        $controleur->setPrive() ;
118
    }
118
    }
119
    
119
    
120
    // Dans le cas de la présentation par arbre, on met les menus
120
    // Dans le cas de la présentation par arbre, on met les menus
121
    if (isset($GLOBALS['_GEN_commun']['info_application']->presentation) && 
121
    if (isset($GLOBALS['_GEN_commun']['info_application']->presentation) && 
122
    				(($GLOBALS['_GEN_commun']['info_application']->presentation == 'arbre') || 
122
    				(($GLOBALS['_GEN_commun']['info_application']->presentation == 'arbre') || 
123
    				($GLOBALS['_GEN_commun']['info_application']->presentation == 'liste')
123
    				($GLOBALS['_GEN_commun']['info_application']->presentation == 'liste')
124
    				||($GLOBALS['_GEN_commun']['info_application']->presentation == 'tela'))){
124
    				||($GLOBALS['_GEN_commun']['info_application']->presentation == 'tela'))){
-
 
125
 
125
        $sortie .= $controleur->menuGeneral() ;
126
        $sortie .= $controleur->menuGeneral() ;
126
    }
127
    }
-
 
128
   	if (isset($GLOBALS['_GEN_commun']['info_application']->seulement)) {
-
 
129
		$controleur->setIdProjet($GLOBALS['_GEN_commun']['info_application']->seulement) ;	
-
 
130
	}
-
 
131
	if (isset($GLOBALS['_GEN_commun']['info_application']->telechargement)) {
-
 
132
		// L'action "Mettre un fichier en ligne"
-
 
133
        $controleur->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_NOUVEAU_FICHIER) ;
-
 
134
        $res = "<ul><li><a href=\"".$controleur->_url->getURL()."\">".PROJET_METTRE_FICHIER."</a></li>\n" ;
127
    
135
 
-
 
136
        // L'action créer un répertoire
-
 
137
        $controleur->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_NOUVEAU_REPERTOIRE) ;
-
 
138
        $res .= "<li><a href=\"".$controleur->_url->getURL()."\">".PROJET_CREER_REP."</a></li>\n" ;
-
 
139
		$res .= '</ul></li>' ;
-
 
140
		$sortie .= $res ;
-
 
141
	}
128
    // Dans le cas d'un forum simple, on ne met pas les menus
142
    // Dans le cas d'un forum simple, on ne met pas les menus
129
    if (isset ($GLOBALS['_GEN_commun']['info_application']->seulement_forum)) {
143
    if (isset ($GLOBALS['_GEN_commun']['info_application']->seulement_forum)) {
130
        	return ;
144
        	return ;
131
    }
145
    }
132
    return $sortie;
146
    return $sortie;
133
}
147
}
134
 
148
 
135
function afficherContenuCorps() {
149
function afficherContenuCorps() {
136
    
150
    
137
 
151
 
138
    // On recherche une action dans la variable $action, s'il n'y a pas, on envoie defaut
152
    // On recherche une action dans la variable $action, s'il n'y a pas, on envoie defaut
139
    $action = isset($_REQUEST[PROJET_VARIABLE_ACTION]) ? $_REQUEST[PROJET_VARIABLE_ACTION] : PROJET_DEFAUT;
153
    $action = isset($_REQUEST[PROJET_VARIABLE_ACTION]) ? $_REQUEST[PROJET_VARIABLE_ACTION] : PROJET_DEFAUT;
140
    
154
    
141
    // on fait de même pour id_projet
155
    // on fait de même pour id_projet
142
    $id_projet = isset($_REQUEST[PROJET_VARIABLE_ID_PROJET]) ? $_REQUEST[PROJET_VARIABLE_ID_PROJET] : '';
156
    $id_projet = isset($_REQUEST[PROJET_VARIABLE_ID_PROJET]) ? $_REQUEST[PROJET_VARIABLE_ID_PROJET] : '';
143
 
157
 
144
    // et pour id_repertoire
158
    // et pour id_repertoire
145
    $id_repertoire = isset($_REQUEST['id_repertoire']) ? $_REQUEST['id_repertoire'] : '';
159
    $id_repertoire = isset($_REQUEST['id_repertoire']) ? $_REQUEST['id_repertoire'] : '';
146
 
160
 
147
    // et pour id_document
161
    // et pour id_document
148
    $id_document = isset($_REQUEST['id_document']) ? $_REQUEST['id_document'] : '';
162
    $id_document = isset($_REQUEST['id_document']) ? $_REQUEST['id_document'] : '';
149
 
163
 
150
    // On construit le controleur en lui passant en paramètre l'identifiant de connexion à la BD
164
    // On construit le controleur en lui passant en paramètre l'identifiant de connexion à la BD
151
    // l'objet d'authentification et l'url de la page
165
    // l'objet d'authentification et l'url de la page
152
    
166
    
153
    $controleur = new projetControleur(&$GLOBALS['projet_db'], &$GLOBALS['projet_auth'], &$GLOBALS['url']) ;
167
    $controleur = new projetControleur(&$GLOBALS['projet_db'], &$GLOBALS['projet_auth'], &$GLOBALS['url']) ;
154
    $controleur->setAction ($action) ;
168
    $controleur->setAction ($action) ;
155
    
169
    
156
    // On indique au controleur sur quel projet on travaille
170
    // On indique au controleur sur quel projet on travaille
157
    
171
    
158
    if ($id_projet != "") {
172
    if ($id_projet != "") {
159
        $controleur->setIdProjet($id_projet) ;
173
        $controleur->setIdProjet($id_projet) ;
160
 
174
 
161
    }
175
    }
162
    if ($id_repertoire != "") {
176
    if ($id_repertoire != "") {
163
        $controleur->setIdRepertoire($id_repertoire) ;
177
        $controleur->setIdRepertoire($id_repertoire) ;
164
    }
178
    }
165
    if ($id_document != "") {
179
    if ($id_document != "") {
166
        $controleur->setIdDocument($id_document) ;
180
        $controleur->setIdDocument($id_document) ;
167
    }
181
    }
168
    
182
    
169
    // récupération des paramètres de l'appli
183
    // récupération des paramètres de l'appli
170
    if (isset($GLOBALS['_GEN_commun']['info_application']->presentation)) {
184
    if (isset($GLOBALS['_GEN_commun']['info_application']->presentation)) {
171
        $controleur->setPresentation($GLOBALS['_GEN_commun']['info_application']->presentation) ;
185
        $controleur->setPresentation($GLOBALS['_GEN_commun']['info_application']->presentation) ;
172
    }
186
    }
173
    if (isset($GLOBALS['_GEN_commun']['info_application']->projet_type)) {
187
    if (isset($GLOBALS['_GEN_commun']['info_application']->projet_type)) {
174
        $controleur->setType($GLOBALS['_GEN_commun']['info_application']->projet_type) ;
188
        $controleur->setType($GLOBALS['_GEN_commun']['info_application']->projet_type) ;
175
    }
189
    }
176
    if (isset ($GLOBALS['_GEN_commun']['info_application']->exclure)) {
190
    if (isset ($GLOBALS['_GEN_commun']['info_application']->exclure)) {
177
    	$a_exclure = explode (',', $GLOBALS['_GEN_commun']['info_application']->exclure) ;
191
    	$a_exclure = explode (',', $GLOBALS['_GEN_commun']['info_application']->exclure) ;
178
        foreach ($a_exclure as $valeur) $controleur->exclure($valeur) ;
192
        foreach ($a_exclure as $valeur) $controleur->exclure($valeur) ;
179
    }
193
    }
180
    if (isset ($GLOBALS['_GEN_commun']['info_application']->seulement_forum)) {
194
    if (isset ($GLOBALS['_GEN_commun']['info_application']->seulement_forum)) {
181
        $controleur->setIdProjet($GLOBALS['_GEN_commun']['info_application']->seulement_forum) ;
195
        $controleur->setIdProjet($GLOBALS['_GEN_commun']['info_application']->seulement_forum) ;
182
        // S'il n'y a pas d'action en mode forum, on affiche l'onglet Forum
196
        // S'il n'y a pas d'action en mode forum, on affiche l'onglet Forum
183
        if (!isset($_REQUEST[PROJET_VARIABLE_ACTION])) $controleur->setAction (PROJET_ACTION_VOIR_FORUM) ;
197
        if (!isset($_REQUEST[PROJET_VARIABLE_ACTION])) $controleur->setAction (PROJET_ACTION_VOIR_FORUM) ;
184
    }
198
    }
-
 
199
    
-
 
200
    if (isset($GLOBALS['_GEN_commun']['info_application']->telechargement)) {
-
 
201
    	if (!isset($_REQUEST[PROJET_VARIABLE_ACTION])) $controleur->setAction (PROJET_ACTION_VOIR_DOCUMENT) ;
-
 
202
    }
185
    
203
    
186
    if (isset ($GLOBALS['_GEN_commun']['info_application']->seulement)) {
204
    if (isset ($GLOBALS['_GEN_commun']['info_application']->seulement)) {
187
        $controleur->setIdProjet($GLOBALS['_GEN_commun']['info_application']->seulement) ;
205
        $controleur->setIdProjet($GLOBALS['_GEN_commun']['info_application']->seulement) ;
188
    }
206
    }
189
    
207
    
190
    // Si le parametre prive est passé, les inscriptions sont modérés
208
    // Si le parametre prive est passé, les inscriptions sont modérés
191
    // TODO : permettre la demande d'inscription
209
    // TODO : permettre la demande d'inscription
192
    if (isset ($GLOBALS['_GEN_commun']['info_application']->prive)) {
210
    if (isset ($GLOBALS['_GEN_commun']['info_application']->prive)) {
193
        $controleur->setPrive() ;
211
        $controleur->setPrive() ;
194
    }
212
    }
195
    $res = $controleur->run() ;
213
    $res = $controleur->run() ;
196
 
214
 
197
    return $res ;
215
    return $res ;
198
}
216
}
199
 
217
 
200
/** cma() calcule menu actif
218
/** cma() calcule menu actif
201
 *
219
 *
202
 *
220
 *
203
 * @return
221
 * @return
204
 */
222
 */
205
 
223
 
206
function cma ($var) {
224
function cma ($var) {
207
    $class = $_REQUEST[PROJET_VARIABLE_ACTION] == $var ?  'menu_actif' :  'menu_inactif' ;
225
    $class = $_REQUEST[PROJET_VARIABLE_ACTION] == $var ?  'menu_actif' :  'menu_inactif' ;
208
    return $class ;
226
    return $class ;
209
}
227
}
210
/* +--Fin du code ----------------------------------------------------------------------------------------+
228
/* +--Fin du code ----------------------------------------------------------------------------------------+
211
*
229
*
212
* $Log: not supported by cvs2svn $
230
* $Log: not supported by cvs2svn $
-
 
231
* Revision 1.9  2005/11/25 14:48:44  alexandre_tb
-
 
232
* ajout de la gestion de la présentation tela
-
 
233
*
213
* Revision 1.8  2005/10/25 13:50:13  alexandre_tb
234
* Revision 1.8  2005/10/25 13:50:13  alexandre_tb
214
* Ajout de la gestion des projets privés
235
* Ajout de la gestion des projets privés
215
*
236
*
216
* Revision 1.7  2005/10/17 16:22:28  alexandre_tb
237
* Revision 1.7  2005/10/17 16:22:28  alexandre_tb
217
* rien
238
* rien
218
*
239
*
219
* Revision 1.6  2005/10/06 14:54:06  alexandre_tb
240
* Revision 1.6  2005/10/06 14:54:06  alexandre_tb
220
* ajout de la gestion du paramètre seulement_forum
241
* ajout de la gestion du paramètre seulement_forum
221
*
242
*
222
* Revision 1.5  2005/10/04 10:06:32  alexandre_tb
243
* Revision 1.5  2005/10/04 10:06:32  alexandre_tb
223
* ajout du parametre seulement_forum
244
* ajout du parametre seulement_forum
224
*
245
*
225
* Revision 1.4  2005/09/28 16:29:39  ddelon
246
* Revision 1.4  2005/09/28 16:29:39  ddelon
226
* Merge modification projet
247
* Merge modification projet
227
*
248
*
228
* Revision 1.3  2005/09/27 16:31:06  alexandre_tb
249
* Revision 1.3  2005/09/27 16:31:06  alexandre_tb
229
* ??
250
* ??
230
*
251
*
231
*
252
*
232
* +-- Fin du code ----------------------------------------------------------------------------------------+
253
* +-- Fin du code ----------------------------------------------------------------------------------------+
233
*/
254
*/
234
 
255
 
235
 
256
 
236
?>
257
?>