Subversion Repositories Applications.projet

Rev

Rev 252 | Rev 400 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 252 Rev 294
1
<?php
1
<?php
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */ 
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */ 
3
// +------------------------------------------------------------------------------------------------------+
3
// +------------------------------------------------------------------------------------------------------+
4
// | PHP version 4.1                                                                                      |
4
// | PHP version 4.1                                                                                      |
5
// +------------------------------------------------------------------------------------------------------+
5
// +------------------------------------------------------------------------------------------------------+
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
7
// +------------------------------------------------------------------------------------------------------+
7
// +------------------------------------------------------------------------------------------------------+
8
// | This library is free software; you can redistribute it and/or                                        |
8
// | This library is free software; you can redistribute it and/or                                        |
9
// | modify it under the terms of the GNU General Public                                                  |
9
// | modify it under the terms of the GNU General Public                                                  |
10
// | License as published by the Free Software Foundation; either                                         |
10
// | License as published by the Free Software Foundation; either                                         |
11
// | version 2.1 of the License, or (at your option) any later version.                                   |
11
// | version 2.1 of the License, or (at your option) any later version.                                   |
12
// |                                                                                                      |
12
// |                                                                                                      |
13
// | This library is distributed in the hope that it will be useful,                                      |
13
// | This library is distributed in the hope that it will be useful,                                      |
14
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
14
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
15
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
15
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
16
// | General Public License for more details.                                                             |
16
// | General Public License for more details.                                                             |
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.13 2007-08-28 10:33:50 alexandre_tb Exp $
22
// CVS : $Id: resume.php,v 1.14 2008-08-25 15:02:49 alexandre_tb Exp $
23
/**
23
/**
24
* Application projet
24
* Application projet
25
*
25
*
26
* Action resume
26
* Action resume
27
*
27
*
28
*@package projet
28
*@package projet
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.13 $
34
*@version       $Revision: 1.14 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
37
 
37
 
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
39
// |                                            ENTETE du PROGRAMME                                       |
39
// |                                            ENTETE du PROGRAMME                                       |
40
// +------------------------------------------------------------------------------------------------------+
40
// +------------------------------------------------------------------------------------------------------+
41
 
41
 
42
// RAPPEL IMPORTANT
42
// RAPPEL IMPORTANT
43
// On se situe dans la méthode run() de la classe projetControleur
43
// On se situe dans la methode run() de la classe projetControleur
44
//
44
//
45
 
45
 
46
$retour = '';
46
$retour = '';
-
 
47
$loggue = false;
47
 
48
 
48
// création de l'objet projet courant
49
// creation de l'objet projet courant
49
include_once PROJET_CHEMIN_CLASSES.'projet.class.php' ;
50
include_once PROJET_CHEMIN_CLASSES.'projet.class.php' ;
50
include_once PROJET_CHEMIN_CLASSES.'participe.class.php' ;
51
include_once PROJET_CHEMIN_CLASSES.'participe.class.php' ;
51
$projet = new projet ($this->_db, $this->_id_projet) ;
52
$projet = new projet ($this->_db, $this->_id_projet) ;
-
 
53
		
-
 
54
 
-
 
55
/** Bloc resume avec lien resume */
-
 
56
$resume = $projet->getResume();
-
 
57
$bouton_resume = '';
-
 
58
$bouton_s_inscrire_au_projet = '';
-
 
59
 
-
 
60
 
-
 
61
$lien_inscription = '';
52
 
62
 
53
// récupération de la liste des documents associés
63
// recuperation de la liste des documents associes
54
$liste_documents = document::getDocumentsRecents(4, $this->_db, PROJET_CHEMIN_FICHIER, 
64
$liste_documents = document::getDocumentsRecents(4, $this->_db, PROJET_CHEMIN_FICHIER, 
55
						PROJET_CHEMIN_ICONES, $this->_id_projet) ;
65
						PROJET_CHEMIN_ICONES, $this->_id_projet) ;
56
 
66
 
