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: resume.php,v 1.6 2005-12-13 10:48:52 alexandre_tb Exp $
|
22 |
// CVS : $Id: resume.php,v 1.7 2006-01-18 10:51:01 alexandre_tb Exp $
|
23 |
/**
|
23 |
/**
|
24 |
* Application projet
|
24 |
* Application projet
|
25 |
*
|
25 |
*
|
26 |
* Action resume
|
26 |
* Action resume
|
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 46... |
Line 46... |
46 |
|
46 |
|
47 |
// création de l'objet projet courant
|
47 |
// création de l'objet projet courant
|
Line 48... |
Line 48... |
48 |
$projet = new projet ($this->_db, $this->_id_projet) ;
|
48 |
$projet = new projet ($this->_db, $this->_id_projet) ;
|
49 |
|
49 |
|
- |
|
50 |
// récupération de la liste des documents associés
|
Line 50... |
Line 51... |
50 |
// récupération de la liste des documents associés
|
51 |
$liste_documents = document::getDocumentsRecents(4, $this->_db, PROJET_CHEMIN_FICHIER,
|
51 |
$liste_documents = document::getDocumentsRecents(4, $this->_db, PROJET_CHEMIN_FICHIER, PROJET_CHEMIN_ICONES, $this->_id_projet) ;
|
52 |
PROJET_CHEMIN_ICONES, $this->_id_projet) ;
|
52 |
|
53 |
|
53 |
// création de la vue liste de document, on nettoie l'url
|
54 |
// création de la vue liste de document, on nettoie l'url
|
Line 75... |
Line 76... |
75 |
$statut = participe::getStatutSurProjetCourant ($this->_auth->getAuthData(PROJET_CHAMPS_ID), $this->_id_projet, $this->_db) ;
|
76 |
$statut = participe::getStatutSurProjetCourant ($this->_auth->getAuthData(PROJET_CHAMPS_ID), $this->_id_projet, $this->_db) ;
|
76 |
// si participant, on ajoute le champs visibilite
|
77 |
// si participant, on ajoute le champs visibilite
|
Line 77... |
Line 78... |
77 |
|
78 |
|
78 |
if ($statut !='' || $isAdm) {
|
79 |
if ($statut !='' || $isAdm) {
|
- |
|
80 |
array_push ($entete_liste, PROJET_FICHIERS_VISIBILITE) ;
|
- |
|
81 |
$visible = true ;
|
- |
|
82 |
} else {
|
79 |
array_push ($entete_liste, PROJET_FICHIERS_VISIBILITE) ;
|
83 |
$visible = false ;
|
- |
|
84 |
}
|
- |
|
85 |
// récupération de la liste des documents associés
|
- |
|
86 |
$liste_documents = document::getDocumentsRecents(4, $this->_db, PROJET_CHEMIN_FICHIER,
|
- |
|
87 |
PROJET_CHEMIN_ICONES, $this->_id_projet, $visible) ;
|
- |
|
88 |
|
80 |
}
|
89 |
|
81 |
// si chef de projet ou si propriétaire d'au moins 1 document
|
90 |
// si chef de projet ou si propriétaire d'au moins 1 document
|
Line 82... |
Line 91... |
82 |
$proprietaire_un_document = false ;
|
91 |
$proprietaire_un_document = false ;
|
83 |
|
92 |
|
Line 90... |
Line 99... |
90 |
if ($droits <= PROJET_DROIT_COORDINATEUR || $proprietaire_un_document) {
|
99 |
if ($droits <= PROJET_DROIT_COORDINATEUR || $proprietaire_un_document) {
|
91 |
array_push ($entete_liste, PROJET_ACTION) ;
|
100 |
array_push ($entete_liste, PROJET_ACTION) ;
|
92 |
}
|
101 |
}
|
93 |
} else {
|
102 |
} else {
|
94 |
$droits = PROJET_DROIT_AUCUN ;
|
103 |
$droits = PROJET_DROIT_AUCUN ;
|
- |
|
104 |
// récupération de la liste des documents associés
|
- |
|
105 |
$liste_documents = document::getDocumentsRecents(4, $this->_db, PROJET_CHEMIN_FICHIER,
|
- |
|
106 |
PROJET_CHEMIN_ICONES, $this->_id_projet, false) ;
|
- |
|
107 |
|
95 |
}
|
108 |
}
|
96 |
if (!isset($droits)) $droits = PROJET_DROIT_AUCUN ;
|
109 |
if (!isset($droits)) $droits = PROJET_DROIT_AUCUN ;
|
Line 97... |
Line 110... |
97 |
|
110 |
|
98 |
$vue_liste_document->construitEntete($entete_liste) ;
|
111 |
$vue_liste_document->construitEntete($entete_liste) ;
|