Subversion Repositories Applications.projet

Rev

Rev 435 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 435 Rev 444
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.15 2007-06-25 12:15:06 alexandre_tb Exp $
22
// CVS : $Id: projet.php,v 1.15 2007-06-25 12:15:06 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.15 $
34
*@version       $Revision: 1.15 $
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
 
-
 
45
// meta OpenGraph pour reseaux sociaux
-
 
46
GEN_modifierMetaProperty('og:title', 'Projets');
-
 
47
GEN_modifierMetaProperty('og:description', 'Rejoignez-nous et participez aux projets de Tela Botanica. &Eacute;changez et produisez de la connaissance  &agrave; travers des forums g&eacute;n&eacute;ralistes ou sp&eacute;cialis&eacute;s.');
44
 
48
 
45
// Inclusion des styles selon papyrus
49
// Inclusion des styles selon papyrus
46
if (function_exists("GEN_stockerStyleExterne")) {
50
if (function_exists("GEN_stockerStyleExterne")) {
47
	if (file_exists(PROJET_CHEMIN_APPLI . 'projet.css')) GEN_stockerStyleExterne('projet', PROJET_CHEMIN_APPLI . 'projet.css') ;
51
	if (file_exists(PROJET_CHEMIN_APPLI . 'projet.css')) GEN_stockerStyleExterne('projet', PROJET_CHEMIN_APPLI . 'projet.css') ;
48
}
52
}
49
 
53
 
50
// Nettoyage de la variable logout de papyrus
54
// Nettoyage de la variable logout de papyrus
51
$GLOBALS['url']->removeQueryString('logout');
55
$GLOBALS['url']->removeQueryString('logout');
52
 
56
 
53
// Nous indiquons � Papyrus de ne pas chercher de balises d'applettes dans le contenu g�n�r� par l'appli
57
// Nous indiquons � Papyrus de ne pas chercher de balises d'applettes dans le contenu g�n�r� par l'appli
54
$GLOBALS['_PAPYRUS_']['applette']['analyse'] = true;
58
$GLOBALS['_PAPYRUS_']['applette']['analyse'] = true;
55
// +------------------------------------------------------------------------------------------------------+
59
// +------------------------------------------------------------------------------------------------------+
56
// |                                           LISTE des constantes                                       |
60
// |                                           LISTE des constantes                                       |
57
// +------------------------------------------------------------------------------------------------------+
61
// +------------------------------------------------------------------------------------------------------+
58
 
62
 
59
define ("PROJET_DEFAUT", 1) ;
63
define ("PROJET_DEFAUT", 1) ;
60
define ("PROJET_VOIR", 2) ;
64
define ("PROJET_VOIR", 2) ;
61
define ('PROJET_MENU_AFFICHER_CONTENU_CORPS', 1) ;
65
define ('PROJET_MENU_AFFICHER_CONTENU_CORPS', 1) ;
62
// +------------------------------------------------------------------------------------------------------+
66
// +------------------------------------------------------------------------------------------------------+
63
// |                                           LISTE de FONCTIONS                                         |
67
// |                                           LISTE de FONCTIONS                                         |
64
// +------------------------------------------------------------------------------------------------------+
68
// +------------------------------------------------------------------------------------------------------+
65
 
69
 
66
if (isset($_REQUEST[PROJET_VARIABLE_ID_PROJET])) {
70
if (isset($_REQUEST[PROJET_VARIABLE_ID_PROJET])) {
67
    function afficherContenuNavigation () {
71
    function afficherContenuNavigation () {
68
        $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ID_PROJET, $_REQUEST[PROJET_VARIABLE_ID_PROJET]) ;
72
        $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ID_PROJET, $_REQUEST[PROJET_VARIABLE_ID_PROJET]) ;
69
        if (empty($_REQUEST[PROJET_VARIABLE_ACTION])) {
73
        if (empty($_REQUEST[PROJET_VARIABLE_ACTION])) {
70
            $_REQUEST[PROJET_VARIABLE_ACTION] = PROJET_ACTION_VOIR_RESUME ;
74
            $_REQUEST[PROJET_VARIABLE_ACTION] = PROJET_ACTION_VOIR_RESUME ;
71
        }
75
        }
72
        $res = '' ;
76
        $res = '' ;
73
        if (isset($GLOBALS['_GEN_commun']['info_application']->presentation)) {
77
        if (isset($GLOBALS['_GEN_commun']['info_application']->presentation)) {
74
            $res .= '<ul class="onglets">';
78
            $res .= '<ul class="onglets">';
75
            $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_RESUME);
79
            $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_RESUME);
76
            $res .= '<li id="projet_resume" class="'.cma(PROJET_ACTION_VOIR_RESUME).'"><a href="'.$GLOBALS['url']->getURL().'">'.PROJET_SYNTHESE.'</a></li>';
80
            $res .= '<li id="projet_resume" class="'.cma(PROJET_ACTION_VOIR_RESUME).'"><a href="'.$GLOBALS['url']->getURL().'">'.PROJET_SYNTHESE.'</a></li>';
77
            $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_DESCRIPTION);
81
            $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_DESCRIPTION);
