19,7 → 19,7 |
// | License along with this library; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: documents.php,v 1.7.2.1 2007-05-11 13:38:32 alexandre_tb Exp $ |
// CVS : $Id: documents.php,v 1.7.2.2 2007-10-02 09:23:07 alexandre_tb Exp $ |
/** |
* Application projet |
* |
31,7 → 31,7 |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2005 |
*@version $Revision: 1.7.2.1 $ |
*@version $Revision: 1.7.2.2 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
|
83,14 → 83,17 |
include_once PROJET_CHEMIN_CLASSES.'participe.class.php' ; |
$participant = new participe($this->_db) ; |
$id_u = $this->_auth->getAuthData(PROJET_CHAMPS_ID) ; |
$isCoord = $participant->isCoordinateur($id_u, $this->_id_projet, $this->_db) ; |
|
|
|
|
$isParticipant = $participant->isContributeur($id_u, $this->_id_projet, $this->_db); |
if ($isParticipant) $droits = PROJET_DROIT_CONTRIBUTEUR; |
$isAdm = participe::isAdministrateur($this->_auth->getAuthData(PROJET_CHAMPS_ID), $this->_db) ; |
if ($isAdm) $droits = PROJET_DROIT_ADMINISTRATEUR ; |
$isCoord = $participant->isCoordinateur($id_u, $this->_id_projet, $this->_db) ; |
if ($isCoord) $droits = PROJET_DROIT_COORDINATEUR ; |
$isAdm = participe::isAdministrateur($this->_auth->getAuthData(PROJET_CHAMPS_ID), $this->_db) ; |
if ($isAdm) $droits = PROJET_DROIT_ADMINISTRATEUR ; |
if ($isAdm) $isCoord = true ; |
$isParticipant = $participant->isContributeur($id_u, $this->_id_projet, $this->_db); |
if ($isParticipant) $droits = PROJET_DROIT_CONTRIBUTEUR; |
|
$statut = participe::getStatutSurProjetCourant ($this->_auth->getAuthData(PROJET_CHAMPS_ID), $this->_id_projet, $this->_db) ; |
// si participant, on ajoute le champs visibilite |
|
134,7 → 137,7 |
$retour .= '</noscript>'; |
|
if (!isset ($_SESSION['mode_affichage'])) { |
if (isset($_GET['affichage'])) $_SESSION['mode_affichage'] = $_GET['affichage']; else $_SESSION['mode_affichage'] = 'ajax'; |
if (isset($_GET['affichage'])) $_SESSION['mode_affichage'] = $_GET['affichage']; else $_SESSION['mode_affichage'] = 'standart'; |
} else { |
if (isset($_GET['affichage'])) $_SESSION['mode_affichage'] = $_GET['affichage']; |
} |