57
// création de la vue liste de document, on nettoie l'url
67
// creation de la vue liste de document, on nettoie l'url
58
//$this->_url->removeQueryString(PROJET_VARIABLE_ACTION) ;
68
//$this->_url->removeQueryString(PROJET_VARIABLE_ACTION) ;
59
include_once PROJET_CHEMIN_CLASSES.'HTML_listeDocuments.class.php' ;
69
include_once PROJET_CHEMIN_CLASSES.'HTML_listeDocuments.class.php' ;
60
include_once (PROJET_CHEMIN_CLASSES.'ezmlmAccessObject.class.php') ;
70
include_once (PROJET_CHEMIN_CLASSES.'ezmlmAccessObject.class.php') ;
61
$vue_liste_document = new HTML_listeDocuments($this->_url, false, '', $this->_auth) ;
71
$vue_liste_document = new HTML_listeDocuments($this->_url, false, '', $this->_auth) ;
62
 
-
 
-
 
72
$bouton_deposer_doc = '';
63
// réglage de paramètres de la vue
73
// reglage de parametres de la vue
64
$vue_liste_document->setAction (array ("couper" => PROJET_ACTION_COUPER, "modifier" => PROJET_ACTION_MODIFIER, "supprimer" => PROJET_SUPPRESSION_FICHIER)) ;
74
$vue_liste_document->setAction (array ("couper" => PROJET_ACTION_COUPER, "modifier" => PROJET_ACTION_MODIFIER, "supprimer" => PROJET_SUPPRESSION_FICHIER)) ;
65
$vue_liste_document->setCheminIcones(PROJET_CHEMIN_ICONES) ;
75
$vue_liste_document->setCheminIcones(PROJET_CHEMIN_ICONES) ;
-
 
76
 
-
 
77
$bouton_poster = ''; 
66
 
78
$bouton_desinscription_projet = '';
67
 
79
 
68
// vérification des droits de l'utilisateur
80
// verification des droits de l'utilisateur
69
$entete_liste = array (PROJET_FICHIERS_NOM, PROJET_FICHIERS_TAILLE, PROJET_FICHIERS_PAR, PROJET_FICHIERS_CREE_LE) ;
81
$entete_liste = array (PROJET_FICHIERS_NOM, PROJET_FICHIERS_TAILLE, PROJET_FICHIERS_PAR, PROJET_FICHIERS_CREE_LE) ;
70
 
82
 
