Subversion Repositories Applications.projet

Rev

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

Rev 11 Rev 33
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: forums.php,v 1.2 2005-09-27 16:43:53 alexandre_tb Exp $
22
// CVS : $Id: forums.php,v 1.3 2005-10-07 08:29:38 alexandre_tb Exp $
23
/**
23
/**
24
* Application projet
24
* Application projet
25
*
25
*
26
* Action forums
26
* Action forums
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.2 $
34
*@version       $Revision: 1.3 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
39
// |                                            ENTETE du PROGRAMME                                       |
39
// |                                            ENTETE du PROGRAMME                                       |
Line 40... Line 40...
40
// +------------------------------------------------------------------------------------------------------+
40
// +------------------------------------------------------------------------------------------------------+
41
 
-
 
-
 
41
 
42
include_once (PROJET_CHEMIN_CLASSES.'HTML_formulaireMail.php') ;
42
include_once (PROJET_CHEMIN_CLASSES.'HTML_formulaireMail.class.php') ;
43
 
43
include_once (PROJET_CHEMIN_CLASSES.'inscription_liste.class.php') ;
44
// RAPPEL IMPORTANT
44
// RAPPEL IMPORTANT
Line 65... Line 65...
65
            if ($isAdm) $isCoord = true ;
65
            if ($isAdm) $isCoord = true ;
66
        } else {
66
        } else {
67
            $droits = PROJET_DROIT_AUCUN;
67
            $droits = PROJET_DROIT_AUCUN;
68
        }
68
        }
Line -... Line 69...
-
 
69
        
-
 
70
        // gestion de l'inscription désinscription à la liste
-
 
71
        // TO DO : la gestion de linscription au résumé
-
 
72
        $inscription_liste = new inscription_liste($this->_db) ;
-
 
73
        $statut = $inscription_liste->getStatutInscrit( $info_liste->getId(),  $this->_auth ) ;
-
 
74
        if ($statut == 2) {
-
 
75
        	$this->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_INSCRIPTION_LISTE);
-
 
76
        	$inscription_laius ='<h2>'.PROJET_VOUS_ETES_INSCRIT.'</h2>'."\n" ;
-
 
77
        	$inscription_laius .= '<a href="'.$this->_url->getURL().'">'.PROJET_SE_DESINSCRIRE_LISTE.'</a>'."\n" ;
-
 
78
        } else {
-
 
79
        	$this->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_DESINSCRIPTION_LISTE);
-
 
80
        	$inscription_laius ='<h2>'.PROJET_VOUS_N_ETES_PAS_INSCRIT.'</h2>'."\n" ;
-
 
81
        	$inscription_laius .= '<a href="'.$this->_url->getURL().'">'.PROJET_S_INSCRIRE.'</a>'."\n" ;
-
 
82
        }
69
        
83
        
70
        if ($info_liste->isPublic() || $droits <= PROJET_DROIT_CONTRIBUTEUR) {
84
        if ($info_liste->isPublic() || $droits <= PROJET_DROIT_CONTRIBUTEUR) {
71
            $liste = new ezmlm_php() ;
85
            $liste = new ezmlm_php() ;
Line 72... Line 86...
72
            // Paramétrage de la liste
86
            // Paramétrage de la liste
Line 207... Line 221...
207
        $liste_ext_res .= '<br />'."\n" ;
221
        $liste_ext_res .= '<br />'."\n" ;
208
    }
222
    }
209
}
223
}
Line 210... Line 224...
210
 
224
 
-
 
225
$retour .= '<h1>'.PROJET_PROJET.' : '.$projet->getTitre()."</h1>" ;
211
$retour .= '<h1>'.PROJET_PROJET.' : '.$projet->getTitre()."</h1>" ;
226
$retour .= $inscription_laius ;
-
 
227
$retour .= '<h2>'.PROJET_ADRESSE_ECRIRE.'</h2>'."\n" ;
212
$retour .= '<h2>'.PROJET_ADRESSE_ECRIRE.'</h2>'."\n" ;
228
 
213
$retour .= $sortie_liste ;
229
$retour .= $sortie_liste ;
214
$retour .= $liste_ext_res ;
230
$retour .= $liste_ext_res ;
215
?>
231
?>