Subversion Repositories Applications.projet

Rev

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

Rev 208 Rev 249
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.14 2007-04-19 15:34:35 neiluj 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
*
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.14 $
34
*@version       $Revision: 1.15 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
Line 91... Line 91...
91
}
91
}
Line 92... Line 92...
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 meme pour id_projet
Line 97... Line 97...
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
    
Line 114... Line 114...
114
    }
114
    }
115
    if (isset ($GLOBALS['_GEN_commun']['info_application']->prive)) {
115
    if (isset ($GLOBALS['_GEN_commun']['info_application']->prive)) {
116
        $controleur->setPrive() ;
116
        $controleur->setPrive() ;
117
    }
117
    }
Line 118... Line 118...
118
    
118
    
119
    // Dans le cas de la présentation par arbre, on met les menus
119
    // Dans le cas de la presentation par arbre, on met les menus
Line 120... Line 120...
120
    if (isset($GLOBALS['_GEN_commun']['info_application']->presentation)){
120
    if (isset($GLOBALS['_GEN_commun']['info_application']->presentation)){
121
 
121
 
122
        $sortie .= $controleur->menuGeneral() ;
122
        $sortie .= $controleur->menuGeneral() ;
Line 127... Line 127...
127
	if (isset($GLOBALS['_GEN_commun']['info_application']->telechargement)) {
127
	if (isset($GLOBALS['_GEN_commun']['info_application']->telechargement)) {
128
		// L'action "Mettre un fichier en ligne"
128
		// L'action "Mettre un fichier en ligne"
129
        $controleur->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_NOUVEAU_FICHIER) ;
129
        $controleur->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_NOUVEAU_FICHIER) ;
130
        $res = "<ul><li><a href=\"".$controleur->_url->getURL()."\">".PROJET_METTRE_FICHIER."</a></li>\n" ;
130
        $res = "<ul><li><a href=\"".$controleur->_url->getURL()."\">".PROJET_METTRE_FICHIER."</a></li>\n" ;
Line 131... Line 131...
131
 
131
 
132
        // L'action créer un répertoire
132
        // L'action creer un repertoire
133
        $controleur->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_NOUVEAU_REPERTOIRE) ;
133
        $controleur->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_NOUVEAU_REPERTOIRE) ;
134
        $res .= "<li><a href=\"".$controleur->_url->getURL()."\">".PROJET_CREER_REP."</a></li>\n" ;
134
        $res .= "<li><a href=\"".$controleur->_url->getURL()."\">".PROJET_CREER_REP."</a></li>\n" ;
135
		$res .= '</ul></li>' ;
135
		$res .= '</ul></li>' ;
136
		$sortie .= $res ;
136
		$sortie .= $res ;
Line 178... Line 178...
178
    }
178
    }
179
    if ($id_document != "") {
179
    if ($id_document != "") {
180
        $controleur->setIdDocument($id_document) ;
180
        $controleur->setIdDocument($id_document) ;
181
    }
181
    }
Line 182... Line 182...
182
    
182
    
183
    // récupération des paramètres de l'appli
183
    // recuperation des parametres de l'appli
184
    if (isset($GLOBALS['_GEN_commun']['info_application']->presentation)) {
184
    if (isset($GLOBALS['_GEN_commun']['info_application']->presentation)) {
185
        $controleur->setPresentation($GLOBALS['_GEN_commun']['info_application']->presentation) ;
185
        $controleur->setPresentation($GLOBALS['_GEN_commun']['info_application']->presentation) ;
186
    }
186
    }
187
    if (isset($GLOBALS['_GEN_commun']['info_application']->projet_type)) {
187
    if (isset($GLOBALS['_GEN_commun']['info_application']->projet_type)) {
Line 203... Line 203...
203
    
203
    
204
    if (isset ($GLOBALS['_GEN_commun']['info_application']->seulement)) {
204
    if (isset ($GLOBALS['_GEN_commun']['info_application']->seulement)) {
205
        $controleur->setIdProjet($GLOBALS['_GEN_commun']['info_application']->seulement) ;
205
        $controleur->setIdProjet($GLOBALS['_GEN_commun']['info_application']->seulement) ;
Line 206... Line 206...
206
    }
206
    }
207
    
207
    
208
    // Si le parametre prive est passé, les inscriptions sont modérés
208
    // Si le parametre prive est passe, les inscriptions sont moderes
209
    // TODO : permettre la demande d'inscription
209
    // TODO : permettre la demande d'inscription
210
    if (isset ($GLOBALS['_GEN_commun']['info_application']->prive)) {
210
    if (isset ($GLOBALS['_GEN_commun']['info_application']->prive)) {
211
        $controleur->setPrive() ;
211
        $controleur->setPrive() ;
Line 226... Line 226...
226
    return $class ;
226
    return $class ;
227
}
227
}
228
/* +--Fin du code ----------------------------------------------------------------------------------------+
228
/* +--Fin du code ----------------------------------------------------------------------------------------+
229
*
229
*
230
* $Log: not supported by cvs2svn $
230
* $Log: not supported by cvs2svn $
-
 
231
* Revision 1.14  2007/04/19 15:34:35  neiluj
-
 
232
* préparration release (livraison) "Narmer" - v0.25
-
 
233
*
231
* Revision 1.13  2007/04/19 09:18:46  alexandre_tb
234
* Revision 1.13  2007/04/19 09:18:46  alexandre_tb
232
* ajout de la variable $service pour appeler les services (dans la cadre de liaisons asynchrones
235
* ajout de la variable $service pour appeler les services (dans la cadre de liaisons asynchrones
233
*
236
*
234
* Revision 1.12  2006/07/04 09:35:04  alexandre_tb
237
* Revision 1.12  2006/07/04 09:35:04  alexandre_tb
235
* Simplification du code et ajout de controle
238
* Simplification du code et ajout de controle