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.7.2.1 2007-05-11 13:38:32 alexandre_tb Exp $
|
22 |
// CVS : $Id: documents.php,v 1.7.2.2 2007-10-02 09:23:07 alexandre_tb 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.7.2.1 $
|
34 |
*@version $Revision: 1.7.2.2 $
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
36 |
*/
|
36 |
*/
|
Line 37... |
Line 37... |
37 |
|
37 |
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
Line 81... |
Line 81... |
81 |
|
81 |
|
82 |
if ($this->_auth->getAuth()) {
|
82 |
if ($this->_auth->getAuth()) {
|
83 |
include_once PROJET_CHEMIN_CLASSES.'participe.class.php' ;
|
83 |
include_once PROJET_CHEMIN_CLASSES.'participe.class.php' ;
|
84 |
$participant = new participe($this->_db) ;
|
84 |
$participant = new participe($this->_db) ;
|
85 |
$id_u = $this->_auth->getAuthData(PROJET_CHAMPS_ID) ;
|
- |
|
86 |
$isCoord = $participant->isCoordinateur($id_u, $this->_id_projet, $this->_db) ;
|
- |
|
87 |
if ($isCoord) $droits = PROJET_DROIT_COORDINATEUR ;
|
- |
|
88 |
$isAdm = participe::isAdministrateur($this->_auth->getAuthData(PROJET_CHAMPS_ID), $this->_db) ;
|
- |
|
89 |
if ($isAdm) $droits = PROJET_DROIT_ADMINISTRATEUR ;
|
- |
|
- |
|
85 |
$id_u = $this->_auth->getAuthData(PROJET_CHAMPS_ID) ;
|
- |
|
86 |
|
- |
|
87 |
|
- |
|
88 |
|
90 |
if ($isAdm) $isCoord = true ;
|
89 |
|
91 |
$isParticipant = $participant->isContributeur($id_u, $this->_id_projet, $this->_db);
|
90 |
$isParticipant = $participant->isContributeur($id_u, $this->_id_projet, $this->_db);
|
92 |
if ($isParticipant) $droits = PROJET_DROIT_CONTRIBUTEUR;
|
- |
|
- |
|
91 |
if ($isParticipant) $droits = PROJET_DROIT_CONTRIBUTEUR;
|
- |
|
92 |
$isAdm = participe::isAdministrateur($this->_auth->getAuthData(PROJET_CHAMPS_ID), $this->_db) ;
|
- |
|
93 |
if ($isAdm) $droits = PROJET_DROIT_ADMINISTRATEUR ;
|
- |
|
94 |
$isCoord = $participant->isCoordinateur($id_u, $this->_id_projet, $this->_db) ;
|
- |
|
95 |
if ($isCoord) $droits = PROJET_DROIT_COORDINATEUR ;
|
93 |
|
96 |
if ($isAdm) $isCoord = true ;
|
94 |
$statut = participe::getStatutSurProjetCourant ($this->_auth->getAuthData(PROJET_CHAMPS_ID), $this->_id_projet, $this->_db) ;
|
97 |
$statut = participe::getStatutSurProjetCourant ($this->_auth->getAuthData(PROJET_CHAMPS_ID), $this->_id_projet, $this->_db) ;
|
Line 95... |
Line 98... |
95 |
// si participant, on ajoute le champs visibilite
|
98 |
// si participant, on ajoute le champs visibilite
|
96 |
|
99 |
|
Line 132... |
Line 135... |
132 |
$vue_liste_document->setModeAffichage('standart');
|
135 |
$vue_liste_document->setModeAffichage('standart');
|
133 |
$retour .= $vue_liste_document->toHTML('', '') ;
|
136 |
$retour .= $vue_liste_document->toHTML('', '') ;
|
134 |
$retour .= '</noscript>';
|
137 |
$retour .= '</noscript>';
|
Line 135... |
Line 138... |
135 |
|
138 |
|
136 |
if (!isset ($_SESSION['mode_affichage'])) {
|
139 |
if (!isset ($_SESSION['mode_affichage'])) {
|
137 |
if (isset($_GET['affichage'])) $_SESSION['mode_affichage'] = $_GET['affichage']; else $_SESSION['mode_affichage'] = 'ajax';
|
140 |
if (isset($_GET['affichage'])) $_SESSION['mode_affichage'] = $_GET['affichage']; else $_SESSION['mode_affichage'] = 'standart';
|
138 |
} else {
|
141 |
} else {
|
139 |
if (isset($_GET['affichage'])) $_SESSION['mode_affichage'] = $_GET['affichage'];
|
142 |
if (isset($_GET['affichage'])) $_SESSION['mode_affichage'] = $_GET['affichage'];
|
140 |
}
|
143 |
}
|