Subversion Repositories Applications.projet

Rev

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

Rev 127 Rev 198
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.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
*
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.12 $
34
*@version       $Revision: 1.13 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
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] :  '';
Line 98... Line 98...
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
Line -... Line 100...
-
 
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
    
Line 102... Line 103...
102
    // et pour id_repertoire
103
    // et pour id_repertoire
Line 147... Line 148...
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;
Line 148... Line 149...
148
    
149
    
149
    // on fait de même pour id_projet
150
    // on fait de même pour id_projet
Line -... Line 151...
-
 
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] : '';
150
    $id_projet = isset($_REQUEST[PROJET_VARIABLE_ID_PROJET]) ? $_REQUEST[PROJET_VARIABLE_ID_PROJET] : '';
154
	
151
 
155
	
Line 152... Line 156...
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'] : '';
Line 158... Line 162...
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
Line 160... Line 164...
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']) ;
-
 
166
    $controleur->setAction ($action) ;
Line 162... Line 167...
162
    $controleur->setAction ($action) ;
167
    $controleur->setService($service);
Line 163... Line 168...
163
    
168
    
164
    // On indique au controleur sur quel projet on travaille
169
    // On indique au controleur sur quel projet on travaille
Line 220... Line 225...
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