78
            $res .= '<li id="projet_description" class="'.cma(PROJET_ACTION_VOIR_DESCRIPTION).'"><a href="'.$GLOBALS['url']->getURL().'">'.PROJET_DESCRIPTION.'</a></li>';
82
            $res .= '<li id="projet_description" class="'.cma(PROJET_ACTION_VOIR_DESCRIPTION).'"><a href="'.$GLOBALS['url']->getURL().'">'.PROJET_DESCRIPTION.'</a></li>';
79
            $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_WIKINI);
83
            $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_WIKINI);
80
            $res .= '<li id="projet_wikini" class="'.cma(PROJET_ACTION_VOIR_WIKINI).'"><a href="'.$GLOBALS['url']->getURL().'">'.PROJET_WIKINI.'</a></li>';
84
            $res .= '<li id="projet_wikini" class="'.cma(PROJET_ACTION_VOIR_WIKINI).'"><a href="'.$GLOBALS['url']->getURL().'">'.PROJET_WIKINI.'</a></li>';
81
            $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_DOCUMENT) ;
85
            $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_DOCUMENT) ;
82
            $res .= '<li id="projet_documents" class="'.cma(PROJET_ACTION_VOIR_DOCUMENT).'"><a href="'.$GLOBALS['url']->getURL().'">Documents</a></li>';
86
            $res .= '<li id="projet_documents" class="'.cma(PROJET_ACTION_VOIR_DOCUMENT).'"><a href="'.$GLOBALS['url']->getURL().'">Documents</a></li>';
83
            $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_FORUM) ;
87
            $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_FORUM) ;
84
            $res .= '<li id="projet_forum" class="'.cma(PROJET_ACTION_VOIR_FORUM).'"><a href="'.$GLOBALS['url']->getURL().'">Forum</a></li>';
88
            $res .= '<li id="projet_forum" class="'.cma(PROJET_ACTION_VOIR_FORUM).'"><a href="'.$GLOBALS['url']->getURL().'">Forum</a></li>';
85
            $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_PARTICIPANT) ;
89
            $GLOBALS['url']->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_PARTICIPANT) ;
86
            $res .= '<li id="projet_participants" class="'.cma(PROJET_ACTION_VOIR_PARTICIPANT).'"><a href="'.$GLOBALS['url']->getURL().'">Participants</a></li>';
90
            $res .= '<li id="projet_participants" class="'.cma(PROJET_ACTION_VOIR_PARTICIPANT).'"><a href="'.$GLOBALS['url']->getURL().'">Participants</a></li>';
87
            $res .= '</ul>';
91
            $res .= '</ul>';
88
            //$GLOBALS['url']->removeQueryString (PROJET_VARIABLE_ACTION) ;
92
            //$GLOBALS['url']->removeQueryString (PROJET_VARIABLE_ACTION) ;
89
        }
93
        }
90
        if (isset ($GLOBALS['_GEN_commun']['info_application']->seulement_forum)) {
94
        if (isset ($GLOBALS['_GEN_commun']['info_application']->seulement_forum)) {
91
        	$res = '' ;
95
        	$res = '' ;
92
    	}
96
    	}
93
        return $res ;
97
        return $res ;
94
    }
98
    }
95
}
99
}
96
 
100
 
