Subversion Repositories Applications.projet

Rev

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

Rev 127 Rev 198
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.12 2006-07-04 09:35:04 alexandre_tb Exp $
22
// CVS : $Id: projet.php,v 1.13 2007-04-19 09:18:46 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.12 $
34
*@version       $Revision: 1.13 $
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
	if (file_exists('client/projet/projet.css')) GEN_stockerStyleExterne('projet','client/projet/projet.css') ;
47
	if (file_exists('client/projet/projet.css')) GEN_stockerStyleExterne('projet','client/projet/projet.css') ;
48
    if (file_exists('client/projet/arbre.css')) GEN_stockerStyleExterne('projet_arbre','client/projet/arbre.css') ;
48
    if (file_exists('client/projet/arbre.css')) 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
            $res .= '<ul class="onglets">';
70
            $res .= '<ul class="onglets">';
71
            $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_RESUME);
71
            $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_RESUME);
72
            $res .= '<li id="projet_resume" class="'.cma(PROJET_ACTION_VOIR_RESUME).'"><a href="'.$GLOBALS['url']->getURL().'">'.PROJET_SYNTHESE.'</a></li>';
72
            $res .= '<li id="projet_resume" class="'.cma(PROJET_ACTION_VOIR_RESUME).'"><a href="'.$GLOBALS['url']->getURL().'">'.PROJET_SYNTHESE.'</a></li>';
73
            $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_DESCRIPTION);
73
            $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_DESCRIPTION);
74
            $res .= '<li id="projet_description" class="'.cma(PROJET_ACTION_VOIR_DESCRIPTION).'"><a href="'.$GLOBALS['url']->getURL().'">'.PROJET_DESCRIPTION.'</a></li>';
74
            $res .= '<li id="projet_description" class="'.cma(PROJET_ACTION_VOIR_DESCRIPTION).'"><a href="'.$GLOBALS['url']->getURL().'">'.PROJET_DESCRIPTION.'</a></li>';
75
            $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_WIKINI);
75
            $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_WIKINI);
76
            $res .= '<li id="projet_wikini" class="'.cma(PROJET_ACTION_VOIR_WIKINI).'"><a href="'.$GLOBALS['url']->getURL().'">'.PROJET_WIKINI.'</a></li>';
76
            $res .= '<li id="projet_wikini" class="'.cma(PROJET_ACTION_VOIR_WIKINI).'"><a href="'.$GLOBALS['url']->getURL().'">'.PROJET_WIKINI.'</a></li>';
77
            $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_DOCUMENT) ;
77
            $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_DOCUMENT) ;
78
            $res .= '<li id="projet_documents" class="'.cma(PROJET_ACTION_VOIR_DOCUMENT).'"><a href="'.$GLOBALS['url']->getURL().'">Documents</a></li>';
78
            $res .= '<li id="projet_documents" class="'.cma(PROJET_ACTION_VOIR_DOCUMENT).'"><a href="'.$GLOBALS['url']->getURL().'">Documents</a></li>';
79
            $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_FORUM) ;
79
            $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_FORUM) ;
80
            $res .= '<li id="projet_forum" class="'.cma(PROJET_ACTION_VOIR_FORUM).'"><a href="'.$GLOBALS['url']->getURL().'">Forum</a></li>';
80
            $res .= '<li id="projet_forum" class="'.cma(PROJET_ACTION_VOIR_FORUM).'"><a href="'.$GLOBALS['url']->getURL().'">Forum</a></li>';
81
            $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_PARTICIPANT) ;
81
            $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_PARTICIPANT) ;
82
            $res .= '<li id="projet_participants" class="'.cma(PROJET_ACTION_VOIR_PARTICIPANT).'"><a href="'.$GLOBALS['url']->getURL().'">Participants</a></li>';
82
            $res .= '<li id="projet_participants" class="'.cma(PROJET_ACTION_VOIR_PARTICIPANT).'"><a href="'.$GLOBALS['url']->getURL().'">Participants</a></li>';
83
            $res .= '</ul>';
83
            $res .= '</ul>';
84
            $GLOBALS['url']->removeQueryString (PROJET_VARIABLE_ACTION) ;
84
            $GLOBALS['url']->removeQueryString (PROJET_VARIABLE_ACTION) ;
85
        }
85
        }
