Subversion Repositories Applications.projet

Rev

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

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