97
function afficherContenuMenu()
101
function afficherContenuMenu()
98
{
102
{
99
    $sortie  = '';
103
    $sortie  = '';
100
    // on fait de meme pour id_projet
104
    // on fait de meme pour id_projet
101
    $id_projet = isset($_REQUEST[PROJET_VARIABLE_ID_PROJET]) ? $_REQUEST[PROJET_VARIABLE_ID_PROJET] :  '';
105
    $id_projet = isset($_REQUEST[PROJET_VARIABLE_ID_PROJET]) ? $_REQUEST[PROJET_VARIABLE_ID_PROJET] :  '';
102
    
106
    
103
       // On recherche une action dans la variable $action, s'il n'y a pas, on envoie defaut
107
       // On recherche une action dans la variable $action, s'il n'y a pas, on envoie defaut
104
    $action = isset($_REQUEST[PROJET_VARIABLE_ACTION]) ? $_REQUEST[PROJET_VARIABLE_ACTION] : PROJET_DEFAUT;
108
    $action = isset($_REQUEST[PROJET_VARIABLE_ACTION]) ? $_REQUEST[PROJET_VARIABLE_ACTION] : PROJET_DEFAUT;
105
    
109
    
106
    
110
    
107
    // et pour id_repertoire
111
    // et pour id_repertoire
108
    $id_repertoire = isset($_REQUEST['id_repertoire']) ? $_REQUEST['id_repertoire'] : '';
112
    $id_repertoire = isset($_REQUEST['id_repertoire']) ? $_REQUEST['id_repertoire'] : '';
109
 
113
 
110
    $controleur = new projetControleur($GLOBALS['projet_db'], $GLOBALS['projet_auth'], $GLOBALS['url']) ;
114
    $controleur = new projetControleur($GLOBALS['projet_db'], $GLOBALS['projet_auth'], $GLOBALS['url']) ;
111
    
115
    
112
    include_once PROJET_CHEMIN_CLASSES.'projet.class.php' ;
116
    include_once PROJET_CHEMIN_CLASSES.'projet.class.php' ;
113
    if ($id_projet != '' && projet::projetExiste($GLOBALS['projet_db'], $id_projet)) {
117
    if ($id_projet != '' && projet::projetExiste($GLOBALS['projet_db'], $id_projet)) {
114
        $controleur->setIdProjet($id_projet) ;
118
        $controleur->setIdProjet($id_projet) ;
115
    }
119
    }
116
    if ($id_repertoire != "") {
120
    if ($id_repertoire != "") {
117
        $controleur->setIdRepertoire($id_repertoire) ;
121
        $controleur->setIdRepertoire($id_repertoire) ;
118
    }
122
    }
119
    if (isset ($GLOBALS['_GEN_commun']['info_application']->prive)) {
123
    if (isset ($GLOBALS['_GEN_commun']['info_application']->prive)) {
120
        $controleur->setPrive() ;
124
        $controleur->setPrive() ;
121
    }
125
    }
122
    
126
    
123
    // Dans le cas de la presentation par arbre, on met les menus
127
    // Dans le cas de la presentation par arbre, on met les menus
124
    if (isset($GLOBALS['_GEN_commun']['info_application']->presentation)){
128
    if (isset($GLOBALS['_GEN_commun']['info_application']->presentation)){
125
 
129
 
126
        $sortie .= $controleur->menuGeneral() ;
130
        $sortie .= $controleur->menuGeneral() ;
127
    }
131
    }
128
    
132
    
129
   	if (isset($GLOBALS['_GEN_commun']['info_application']->seulement)) {
133
   	if (isset($GLOBALS['_GEN_commun']['info_application']->seulement)) {
130
		$controleur->setIdProjet($GLOBALS['_GEN_commun']['info_application']->seulement) ;	
134
		$controleur->setIdProjet($GLOBALS['_GEN_commun']['info_application']->seulement) ;	
131
	}
135
	}
132
	if (isset($GLOBALS['_GEN_commun']['info_application']->telechargement)) {
136
	if (isset($GLOBALS['_GEN_commun']['info_application']->telechargement)) {
133
		// L'action "Mettre un fichier en ligne"
137
		// L'action "Mettre un fichier en ligne"
134
        $controleur->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_NOUVEAU_FICHIER) ;
138
        $controleur->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_NOUVEAU_FICHIER) ;
135
        $res = "<ul><li><a href=\"".$controleur->_url->getURL()."\">".PROJET_METTRE_FICHIER."</a></li>\n" ;
139
        $res = "<ul><li><a href=\"".$controleur->_url->getURL()."\">".PROJET_METTRE_FICHIER."</a></li>\n" ;
136
 
140
 
137
        // L'action creer un repertoire
141
        // L'action creer un repertoire
138
        $controleur->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_NOUVEAU_REPERTOIRE) ;
142
        $controleur->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_NOUVEAU_REPERTOIRE) ;
139
        $res .= "<li><a href=\"".$controleur->_url->getURL()."\">".PROJET_CREER_REP."</a></li>\n" ;