86
        if (isset ($GLOBALS['_GEN_commun']['info_application']->seulement_forum)) {
86
        if (isset ($GLOBALS['_GEN_commun']['info_application']->seulement_forum)) {
87
        	$res = '' ;
87
        	$res = '' ;
88
    	}
88
    	}
89
        return $res ;
89
        return $res ;
90
    }
90
    }
91
}
91
}
92
 
92
 
93
function afficherContenuMenu()
93
function afficherContenuMenu()
94
{
94
{
95
    $sortie  = '';
95
    $sortie  = '';
96
    // on fait de même pour id_projet
96
    // on fait de même pour id_projet
97
    $id_projet = isset($_REQUEST[PROJET_VARIABLE_ID_PROJET]) ? $_REQUEST[PROJET_VARIABLE_ID_PROJET] :  '';
97
    $id_projet = isset($_REQUEST[PROJET_VARIABLE_ID_PROJET]) ? $_REQUEST[PROJET_VARIABLE_ID_PROJET] :  '';
98
    
98
    
99
       // On recherche une action dans la variable $action, s'il n'y a pas, on envoie defaut
99
       // On recherche une action dans la variable $action, s'il n'y a pas, on envoie defaut
100
    $action = isset($_REQUEST[PROJET_VARIABLE_ACTION]) ? $_REQUEST[PROJET_VARIABLE_ACTION] : PROJET_DEFAUT;
100
    $action = isset($_REQUEST[PROJET_VARIABLE_ACTION]) ? $_REQUEST[PROJET_VARIABLE_ACTION] : PROJET_DEFAUT;
-
 
101
    
101
    
102
    
102
    // et pour id_repertoire
103
    // et pour id_repertoire
103
    $id_repertoire = isset($_REQUEST['id_repertoire']) ? $_REQUEST['id_repertoire'] : '';
104
    $id_repertoire = isset($_REQUEST['id_repertoire']) ? $_REQUEST['id_repertoire'] : '';
104
 
105
 
105
    $controleur = new projetControleur($GLOBALS['projet_db'], $GLOBALS['projet_auth'], $GLOBALS['url']) ;
106
    $controleur = new projetControleur($GLOBALS['projet_db'], $GLOBALS['projet_auth'], $GLOBALS['url']) ;
106
    
107
    
107
    if ($id_projet != '' && projet::projetExiste($GLOBALS['projet_db'], $id_projet)) {
108
    if ($id_projet != '' && projet::projetExiste($GLOBALS['projet_db'], $id_projet)) {
108
        $controleur->setIdProjet($id_projet) ;
109
        $controleur->setIdProjet($id_projet) ;
109
    }
110
    }
110
    if ($id_repertoire != "") {
111
    if ($id_repertoire != "") {
111
        $controleur->setIdRepertoire($id_repertoire) ;
112
        $controleur->setIdRepertoire($id_repertoire) ;
112
    }
113
    }
113
    if (isset ($GLOBALS['_GEN_commun']['info_application']->prive)) {
114
    if (isset ($GLOBALS['_GEN_commun']['info_application']->prive)) {
114
        $controleur->setPrive() ;
115
        $controleur->setPrive() ;
115
    }
116
    }
116
    
117
    
117
    // Dans le cas de la présentation par arbre, on met les menus
118
    // Dans le cas de la présentation par arbre, on met les menus
118
    if (isset($GLOBALS['_GEN_commun']['info_application']->presentation)){
119
    if (isset($GLOBALS['_GEN_commun']['info_application']->presentation)){
119
 
120
 
120
        $sortie .= $controleur->menuGeneral() ;
121
        $sortie .= $controleur->menuGeneral() ;
121
    }
122
    }
122
   	if (isset($GLOBALS['_GEN_commun']['info_application']->seulement)) {
123
   	if (isset($GLOBALS['_GEN_commun']['info_application']->seulement)) {
123
		$controleur->setIdProjet($GLOBALS['_GEN_commun']['info_application']->seulement) ;	
124
		$controleur->setIdProjet($GLOBALS['_GEN_commun']['info_application']->seulement) ;	
124
	}
125
	}
125
	if (isset($GLOBALS['_GEN_commun']['info_application']->telechargement)) {
126
	if (isset($GLOBALS['_GEN_commun']['info_application']->telechargement)) {
126
		// L'action "Mettre un fichier en ligne"
127
		// L'action "Mettre un fichier en ligne"
127
        $controleur->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_NOUVEAU_FICHIER) ;
128
        $controleur->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_NOUVEAU_FICHIER) ;
128
        $res = "<ul><li><a href=\"".$controleur->_url->getURL()."\">".PROJET_METTRE_FICHIER."</a></li>\n" ;
129
        $res = "<ul><li><a href=\"".$controleur->_url->getURL()."\">".PROJET_METTRE_FICHIER."</a></li>\n" ;
129
 
130
 
130
        // L'action créer un répertoire
131
        // L'action créer un répertoire
131
        $controleur->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_NOUVEAU_REPERTOIRE) ;
132
        $controleur->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_NOUVEAU_REPERTOIRE) ;
