Subversion Repositories Applications.projet

Rev

Rev 249 | Rev 347 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 249 Rev 318
Line 17... Line 17...
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
*
Line 29... Line 29...
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
*/
Line 37... Line 37...
37
 
37
 
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
Line 43... Line 43...
43
include_once PROJET_CHEMIN_CLASSES.'projetControleur.class.php' ;
43
include_once PROJET_CHEMIN_CLASSES.'projetControleur.class.php' ;
Line 44... Line 44...
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') ;
-
 
48
    if (file_exists('client/projet/arbre.css')) GEN_stockerStyleExterne('projet_arbre','client/projet/arbre.css') ;
47
	if (file_exists('client/projet/projet.css')) GEN_stockerStyleExterne('projet','client/projet/projet.css') ;
Line -... Line 48...
-
 
48
}
-
 
49
 
-
 
50
// Nettoyage de la variable logout de papyrus
-
 
51
$GLOBALS['url']->removeQueryString('logout');
-
 
52
 
49
}
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
// +------------------------------------------------------------------------------------------------------+
Line 52... Line 56...
52
// |                                           LISTE des constantes                                       |
56
// |                                           LISTE des constantes                                       |
Line 79... Line 83...
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 ;
Line 119... Line 123...
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)){
Line 121... Line 125...
121
 
125
 
122
        $sortie .= $controleur->menuGeneral() ;
126
        $sortie .= $controleur->menuGeneral() ;
-
 
127
    }
123
    }
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)) {
Line 137... Line 142...
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
}
Line 144... Line 150...
144
 
150
 
Line 145... Line 151...
145
function afficherContenuCorps() {
151
function afficherContenuCorps() {
146
    
152
    
Line 147... Line 153...
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
Line 149... Line 155...
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;
Line 158... Line 164...
158
    $id_repertoire = isset($_REQUEST['id_repertoire']) ? $_REQUEST['id_repertoire'] : '';
164
    $id_repertoire = isset($_REQUEST['id_repertoire']) ? $_REQUEST['id_repertoire'] : '';
Line 159... Line 165...
159
 
165
 
160
    // et pour id_document
166
    // et pour id_document
Line 161... Line 167...
161
    $id_document = isset($_REQUEST['id_document']) ? $_REQUEST['id_document'] : '';
167
    $id_document = isset($_REQUEST['id_document']) ? $_REQUEST['id_document'] : '';
162
 
168
 
Line 163... Line 169...
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
    
Line 226... Line 232...
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