Subversion Repositories Applications.projet

Rev

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

Rev 112 Rev 208
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.10 2006-06-16 14:17:16 alexandre_tb Exp $
22
// CVS : $Id: forums.php,v 1.11 2007-04-19 15:34:35 neiluj 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.10 $
34
*@version       $Revision: 1.11 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
39
// |                                            ENTETE du PROGRAMME                                       |
39
// |                                            ENTETE du PROGRAMME                                       |
Line -... Line 40...
-
 
40
// +------------------------------------------------------------------------------------------------------+
-
 
41
 
40
// +------------------------------------------------------------------------------------------------------+
42
include_once PROJET_CHEMIN_CLASSES.'projet.class.php' ;
41
 
43
include_once PROJET_CHEMIN_CLASSES.'participe.class.php' ;
42
include_once (PROJET_CHEMIN_CLASSES.'HTML_formulaireMail.class.php') ;
44
include_once (PROJET_CHEMIN_CLASSES.'HTML_formulaireMail.class.php') ;
43
include_once (PROJET_CHEMIN_CLASSES.'inscription_liste.class.php') ;
45
include_once (PROJET_CHEMIN_CLASSES.'inscription_liste.class.php') ;
44
include_once (PROJET_CHEMIN_CLASSES.'ezmlmAccessObject.class.php') ;
46
include_once (PROJET_CHEMIN_CLASSES.'ezmlmAccessObject.class.php') ;
Line 85... Line 87...
85
	        	$inscription_laius .= '<a href="'.$this->_url->getURL().'">'.PROJET_S_INSCRIRE.'</a>'."\n" ;
87
	        	$inscription_laius .= '<a href="'.$this->_url->getURL().'">'.PROJET_S_INSCRIRE.'</a>'."\n" ;
86
	        }
88
	        }
87
        }
89
        }
Line 88... Line 90...
88
        
90
        
-
 
91
        if ($info_liste->isPublic() || $droits <= PROJET_DROIT_CONTRIBUTEUR) {
89
        if ($info_liste->isPublic() || $droits <= PROJET_DROIT_CONTRIBUTEUR) {
92
            include_once PROJET_CHEMIN_CLASSES_LISTES.'ezmlm.php' ;
90
            $liste = new ezmlm_php() ;
93
            $liste = new ezmlm_php() ;
Line 91... Line 94...
91
            // Paramétrage de la liste
94
            // Paramétrage de la liste
92
            
95
            
Line 148... Line 151...
148
                    $mimeDecode = new Mail_mimeDecode($mail) ;
151
                    $mimeDecode = new Mail_mimeDecode($mail) ;
149
        			$mailDecode = $mimeDecode->decode(array('decode_bodies' => 'true', 
152
        			$mailDecode = $mimeDecode->decode(array('decode_bodies' => 'true', 
150
												'include_bodies' => 'true')) ;
153
												'include_bodies' => 'true')) ;
151
					$message = new ezmlm_msgdisplay() ;
154
					$message = new ezmlm_msgdisplay() ;
152
					$message->listname = $info_liste->getNom();
155
					$message->listname = $info_liste->getNom();
-
 
156
					$this->_url->addQueryString ('action', 'show_msg');
153
					if ($xml_parser->getNumeroFichierPrecedent() != '') {
157
					if ($xml_parser->getNumeroFichierPrecedent() != '') {
154
						$this->_url->addQueryString ('action', 'show_msg');
-
 
155
			            print '[<a href="' . $this->_url->getURL(). '&amp;actionargs[]='.
158
			            print '[<a href="' . $this->_url->getURL(). '&amp;actionargs[]='.
156
			            		$xml_parser->getNumeroRepertoirePrecedent().'&amp;actionargs[]='.
159
			            		$xml_parser->getNumeroRepertoirePrecedent().'&amp;actionargs[]='.
157
			            		$xml_parser->getNumeroFichierPrecedent().
160
			            		$xml_parser->getNumeroFichierPrecedent().
158
								'">'.PROJET_PRECEDENT.'</a>]';
161
								'">'.PROJET_PRECEDENT.'</a>]';
159
			        } else {
162
			        } else {
Line 169... Line 172...
169
					print '[<a href="'.$this->_url->getURL().'&amp;actionargs[]='.$liste->actionargs[0].
172
					print '[<a href="'.$this->_url->getURL().'&amp;actionargs[]='.$liste->actionargs[0].
170
							'&amp;actionargs[]='.$liste->actionargs[1].'">'.PROJET_REPONDRE.'</a>]';
173
							'&amp;actionargs[]='.$liste->actionargs[1].'">'.PROJET_REPONDRE.'</a>]';
171
					if ($isCoord) {
174
					if ($isCoord) {
172
						$this->_url->addQueryString ('action', 'supprimer');
175
						$this->_url->addQueryString ('action', 'supprimer');
173
						print '[<a href="'.$this->_url->getURL().'&amp;actionargs[]='.$liste->actionargs[0].
176
						print '[<a href="'.$this->_url->getURL().'&amp;actionargs[]='.$liste->actionargs[0].
174
							'&amp;actionargs[]='.$liste->actionargs[1].'">'.PROJET_SUPPRIMER.'</a>]';
177
							'&amp;actionargs[]='.$liste->actionargs[1].'" onclick="javascript:return confirm(\''.PROJET_SUPPRIMER.' ?\');">'.
-
 
178
							PROJET_SUPPRIMER.'</a>]';
175
					}
179
					}
176
					print '<div class="message">' ;
180
					print '<div class="message">' ;
177
                    print $message->parse_entete_mail($mailDecode) ;
181
                    print $message->parse_entete_mail($mailDecode) ;
178
        	        $message->parse_template($mailDecode, $liste->actionargs[1], $liste->actionargs[0]);
182
        	        $message->parse_template($mailDecode, $liste->actionargs[1], $liste->actionargs[0]);
179
       				print $message->message_rendu;
183
       				print $message->message_rendu;
Line 280... Line 284...
280
                case 'supprimer' :
284
                case 'supprimer' :
281
                    $xml_parser->reset() ;
285
                    $xml_parser->reset() ;
282
					$xml_parser->setAction ('supprimer');
286
					$xml_parser->setAction ('supprimer');
283
					$xml_parser->setIdMessage($liste->actionargs[0], $liste->actionargs[1]) ;
287
					$xml_parser->setIdMessage($liste->actionargs[0], $liste->actionargs[1]) ;
284
                    $xml_parser->load();
288
                    $xml_parser->load();
-
 
289
                    print'<h2>'.PROJET_DERNIERS_MESSAGES.'</h2>'."\n" ;
-
 
290
                    $xml_parser->reset() ;
-
 
291
					$xml_parser->setAction ('derniers_messages');
-
 
292
                    $xml_parser->load();
-
 
293
                    ob_start ();
-
 
294
                    $xml_parser->parse() ;
-
 
295
                    $derniers_messages = ob_get_contents() ;
-
 
296
                    ob_end_clean();
-
 
297
                    echo $derniers_messages ;
285
                break;
298
                break;
286
            }
299
            }
Line 287... Line 300...
287
            
300
            
288
        } else {
301
        } else {