Subversion Repositories Applications.papyrus

Rev

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

Rev 1688 Rev 1962
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.13 2007-08-28 10:33:50 alexandre_tb Exp $
22
// CVS : $Id: resume.php,v 1.13.2.1 2008-10-29 15:56:50 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.13 $
34
*@version       $Revision: 1.13.2.1 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
Line 43... Line 43...
43
// On se situe dans la méthode run() de la classe projetControleur
43
// On se situe dans la méthode run() de la classe projetControleur
44
//
44
//
Line 45... Line 45...
45
 
45
 
Line 46... Line 46...
46
$retour = '';
46
$retour = '';
47
 
47
 
48
// création de l'objet projet courant
48
// creation de l'objet projet courant
49
include_once PROJET_CHEMIN_CLASSES.'projet.class.php' ;
49
include_once PROJET_CHEMIN_CLASSES.'projet.class.php' ;
Line 50... Line 50...
50
include_once PROJET_CHEMIN_CLASSES.'participe.class.php' ;
50
include_once PROJET_CHEMIN_CLASSES.'participe.class.php' ;
51
$projet = new projet ($this->_db, $this->_id_projet) ;
51
$projet = new projet ($this->_db, $this->_id_projet) ;
52
 
52
 
Line 53... Line 53...
53
// récupération de la liste des documents associés
53
// recuperation de la liste des documents associes
54
$liste_documents = document::getDocumentsRecents(4, $this->_db, PROJET_CHEMIN_FICHIER, 
54
$liste_documents = document::getDocumentsRecents(4, $this->_db, PROJET_CHEMIN_FICHIER, 
55
						PROJET_CHEMIN_ICONES, $this->_id_projet) ;
55
						PROJET_CHEMIN_ICONES, $this->_id_projet) ;
56
 
56
 
57
// création de la vue liste de document, on nettoie l'url
57
// creation de la vue liste de document, on nettoie l'url
Line 58... Line 58...
58
//$this->_url->removeQueryString(PROJET_VARIABLE_ACTION) ;
58
//$this->_url->removeQueryString(PROJET_VARIABLE_ACTION) ;
59
include_once PROJET_CHEMIN_CLASSES.'HTML_listeDocuments.class.php' ;
59
include_once PROJET_CHEMIN_CLASSES.'HTML_listeDocuments.class.php' ;
60
include_once (PROJET_CHEMIN_CLASSES.'ezmlmAccessObject.class.php') ;
60
include_once (PROJET_CHEMIN_CLASSES.'ezmlmAccessObject.class.php') ;
Line 61... Line 61...
61
$vue_liste_document = new HTML_listeDocuments($this->_url, false, '', $this->_auth) ;
61
$vue_liste_document = new HTML_listeDocuments($this->_url, false, '', $this->_auth) ;
62
 
62
 
Line 63... Line 63...
63
// réglage de paramètres de la vue
63
// reglage de parametres de la vue
64
$vue_liste_document->setAction (array ("couper" => PROJET_ACTION_COUPER, "modifier" => PROJET_ACTION_MODIFIER, "supprimer" => PROJET_SUPPRESSION_FICHIER)) ;
64
$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) ;
65
$vue_liste_document->setCheminIcones(PROJET_CHEMIN_ICONES) ;
Line 87... Line 87...
87
        array_push ($entete_liste, PROJET_FICHIERS_VISIBILITE) ;
87
        array_push ($entete_liste, PROJET_FICHIERS_VISIBILITE) ;
88
        $visible = true ;
88
        $visible = true ;
89
    } else {
89
    } else {
90
 	   $visible = false ;
90
 	   $visible = false ;
91
    }
91
    }
92
	// récupération de la liste des documents associés
92
	// recuperation de la liste des documents associes
93
	$liste_documents = document::getDocumentsRecents(4, $this->_db, PROJET_CHEMIN_FICHIER, 
93
	$liste_documents = document::getDocumentsRecents(4, $this->_db, PROJET_CHEMIN_FICHIER, 
94
						PROJET_CHEMIN_ICONES, $this->_id_projet, $visible) ;
94
						PROJET_CHEMIN_ICONES, $this->_id_projet, $visible) ;
Line 95... Line 95...
95
 
95
 
Line 106... Line 106...
106
    if ($droits <= PROJET_DROIT_COORDINATEUR || $proprietaire_un_document) {
106
    if ($droits <= PROJET_DROIT_COORDINATEUR || $proprietaire_un_document) {
107
        array_push ($entete_liste, PROJET_ACTION) ;
107
        array_push ($entete_liste, PROJET_ACTION) ;
108
    }
108
    }
