| Line 18... |
Line 18... |
| 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 |
// +------------------------------------------------------------------------------------------------------+
|
| Line 22... |
Line 22... |
| 22 |
|
22 |
|
| Line 23... |
Line 23... |
| 23 |
// CVS : $Id: projetControleur.class.php,v 1.43 2008-08-25 15:06:59 alexandre_tb Exp $
|
23 |
// CVS : $Id: projetControleur.class.php,v 1.44 2008-08-26 08:52:28 alexandre_tb Exp $
|
| 24 |
|
24 |
|
| 25 |
/**
|
25 |
/**
|
| 26 |
* Application projet
|
26 |
* Application projet
|
| Line 31... |
Line 31... |
| 31 |
//Auteur original :
|
31 |
//Auteur original :
|
| 32 |
*@author Alexandre Granier <alexandre@tela-botanica.org>
|
32 |
*@author Alexandre Granier <alexandre@tela-botanica.org>
|
| 33 |
//Autres auteurs :
|
33 |
//Autres auteurs :
|
| 34 |
*@author Aucun
|
34 |
*@author Aucun
|
| 35 |
*@copyright Tela-Botanica 2000-2004
|
35 |
*@copyright Tela-Botanica 2000-2004
|
| 36 |
*@version $Revision: 1.43 $
|
36 |
*@version $Revision: 1.44 $
|
| 37 |
// +------------------------------------------------------------------------------------------------------+
|
37 |
// +------------------------------------------------------------------------------------------------------+
|
| 38 |
*/
|
38 |
*/
|
| Line 39... |
Line 39... |
| 39 |
|
39 |
|
| 40 |
// +------------------------------------------------------------------------------------------------------+
|
40 |
// +------------------------------------------------------------------------------------------------------+
|
| Line 47... |
Line 47... |
| 47 |
} else {
|
47 |
} else {
|
| 48 |
include_once 'client/projet/langues/pro_langue_'.PROJET_LANGUE_DEFAUT.'.inc.php' ;
|
48 |
include_once 'client/projet/langues/pro_langue_'.PROJET_LANGUE_DEFAUT.'.inc.php' ;
|
| 49 |
}
|
49 |
}
|
| Line 50... |
Line 50... |
| 50 |
|
50 |
|
| 51 |
require_once GEN_CHEMIN_API.'sql/SQL_manipulation.fonct.php' ;
|
- |
|
| - |
|
51 |
require_once GEN_CHEMIN_API.'sql/SQL_manipulation.fonct.php' ;
|
| 52 |
require_once GEN_CHEMIN_API.'html/HTML_TableFragmenteur.php' ;
|
52 |
|
| 53 |
// +------------------------------------------------------------------------------------------------------+
|
53 |
// +------------------------------------------------------------------------------------------------------+
|
| 54 |
// | LISTE des constantes |
|
54 |
// | LISTE des constantes |
|
| Line 55... |
Line 55... |
| 55 |
// +------------------------------------------------------------------------------------------------------+
|
55 |
// +------------------------------------------------------------------------------------------------------+
|
| 56 |
|
56 |
|
| 57 |
define ("PROJET_ACTION_COUPER", 3) ;
|
57 |
define ('PROJET_ACTION_COUPER', 3) ;
|
| 58 |
define ("PROJET_ACTION_MODIFIER", 4) ;
|
58 |
define ('PROJET_ACTION_MODIFIER', 4) ;
|
| 59 |
define ("PROJET_SUPPRESSION_FICHIER", 5) ;
|
59 |
define ('PROJET_SUPPRESSION_FICHIER', 5) ;
|
| 60 |
define ("PROJET_NOUVEAU", 6) ;
|
60 |
define ('PROJET_NOUVEAU', 6) ;
|
| 61 |
define ("PROJET_NOUVEAU_V", 7) ;
|
61 |
define ('PROJET_NOUVEAU_V', 7) ;
|
| 62 |
define ('PROJET_MODIFIER_DESCRIPTION', 19) ;
|
62 |
define ('PROJET_MODIFIER_DESCRIPTION', 19) ;
|
| 63 |
define ('PROJET_MODIFIER_DESCRIPTION_V', 20) ;
|
63 |
define ('PROJET_MODIFIER_DESCRIPTION_V', 20) ;
|
| 64 |
define ("PROJET_NOUVEAU_FICHIER", 8) ;
|
64 |
define ('PROJET_NOUVEAU_FICHIER', 8) ;
|
| 65 |
define ("PROJET_NOUVEAU_FICHIER_V", 9) ;
|
65 |
define ('PROJET_NOUVEAU_FICHIER_V', 9) ;
|
| 66 |
define ("PROJET_NOUVEAU_REPERTOIRE", 11) ;
|
66 |
define ('PROJET_NOUVEAU_REPERTOIRE', 11) ;
|
| 67 |
define ("PROJET_NOUVEAU_REPERTOIRE_V", 12) ;
|
67 |
define ('PROJET_NOUVEAU_REPERTOIRE_V', 12) ;
|
| 68 |
define ("PROJET_SUPPRESSION_PROJET", 10) ;
|
68 |
define ('PROJET_SUPPRESSION_PROJET', 10) ;
|
| 69 |
define ("PROJET_ENVOYER_UN_MAIL", 13) ;
|
69 |
define ('PROJET_ENVOYER_UN_MAIL', 13) ;
|
| 70 |
define ("PROJET_ENVOYER_UN_MAIL_V", 14) ;
|
70 |
define ('PROJET_ENVOYER_UN_MAIL_V', 14) ;
|
| 71 |
define ("PROJET_ACTION_MODIFIER_V", 15) ;
|
71 |
define ('PROJET_ACTION_MODIFIER_V', 15) ;
|
| 72 |
define ('PROJET_ACTION_NOUVELLE_LISTE', 16) ;
|
72 |
define ('PROJET_ACTION_NOUVELLE_LISTE', 16) ;
|
| 73 |
define ('PROJET_ACTION_NOUVELLE_LISTE_V', 17) ;
|
73 |
define ('PROJET_ACTION_NOUVELLE_LISTE_V', 17) ;
|
| 74 |
define ('PROJET_ACTION_S_INSCRIRE', 21) ;
|
74 |
define ('PROJET_ACTION_S_INSCRIRE', 21) ;
|
| Line 93... |
Line 93... |
| 93 |
define ('PROJET_ACTION_VOIR_WIKINI', 'wikini') ;
|
93 |
define ('PROJET_ACTION_VOIR_WIKINI', 'wikini') ;
|
| 94 |
/**
|
94 |
/**
|
| 95 |
* Code erreur pour l'interface projetControleur qui trouveront leur message
|
95 |
* Code erreur pour l'interface projetControleur qui trouveront leur message
|
| 96 |
* correspondant via la fonction projetControleur::messageErreur()
|
96 |
* correspondant via la fonction projetControleur::messageErreur()
|
| 97 |
*/
|
97 |
*/
|
| 98 |
define ("PROJETCONTROLEUR_ACTION_INVALIDE", -1) ;
|
98 |
define ('PROJETCONTROLEUR_ACTION_INVALIDE', -1) ;
|
| 99 |
define ("PROJETCONTROLEUR_ERREUR_SUPPRESSION_REPERTOIRE", -2) ;
|
99 |
define ('PROJETCONTROLEUR_ERREUR_SUPPRESSION_REPERTOIRE', -2) ;
|
| 100 |
define ("PROJETCONTROLEUR_PAS_DE_DOCUMENT_SELECTIONNE", -3) ;
|
100 |
define ('PROJETCONTROLEUR_PAS_DE_DOCUMENT_SELECTIONNE', -3) ;
|
| 101 |
define ("PROJETCONTROLEUR_ERREUR_CREATION_REPERTOIRE", -4) ;
|
101 |
define ('PROJETCONTROLEUR_ERREUR_CREATION_REPERTOIRE', -4) ;
|
| Line 102... |
Line 102... |
| 102 |
|
102 |
|
| 103 |
/**
|
103 |
/**
|
| 104 |
* Constantes pour definir les droits
|
104 |
* Constantes pour definir les droits
|
| 105 |
*
|
105 |
*
|
| Line 227... |
Line 227... |
| 227 |
|
227 |
|
| 228 |
if ($this->_action == '') {
|
228 |
if ($this->_action == '') {
|
| 229 |
return $this->messageErreur(PROJETCONTROLEUR_ACTION_INVALIDE) ;
|
229 |
return $this->messageErreur(PROJETCONTROLEUR_ACTION_INVALIDE) ;
|
| Line 230... |
Line 230... |
| 230 |
}
|
230 |
}
|
| 231 |
|
231 |
|
| 232 |
// Si il n'y a pas d'action mais un projet, on transmet par defaut l'action PROJET_VOIR
|
232 |
// Si il n'y a pas d'action mais un projet, on transmet par defaut l'action PROJET_VOIR_RESUME
|
| 233 |
if ($this->_id_projet != "" && $this->_action == PROJET_DEFAUT) {
|
233 |
if ($this->_id_projet != "" && $this->_action == PROJET_DEFAUT) {
|
| 234 |
$this->_action = PROJET_ACTION_VOIR_RESUME ;
|
234 |
$this->_action = PROJET_ACTION_VOIR_RESUME ;
|
| 235 |
$this->_url->addQueryString (PROJET_VARIABLE_ID_PROJET, $this->_id_projet) ;
|
235 |
$this->_url->addQueryString (PROJET_VARIABLE_ID_PROJET, $this->_id_projet) ;
|
| Line 245... |
Line 245... |
| 245 |
|
245 |
|
| 246 |
switch ($this->_action) {
|
246 |
switch ($this->_action) {
|
| 247 |
case PROJET_DEFAUT :
|
247 |
case PROJET_DEFAUT :
|
| 248 |
$retour .= $this->mesProjets() ;
|
248 |
$retour .= $this->mesProjets() ;
|
| 249 |
break ;
|
- |
|
| 250 |
case PROJET_VOIR :
|
- |
|
| 251 |
$retour .= $this->accueilProjet();
|
- |
|
| 252 |
break ;
|
249 |
break ;
|
| 253 |
case PROJET_NOUVEAU :
|
250 |
case PROJET_NOUVEAU :
|
| 254 |
$retour .= $this->formulaireProjet(PROJET_NOUVEAU_V) ;
|
251 |
$retour .= $this->formulaireProjet(PROJET_NOUVEAU_V) ;
|
| 255 |
break ;
|
252 |
break ;
|
| 256 |
case PROJET_NOUVEAU_V :
|
253 |
case PROJET_NOUVEAU_V :
|
| Line 356... |
Line 353... |
| 356 |
* @access public
|
353 |
* @access public
|
| 357 |
*/
|
354 |
*/
|
| 358 |
function setAction( $action )
|
355 |
function setAction( $action )
|
| 359 |
{
|
356 |
{
|
| 360 |
$this->_action = $action ;
|
357 |
$this->_action = $action ;
|
| 361 |
} // end of member function setAction
|
358 |
}
|
| Line 362... |
Line 359... |
| 362 |
|
359 |
|
| 363 |
/**
|
360 |
/**
|
| 364 |
* Permet de fixer la valeur de du service pour l'objet projetControleur. Ce service
|
361 |
* Permet de fixer la valeur de du service pour l'objet projetControleur. Ce service
|
| 365 |
* provient généralement de $_POST['service'] ou $_GET['service']
|
362 |
* provient généralement de $_POST['service'] ou $_GET['service']
|
| Line 369... |
Line 366... |
| 369 |
* @access public
|
366 |
* @access public
|
| 370 |
*/
|
367 |
*/
|
| 371 |
function setService( $service )
|
368 |
function setService( $service )
|
| 372 |
{
|
369 |
{
|
| 373 |
$this->_service = $service ;
|
370 |
$this->_service = $service ;
|
| 374 |
} // end of member function setAction
|
371 |
}
|
| Line 375... |
Line 372... |
| 375 |
|
372 |
|
| 376 |
|
373 |
|
| 377 |
/**
|
374 |
/**
|
| Line 978... |
Line 975... |
| 978 |
* @access public
|
975 |
* @access public
|
| 979 |
*/
|
976 |
*/
|
| 980 |
function setIdProjet( $id_projet )
|
977 |
function setIdProjet( $id_projet )
|
| 981 |
{
|
978 |
{
|
| 982 |
$this->_id_projet = $id_projet ;
|
979 |
$this->_id_projet = $id_projet ;
|
| 983 |
|
- |
|
| 984 |
} // end of member function setIdProjet
|
- |
|
| 985 |
|
- |
|
| 986 |
/**
|
- |
|
| 987 |
* Renvoie la page d'accueil d'un projet.
|
- |
|
| 988 |
*
|
- |
|
| 989 |
* @return string
|
- |
|
| 990 |
* @access public
|
- |
|
| 991 |
*/
|
- |
|
| 992 |
function accueilProjet( )
|
- |
|
| 993 |
{
|
980 |
}
|
| 994 |
$res = '' ;
|
- |
|
| 995 |
// creation de l'objet projet courant
|
- |
|
| 996 |
include_once PROJET_CHEMIN_CLASSES.'projet.class.php' ;
|
- |
|
| 997 |
$projet = new projet ($this->_db, $this->_id_projet) ;
|
- |
|
| 998 |
|
- |
|
| 999 |
// recuperation de la liste des documents associés
|
- |
|
| 1000 |
$liste_documents = $projet->getListesDocuments(PROJET_CHEMIN_FICHIER, PROJET_CHEMIN_ICONES) ;
|
- |
|
| 1001 |
|
- |
|
| 1002 |
// création de la vue liste de document, on nettoie l'url
|
- |
|
| 1003 |
$this->_url->removeQueryString(PROJET_VARIABLE_ACTION) ;
|
- |
|
| 1004 |
include_once PROJET_CHEMIN_CLASSES.'HTML_listeDocuments.class.php' ;
|
- |
|
| 1005 |
$vue_liste_document = new HTML_listeDocuments($this->_url, false, $this->_id_repertoire) ;
|
- |
|
| 1006 |
|
- |
|
| 1007 |
// reglage de parametres de la vue
|
- |
|
| 1008 |
$vue_liste_document->setAction (array ("couper" => PROJET_ACTION_COUPER, "modifier" => PROJET_ACTION_MODIFIER, "supprimer" => PROJET_SUPPRESSION_FICHIER)) ;
|
- |
|
| 1009 |
$vue_liste_document->setCheminIcones(PROJET_CHEMIN_ICONES) ;
|
- |
|
| 1010 |
|
- |
|
| 1011 |
|
- |
|
| 1012 |
$tableau_navigation = document::getCheminIdRepertoire($this->_id_repertoire, $this->_db) ;
|
- |
|
| 1013 |
|
- |
|
| 1014 |
$vue_liste_document->setCheminNavigation ($tableau_navigation) ;
|
- |
|
| 1015 |
// verification des droits de l'utilisateur
|
- |
|
| 1016 |
$entete_liste = array (PROJET_FICHIERS_NOM, PROJET_FICHIERS_TAILLE, PROJET_FICHIERS_CREE_LE) ;
|
- |
|
| 1017 |
|
- |
|
| 1018 |
if ($this->_auth->getAuth()) {
|
- |
|
| 1019 |
include_once PROJET_CHEMIN_CLASSES.'participe.class.php' ;
|
- |
|
| 1020 |
$participant = new participe($this->_db) ;
|
- |
|
| 1021 |
$id_u = $this->_auth->getAuthData(PROJET_CHAMPS_ID) ;
|
- |
|
| 1022 |
$isCoord = $participant->isCoordinateur($id_u, $this->_id_projet, $this->_db) ;
|
- |
|
| 1023 |
if ($isCoord) $droits = PROJET_DROIT_COORDINATEUR ;
|
- |
|
| 1024 |
$isAdm = participe::isAdministrateur($this->_auth->getAuthData(PROJET_CHAMPS_ID), $this->_db) ;
|
- |
|
| 1025 |
if ($isAdm) $droits = PROJET_DROIT_ADMINISTRATEUR ;
|
- |
|
| 1026 |
if ($isAdm) $isCoord = true ;
|
- |
|
| 1027 |
|
- |
|
| 1028 |
$statut = participe::getStatutSurProjetCourant ($this->_auth->getAuthData(PROJET_CHAMPS_ID), $this->_id_projet, $this->_db) ;
|
- |
|
| 1029 |
// si participant, on ajoute le champs visibilite
|
- |
|
| 1030 |
|
- |
|
| 1031 |
if ($statut !='' || $isAdm) {
|
- |
|
| 1032 |
array_push ($entete_liste, PROJET_FICHIERS_VISIBILITE) ;
|
- |
|
| 1033 |
}
|
- |
|
| 1034 |
// si chef de projet ou si propriétaire d'au moins 1 document
|
- |
|
| 1035 |
$proprietaire_un_document = false ;
|
- |
|
| 1036 |
|
- |
|
| 1037 |
foreach ($liste_documents as $document) {
|
- |
|
| 1038 |
if ($this->_auth->getAuthData(PROJET_CHAMPS_ID) == $document) {
|
- |
|
| 1039 |
$proprietaire_un_document = true ;
|
- |
|
| 1040 |
$droits = PROJET_DROIT_PROPRIETAIRE ;
|
- |
|
| 1041 |
}
|
- |
|
| 1042 |
}
|
- |
|
| 1043 |
if ($statut > 0 || $proprietaire_un_document) {
|
- |
|
| 1044 |
array_push ($entete_liste, PROJET_ACTION) ;
|
- |
|
| 1045 |
}
|
- |
|
| 1046 |
} else {
|
- |
|
| 1047 |
$droits = PROJET_DROIT_AUCUN ;
|
- |
|
| 1048 |
}
|
- |
|
| 1049 |
if (!isset($droits)) $droits = PROJET_DROIT_AUCUN ;
|
- |
|
| 1050 |
|
- |
|
| 1051 |
$vue_liste_document->construitEntete($entete_liste) ;
|
- |
|
| 1052 |
$vue_liste_document->construitListe ($liste_documents, $droits) ;
|
- |
|
| 1053 |
|
- |
|
| 1054 |
$wiki_res = '' ;
|
- |
|
| 1055 |
// Les wikinis associes au projet
|
- |
|
| 1056 |
if ($projet->getWikini()) {
|
- |
|
| 1057 |
$wiki_res .= '<div><a href="'.PROJET_URL_WIKINI.'wakka.php?wiki=PagePrincipale&wikini='.$projet->getWikini().'">'.PROJET_URL_WIKINI.'</a>' ;
|
- |
|
| 1058 |
if ($this->_auth->getAuth() && $isCoord) {
|
- |
|
| 1059 |
$this->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_SUPPRIMER_WIKI) ;
|
- |
|
| 1060 |
$wiki_res .= ' <a href="'.$this->_url->getURL().'" onclick="javascript:return confirm(\''.PROJET_WIKINI_SUPPRIMER.' ?\')">'.PROJET_WIKINI_SUPPRIMER.'</a>' ;
|
- |
|
| 1061 |
}
|
- |
|
| 1062 |
$wiki_res .= '</div>' ;
|
- |
|
| 1063 |
} else {
|
- |
|
| 1064 |
$wiki_res .= '<div>'.PROJET_WIKINI_PAS.'</div>'."\n" ;
|
- |
|
| 1065 |
}
|
- |
|
| 1066 |
// On charge les listes de discussion du projet
|
- |
|
| 1067 |
// Pour le moment seul ezmlm est supportee
|
- |
|
| 1068 |
|
- |
|
| 1069 |
$projet->getListesAssociees();
|
- |
|
| 1070 |
$sortie_liste = '' ;
|
- |
|
| 1071 |
|
- |
|
| 1072 |
if ($projet->avoirListe()) {
|
- |
|
| 1073 |
include_once PROJET_CHEMIN_CLASSES_LISTES.'ezmlm.php' ;
|
- |
|
| 1074 |
foreach ($projet->_listes_associes as $info_liste) {
|
- |
|
| 1075 |
|
- |
|
| 1076 |
$liste = new ezmlm_php() ;
|
- |
|
| 1077 |
// Paramétrage de la liste
|
- |
|
| 1078 |
|
- |
|
| 1079 |
$liste->listdir = PROJET_CHEMIN_LISTES.$info_liste->getDomaine().'/'.$info_liste->getNom();
|
- |
|
| 1080 |
$liste->listname = $info_liste->getNom() ;
|
- |
|
| 1081 |
$liste->listdomain = $info_liste->getDomaine();
|
- |
|
| 1082 |
|
- |
|
| 1083 |
if (isset ($GLOBALS['action']) && $GLOBALS['action'] != '') {
|
- |
|
| 1084 |
$liste->set_action($GLOBALS['action']) ;
|
- |
|
| 1085 |
$liste->set_actionargs($GLOBALS['actionargs']) ;
|
- |
|
| 1086 |
} else {
|
- |
|
| 1087 |
$liste->set_action('list_info') ;
|
- |
|
| 1088 |
}
|
- |
|
| 1089 |
$liste->sendheaders = false;
|
- |
|
| 1090 |
$liste->sendbody = false;
|
- |
|
| 1091 |
$liste->sendfooters = false;
|
- |
|
| 1092 |
$liste->forcehref = $this->_url->getURL() ;
|
- |
|
| 1093 |
|
- |
|
| 1094 |
ob_start() ;
|
- |
|
| 1095 |
print '<span class="heading">Liste <strong>' . $info_liste->getAdresseEnvoi() ;
|
- |
|
| 1096 |
print "</strong></span><br />\n";
|
- |
|
| 1097 |
if ($this->_auth->getAuth()) {
|
- |
|
| 1098 |
include_once PROJET_CHEMIN_CLASSES.'inscription_liste.class.php';
|
- |
|
| 1099 |
$inscription_liste = new inscription_liste($this->_db) ;
|
- |
|
| 1100 |
if ($inscription_liste->getStatutInscrit( $info_liste->getId(), $this->_auth) == '') {
|
- |
|
| 1101 |
$action_inscription = PROJET_ACTION_INSCRIPTION_LISTE ;
|
- |
|
| 1102 |
$label_inscription = PROJET_S_INSCRIRE ;
|
- |
|
| 1103 |
} else {
|
- |
|
| 1104 |
$action_inscription = PROJET_ACTION_DESINSCRIPTION_LISTE ;
|
- |
|
| 1105 |
$label_inscription = PROJET_SE_DESINSCRIRE ;
|
- |
|
| 1106 |
}
|
- |
|
| 1107 |
$this->_url->addQueryString(PROJET_VARIABLE_ACTION, $action_inscription) ;
|
- |
|
| 1108 |
print '<a href="'.$this->_url->getURL().'">';
|
- |
|
| 1109 |
print $label_inscription.'</a><br /> ';
|
- |
|
| 1110 |
}
|
- |
|
| 1111 |
print "\n<hr noshade><br />\n";
|
- |
|
| 1112 |
$this->_url->removeQueryString(PROJET_VARIABLE_ACTION) ;
|
- |
|
| 1113 |
switch ($liste->action) {
|
- |
|
| 1114 |
case "show_msg":
|
- |
|
| 1115 |
if (count($liste->actionargs) < 2) {
|
- |
|
| 1116 |
$liste->error(EZMLM_INVALID_SYNTAX,TRUE);
|
- |
|
| 1117 |
}
|
- |
|
| 1118 |
$show_msg = new ezmlm_msgdisplay();
|
- |
|
| 1119 |
$show_msg->listdir = $liste->listdir ;
|
- |
|
| 1120 |
$show_msg->forcehref = $this->_url->getURL();
|
- |
|
| 1121 |
// actionargs[0] contient le nom du repertoire et actionargs[1] le nom du fichier
|
- |
|
| 1122 |
// On appelle la fonction qui affiche un fichier
|
- |
|
| 1123 |
$show_msg->display($liste->actionargs[0] . "/" . $liste->actionargs[1]);
|
- |
|
| 1124 |
break;
|
- |
|
| 1125 |
|
- |
|
| 1126 |
case "list_info":
|
- |
|
| 1127 |
$info = new ezmlm_listinfo();
|
- |
|
| 1128 |
if (!$info) return 'Les fichiers de la liste ne sont pas visible sur le serveur' ;
|
- |
|
| 1129 |
$info->forcehref = $this->_url->getURL();
|
- |
|
| 1130 |
$info->listdir = $liste->listdir ;
|
- |
|
| 1131 |
$info->listname = $info_liste->getNom();
|
- |
|
| 1132 |
$info->listdomain = $info_liste->getDomaine() ;
|
- |
|
| 1133 |
|
- |
|
| 1134 |
if (!$info->display()) {
|
- |
|
| 1135 |
echo 'Pas de message dans cette liste' ;
|
- |
|
| 1136 |
}
|
- |
|
| 1137 |
break;
|
- |
|
| 1138 |
case "show_threads":
|
- |
|
| 1139 |
$threads = new ezmlm_threads();
|
- |
|
| 1140 |
$threads->forcehref = $this->_url->getURL() ;
|
- |
|
| 1141 |
$threads->listdir = $liste->listdir ;
|
- |
|
| 1142 |
$threads->listname = $info_liste->getNom() ;
|
- |
|
| 1143 |
$threads->listdomain = $info_liste->getDomaine() ;
|
- |
|
| 1144 |
$threads->tempdir = PROJET_CHEMIN_APPLI.'/tmp' ;
|
- |
|
| 1145 |
$threads->load($liste->actionargs[0]);
|
- |
|
| 1146 |
break;
|
- |
|
| 1147 |
case "show_author_msgs" :
|
- |
|
| 1148 |
$author = new ezmlm_author();
|
- |
|
| 1149 |
$author->listdir = $liste->listdir ;
|
- |
|
| 1150 |
$author->listname = $info_liste->getNom() ;
|
- |
|
| 1151 |
$author->listdomain = $info_liste->getDomaine() ;
|
- |
|
| 1152 |
$author->forcehref = $this->_url->getURL() ;
|
- |
|
| 1153 |
$author->display($liste->actionargs[0]);
|
- |
|
| 1154 |
break ;
|
- |
|
| 1155 |
}
|
- |
|
| 1156 |
$sortie_liste = ob_get_contents() ;
|
- |
|
| 1157 |
ob_end_clean() ;
|
- |
|
| 1158 |
}
|
- |
|
| 1159 |
} else {
|
- |
|
| 1160 |
$sortie_liste = '<div>'.PROJET_PAS_DE_LISTE.'</div>'."\n" ;
|
- |
|
| 1161 |
}
|
- |
|
| 1162 |
|
- |
|
| 1163 |
$res .= "<h1>".$projet->getTitre()."</h1>" ;
|
- |
|
| 1164 |
$res .= '<div>'.$projet->getDescription().'</div>'."\n" ;
|
- |
|
| 1165 |
$res .= '<h2>'.PROJET_WIKI_ASSOCIE.'</h2>' ;
|
- |
|
| 1166 |
$res .= $wiki_res ;
|
- |
|
| 1167 |
$res .= '<h2>'.PROJET_FICHIERS_ASSOCIES.'</h2>'."\n" ;
|
- |
|
| 1168 |
$res .= $vue_liste_document->toHTML() ;
|
- |
|
| 1169 |
$res .= '<h2>'.PROJET_LISTES_ASSOCIEES.'</h2>'."\n" ;
|
- |
|
| 1170 |
$res .= $sortie_liste ;
|
- |
|
| 1171 |
|
- |
|
| 1172 |
include_once PROJET_CHEMIN_CLASSES.'liste_externe.class.php' ;
|
- |
|
| 1173 |
$listes_ext = new liste_externe ($this->_db) ;
|
- |
|
| 1174 |
$tableau_liste = $listes_ext->getListesAssociees($this->_id_projet) ;
|
- |
|
| 1175 |
|
- |
|
| 1176 |
if (count ($tableau_liste) != 0) {
|
- |
|
| 1177 |
$res .= '<h2>'.PROJET_LISTES_EXTERNES_ASSOCIEES.'</h2>'."\n" ;
|
- |
|
| 1178 |
for ($i = 0; $i < count ($tableau_liste); $i++) {
|
- |
|
| 1179 |
$info_liste = $listes_ext->getInfoListe($tableau_liste[$i]) ;
|
- |
|
| 1180 |
$res .= '<h2>'.$info_liste->AGO_A_NOMGRPLG.'</h2>'."\n" ;
|
- |
|
| 1181 |
$res .= '<p>'.$info_liste->AGO_A_RESUMLG.'</p>'."\n" ;
|
- |
|
| 1182 |
$res .= '<p><a href="'.$info_liste->AGO_A_URLGRP.'">'.$info_liste->AGO_A_URLGRP.'</a></p>'."\n" ;
|
- |
|
| 1183 |
$res .= '<br />'."\n" ;
|
- |
|
| 1184 |
}
|
- |
|
| 1185 |
}
|
- |
|
| 1186 |
return $res ;
|
- |
|
| 1187 |
} // end of member function accueilProjet
|
- |
|
| Line 1188... |
Line 981... |
| 1188 |
|
981 |
|
| 1189 |
/**
|
982 |
/**
|
| 1190 |
* Permet de specifier quel repertoire, dans la vue de document afficher. Il sera
|
983 |
* Permet de specifier quel repertoire, dans la vue de document afficher. Il sera
|
| 1191 |
* passe en parametre a la classe HTML_listeDocuments.
|
984 |
* passe en parametre a la classe HTML_listeDocuments.
|
| Line 1972... |
Line 1765... |
| 1972 |
}
|
1765 |
}
|
| 1973 |
}
|
1766 |
}
|
| 1974 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
1767 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
| 1975 |
*
|
1768 |
*
|
| 1976 |
* $Log: not supported by cvs2svn $
|
1769 |
* $Log: not supported by cvs2svn $
|
| - |
|
1770 |
* Revision 1.43 2008-08-25 15:06:59 alexandre_tb
|
| - |
|
1771 |
* ajout:
|
| - |
|
1772 |
* - des notifications
|
| - |
|
1773 |
* - des messages en retour
|
| - |
|
1774 |
* - correction inscription a un projet avec liste externe
|
| - |
|
1775 |
*
|
| 1977 |
*
|
1776 |
*
|
| 1978 |
* +-- Fin du code ----------------------------------------------------------------------------------------+
|
1777 |
* +-- Fin du code ----------------------------------------------------------------------------------------+
|
| 1979 |
*/
|
1778 |
*/
|
| 1980 |
?>
|
1779 |
?>
|
| 1981 |
|
1780 |
|