71
if ($this->_auth->getAuth()) {
83
if ($this->_auth->getAuth()) {
-
 
84
	$loggue = true;
72
	$droits = PROJET_DROIT_AUCUN;
85
	$droits = PROJET_DROIT_AUCUN;
73
    $participant = new participe($this->_db) ;
86
    $participant = new participe($this->_db) ;
74
    $id_u = $this->_auth->getAuthData(PROJET_CHAMPS_ID) ;
87
    $id_u = $this->_auth->getAuthData(PROJET_CHAMPS_ID) ;
75
    $isCoord = $participant->isCoordinateur($id_u, $this->_id_projet, $this->_db) ;
88
    $isCoord = $participant->isCoordinateur($id_u, $this->_id_projet, $this->_db) ;
76
    $isParticipant = $participant->isContributeur($id_u, $this->_id_projet, $this->_db) ;
89
    $isParticipant = $participant->isContributeur($id_u, $this->_id_projet, $this->_db) ;
77
    if ($isParticipant) $droits = PROJET_DROIT_CONTRIBUTEUR;
90
    if ($isParticipant) $droits = PROJET_DROIT_CONTRIBUTEUR;
78
    if ($isCoord) $droits = PROJET_DROIT_COORDINATEUR ;
91
    if ($isCoord) $droits = PROJET_DROIT_COORDINATEUR ;
79
    $isAdm = participe::isAdministrateur($this->_auth->getAuthData(PROJET_CHAMPS_ID), $this->_db) ;
92
    $isAdm = participe::isAdministrateur($this->_auth->getAuthData(PROJET_CHAMPS_ID), $this->_db) ;
80
    if ($isAdm) $droits = PROJET_DROIT_ADMINISTRATEUR ;
93
    if ($isAdm) $droits = PROJET_DROIT_ADMINISTRATEUR ;
81
    if ($isAdm) $isCoord = true ;
94
    if ($isAdm) $isCoord = true ;
-
 
95
    
-
 
96
	include_once PROJET_CHEMIN_CLASSES.'inscription_liste.class.php';
-
 
97
	$projet->getListesAssociees();
-
 
98
	foreach ($projet->_listes_associes as $info_liste) {
-
 
99
	    $inscription_liste = new inscription_liste($this->_db) ;
-
 
100
	    if ($inscription_liste->getStatutInscrit($info_liste->getId(),  $this->_auth) == 0) {
-
 
101
	        $action_inscription = PROJET_ACTION_INSCRIPTION_LISTE ;
-
 
102
	        $label_inscription = 'S\'inscrire &agrave; la liste' ;
-
 
103
	    } else {
-
 
104
	        // L'action envoyer un mail
-
 
105
	        $action_inscription = PROJET_ENVOYER_UN_MAIL ;
-
 
106
	        $label_inscription = PROJET_ECRIRE_LISTE ;
-
 
107
	    }
-
 
108
	}
-
 
109
            
-
 
110
    switch ($participant->getStatut($id_u, $this->_id_projet))
-
 
111
    {
-
 
112
    	case PROJET_DROIT_AUCUN : 
-
 
113
    		$this->_url->addQueryString (PROJET_VARIABLE_ACTION, PROJET_ACTION_S_INSCRIRE);
-
 
114
    		$lien_inscription = $this->_url->getURL();
-
 
115
    		$laius_inscription = PROJET_VOUS_N_ETES_PAS_INSCRIT;
-
 
116
    		$label_url_inscription = PROJET_S_INSCRIRE_AU_PROJET;
-
 
117
    		$this->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_S_INSCRIRE);
-
 
118
    		$lien_inscription = $this->_url->getURL();
-
 
119
    		$label_url_inscription = 'S\'inscrire &agrave; ce projet'; 
-
 
120
    		
-
 
121
    	break;
-
 
122
    	case PROJET_DROIT_CONTRIBUTEUR : 
-
 
123
    		$this->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_NOUVEAU_FICHIER);
-
 
124
			$bouton_deposer_doc = bouton::toHTML($this->_url->getURL(), 'D&eacute;poser un document', 'document');
-
 
125
			$bouton_deposer_doc .= '<br style="clear:both" />';
-
 
126
			
-
 
127
			$this->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_DESINSCRIPTION_PROJET);
-
 
128
			$bouton_desinscription_projet = bouton::toHTML($this->_url->getURL(), 'Se d&eacute;sinscrire du projet', 'cross');
-
 
129
			$bouton_desinscription_projet .= '<br style="clear:both" />';
-
 
130
			$this->_url->addQueryString(PROJET_VARIABLE_ACTION, $action_inscription);
-
 
131
            $bouton_poster = bouton::toHTML($this->_url->getURL(), $label_inscription,'ecrire');
-
 
132
    	break;
-
 
133
    	case PROJET_DROIT_COORDINATEUR || PROJET_DROIT_ADMINISTRATEUR : 
-
 
134
    		$this->_url->addQueryString (PROJET_VARIABLE_ACTION, PROJET_MODIFIER_DESCRIPTION);
-
 
135
			$bouton_resume = bouton::toHTML($this->_url->getURL(), PROJET_MODIFIER_PROPRIETES, 'modifier');
-
 
136
			$bouton_resume .= '<br style="clear:both" />';
-
 
137
			$this->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_NOUVEAU_FICHIER);
-
 
138
			$bouton_deposer_doc = bouton::toHTML($this->_url->getURL(), 'D&eacute;poser un document', 'document');
-
 
139
			$bouton_deposer_doc .= '<br style="clear:both" />';
-
 
140
			
-
 
141
			if ($projet->avoirListe()) {
-
 
142
				$this->_url->addQueryString(PROJET_VARIABLE_ACTION, $action_inscription);
-
 
143
            	$bouton_poster = bouton::toHTML($this->_url->getURL(), $label_inscription,'ecrire');
-
 
144
            	
-
 
145
			}
-
 
146
    		
-
 
147
    	break;
-
 
148
    	case PROJET_DROIT_EN_ATTENTE : $droits = PROJET_DROIT_EN_ATTENTE;
-
 
149
    		GEN_stockerFichierScript('mootools', 'api/js/mootools/mootools-release-1.11.js');
-
 
