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.6 2005-10-20 10:28:25 ddelon Exp $
|
22 |
// CVS : $Id: forums.php,v 1.7 2005-11-25 14:50:12 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.6 $
|
34 |
*@version $Revision: 1.7 $
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
36 |
*/
|
36 |
*/
|
Line 37... |
Line 37... |
37 |
|
37 |
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
Line 50... |
Line 50... |
50 |
$projet = new projet ($this->_db, $this->_id_projet) ;
|
50 |
$projet = new projet ($this->_db, $this->_id_projet) ;
|
Line 51... |
Line 51... |
51 |
|
51 |
|
52 |
$liste_ext_res = '' ;
|
52 |
$liste_ext_res = '' ;
|
53 |
$sortie_liste = '' ;
|
53 |
$sortie_liste = '' ;
|
- |
|
54 |
$inscription_laius ='' ;
|
54 |
$inscription_laius ='' ;
|
55 |
$this->_url->addQueryString (PROJET_VARIABLE_ID_PROJET, $this->_id_projet);
|
55 |
if ($projet->avoirListe()) {
|
56 |
if ($projet->avoirListe()) {
|
56 |
foreach ($projet->_listes_associes as $info_liste) {
|
57 |
foreach ($projet->_listes_associes as $info_liste) {
|
57 |
ob_start() ;
|
58 |
ob_start() ;
|
58 |
$id_u = $this->_auth->getAuthData(PROJET_CHAMPS_ID) ;
|
59 |
$id_u = $this->_auth->getAuthData(PROJET_CHAMPS_ID) ;
|
Line 70... |
Line 71... |
70 |
|
71 |
|
71 |
// gestion de l'inscription désinscription à la liste
|
72 |
// gestion de l'inscription désinscription à la liste
|
72 |
// TODO : la gestion de linscription au résumé
|
73 |
// TODO : la gestion de linscription au résumé
|
73 |
$inscription_liste = new inscription_liste($this->_db) ;
|
74 |
$inscription_liste = new inscription_liste($this->_db) ;
|
74 |
$statut = $inscription_liste->getStatutInscrit( $info_liste->getId(), $this->_auth ) ;
|
75 |
$statut = $inscription_liste->getStatutInscrit( $info_liste->getId(), $this->_auth ) ;
|
75 |
if ($this->_auth->getAuth()) {
|
76 |
if ($this->_auth->getAuth() && isset($GLOBALS['_GEN_commun']['info_application']->seulement_forum)) {
|
76 |
if ($statut == 2) {
|
77 |
if ($statut == 2) {
|
77 |
$this->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_INSCRIPTION_LISTE);
|
78 |
$this->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_DESINSCRIPTION_LISTE);
|
78 |
$inscription_laius ='<h2>'.PROJET_VOUS_ETES_INSCRIT.'</h2>'."\n" ;
|
79 |
$inscription_laius ='<h2>'.PROJET_VOUS_ETES_INSCRIT.'</h2>'."\n" ;
|
79 |
$inscription_laius .= '<a href="'.$this->_url->getURL().'">'.PROJET_SE_DESINSCRIRE_LISTE.'</a>'."\n" ;
|
80 |
$inscription_laius .= '<a href="'.$this->_url->getURL().'">'.PROJET_SE_DESINSCRIRE_LISTE.'</a>'."\n" ;
|
80 |
} else {
|
81 |
} else {
|
81 |
$this->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_DESINSCRIPTION_LISTE);
|
82 |
$this->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_INSCRIPTION_LISTE);
|
82 |
$inscription_laius ='<h2>'.PROJET_VOUS_N_ETES_PAS_INSCRIT.'</h2>'."\n" ;
|
83 |
$inscription_laius ='<h2>'.PROJET_VOUS_N_ETES_PAS_INSCRIT.'</h2>'."\n" ;
|
83 |
$inscription_laius .= '<a href="'.$this->_url->getURL().'">'.PROJET_S_INSCRIRE.'</a>'."\n" ;
|
84 |
$inscription_laius .= '<a href="'.$this->_url->getURL().'">'.PROJET_S_INSCRIRE.'</a>'."\n" ;
|
84 |
}
|
85 |
}
|
Line 105... |
Line 106... |
105 |
|
106 |
|
106 |
|
107 |
|
107 |
print '<a href="mailto:'.$info_liste->getAdresseEnvoi().'">' . $info_liste->getAdresseEnvoi() ;
|
108 |
print '<a href="mailto:'.$info_liste->getAdresseEnvoi().'">' . $info_liste->getAdresseEnvoi() ;
|
- |
|
109 |
print "</a><br />\n";
|
108 |
print "</a><br />\n";
|
110 |
$this->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ENVOYER_UN_MAIL);
|
Line 109... |
Line 111... |
109 |
$this->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ENVOYER_UN_MAIL);
|
111 |
if (isset ($GLOBALS['_GEN_commun']['info_application']->seulement_forum))
|
110 |
print '<a href="'.$this->_url->getURL().'">'.PROJET_ECRIRE_LISTE.'</a><br />';
|
112 |
print '<a href="'.$this->_url->getURL().'">'.PROJET_ECRIRE_LISTE.'</a><br />';
|
111 |
|
113 |
|
112 |
print '<h2>'.PROJET_TOUS_LES_MESSAGES.'</h2>'."\n";
|
114 |
print '<h2>'.PROJET_TOUS_LES_MESSAGES.'</h2>'."\n";
|