Subversion Repositories Applications.projet

Rev

Rev 450 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 450 Rev 451
Line 94... Line 94...
94
        ob_start() ;
94
        ob_start() ;
95
        $id_u = $this->_auth->getAuthData(PROJET_CHAMPS_ID) ;
95
        $id_u = $this->_auth->getAuthData(PROJET_CHAMPS_ID) ;
96
        if ($this->_auth->getAuth()) {
96
        if ($this->_auth->getAuth()) {
97
            $participant = new participe($this->_db) ;
97
            $participant = new participe($this->_db) ;
98
             $droits = $participant->getStatut($id_u, $this->_id_projet);
98
             $droits = $participant->getStatut($id_u, $this->_id_projet);
-
 
99
             
99
        } else {
100
             switch ($droits) {
100
            $droits = PROJET_DROIT_AUCUN;
101
             	case PROJET_DROIT_AUCUN :
101
            $this->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_S_INSCRIRE);
102
             		$this->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_S_INSCRIRE);
102
    		$lien_inscription = 'javascript:animatedcollapse.toggle(\'projet_bloc_inscription\');';
103
             		$lien_inscription = $this->_url->getURL();
103
			GEN_stockerFichierScript('jquery', 'api/js/jquery/jquery.js');
104
             		GEN_stockerFichierScript('jquery', 'api/js/jquery/jquery.js');
104
			GEN_stockerFichierScript('animatedcollapse', 'api/js/jquery/animatedcollapse.js');
105
             		GEN_stockerFichierScript('animatedcollapse', 'api/js/jquery/animatedcollapse.js');
105
			GEN_stockerCodeScript('animatedcollapse.addDiv(\'projet_bloc_inscription\', \'fade=1, height="100px"\');' ."\n".
106
             		GEN_stockerCodeScript('animatedcollapse.addDiv(\'projet_bloc_inscription\', \'fade=1, height="100px"\');' ."\n".
106
					'animatedcollapse.init();' ."\n");
107
             				'animatedcollapse.init();' ."\n");
-
 
108
             		break;
107
        }
109
             }
108
        switch ($droits) {
110
        } else {
109
        	case PROJET_DROIT_AUCUN : 
111
            $droits = PROJET_DROIT_AUCUN;
110
	        	$this->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_S_INSCRIRE);
112
            $this->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_S_INSCRIRE);
111
	    		$lien_inscription = $this->_url->getURL();
113
    		$lien_inscription = 'javascript:animatedcollapse.toggle(\'projet_bloc_inscription\');';
112
				GEN_stockerFichierScript('jquery', 'api/js/jquery/jquery.js');
114
			GEN_stockerFichierScript('jquery', 'api/js/jquery/jquery.js');
113
				GEN_stockerFichierScript('animatedcollapse', 'api/js/jquery/animatedcollapse.js');
115
			GEN_stockerFichierScript('animatedcollapse', 'api/js/jquery/animatedcollapse.js');
114
				GEN_stockerCodeScript('animatedcollapse.addDiv(\'projet_bloc_inscription\', \'fade=1, height="100px"\');' ."\n".
116
			GEN_stockerCodeScript('animatedcollapse.addDiv(\'projet_bloc_inscription\', \'fade=1, height="100px"\');' ."\n".
115
						'animatedcollapse.init();' ."\n");
117
					'animatedcollapse.init();' ."\n");
116
	    	break;
-
 
117
        }
118
        }
-
 
119
        
118
        // gestion de l'inscription desinscription a la liste
120
        // gestion de l'inscription desinscription a la liste
119
        // TODO : la gestion de linscription au resume
121
        // TODO : la gestion de linscription au resume
120
        $inscription_liste = new inscription_liste($this->_db) ;
122
        $inscription_liste = new inscription_liste($this->_db) ;
121
        $statut = $inscription_liste->getStatutInscrit( $info_liste->getId(),  $this->_auth ) ;
123
        $statut = $inscription_liste->getStatutInscrit( $info_liste->getId(),  $this->_auth ) ;
122
        if ($this->_auth->getAuth() && isset($GLOBALS['_GEN_commun']['info_application']->seulement_forum)) {
124
        if ($this->_auth->getAuth() && isset($GLOBALS['_GEN_commun']['info_application']->seulement_forum)) {