150
			GEN_stockerCodeScript('window.addEvent(\'domready\', function(){'."\n".
-
 
151
				'var fx = new Fx.Styles($(\'projet_lien_login\'), {duration:500, wait:false});' ."\n".
-
 
152
				'element = $(\'projet_lien_login\');'."\n".
-
 
153
				'element.addEvent(
-
 
154
					\'click\', function() {
-
 
155
						fx.start({
-
 
156
							\'height\' : \'320px\'
-
 
157
						})
-
 
158
					}
-
 
159
				)});');
-
 
160
			$laius_inscription_modere = str_replace ('nom_du_projet', $projet->getTitre(), PROJET_LAIUS_INSCRIPTION_MODERE);
-
 
161
			$lien_login = '#';
-
 
162
    	break;
-
 
163
    }
-
 
164
    $bouton_poster .= '<br style="clear:both" />';
82
    
165
    
83
    $statut = participe::getStatutSurProjetCourant ($this->_auth->getAuthData(PROJET_CHAMPS_ID), $this->_id_projet, $this->_db) ;
166
    $statut = participe::getStatutSurProjetCourant ($this->_auth->getAuthData(PROJET_CHAMPS_ID), $this->_id_projet, $this->_db) ;
84
    // si participant, on ajoute le champs visibilite
167
    // si participant, on ajoute le champs visibilite
85
    
168
    
86
    if ($statut !='' || $isAdm) {
169
    if ($statut !='' || $isAdm) {
87
        array_push ($entete_liste, PROJET_FICHIERS_VISIBILITE) ;
170
        array_push ($entete_liste, PROJET_FICHIERS_VISIBILITE) ;
88
        $visible = true ;
171
        $visible = true ;
89
    } else {
172
    } else {
90
 	   $visible = false ;
173
 	   $visible = false ;
91
    }
174
    }
92
	// récupération de la liste des documents associés
175
	// recuperation de la liste des documents associes
93
	$liste_documents = document::getDocumentsRecents(4, $this->_db, PROJET_CHEMIN_FICHIER, 
176
	$liste_documents = document::getDocumentsRecents(4, $this->_db, PROJET_CHEMIN_FICHIER, 
94
						PROJET_CHEMIN_ICONES, $this->_id_projet, $visible) ;
177
						PROJET_CHEMIN_ICONES, $this->_id_projet, $visible) ;
95
 
178
 
96
    
179
    
97
    // si chef de projet ou si propriétaire d'au moins 1 document
180
    // si chef de projet ou si proprietaire d'au moins 1 document
98
    $proprietaire_un_document = false ;
181
    $proprietaire_un_document = false ;
99
 
182
 
100
    foreach ($liste_documents as $document) {
183
    foreach ($liste_documents as $document) {
101
        if ($this->_auth->getAuthData(PROJET_CHAMPS_ID) == $document->_id_proprietaire) {
184
        if ($this->_auth->getAuthData(PROJET_CHAMPS_ID) == $document->_id_proprietaire) {
102
            $proprietaire_un_document = true ;
185
            $proprietaire_un_document = true ;
103
            $droits = PROJET_DROIT_PROPRIETAIRE ;
186
            $droits = PROJET_DROIT_PROPRIETAIRE ;
104
        }
187
        }
105
    }
188
    }
106
    if ($droits <= PROJET_DROIT_COORDINATEUR || $proprietaire_un_document) {
189
    if ($droits <= PROJET_DROIT_COORDINATEUR || $proprietaire_un_document) {
107
        array_push ($entete_liste, PROJET_ACTION) ;
190
        array_push ($entete_liste, PROJET_ACTION) ;
108
    }
191
    }