132
        $res .= "<li><a href=\"".$controleur->_url->getURL()."\">".PROJET_CREER_REP."</a></li>\n" ;
133
        $res .= "<li><a href=\"".$controleur->_url->getURL()."\">".PROJET_CREER_REP."</a></li>\n" ;
133
		$res .= '</ul></li>' ;
134
		$res .= '</ul></li>' ;
134
		$sortie .= $res ;
135
		$sortie .= $res ;
135
	}
136
	}
136
    // Dans le cas d'un forum simple, on ne met pas les menus
137
    // Dans le cas d'un forum simple, on ne met pas les menus
137
    if (isset ($GLOBALS['_GEN_commun']['info_application']->seulement_forum)) {
138
    if (isset ($GLOBALS['_GEN_commun']['info_application']->seulement_forum)) {
138
        	return ;
139
        	return ;
139
    }
140
    }
140
    return $sortie;
141
    return $sortie;
141
}
142
}
142
 
143
 
143
function afficherContenuCorps() {
144
function afficherContenuCorps() {
144
    
145
    
145
 
146
 
146
    // On recherche une action dans la variable $action, s'il n'y a pas, on envoie defaut
147
    // On recherche une action dans la variable $action, s'il n'y a pas, on envoie defaut
147
    $action = isset($_REQUEST[PROJET_VARIABLE_ACTION]) ? $_REQUEST[PROJET_VARIABLE_ACTION] : PROJET_DEFAUT;
148
    $action = isset($_REQUEST[PROJET_VARIABLE_ACTION]) ? $_REQUEST[PROJET_VARIABLE_ACTION] : PROJET_DEFAUT;
148
    
149
    
149
    // on fait de même pour id_projet
150
    // on fait de même pour id_projet
150
    $id_projet = isset($_REQUEST[PROJET_VARIABLE_ID_PROJET]) ? $_REQUEST[PROJET_VARIABLE_ID_PROJET] : '';
151
    $id_projet = isset($_REQUEST[PROJET_VARIABLE_ID_PROJET]) ? $_REQUEST[PROJET_VARIABLE_ID_PROJET] : '';
-
 
152
 
-
 
153
	$service = isset($_REQUEST[PROJET_VARIABLE_SERVICE]) ? $_REQUEST[PROJET_VARIABLE_SERVICE] : '';
-
 
154
	
151
 
155
	
152
    // et pour id_repertoire
156
    // et pour id_repertoire
153
    $id_repertoire = isset($_REQUEST['id_repertoire']) ? $_REQUEST['id_repertoire'] : '';
157
    $id_repertoire = isset($_REQUEST['id_repertoire']) ? $_REQUEST['id_repertoire'] : '';
154
 
158
 
155
    // et pour id_document
159
    // et pour id_document
156
    $id_document = isset($_REQUEST['id_document']) ? $_REQUEST['id_document'] : '';
160
    $id_document = isset($_REQUEST['id_document']) ? $_REQUEST['id_document'] : '';
157
 
161
 
158
    // On construit le controleur en lui passant en paramètre l'identifiant de connexion à la BD
162
    // On construit le controleur en lui passant en paramètre l'identifiant de connexion à la BD
159
    // l'objet d'authentification et l'url de la page
163
    // l'objet d'authentification et l'url de la page
160
    
164
    
161
    $controleur = new projetControleur(&$GLOBALS['projet_db'], &$GLOBALS['projet_auth'], &$GLOBALS['url']) ;
165
    $controleur = new projetControleur(&$GLOBALS['projet_db'], &$GLOBALS['projet_auth'], &$GLOBALS['url']) ;
162
    $controleur->setAction ($action) ;
166
    $controleur->setAction ($action) ;
-
 
167
    $controleur->setService($service);
163
    
168
    
164
    // On indique au controleur sur quel projet on travaille
169
    // On indique au controleur sur quel projet on travaille
165
    
170
    
166
    if ($id_projet != "") {
171
    if ($id_projet != "") {
167
        $controleur->setIdProjet($id_projet) ;
172
        $controleur->setIdProjet($id_projet) ;
168
 
173
 
169
    }
174
    }
170
    if ($id_repertoire != "") {
175
    if ($id_repertoire != "") {
171
        $controleur->setIdRepertoire($id_repertoire) ;
176
        $controleur->setIdRepertoire($id_repertoire) ;
172
    }
177
    }
173
    if ($id_document != "") {
178
    if ($id_document != "") {
174
        $controleur->setIdDocument($id_document) ;
179
        $controleur->setIdDocument($id_document) ;
175
    }
180
    }
176
    
181
    
177
    // récupération des paramètres de l'appli
182
    // récupération des paramètres de l'appli
178
    if (isset($GLOBALS['_GEN_commun']['info_application']->presentation)) {
183
    if (isset($GLOBALS['_GEN_commun']['info_application']->presentation)) {
179
        $controleur->setPresentation($GLOBALS['_GEN_commun']['info_application']->presentation) ;
184
        $controleur->setPresentation($GLOBALS['_GEN_commun']['info_application']->presentation) ;
180
    }
185
    }
181
    if (isset($GLOBALS['_GEN_commun']['info_application']->projet_type)) {
186
    if (isset($GLOBALS['_GEN_commun']['info_application']->projet_type)) {
182
        $controleur->setType($GLOBALS['_GEN_commun']['info_application']->projet_type) ;
187
        $controleur->setType($GLOBALS['_GEN_commun']['info_application']->projet_type) ;
183
    }
188
    }
184
    if (isset ($GLOBALS['_GEN_commun']['info_application']->exclure)) {
189
    if (isset ($GLOBALS['_GEN_commun']['info_application']->exclure)) {
185
    	$a_exclure = explode (',', $GLOBALS['_GEN_commun']['info_application']->exclure) ;
190
    	$a_exclure = explode (',', $GLOBALS['_GEN_commun']['info_application']->exclure) ;
186
        foreach ($a_exclure as $valeur) $controleur->exclure($valeur) ;
191
        foreach ($a_exclure as $valeur) $controleur->exclure($valeur) ;
187
    }
192
    }
188
    if (isset ($GLOBALS['_GEN_commun']['info_application']->seulement_forum)) {
193
    if (isset ($GLOBALS['_GEN_commun']['info_application']->seulement_forum)) {
189
        $controleur->setIdProjet($GLOBALS['_GEN_commun']['info_application']->seulement_forum) ;
194
        $controleur->setIdProjet($GLOBALS['_GEN_commun']['info_application']->seulement_forum) ;
190
        // S'il n'y a pas d'action en mode forum, on affiche l'onglet Forum
195
        // S'il n'y a pas d'action en mode forum, on affiche l'onglet Forum
191
        if (!isset($_REQUEST[PROJET_VARIABLE_ACTION])) $controleur->setAction (PROJET_ACTION_VOIR_FORUM) ;
196
        if (!isset($_REQUEST[PROJET_VARIABLE_ACTION])) $controleur->setAction (PROJET_ACTION_VOIR_FORUM) ;
192
    }
197
    }
193
    
198
    
194
    if (isset($GLOBALS['_GEN_commun']['info_application']->telechargement)) {
199
    if (isset($GLOBALS['_GEN_commun']['info_application']->telechargement)) {
195
    	if (!isset($_REQUEST[PROJET_VARIABLE_ACTION])) $controleur->setAction (PROJET_ACTION_VOIR_DOCUMENT) ;
200
    	if (!isset($_REQUEST[PROJET_VARIABLE_ACTION])) $controleur->setAction (PROJET_ACTION_VOIR_DOCUMENT) ;
196
    }
201
    }
197
    
202
    
198
    if (isset ($GLOBALS['_GEN_commun']['info_application']->seulement)) {
203
    if (isset ($GLOBALS['_GEN_commun']['info_application']->seulement)) {
199
        $controleur->setIdProjet($GLOBALS['_GEN_commun']['info_application']->seulement) ;
204
        $controleur->setIdProjet($GLOBALS['_GEN_commun']['info_application']->seulement) ;
200
    }
205
    }
201
    
206
    
202
    // Si le parametre prive est passé, les inscriptions sont modérés
207
    // Si le parametre prive est passé, les inscriptions sont modérés
203
    // TODO : permettre la demande d'inscription
208
    // TODO : permettre la demande d'inscription
204
    if (isset ($GLOBALS['_GEN_commun']['info_application']->prive)) {
209
    if (isset ($GLOBALS['_GEN_commun']['info_application']->prive)) {
205
        $controleur->setPrive() ;
210
        $controleur->setPrive() ;
206
    }
211
    }
207
    $res = $controleur->run() ;
212
    $res = $controleur->run() ;
208
 
213
 
209
    return $res ;
214
    return $res ;
210
}
215
}
211
 
