Subversion Repositories Applications.projet

Rev

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

Rev 97 Rev 113
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: resume.php,v 1.7 2006-01-18 10:51:01 alexandre_tb Exp $
22
// CVS : $Id: resume.php,v 1.8 2006-06-16 14:18:03 alexandre_tb Exp $
23
/**
23
/**
24
* Application projet
24
* Application projet
25
*
25
*
26
* Action resume
26
* Action resume
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.7 $
34
*@version       $Revision: 1.8 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
Line 52... Line 52...
52
						PROJET_CHEMIN_ICONES, $this->_id_projet) ;
52
						PROJET_CHEMIN_ICONES, $this->_id_projet) ;
Line 53... Line 53...
53
 
53
 
54
// création de la vue liste de document, on nettoie l'url
54
// création de la vue liste de document, on nettoie l'url
55
//$this->_url->removeQueryString(PROJET_VARIABLE_ACTION) ;
55
//$this->_url->removeQueryString(PROJET_VARIABLE_ACTION) ;
-
 
56
include_once PROJET_CHEMIN_CLASSES.'HTML_listeDocuments.class.php' ;
56
include_once PROJET_CHEMIN_CLASSES.'HTML_listeDocuments.class.php' ;
57
include_once (PROJET_CHEMIN_CLASSES.'ezmlmAccessObject.class.php') ;
Line 57... Line 58...
57
$vue_liste_document = new HTML_listeDocuments($this->_url, false, '', $this->_auth) ;
58
$vue_liste_document = new HTML_listeDocuments($this->_url, false, '', $this->_auth) ;
58
 
59
 
59
// réglage de paramètres de la vue
60
// réglage de paramètres de la vue
Line 157... Line 158...
157
 
158
 
158
        if ($info_liste->isPublic() || $droits <= PROJET_DROIT_CONTRIBUTEUR) {
159
        if ($info_liste->isPublic() || $droits <= PROJET_DROIT_CONTRIBUTEUR) {
159
            $this->_url->removeQueryString(PROJET_VARIABLE_ACTION) ;
160
            $this->_url->removeQueryString(PROJET_VARIABLE_ACTION) ;
160
            switch ($liste->action) {
161
            switch ($liste->action) {
161
                case "list_info":
162
                case "list_info":
162
                    $info = new ezmlm_listinfo();
-
 
163
                    
163
                    $this->_url->addQueryString('act', PROJET_ACTION_VOIR_FORUM);
-
 
164
        		    $xml_parser = &new ezmlmAccessObject('calendrier_messages', $info_liste->getDomaine(),
-
 
165
            									$info_liste->getNom(), $GLOBALS['lang'], 
164
                    if (!$info) return 'Les fichiers de la liste ne sont pas visible sur le serveur' ;
166
            									$this->_url->getURL()) ;
165
                    
167
			
-
 
168
                    $xml_parser->reset() ;
166
                    $this->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_FORUM) ;
169
					$xml_parser->setAction ('derniers_messages');
-
 
170
                    $xml_parser->load();
167
                    $info->forcehref = $this->_url->getURL();
171
                    ob_start ();
168
                    $info->listdir = $liste->listdir ;
172
                    $xml_parser->parse() ;
169
                    $info->listname = $info_liste->getNom();
173
                    $derniers_messages = ob_get_contents() ;
170
                    $info->listdomain = $info_liste->getDomaine() ;
174
                    ob_end_clean();
171
                    $info->show_recentmsgs() ;
175
                    echo $derniers_messages ;
172
                    break;
176
                    break;
173
            }
177
            }
174
        } else {
178
        } else {
175
            print PROJET_MESSAGE_LISTE_PRIVEE;
179
            print PROJET_MESSAGE_LISTE_PRIVEE;