109
} else {
192
} else {
110
    $droits = PROJET_DROIT_AUCUN ;
193
    $droits = PROJET_DROIT_AUCUN ;
111
    // récupération de la liste des documents associés
194
    // recuperation de la liste des documents associes
112
	$liste_documents = document::getDocumentsRecents(4, $this->_db, PROJET_CHEMIN_FICHIER, 
195
	$liste_documents = document::getDocumentsRecents(4, $this->_db, PROJET_CHEMIN_FICHIER, 
113
						PROJET_CHEMIN_ICONES, $this->_id_projet, false) ;
196
						PROJET_CHEMIN_ICONES, $this->_id_projet, false) ;
-
 
197
	$lien_inscription = 'javascript:animatedcollapse.toggle(\'projet_bloc_inscription\');';
-
 
198
	$label_url_inscription = 'S\'inscrire &agrave; ce projet';
114
    
199
	
-
 
200
	GEN_stockerFichierScript('jquery', 'api/js/jquery/jquery.js');
-
 
201
	GEN_stockerFichierScript('animatedcollapse', 'api/js/jquery/animatedcollapse.js');
-
 
202
	GEN_stockerCodeScript('animatedcollapse.addDiv(\'projet_bloc_inscription\', \'fade=1, height="100px"\');' ."\n".
-
 
203
			'animatedcollapse.init();' ."\n");
-
 
204
	$lien_login = '#';
115
}
205
}
116
if (!isset($droits)) $droits = PROJET_DROIT_AUCUN ;
206
if (!isset($droits)) $droits = PROJET_DROIT_AUCUN ;
117
 
207
 
118
$vue_liste_document->construitEntete($entete_liste) ;
208
$vue_liste_document->construitEntete($entete_liste) ;
119
$vue_liste_document->construitListe ($liste_documents, $droits, 'ignore_repertoire', $this->_db) ;
209
$vue_liste_document->construitListe ($liste_documents, $droits, 'ignore_repertoire', $this->_db) ;
120
 
210
 
121
$wiki_res = '' ;
211
$wiki_res = '' ;
122
// Les wikinis associés au projet
212
// Les wikinis associes au projet
123
if ($projet->getWikini()) {
213
if ($projet->getWikini()) {
124
	$url = $GLOBALS['_GEN_commun']['url'] ;
214
	$url = $GLOBALS['_GEN_commun']['url'] ;
125
	
215
	
126
	$this->_url->addQueryString ('act',PROJET_ACTION_VOIR_WIKINI);
216
	$this->_url->addQueryString ('act',PROJET_ACTION_VOIR_WIKINI);
127
	$link=$this->_url->getURL();
217
	$link=$this->_url->getURL();
128
 
218
 
129
    $wiki_res .= '<div><a href="'.$link.'">'.PROJET_ALLER_SUR_WIKINI.'</a> ('.$projet->getWikini().')' ;
219
    $wiki_res .= '<div><a href="'.$link.'">'.PROJET_ALLER_SUR_WIKINI.'</a> ('.$projet->getWikini().')' ;
130
    $wiki_res .= '</div>' ;
220
    $wiki_res .= '</div>' ;
131
} else {
221
} else {
132
    $wiki_res .= '<div>'.PROJET_WIKINI_PAS.'</div>'."\n" ;
222
    $wiki_res .= '<div>'.PROJET_WIKINI_PAS.'</div>'."\n" ;
133
}
223
}
134
// On charge les listes de discussion du projet
224
// On charge les listes de discussion du projet
135
// Pour le moment seul ezmlm est supportée
225
// Pour le moment seul ezmlm est supportee
136
 
226
 
137
$projet->getListesAssociees();
227
$projet->getListesAssociees();
138
$sortie_liste = '' ;
228
$sortie_liste = '' ;
-
 
229
 
139
 
230
 
