Subversion Repositories Applications.papyrus

Rev

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

Rev 1087 Rev 1259
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.10.2.1 2007-03-13 11:07:33 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.10 $
34
*@version       $Revision: 1.10.2.1 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
Line 148... Line 148...
148
                    $mimeDecode = new Mail_mimeDecode($mail) ;
148
                    $mimeDecode = new Mail_mimeDecode($mail) ;
149
        			$mailDecode = $mimeDecode->decode(array('decode_bodies' => 'true', 
149
        			$mailDecode = $mimeDecode->decode(array('decode_bodies' => 'true', 
150
												'include_bodies' => 'true')) ;
150
												'include_bodies' => 'true')) ;
151
					$message = new ezmlm_msgdisplay() ;
151
					$message = new ezmlm_msgdisplay() ;
152
					$message->listname = $info_liste->getNom();
152
					$message->listname = $info_liste->getNom();
-
 
153
					$this->_url->addQueryString ('action', 'show_msg');
153
					if ($xml_parser->getNumeroFichierPrecedent() != '') {
154
					if ($xml_parser->getNumeroFichierPrecedent() != '') {
154
						$this->_url->addQueryString ('action', 'show_msg');
-
 
155
			            print '[<a href="' . $this->_url->getURL(). '&amp;actionargs[]='.
155
			            print '[<a href="' . $this->_url->getURL(). '&amp;actionargs[]='.
156
			            		$xml_parser->getNumeroRepertoirePrecedent().'&amp;actionargs[]='.
156
			            		$xml_parser->getNumeroRepertoirePrecedent().'&amp;actionargs[]='.
157
			            		$xml_parser->getNumeroFichierPrecedent().
157
			            		$xml_parser->getNumeroFichierPrecedent().
158
								'">'.PROJET_PRECEDENT.'</a>]';
158
								'">'.PROJET_PRECEDENT.'</a>]';
159
			        } else {
159
			        } else {
Line 169... Line 169...
169
					print '[<a href="'.$this->_url->getURL().'&amp;actionargs[]='.$liste->actionargs[0].
169
					print '[<a href="'.$this->_url->getURL().'&amp;actionargs[]='.$liste->actionargs[0].
170
							'&amp;actionargs[]='.$liste->actionargs[1].'">'.PROJET_REPONDRE.'</a>]';
170
							'&amp;actionargs[]='.$liste->actionargs[1].'">'.PROJET_REPONDRE.'</a>]';
171
					if ($isCoord) {
171
					if ($isCoord) {
172
						$this->_url->addQueryString ('action', 'supprimer');
172
						$this->_url->addQueryString ('action', 'supprimer');
173
						print '[<a href="'.$this->_url->getURL().'&amp;actionargs[]='.$liste->actionargs[0].
173
						print '[<a href="'.$this->_url->getURL().'&amp;actionargs[]='.$liste->actionargs[0].
174
							'&amp;actionargs[]='.$liste->actionargs[1].'">'.PROJET_SUPPRIMER.'</a>]';
174
							'&amp;actionargs[]='.$liste->actionargs[1].'" onclick="javascript:return confirm(\''.PROJET_SUPPRIMER.' ?\');">'.
-
 
175
							PROJET_SUPPRIMER.'</a>]';
175
					}
176
					}
176
					print '<div class="message">' ;
177
					print '<div class="message">' ;
177
                    print $message->parse_entete_mail($mailDecode) ;
178
                    print $message->parse_entete_mail($mailDecode) ;
-
 
179
                    //var_dump($mailDecode);
178
        	        $message->parse_template($mailDecode, $liste->actionargs[1], $liste->actionargs[0]);
180
        	        $message->parse_template($mailDecode, $liste->actionargs[1], $liste->actionargs[0]);
179
       				print $message->message_rendu;
181
       				print $message->message_rendu;
180
       				print '</div>' ;
182
       				print '</div>' ;
Line 181... Line 183...
181
       				
183
       				
Line 280... Line 282...
280
                case 'supprimer' :
282
                case 'supprimer' :
281
                    $xml_parser->reset() ;
283
                    $xml_parser->reset() ;
282
					$xml_parser->setAction ('supprimer');
284
					$xml_parser->setAction ('supprimer');
283
					$xml_parser->setIdMessage($liste->actionargs[0], $liste->actionargs[1]) ;
285
					$xml_parser->setIdMessage($liste->actionargs[0], $liste->actionargs[1]) ;
284
                    $xml_parser->load();
286
                    $xml_parser->load();
-
 
287
                    print'<h2>'.PROJET_DERNIERS_MESSAGES.'</h2>'."\n" ;
-
 
288
                    $xml_parser->reset() ;
-
 
289
					$xml_parser->setAction ('derniers_messages');
-
 
290
                    $xml_parser->load();
-
 
291
                    ob_start ();
-
 
292
                    $xml_parser->parse() ;
-
 
293
                    $derniers_messages = ob_get_contents() ;
-
 
294
                    ob_end_clean();
-
 
295
                    echo $derniers_messages ;
285
                break;
296
                break;
286
            }
297
            }
Line 287... Line 298...
287
            
298
            
288
        } else {
299
        } else {