Subversion Repositories Applications.projet

Rev

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

Rev 205 Rev 208
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: documents.php,v 1.6 2007-04-19 09:37:25 alexandre_tb Exp $
22
// CVS : $Id: documents.php,v 1.7 2007-04-19 15:34:35 neiluj Exp $
23
/**
23
/**
24
* Application projet
24
* Application projet
25
*
25
*
26
* Action documents
26
* Action documents
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-2005
33
*@copyright     Tela-Botanica 2000-2005
34
*@version       $Revision: 1.6 $
34
*@version       $Revision: 1.7 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
Line 43... Line 43...
43
// On se situe dans la méthode run() de la classe projetControleur
43
// On se situe dans la méthode run() de la classe projetControleur
44
//
44
//
45
if (!isset($retour)) $retour = '';
45
if (!isset($retour)) $retour = '';
Line 46... Line 46...
46
 
46
 
-
 
47
// creation de l'objet projet courant
47
// creation de l'objet projet courant
48
include_once PROJET_CHEMIN_CLASSES.'projet.class.php' ;
Line 48... Line 49...
48
$projet = new projet ($this->_db, $this->_id_projet) ;
49
$projet = new projet ($this->_db, $this->_id_projet) ;
49
 
50
 
Line 68... Line 69...
68
 
69
 
69
// verification des droits de l'utilisateur
70
// verification des droits de l'utilisateur
Line 70... Line 71...
70
$entete_liste = array (PROJET_FICHIERS_NOM, PROJET_FICHIERS_TAILLE, PROJET_FICHIERS_PAR, PROJET_FICHIERS_CREE_LE) ;
71
$entete_liste = array (PROJET_FICHIERS_NOM, PROJET_FICHIERS_TAILLE, PROJET_FICHIERS_PAR, PROJET_FICHIERS_CREE_LE) ;
-
 
72
 
71
 
73
if ($this->_auth->getAuth()) {
72
if ($this->_auth->getAuth()) {
74
    include_once PROJET_CHEMIN_CLASSES.'participe.class.php' ;
73
    $participant = new participe($this->_db) ;
75
    $participant = new participe($this->_db) ;
74
    $id_u = $this->_auth->getAuthData(PROJET_CHAMPS_ID) ;
76
    $id_u = $this->_auth->getAuthData(PROJET_CHAMPS_ID) ;
75
    $isCoord = $participant->isCoordinateur($id_u, $this->_id_projet, $this->_db) ;
77
    $isCoord = $participant->isCoordinateur($id_u, $this->_id_projet, $this->_db) ;