140
$liste_ext_res = '' ;
231
$liste_ext_res = '' ;
141
if ($projet->avoirListe()) {
232
if ($projet->avoirListe()) {
142
    ob_start() ;
233
    ob_start() ;
143
    include_once PROJET_CHEMIN_CLASSES_LISTES.'ezmlm.php' ;
234
    include_once PROJET_CHEMIN_CLASSES_LISTES.'ezmlm.php' ;
144
    foreach ($projet->_listes_associes as $info_liste) {
235
    foreach ($projet->_listes_associes as $info_liste) {
145
        $liste = new ezmlm_php() ;
236
        $liste = new ezmlm_php() ;
146
        // Paramétrage de la liste
237
        // Paramétrage de la liste
147
        
238
        
148
        $liste->listdir = PROJET_CHEMIN_LISTES.$info_liste->getDomaine().'/'.$info_liste->getNom();
239
        $liste->listdir = PROJET_CHEMIN_LISTES.$info_liste->getDomaine().'/'.$info_liste->getNom();
149
        
240
        
150
        $liste->listname = $info_liste->getNom() ;
241
        $liste->listname = $info_liste->getNom() ;
151
        $liste->listdomain = $info_liste->getDomaine();
242
        $liste->listdomain = $info_liste->getDomaine();
152
    
243
    
153
        if (isset ($GLOBALS['action']) && $GLOBALS['action'] != '') {
244
        if (isset ($GLOBALS['action']) && $GLOBALS['action'] != '') {
154
            $liste->set_action($GLOBALS['action']) ;
245
            $liste->set_action($GLOBALS['action']) ;
155
            $liste->set_actionargs($GLOBALS['actionargs']) ;
246
            $liste->set_actionargs($GLOBALS['actionargs']) ;
156
        } else {
247
        } else {
157
            $liste->set_action('list_info') ;
248
            $liste->set_action('list_info') ;
158
        }
249
        }
159
        $liste->sendheaders	= false;
250
        $liste->sendheaders	= false;
160
        $liste->sendbody        = false;
251
        $liste->sendbody        = false;
161
        $liste->sendfooters    = false;
252
        $liste->sendfooters    = false;
162
        $liste->forcehref = $this->_url->getURL() ;
253
        $liste->forcehref = $this->_url->getURL() ;
163
        
254
        
164
        
255
        
165
 
256
 
166
        if ($info_liste->isPublic() || $droits <= PROJET_DROIT_CONTRIBUTEUR) {
257
        if ($info_liste->isPublic() || $droits <= PROJET_DROIT_CONTRIBUTEUR) {
167
            $this->_url->removeQueryString(PROJET_VARIABLE_ACTION) ;
258
            $this->_url->removeQueryString(PROJET_VARIABLE_ACTION) ;
168
            switch ($liste->action) {
259
            switch ($liste->action) {
169
                case "list_info":
260
                case "list_info":
170
                    $this->_url->addQueryString('act', PROJET_ACTION_VOIR_FORUM);
261
                    $this->_url->addQueryString('act', PROJET_ACTION_VOIR_FORUM);
171
        		    $xml_parser = &new ezmlmAccessObject('calendrier_messages', $info_liste->getDomaine(),
262
        		    $xml_parser = &new ezmlmAccessObject('calendrier_messages', $info_liste->getDomaine(),
172
            									$info_liste->getNom(), $GLOBALS['lang'], 
263
            									$info_liste->getNom(), $GLOBALS['lang'], 
173
            									$this->_url->getURL()) ;
264
            									$this->_url->getURL()) ;
174
			
265
			
175
                    $xml_parser->reset() ;
266
                    $xml_parser->reset() ;
176
					$xml_parser->setAction ('derniers_messages');
267
					$xml_parser->setAction ('derniers_messages');
177
                    $xml_parser->load();
268
                    $xml_parser->load();
178
                    ob_start ();
269
                    ob_start ();
179
                    $xml_parser->parse() ;
270
                    $xml_parser->parse() ;
180
                    $derniers_messages = ob_get_contents() ;
271
                    $derniers_messages = ob_get_contents() ;
181
                    ob_end_clean();
272
                    ob_end_clean();
182
                    echo $derniers_messages ;
273
                    echo $derniers_messages ;
183
                    break;
274
                    break;
184
            }
275
            }
185
        } else {
276
        } else {
186
            print PROJET_MESSAGE_LISTE_PRIVEE;
277
            print PROJET_MESSAGE_LISTE_PRIVEE;
187
        }
278
        }
188
            $sortie_liste = ob_get_contents() ;
279
            $sortie_liste = ob_get_contents() ;
189
            ob_end_clean() ;
280
            ob_end_clean() ;
190
    }
281
    }
191
}
282
}
192
 
283
 
193
// Site internet associé
284
// Site internet associe
194
$sortie_web = '<h2>'.PROJET_ESPACE_INTERNET.'</h2>'."\n" ;
285
$sortie_web = '<h2>'.PROJET_ESPACE_INTERNET.'</h2>'."\n" ;
195
if ($projet->getEspaceInternet() != '') {
286
if ($projet->getEspaceInternet() != '') {
196
    $sortie_web .= '<a href="'.$projet->getEspaceInternet().'" target="_blank">'.$projet->getEspaceInternet().'</a>'."\n" ;
287
    $sortie_web .= '<a href="'.$projet->getEspaceInternet().'">'.$projet->getEspaceInternet().'</a>'."\n" ;
197
} else {
288
} else {
198
    $sortie_web .= PROJET_PAS_DE_SITE ;
289
    $sortie_web .= PROJET_PAS_DE_SITE ;
199
}
290
}
200
 
