Subversion Repositories Applications.projet

Rev

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

Rev 444 Rev 447
Line 98... Line 98...
98
             $droits = $participant->getStatut($id_u, $this->_id_projet);
98
             $droits = $participant->getStatut($id_u, $this->_id_projet);
99
        } else {
99
        } else {
100
            $droits = PROJET_DROIT_AUCUN;
100
            $droits = PROJET_DROIT_AUCUN;
101
            $this->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_S_INSCRIRE);
101
            $this->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_S_INSCRIRE);
102
    		$lien_inscription = 'javascript:animatedcollapse.toggle(\'projet_bloc_inscription\');';
102
    		$lien_inscription = 'javascript:animatedcollapse.toggle(\'projet_bloc_inscription\');';
103
			$label_url_inscription = 'S\'inscrire à ce projet';
-
 
104
			GEN_stockerFichierScript('jquery', 'api/js/jquery/jquery.js');
103
			GEN_stockerFichierScript('jquery', 'api/js/jquery/jquery.js');
105
			GEN_stockerFichierScript('animatedcollapse', 'api/js/jquery/animatedcollapse.js');
104
			GEN_stockerFichierScript('animatedcollapse', 'api/js/jquery/animatedcollapse.js');
106
			GEN_stockerCodeScript('animatedcollapse.addDiv(\'projet_bloc_inscription\', \'fade=1, height="100px"\');' ."\n".
105
			GEN_stockerCodeScript('animatedcollapse.addDiv(\'projet_bloc_inscription\', \'fade=1, height="100px"\');' ."\n".
107
					'animatedcollapse.init();' ."\n");
106
					'animatedcollapse.init();' ."\n");
108
        }
107
        }
109
        switch ($droits) {
108
        switch ($droits) {
110
        	case PROJET_DROIT_AUCUN : 
109
        	case PROJET_DROIT_AUCUN : 
111
	        	$this->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_S_INSCRIRE);
110
	        	$this->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_S_INSCRIRE);
112
	    		$lien_inscription = $this->_url->getURL();
111
	    		$lien_inscription = $this->_url->getURL();
113
	    		$label_url_inscription = 'S\'inscrire à ce projet';
-
 
114
				GEN_stockerFichierScript('jquery', 'api/js/jquery/jquery.js');
112
				GEN_stockerFichierScript('jquery', 'api/js/jquery/jquery.js');
115
				GEN_stockerFichierScript('animatedcollapse', 'api/js/jquery/animatedcollapse.js');
113
				GEN_stockerFichierScript('animatedcollapse', 'api/js/jquery/animatedcollapse.js');
116
				GEN_stockerCodeScript('animatedcollapse.addDiv(\'projet_bloc_inscription\', \'fade=1, height="100px"\');' ."\n".
114
				GEN_stockerCodeScript('animatedcollapse.addDiv(\'projet_bloc_inscription\', \'fade=1, height="100px"\');' ."\n".
117
						'animatedcollapse.init();' ."\n");
115
						'animatedcollapse.init();' ."\n");
118
	    	break;
116
	    	break;