109
} else {
109
} else {
110
    $droits = PROJET_DROIT_AUCUN ;
110
    $droits = PROJET_DROIT_AUCUN ;
111
    // récupération de la liste des documents associés
111
    // recuperation de la liste des documents associes
112
	$liste_documents = document::getDocumentsRecents(4, $this->_db, PROJET_CHEMIN_FICHIER, 
112
	$liste_documents = document::getDocumentsRecents(4, $this->_db, PROJET_CHEMIN_FICHIER, 
113
						PROJET_CHEMIN_ICONES, $this->_id_projet, false) ;
113
						PROJET_CHEMIN_ICONES, $this->_id_projet, false) ;
Line 114... Line 114...
114
    
114
    
115
}
115
}
Line 116... Line 116...
116
if (!isset($droits)) $droits = PROJET_DROIT_AUCUN ;
116
if (!isset($droits)) $droits = PROJET_DROIT_AUCUN ;
117
 
117
 
Line 118... Line 118...
118
$vue_liste_document->construitEntete($entete_liste) ;
118
$vue_liste_document->construitEntete($entete_liste) ;
119
$vue_liste_document->construitListe ($liste_documents, $droits, 'ignore_repertoire', $this->_db) ;
119
$vue_liste_document->construitListe ($liste_documents, $droits, 'ignore_repertoire', $this->_db) ;
120
 
120
 
121
$wiki_res = '' ;
121
$wiki_res = '' ;
Line 122... Line 122...
122
// Les wikinis associés au projet
122
// Les wikinis associes au projet
123
if ($projet->getWikini()) {
123
if ($projet->getWikini()) {
Line 130... Line 130...
130
    $wiki_res .= '</div>' ;
130
    $wiki_res .= '</div>' ;
131
} else {
131
} else {
132
    $wiki_res .= '<div>'.PROJET_WIKINI_PAS.'</div>'."\n" ;
132
    $wiki_res .= '<div>'.PROJET_WIKINI_PAS.'</div>'."\n" ;
133
}
133
}
134
// On charge les listes de discussion du projet
134
// On charge les listes de discussion du projet
135
// Pour le moment seul ezmlm est supportée
135
// Pour le moment seul ezmlm est supportee
Line 136... Line 136...
136
 
136
 
137
$projet->getListesAssociees();
137
$projet->getListesAssociees();
Line 138... Line 138...
138
$sortie_liste = '' ;
138
$sortie_liste = '' ;
Line 188... Line 188...
188
            $sortie_liste = ob_get_contents() ;
188
            $sortie_liste = ob_get_contents() ;
189
            ob_end_clean() ;
189
            ob_end_clean() ;
190
    }
190
    }
191
}
191
}
Line 192... Line 192...
192
 
192
 
193
// Site internet associé
193
// Site internet associe
194
$sortie_web = '<h2>'.PROJET_ESPACE_INTERNET.'</h2>'."\n" ;
194
$sortie_web = '<h2>'.PROJET_ESPACE_INTERNET.'</h2>'."\n" ;
195
if ($projet->getEspaceInternet() != '') {
195
if ($projet->getEspaceInternet() != '') {
196
    $sortie_web .= '<a href="'.$projet->getEspaceInternet().'" target="_blank">'.$projet->getEspaceInternet().'</a>'."\n" ;
196
    $sortie_web .= '<a href="'.$projet->getEspaceInternet().'" target="_blank">'.$projet->getEspaceInternet().'</a>'."\n" ;
197
} else {
197
} else {
Line 211... Line 211...
211
        $liste_ext_res .= '<p><a href="'.$info_liste->AGO_A_URLGRP.'" target="_blank">'.$info_liste->AGO_A_URLGRP.'</a></p>'."\n" ;
211
        $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" ;
212
        //$liste_ext_res .= '<br />'."\n" ;
213
    }
213
    }
214
}
214
}
Line -... Line 215...
-
 
215
 
215
 
216
 
216
$retour .= '<h1>'.PROJET_PROJET.' : '.$projet->getTitre()."</h1>" ;
217
$retour .= '<h1>'.PROJET_PROJET.' : '.$projet->getTitre()."</h1>" ;
217
$retour .= '<h2>'.PROJET_RESUME.'</h2>'."\n" ;
218
$retour .= '<h2>'.PROJET_RESUME.'</h2>'."\n" ;
218
$retour .= '<div>'.$projet->getResume().'</div>'."\n" ;
219
$retour .= '<div>'.$projet->getResume().'</div>'."\n" ;
219
$retour .= '<h2>'.PROJET_WIKI_ASSOCIE.'</h2>' ;
220
$retour .= '<h2>'.PROJET_WIKI_ASSOCIE.'</h2>' ;