291
 
201
include_once PROJET_CHEMIN_CLASSES.'liste_externe.class.php' ;
292
include_once PROJET_CHEMIN_CLASSES.'liste_externe.class.php' ;
202
$listes_ext = new liste_externe ($this->_db) ;
293
$listes_ext = new liste_externe ($this->_db) ;
203
$tableau_liste = $listes_ext->getListesAssociees($this->_id_projet) ;
294
$tableau_liste = $listes_ext->getListesAssociees($this->_id_projet) ;
204
 
295
 
205
if (count ($tableau_liste) != 0) {
296
if (count ($tableau_liste) != 0) {
206
    $liste_ext_res .= '<h2>'.PROJET_LISTES_ASSOCIEES.'</h2>'."\n" ;
297
    $liste_ext_res .= '<h2>'.PROJET_LISTES_ASSOCIEES.'</h2>'."\n" ;
207
    for ($i = 0; $i < count ($tableau_liste); $i++) {
298
    for ($i = 0; $i < count ($tableau_liste); $i++) {
208
        $info_liste = $listes_ext->getInfoListe($tableau_liste[$i]) ;
299
        $info_liste = $listes_ext->getInfoListe($tableau_liste[$i]) ;
209
        //$liste_ext_res .= '<h2>'.$info_liste->AGO_A_NOMGRPLG.'</h2>'."\n" ;
-
 
210
        //$liste_ext_res .= '<p>'.$info_liste->AGO_A_RESUMLG.'</p>'."\n" ;
-
 
211
        $liste_ext_res .= '<p><a href="'.$info_liste->AGO_A_URLGRP.'" target="_blank">'.$info_liste->AGO_A_URLGRP.'</a></p>'."\n" ;
300
        $liste_ext_res .= '<p><a href="'.$info_liste->AGO_A_URLGRP.'" target="_blank">'.$info_liste->AGO_A_URLGRP.'</a></p>'."\n" ;
212
        //$liste_ext_res .= '<br />'."\n" ;
-
 
213
    }
301
    }
-
 
302
    $avoir_liste_externe = true;
-
 
303
} else {
-
 
304
	$avoir_liste_externe = false;
214
}
305
}
-
 
306
$this->_url->removeQueryString(PROJET_VARIABLE_ACTION);
215
 
307
 
216
$retour .= '<h1>'.PROJET_PROJET.' : '.$projet->getTitre()."</h1>" ;
-
 
217
$retour .= '<h2>'.PROJET_RESUME.'</h2>'."\n" ;
-
 
218
$retour .= '<div>'.$projet->getResume().'</div>'."\n" ;
-
 
219
$retour .= '<h2>'.PROJET_WIKI_ASSOCIE.'</h2>' ;
-
 
220
$retour .= $wiki_res ;
308
$GLOBALS['_PAPYRUS_']['rendu']['TITRE_PAGE'] = $projet->getTitre();
221
$retour .= $sortie_web ;
309
ob_start();
-
 
310
include_once PROJET_CHEMIN_APPLI.'/squelettes/resume.tpl.html';
222
$retour .= '<h2>'.PROJET_DERNIERS_MESSAGES.'</h2>'."\n" ;
311
 
223
$retour .= $liste_ext_res.$sortie_liste ;
-
 
224
$retour .= '<h2>'.PROJET_FICHIERS_RECENTS.'</h2>'."\n" ;
312
$retour .= ob_get_contents();
225
$retour .= $vue_liste_document->toHTML('', '') ;
313
ob_end_clean();
-
 
314
/* +--Fin du code ----------------------------------------------------------------------------------------+
226
//$retour .= '<h2>'.PROJET_LISTES_ASSOCIEES.'</h2>'."\n" ;
315
*
227
//$retour .= $sortie_liste ;
316
* $Log: not supported by cvs2svn $
-
 
317
*
-
 
318
* +-- Fin du code ----------------------------------------------------------------------------------------+
228
 
319
*/
229
 
320
 
230
?>
321
?>