216
 
212
/** cma() calcule menu actif
217
/** cma() calcule menu actif
213
 *
218
 *
214
 *
219
 *
215
 * @return
220
 * @return
216
 */
221
 */
217
 
222
 
218
function cma ($var) {
223
function cma ($var) {
219
    $class = $_REQUEST[PROJET_VARIABLE_ACTION] == $var ?  'menu_actif' :  'menu_inactif' ;
224
    $class = $_REQUEST[PROJET_VARIABLE_ACTION] == $var ?  'menu_actif' :  'menu_inactif' ;
220
    return $class ;
225
    return $class ;
221
}
226
}
222
/* +--Fin du code ----------------------------------------------------------------------------------------+
227
/* +--Fin du code ----------------------------------------------------------------------------------------+
223
*
228
*
224
* $Log: not supported by cvs2svn $
229
* $Log: not supported by cvs2svn $
-
 
230
* Revision 1.12  2006/07/04 09:35:04  alexandre_tb
-
 
231
* Simplification du code et ajout de controle
-
 
232
*
225
* Revision 1.11  2006/04/28 12:41:28  florian
233
* Revision 1.11  2006/04/28 12:41:28  florian
226
* corrections erreurs chemin
234
* corrections erreurs chemin
227
*
235
*
228
* Revision 1.10  2005/12/01 16:38:32  alexandre_tb
236
* Revision 1.10  2005/12/01 16:38:32  alexandre_tb
229
* ajout de l'action telechargement
237
* ajout de l'action telechargement
230
*
238
*
231
* Revision 1.9  2005/11/25 14:48:44  alexandre_tb
239
* Revision 1.9  2005/11/25 14:48:44  alexandre_tb
232
* ajout de la gestion de la présentation tela
240
* ajout de la gestion de la présentation tela
233
*
241
*
234
* Revision 1.8  2005/10/25 13:50:13  alexandre_tb
242
* Revision 1.8  2005/10/25 13:50:13  alexandre_tb
235
* Ajout de la gestion des projets privés
243
* Ajout de la gestion des projets privés
236
*
244
*
237
* Revision 1.7  2005/10/17 16:22:28  alexandre_tb
245
* Revision 1.7  2005/10/17 16:22:28  alexandre_tb
238
* rien
246
* rien
239
*
247
*
240
* Revision 1.6  2005/10/06 14:54:06  alexandre_tb
248
* Revision 1.6  2005/10/06 14:54:06  alexandre_tb
241
* ajout de la gestion du paramètre seulement_forum
249
* ajout de la gestion du paramètre seulement_forum
242
*
250
*
243
* Revision 1.5  2005/10/04 10:06:32  alexandre_tb
251
* Revision 1.5  2005/10/04 10:06:32  alexandre_tb
244
* ajout du parametre seulement_forum
252
* ajout du parametre seulement_forum
245
*
253
*
246
* Revision 1.4  2005/09/28 16:29:39  ddelon
254
* Revision 1.4  2005/09/28 16:29:39  ddelon
247
* Merge modification projet
255
* Merge modification projet
248
*
256
*
249
* Revision 1.3  2005/09/27 16:31:06  alexandre_tb
257
* Revision 1.3  2005/09/27 16:31:06  alexandre_tb
250
* ??
258
* ??
251
*
259
*
252
*
260
*
253
* +-- Fin du code ----------------------------------------------------------------------------------------+
261
* +-- Fin du code ----------------------------------------------------------------------------------------+
254
*/
262
*/
255
 
263
 
256
 
264
 
257
?>
265
?>