| 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: participants.php,v 1.8 2008-08-25 15:02:49 alexandre_tb Exp $
|
22 |
// CVS : $Id: participants.php,v 1.9 2008-09-01 14:38:34 alexandre_tb Exp $
|
| 23 |
/**
|
23 |
/**
|
| 24 |
* Application projet
|
24 |
* Application projet
|
| 25 |
*
|
25 |
*
|
| 26 |
* Action participants
|
26 |
* Action participants
|
| 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.8 $
|
34 |
*@version $Revision: 1.9 $
|
| 35 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
| 36 |
*/
|
36 |
*/
|
| Line 37... |
Line 37... |
| 37 |
|
37 |
|
| 38 |
// +------------------------------------------------------------------------------------------------------+
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
| Line 41... |
Line 41... |
| 41 |
|
41 |
|
| 42 |
// RAPPEL IMPORTANT
|
42 |
// RAPPEL IMPORTANT
|
| 43 |
// On se situe dans la methode run() de la classe projetControleur
|
43 |
// On se situe dans la methode run() de la classe projetControleur
|
| Line 44... |
Line -... |
| 44 |
//
|
- |
|
| 45 |
|
- |
|
| 46 |
include_once PROJET_CHEMIN_CLASSES.'HTML_listeParticipants.class.php' ;
|
44 |
//
|
| 47 |
|
45 |
|
| 48 |
$res = '' ;
|
46 |
$res = '' ;
|
| 49 |
$pair = true;
|
47 |
$pair = true;
|
| Line 125... |
Line 123... |
| 125 |
$res .= '<input type="text" name="mail_utilisateur" size="32" />' ;
|
123 |
$res .= '<input type="text" name="mail_utilisateur" size="32" />' ;
|
| 126 |
$res .= '<input type="submit" value="'.PROJET_NOUVEAU_UTILISATEUR.'" />'."\n" ;
|
124 |
$res .= '<input type="submit" value="'.PROJET_NOUVEAU_UTILISATEUR.'" />'."\n" ;
|
| 127 |
$res .= '</form><br />'."\n" ;
|
125 |
$res .= '</form><br />'."\n" ;
|
| 128 |
}
|
126 |
}
|
| Line 129... |
Line -... |
| 129 |
|
- |
|
| 130 |
$HTML_listeParticipants = new HTML_listeParticipants(true) ;
|
- |
|
| - |
|
127 |
|
| 131 |
if ($droits <= PROJET_DROIT_COORDINATEUR) $HTML_listeParticipants->setModeModification() ;
|
128 |
|
| 132 |
// Mise en place de l'url
|
129 |
// Mise en place de l'url
|
| 133 |
$this->_url->addQueryString (PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_PARTICIPANT) ;
|
- |
|
| - |
|
130 |
$this->_url->addQueryString (PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_PARTICIPANT) ;
|
| 134 |
$HTML_listeParticipants->setURL($this->_url) ;
|
131 |
|
| 135 |
// Construction de l'entete
|
- |
|
| 136 |
$entete = array (PROJET_NOM, PROJET_PRENOM, PROJET_MAIL, PROJET_DATE_INSCRIPTION, PROJET_STATUT) ;
|
- |
|
| - |
|
132 |
// Construction de l'entete
|
| - |
|
133 |
|
| 137 |
if ($projet->avoirListe() && $droits <= PROJET_DROIT_CONTRIBUTEUR) array_push ($entete, PROJET_LISTE_DE_DISCUSSION);
|
134 |
|
| 138 |
$info_utilisateur = $participants->getInscrits($this->_id_projet, $droits);
|
135 |
$info_utilisateur = $participants->getInscrits($this->_id_projet, $droits);
|
| 139 |
$nombre_participants = count ($info_utilisateur);
|
- |
|
| - |
|
136 |
$nombre_participants = count ($info_utilisateur);
|
| 140 |
$HTML_listeParticipants->construitEntete($entete) ;
|
137 |
|
| Line 141... |
Line 138... |
| 141 |
include_once PROJET_CHEMIN_CLASSES.'statut.class.php' ;
|
138 |
include_once PROJET_CHEMIN_CLASSES.'statut.class.php' ;
|
| 142 |
|
139 |
|
| 143 |
if ($projet->avoirListe()) {
|
140 |
if ($projet->avoirListe()) {
|
| Line 144... |
Line 141... |
| 144 |
/** recuperation des abonnees a la liste */
|
141 |
/** recuperation des abonnees a la liste */
|
| 145 |
include_once PROJET_CHEMIN_CLASSES.'ezmlmAccessObject.class.php';
|
142 |
include_once PROJET_CHEMIN_CLASSES.'ezmlmAccessObject.class.php';
|
| 146 |
|
143 |
|
| 147 |
$ezmlm = new ezmlmAccessObject('liste_abonnes', $projet->_listes_associes[0]->getDomaine(),
|
- |
|
| - |
|
144 |
$ezmlm = new ezmlmAccessObject('liste_abonnes', $projet->_listes_associes[0]->getDomaine(),
|
| 148 |
$projet->_listes_associes[0]->getNom());
|
145 |
$projet->_listes_associes[0]->getNom());
|
| 149 |
$ezmlm->load();
|
- |
|
| 150 |
ob_start();
|
- |
|
| - |
|
146 |
$ezmlm->load();
|
| 151 |
$tableau_mail = $ezmlm->parse();
|
147 |
|
| 152 |
$xml = ob_get_contents();
|
148 |
$tableau_mail = $ezmlm->parse();
|
| 153 |
ob_end_clean();
|
149 |
|
| 154 |
for ($i = 0; $i < count ($info_utilisateur); $i++) {
|
150 |
for ($i = 0; $i < count ($info_utilisateur); $i++) {
|
| Line 161... |
Line 157... |
| 161 |
if (isset($tableau_mail_utilisateur[$email])) {
|
157 |
if (isset($tableau_mail_utilisateur[$email])) {
|
| 162 |
$id = (int) $tableau_mail_utilisateur[$email];
|
158 |
$id = (int) $tableau_mail_utilisateur[$email];
|
| 163 |
$info_utilisateur[$id][6] = 1;
|
159 |
$info_utilisateur[$id][6] = 1;
|
| 164 |
}
|
160 |
}
|
| 165 |
}
|
161 |
}
|
| 166 |
//trigger_error(print_r ($info_utilisateur, true));
|
- |
|
| 167 |
|
- |
|
| 168 |
}
|
162 |
}
|
| 169 |
$statuts = statut::getTousLesStatuts(PROJET_STATUT_SAUF_ADM, $this->_db);
|
163 |
$statuts = statut::getTousLesStatuts(PROJET_STATUT_SAUF_ADM, $this->_db);
|
| 170 |
$statuts_inscription_liste[0] = 'non inscrit';
|
164 |
$statuts_inscription_liste[0] = 'non inscrit';
|
| 171 |
$statuts_inscription_liste[1] = 'inscrit';
|
165 |
$statuts_inscription_liste[1] = 'inscrit';
|
| 172 |
$HTML_listeParticipants->construitListe($info_utilisateur, statut::getTousLesStatuts(PROJET_STATUT_SAUF_ADM, $this->_db), $projet) ;
|
- |
|
| 173 |
|
- |
|
| 174 |
$res .= $HTML_listeParticipants->toHTML() ;
|
- |
|
| 175 |
|
- |
|
| Line 176... |
Line 166... |
| 176 |
|
166 |
|
| 177 |
} else {
|
167 |
} else {
|
| 178 |
$droits = PROJET_DROIT_AUCUN ;
|
168 |
$droits = PROJET_DROIT_AUCUN ;
|
| 179 |
GEN_stockerFichierScript('jquery', 'api/js/jquery/jquery.js');
|
169 |
GEN_stockerFichierScript('jquery', 'api/js/jquery/jquery.js');
|
| Line 203... |
Line 193... |
| 203 |
|
193 |
|
| 204 |
|
194 |
|
| 205 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
195 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
| - |
|
196 |
*
|
| - |
|
197 |
* $Log: not supported by cvs2svn $
|
| - |
|
198 |
* Revision 1.8 2008-08-25 15:02:49 alexandre_tb
|
| 206 |
*
|
199 |
* mise en place des squelettes
|
| 207 |
* $Log: not supported by cvs2svn $
|
200 |
*
|
| 208 |
*
|
201 |
*
|
| 209 |
* +-- Fin du code ----------------------------------------------------------------------------------------+
|
202 |
* +-- Fin du code ----------------------------------------------------------------------------------------+
|
| 210 |
*/
|
203 |
*/
|