143
        $res .= "<li><a href=\"".$controleur->_url->getURL()."\">".PROJET_CREER_REP."</a></li>\n" ;
140
		$res .= '</ul></li>' ;
144
		$res .= '</ul></li>' ;
141
		$sortie .= $res ;
145
		$sortie .= $res ;
142
	}
146
	}
143
    // Dans le cas d'un forum simple, on ne met pas les menus
147
    // Dans le cas d'un forum simple, on ne met pas les menus
144
    if (isset ($GLOBALS['_GEN_commun']['info_application']->seulement_forum)) {
148
    if (isset ($GLOBALS['_GEN_commun']['info_application']->seulement_forum)) {
145
        	return ;
149
        	return ;
146
    }
150
    }
147
    
151
    
148
    return $sortie;
152
    return $sortie;
149
}
153
}
150
 
154
 
151
function afficherContenuCorps() {
155
function afficherContenuCorps() {
152
 
156
 
153
    // On recherche une action dans la variable $action, s'il n'y a pas, on envoie defaut
157
    // On recherche une action dans la variable $action, s'il n'y a pas, on envoie defaut
154
    $action = isset($_REQUEST[PROJET_VARIABLE_ACTION]) ? $_REQUEST[PROJET_VARIABLE_ACTION] : PROJET_DEFAUT;
158
    $action = isset($_REQUEST[PROJET_VARIABLE_ACTION]) ? $_REQUEST[PROJET_VARIABLE_ACTION] : PROJET_DEFAUT;
155
    
159
    
156
    // on fait de meme pour id_projet
160
    // on fait de meme pour id_projet
157
    $id_projet = isset($_REQUEST[PROJET_VARIABLE_ID_PROJET]) ? $_REQUEST[PROJET_VARIABLE_ID_PROJET] : '';
161
    $id_projet = isset($_REQUEST[PROJET_VARIABLE_ID_PROJET]) ? $_REQUEST[PROJET_VARIABLE_ID_PROJET] : '';
158
 
162
 
159
	$service = isset($_REQUEST[PROJET_VARIABLE_SERVICE]) ? $_REQUEST[PROJET_VARIABLE_SERVICE] : '';
163
	$service = isset($_REQUEST[PROJET_VARIABLE_SERVICE]) ? $_REQUEST[PROJET_VARIABLE_SERVICE] : '';
160
	
164
	
161
	
165
	
162
    // et pour id_repertoire
166
    // et pour id_repertoire
163
    $id_repertoire = isset($_REQUEST['id_repertoire']) ? $_REQUEST['id_repertoire'] : '';
167
    $id_repertoire = isset($_REQUEST['id_repertoire']) ? $_REQUEST['id_repertoire'] : '';
164
 
168
 
165
    // et pour id_document
169
    // et pour id_document
166
    $id_document = isset($_REQUEST['id_document']) ? $_REQUEST['id_document'] : '';
170
    $id_document = isset($_REQUEST['id_document']) ? $_REQUEST['id_document'] : '';
167
 
171
 
168
    // On construit le controleur en lui passant en parametre l'identifiant de connexion a la BD
172
    // On construit le controleur en lui passant en parametre l'identifiant de connexion a la BD
169
    // l'objet d'authentification et l'url de la page
173
    // l'objet d'authentification et l'url de la page
170
    
174
    
171
    $controleur = new projetControleur(&$GLOBALS['projet_db'], &$GLOBALS['projet_auth'], &$GLOBALS['url']) ;
175
    $controleur = new projetControleur(&$GLOBALS['projet_db'], &$GLOBALS['projet_auth'], &$GLOBALS['url']) ;
172
    $controleur->setAction ($action) ;
176
    $controleur->setAction ($action) ;
173
    $controleur->setService($service);
177
    $controleur->setService($service);
174
    
178
    
175
    // On indique au controleur sur quel projet on travaille
179
    // On indique au controleur sur quel projet on travaille
176
    
180
    
177
    if ($id_projet != "") {
181
    if ($id_projet != "") {
178
        $controleur->setIdProjet($id_projet) ;
182
        $controleur->setIdProjet($id_projet) ;
179
 
183
 
180
    }
184
    }
181
    if ($id_repertoire != "") {
185
    if ($id_repertoire != "") {
182
        $controleur->setIdRepertoire($id_repertoire) ;
186
        $controleur->setIdRepertoire($id_repertoire) ;
183
    }
187
    }
184
    if ($id_document != "") {
188
    if ($id_document != "") {
185
        $controleur->setIdDocument($id_document) ;
189
        $controleur->setIdDocument($id_document) ;
186
    }
190
    }
187
    
191
    
188
    // recuperation des parametres de l'appli
192
    // recuperation des parametres de l'appli
189
    if (isset($GLOBALS['_GEN_commun']['info_application']->presentation)) {
193
    if (isset($GLOBALS['_GEN_commun']['info_application']->presentation)) {
190
        $controleur->setPresentation($GLOBALS['_GEN_commun']['info_application']->presentation) ;
194
        $controleur->setPresentation($GLOBALS['_GEN_commun']['info_application']->presentation) ;
191
    }
195
    }
192
    if (isset($GLOBALS['_GEN_commun']['info_application']->projet_type)) {
196
    if (isset($GLOBALS['_GEN_commun']['info_application']->projet_type)) {
193
        $controleur->setType($GLOBALS['_GEN_commun']['info_application']->projet_type) ;
197
        $controleur->setType($GLOBALS['_GEN_commun']['info_application']->projet_type) ;
194
    }
198
    }
195
    if (isset ($GLOBALS['_GEN_commun']['info_application']->exclure)) {
199
    if (isset ($GLOBALS['_GEN_commun']['info_application']->exclure)) {
196
    	$a_exclure = explode (',', $GLOBALS['_GEN_commun']['info_application']->exclure) ;
200
    	$a_exclure = explode (',', $GLOBALS['_GEN_commun']['info_application']->exclure) ;
197
        foreach ($a_exclure as $valeur) $controleur->exclure($valeur) ;
201
        foreach ($a_exclure as $valeur) $controleur->exclure($valeur) ;
198
    }
202
    }
199
    if (isset ($GLOBALS['_GEN_commun']['info_application']->seulement_forum)) {
203
    if (isset ($GLOBALS['_GEN_commun']['info_application']->seulement_forum)) {
200
        $controleur->setIdProjet($GLOBALS['_GEN_commun']['info_application']->seulement_forum) ;
204
        $controleur->setIdProjet($GLOBALS['_GEN_commun']['info_application']->seulement_forum) ;
201
        // S'il n'y a pas d'action en mode forum, on affiche l'onglet Forum
205
        // S'il n'y a pas d'action en mode forum, on affiche l'onglet Forum
202
        if (!isset($_REQUEST[PROJET_VARIABLE_ACTION])) $controleur->setAction (PROJET_ACTION_VOIR_FORUM) ;
206
        if (!isset($_REQUEST[PROJET_VARIABLE_ACTION])) $controleur->setAction (PROJET_ACTION_VOIR_FORUM) ;
203
    }
207
    }
204
    
208
    
205
    if (isset($GLOBALS['_GEN_commun']['info_application']->telechargement)) {
209
    if (isset($GLOBALS['_GEN_commun']['info_application']->telechargement)) {
206
    	if (!isset($_REQUEST[PROJET_VARIABLE_ACTION])) $controleur->setAction (PROJET_ACTION_VOIR_DOCUMENT) ;
210
    	if (!isset($_REQUEST[PROJET_VARIABLE_ACTION])) $controleur->setAction (PROJET_ACTION_VOIR_DOCUMENT) ;
207
    }
211
    }
208
    
212
    
209
    if (isset ($GLOBALS['_GEN_commun']['info_application']->seulement)) {
213
    if (isset ($GLOBALS['_GEN_commun']['info_application']->seulement)) {
210
        $controleur->setIdProjet($GLOBALS['_GEN_commun']['info_application']->seulement) ;
214
        $controleur->setIdProjet($GLOBALS['_GEN_commun']['info_application']->seulement) ;
211
    }
215
    }
212
    
216
    
213
    // Si le parametre prive est passe, les inscriptions sont moderes
217
    // Si le parametre prive est passe, les inscriptions sont moderes
214
    // TODO : permettre la demande d'inscription
218
    // TODO : permettre la demande d'inscription
215
    if (isset ($GLOBALS['_GEN_commun']['info_application']->prive)) {
219
    if (isset ($GLOBALS['_GEN_commun']['info_application']->prive)) {
216
        $controleur->setPrive() ;
220
        $controleur->setPrive() ;
217
    }
221
    }
218
    $res = $controleur->run() ;
222
    $res = $controleur->run() ;
219
    
223
    
220
    return $res ;
224
    return $res ;
221
}
225
}
222
 
226
 
223
/** cma() calcule menu actif
227
/** cma() calcule menu actif
224
 *
228
 *
225
 *
229
 *
226
 * @return
230
 * @return
227
 */
231
 */
228
 
232
 
229
function cma ($var) {
233
function cma ($var) {
230
    $class = $_REQUEST[PROJET_VARIABLE_ACTION] == $var ?  'menu_actif' :  'menu_inactif' ;
234
    $class = $_REQUEST[PROJET_VARIABLE_ACTION] == $var ?  'menu_actif' :  'menu_inactif' ;
231
    return $class ;
235
    return $class ;
232
}
236
}
233
/* +--Fin du code ----------------------------------------------------------------------------------------+
237
/* +--Fin du code ----------------------------------------------------------------------------------------+
234
*
238
*
235
* $Log: projet.php,v $
239
* $Log: projet.php,v $
236
* Revision 1.15  2007-06-25 12:15:06  alexandre_tb
240
* Revision 1.15  2007-06-25 12:15:06  alexandre_tb
237
* merge from narmer
241
* merge from narmer
238
*
242
*
239
* Revision 1.14  2007/04/19 15:34:35  neiluj
243
* Revision 1.14  2007/04/19 15:34:35  neiluj
240
* preparration release (livraison) "Narmer" - v0.25
244
* preparration release (livraison) "Narmer" - v0.25
241
*
245
*
242
* Revision 1.13  2007/04/19 09:18:46  alexandre_tb
246
* Revision 1.13  2007/04/19 09:18:46  alexandre_tb
243
* ajout de la variable $service pour appeler les services (dans la cadre de liaisons asynchrones
247
* ajout de la variable $service pour appeler les services (dans la cadre de liaisons asynchrones
244
*
248
*
245
* Revision 1.12  2006/07/04 09:35:04  alexandre_tb
249
* Revision 1.12  2006/07/04 09:35:04  alexandre_tb
246
* Simplification du code et ajout de controle
250
* Simplification du code et ajout de controle
247
*
251
*
248
* Revision 1.11  2006/04/28 12:41:28  florian
252
* Revision 1.11  2006/04/28 12:41:28  florian
249
* corrections erreurs chemin
253
* corrections erreurs chemin
250
*
254
*
251
* Revision 1.10  2005/12/01 16:38:32  alexandre_tb
255
* Revision 1.10  2005/12/01 16:38:32  alexandre_tb
252
* ajout de l'action telechargement
256
* ajout de l'action telechargement
253
*
257
*
254
* Revision 1.9  2005/11/25 14:48:44  alexandre_tb
258
* Revision 1.9  2005/11/25 14:48:44  alexandre_tb
255
* ajout de la gestion de la pr�sentation tela
259
* ajout de la gestion de la pr�sentation tela
256
*
260
*
257
* Revision 1.8  2005/10/25 13:50:13  alexandre_tb
261
* Revision 1.8  2005/10/25 13:50:13  alexandre_tb
258
* Ajout de la gestion des projets priv�s
262
* Ajout de la gestion des projets priv�s
259
*
263
*
260
* Revision 1.7  2005/10/17 16:22:28  alexandre_tb
264
* Revision 1.7  2005/10/17 16:22:28  alexandre_tb
261
* rien
265
* rien
262
*
266
*
263
* Revision 1.6  2005/10/06 14:54:06  alexandre_tb
267
* Revision 1.6  2005/10/06 14:54:06  alexandre_tb
264
* ajout de la gestion du param�tre seulement_forum
268
* ajout de la gestion du param�tre seulement_forum
265
*
269
*
266
* Revision 1.5  2005/10/04 10:06:32  alexandre_tb
270
* Revision 1.5  2005/10/04 10:06:32  alexandre_tb
267
* ajout du parametre seulement_forum
271
* ajout du parametre seulement_forum
268
*
272
*
269
* Revision 1.4  2005/09/28 16:29:39  ddelon
273
* Revision 1.4  2005/09/28 16:29:39  ddelon
270
* Merge modification projet
274
* Merge modification projet
271
*
275
*
272
* Revision 1.3  2005/09/27 16:31:06  alexandre_tb
276
* Revision 1.3  2005/09/27 16:31:06  alexandre_tb
273
* ??
277
* ??
274
*
278
*
275
*
279
*
276
* +-- Fin du code ----------------------------------------------------------------------------------------+
280
* +-- Fin du code ----------------------------------------------------------------------------------------+
277
*/
281
*/
278
 
282
 
279
 
283
 
280
?>
284
?>