Subversion Repositories Applications.projet

Rev

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

Rev 396 Rev 425
Line 1... Line 1...
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
// +------------------------------------------------------------------------------------------------------+
Line 63... Line 63...
63
 
63
 
Line 64... Line 64...
64
$valeur_acceptable_tri = array ('p_titre', 'ps_pourcent', 'ps_nombre_inscrit', 'ps_doc_derniere_semaine', 'psu_id_statut');  // Securite
64
$valeur_acceptable_tri = array ('p_titre', 'ps_pourcent', 'ps_nombre_inscrit', 'ps_doc_derniere_semaine', 'psu_id_statut');  // Securite
65
 
65
 
66
if (isset($_GET[PROJET_VARIABLE_TRI]) && $_GET[PROJET_VARIABLE_TRI] != '' && in_array($_GET[PROJET_VARIABLE_TRI], $valeur_acceptable_tri)) {
66
if (isset($_GET[PROJET_VARIABLE_TRI]) && $_GET[PROJET_VARIABLE_TRI] != '' && in_array($_GET[PROJET_VARIABLE_TRI], $valeur_acceptable_tri)) {
67
	$tri = $_GET[PROJET_VARIABLE_TRI];
67
	$tri = $_GET[PROJET_VARIABLE_TRI];
68
	
68
 
69
} else {
69
} else {
Line 70... Line 70...
70
	$tri = 'p_titre';
70
	$tri = 'p_titre';
Line 71... Line 71...
71
}
71
}
72
 
72
 
73
$valeur_acceptable_ordre_tri = array ('asc', 'desc');  // securite
73
$valeur_acceptable_ordre_tri = array ('asc', 'desc');  // securite
74
 
74
 
75
if (isset($_GET[PROJET_VARIABLE_ORDRE_TRI]) && $_GET[PROJET_VARIABLE_ORDRE_TRI] != '' 
75
if (isset($_GET[PROJET_VARIABLE_ORDRE_TRI]) && $_GET[PROJET_VARIABLE_ORDRE_TRI] != ''
76
			&& in_array ($_GET[PROJET_VARIABLE_ORDRE_TRI], $valeur_acceptable_ordre_tri)) {
76
			&& in_array ($_GET[PROJET_VARIABLE_ORDRE_TRI], $valeur_acceptable_ordre_tri)) {
77
	$ordre_tri = $_GET[PROJET_VARIABLE_ORDRE_TRI];
77
	$ordre_tri = $_GET[PROJET_VARIABLE_ORDRE_TRI];
Line 78... Line 78...
78
	
78
 
79
} else {
79
} else {
80
	$ordre_tri = '';
80
	$ordre_tri = '';
81
}
81
}
Line 82... Line 82...
82
 
82
 
83
// variable de session pour se rappeler des choix du visiteur
83
// variable de session pour se rappeler des choix du visiteur
84
if (!isset ($_GET[PROJET_VARIABLE_MODE_AFFICHAGE]) && isset($_SESSION['_PROJET_']['projet_affichage']) && ($_SESSION['_PROJET_']['projet_affichage'] == 'simple' || $_SESSION['_PROJET_']['projet_affichage'] == 'expert')) {
84
if (!isset ($_GET[PROJET_VARIABLE_MODE_AFFICHAGE]) && isset($_SESSION['_PROJET_']['projet_affichage']) && ($_SESSION['_PROJET_']['projet_affichage'] == 'simple' || $_SESSION['_PROJET_']['projet_affichage'] == 'expert')) {
Line 158... Line 158...
158
// soit la liste des projets
158
// soit la liste des projets
159
if (isset($_GET['projet_recherche']) && $_GET['projet_recherche'] != '') {
159
if (isset($_GET['projet_recherche']) && $_GET['projet_recherche'] != '') {
160
	$_SESSION['_PROJET_']['motif_recherche'] = $_GET['projet_recherche'];
160
	$_SESSION['_PROJET_']['motif_recherche'] = $_GET['projet_recherche'];
161
	include_once 'papyrus/applettes/moteur_recherche/bibliotheque/more_recherche.class.php';
161
	include_once 'papyrus/applettes/moteur_recherche/bibliotheque/more_recherche.class.php';
162
	include_once 'papyrus/applettes/moteur_recherche/bibliotheque/more_recherche_projet.class.php';
162
	include_once 'papyrus/applettes/moteur_recherche/bibliotheque/more_recherche_projet.class.php';
163
	
163
 
164
	$moteur = new More_Recherche($_SESSION['_PROJET_']['motif_recherche']);
164
	$moteur = new More_Recherche($_SESSION['_PROJET_']['motif_recherche']);
165
    $recherche_projet = new More_Recherche_Projet($_SESSION['_PROJET_']['motif_recherche']);
165
    $recherche_projet = new More_Recherche_Projet($_SESSION['_PROJET_']['motif_recherche']);
166
    $moteur->ajouterRecherche($recherche_projet);
166
    $moteur->ajouterRecherche($recherche_projet);
167
    $resultats = $moteur->rechercherMotif();
167
    $resultats = $moteur->rechercherMotif();
168
    
168
 
169
    // $chaine_id_projet contient une liste d identifiant separer par une virgule
169
    // $chaine_id_projet contient une liste d identifiant separer par une virgule
170
    if (!empty($resultats)) {
170
    if (!empty($resultats)) {
171
	    $chaine_id_projet = '';
171
	    $chaine_id_projet = '';
172
	    foreach ($resultats as $projet) {
172
	    foreach ($resultats as $projet) {
173
	    	$chaine_id_projet .= $this->_db->escapeSimple($projet['id']).',';
173
	    	$chaine_id_projet .= $this->_db->escapeSimple($projet['id']).',';
174
	    }
174
	    }
175
	    $chaine_id_projet = substr($chaine_id_projet, 0, -1);
175
	    $chaine_id_projet = substr($chaine_id_projet, 0, -1);
176
		$where_recherche = ' where p_id in ('.$chaine_id_projet.')';
176
		$where_recherche = ' where p_id in ('.$chaine_id_projet.')';
177
				
177
 
178
		$valeur_projet_recherche = $_GET['projet_recherche'];
178
		$valeur_projet_recherche = $_GET['projet_recherche'];
179
    }
179
    }
180
} else {
180
} else {
181
	$where_recherche = '';
181
	$where_recherche = '';
182
	$valeur_projet_recherche = '';
182
	$valeur_projet_recherche = '';
Line 196... Line 196...
196
	// On recherche les projets auquels l utilisateur participe
196
	// On recherche les projets auquels l utilisateur participe
197
	include_once PROJET_CHEMIN_CLASSES.'participe.class.php';
197
	include_once PROJET_CHEMIN_CLASSES.'participe.class.php';
198
	$participant = new participe ($this->_db);
198
	$participant = new participe ($this->_db);
199
	$tableau_projet = $participant->getInformationsUtilisateurs($this->_auth->getAuthData(PROJET_CHAMPS_ID));
199
	$tableau_projet = $participant->getInformationsUtilisateurs($this->_auth->getAuthData(PROJET_CHAMPS_ID));
200
	$chaine_id_projet = '';
200
	$chaine_id_projet = '';
201
	if (count ($tableau_projet) == 0) return '<p class="information">Vous n\'&ecirc;tes inscrit &agrave; aucun projet</p>'; 
201
	if (count ($tableau_projet) == 0) return '<p class="information">Vous n\'&ecirc;tes inscrit &agrave; aucun projet</p>';
202
	foreach ($tableau_projet as $projet) $chaine_id_projet .= $this->_db->escapeSimple($projet[3]).',';
202
	foreach ($tableau_projet as $projet) $chaine_id_projet .= $this->_db->escapeSimple($projet[3]).',';
203
	$chaine_id_projet = substr($chaine_id_projet, 0, -1);
203
	$chaine_id_projet = substr($chaine_id_projet, 0, -1);
204
	$where_recherche .= ' where p_id in ('.$chaine_id_projet.')';
204
	$where_recherche .= ' where p_id in ('.$chaine_id_projet.')';
205
	
205
 
206
	$from_recherche .= ' left join projet_statut_utilisateurs on psu_id_projet=p_id and psu_id_utilisateur='.$this->_auth->getAuthData(PROJET_CHAMPS_ID).
206
	$from_recherche .= ' left join projet_statut_utilisateurs on psu_id_projet=p_id and psu_id_utilisateur='.$this->_auth->getAuthData(PROJET_CHAMPS_ID).
207
						' left join projet_statut on psu_id_statut=ps_id_statut';
207
						' left join projet_statut on psu_id_statut=ps_id_statut';
208
	$select = 'psu_id_statut, ps_statut_nom,';
208
	$select = 'psu_id_statut, ps_statut_nom,';
209
}
209
}
210
$requete = 'select '.$select.'p_id, p_titre, p_resume, pl_id_liste, plle_id_liste, p_avoir_document, ps_nombre_inscrit, ps_pourcent,'.
210
$requete = 'select '.$select.'p_id, p_titre, p_resume, pl_id_liste, plle_id_liste, p_avoir_document, ps_nombre_inscrit, ps_pourcent,'.
Line 216... Line 216...
216
				$from_recherche.
216
				$from_recherche.
217
				$where_recherche.
217
				$where_recherche.
218
				' group by p_id order by '.$tri.' '.$ordre_tri ;
218
				' group by p_id order by '.$tri.' '.$ordre_tri ;
Line 219... Line 219...
219
 
219
 
220
if ($ordre_tri == '') $ordre_tri = 'desc';
220
if ($ordre_tri == '') $ordre_tri = 'desc';
221
 
221
 
222
$resultat = $this->_db->query($requete) ;
222
$resultat = $this->_db->query($requete) ;
223
if (DB::isError($resultat)) {
223
if (DB::isError($resultat)) {
224
	return ("Echec de la requete<br />".$resultat->getMessage()."<br />".$resultat->getDebugInfo()) ;
224
	return ("Echec de la requete<br />".$resultat->getMessage()."<br />".$resultat->getDebugInfo()) ;
Line 238... Line 238...
238
}
238
}
Line 239... Line 239...
239
 
239
 
Line 240... Line 240...
240
include_once PROJET_CHEMIN_BIBLIOTHEQUE_API.'pear/Pager/Pager.php';
240
include_once PROJET_CHEMIN_BIBLIOTHEQUE_API.'pear/Pager/Pager.php';
241
 
241
 
242
while ($ligne = $resultat->fetchRow(DB_FETCHMODE_OBJECT)) {
242
while ($ligne = $resultat->fetchRow(DB_FETCHMODE_OBJECT)) {
243
	
243
 
244
	// Si le projet est en dormance, on ne l affiche pas dans le mode normal
244
	// Si le projet est en dormance, on ne l affiche pas dans le mode normal
245
	// Sauf si le theme choisit est "en dormance"
245
	// Sauf si le theme choisit est "en dormance"
246
	/*if ($_SESSION['_PROJET_']['projet_affichage'] != 'expert' && $ligne->p_en_dormance == 1  && $theme_selectionne != 9) {	
246
	/*if ($_SESSION['_PROJET_']['projet_affichage'] != 'expert' && $ligne->p_en_dormance == 1  && $theme_selectionne != 9) {
247
					
247
 
248
	} else {*/
248
	} else {*/
249
		$donnees[] = $ligne;
249
		$donnees[] = $ligne;
250
	//}
250
	//}
Line 251... Line 251...
251
	 
251
 
252
}
252
}
253
 
253
 
Line 262... Line 262...
262
	'spacesBeforeSeparator' => 0,
262
	'spacesBeforeSeparator' => 0,
263
	'spacesAfterSeparator' => 0,
263
	'spacesAfterSeparator' => 0,
264
	'separator' => '',
264
	'separator' => '',
265
	'prevImg' => '&lt;&lt; Page pr&eacute;c&eacute;dente',
265
	'prevImg' => '&lt;&lt; Page pr&eacute;c&eacute;dente',
266
	'nextImg' => 'Page suivante &gt;&gt;',
266
	'nextImg' => 'Page suivante &gt;&gt;',
267
	'extraVars' => array ('projet_recherche' => $_SESSION['_PROJET_']['motif_recherche'], 
267
	'extraVars' => array ('projet_recherche' => $_SESSION['_PROJET_']['motif_recherche'],
268
					PROJET_VARIABLE_MODE_AFFICHAGE => $_SESSION['_PROJET_']['projet_affichage']),
268
					PROJET_VARIABLE_MODE_AFFICHAGE => $_SESSION['_PROJET_']['projet_affichage']),
269
	'itemData' => $donnees
269
	'itemData' => $donnees
270
	);
270
	);
271
$pager = & Pager::factory($params);
271
$pager = & Pager::factory($params);
272
$links = $pager->getLinks();
272
$links = $pager->getLinks();
273
$data  = $pager->getPageData();
273
$data  = $pager->getPageData();
274
$nombre_projets = $pager->numItems();
274
$nombre_projets = $pager->numItems();
275
$range = $pager->getOffsetByPageId(); 
275
$range = $pager->getOffsetByPageId();
Line 276... Line 276...
276
 
276
 
277
 
277
 
278
// On inclue un fichier local
278
// On inclue un fichier local
Line 298... Line 298...
298
 
298
 
299
    $tableau_donnees[$ligne->p_id]['resume'] = $ligne->p_resume;
299
    $tableau_donnees[$ligne->p_id]['resume'] = $ligne->p_resume;
300
    if ($_SESSION['_PROJET_']['projet_affichage'] == 'simple') {
300
    if ($_SESSION['_PROJET_']['projet_affichage'] == 'simple') {
301
	    if ($ligne->ps_pourcent <33) {
301
	    if ($ligne->ps_pourcent <33) {
302
	    	$tableau_donnees[$ligne->p_id]['activite'] = 'Peu actif';
302
	    	$tableau_donnees[$ligne->p_id]['activite'] = 'Peu actif';
303
	    	$tableau_donnees[$ligne->p_id]['classe_projet_activite'] = 'projet_activite_faible';	
303
	    	$tableau_donnees[$ligne->p_id]['classe_projet_activite'] = 'projet_activite_faible';
304
	    }
304
	    }
305
	    	else if ($ligne->ps_pourcent < 66) {
305
	    	else if ($ligne->ps_pourcent < 66) {
306
	    		$tableau_donnees[$ligne->p_id]['activite'] = 'Assez actif';
306
	    		$tableau_donnees[$ligne->p_id]['activite'] = 'Assez actif';
307
	    		$tableau_donnees[$ligne->p_id]['classe_projet_activite'] = 'projet_activite_moyenne';	
307
	    		$tableau_donnees[$ligne->p_id]['classe_projet_activite'] = 'projet_activite_moyenne';
308
	    	}
308
	    	}
309
	    	else if ($ligne->ps_pourcent <= 100) { 
309
	    	else if ($ligne->ps_pourcent <= 100) {
310
	    		$tableau_donnees[$ligne->p_id]['activite'] = 'Tr&egrave;s actif';
310
	    		$tableau_donnees[$ligne->p_id]['activite'] = 'Tr&egrave;s actif';
311
	    		$tableau_donnees[$ligne->p_id]['classe_projet_activite'] = 'projet_activite_elevee';
311
	    		$tableau_donnees[$ligne->p_id]['classe_projet_activite'] = 'projet_activite_elevee';
312
	    	}
312
	    	}
313
    } else {
313
    } else {
314
    	$tableau_donnees[$ligne->p_id]['activite'] = $ligne->ps_pourcent.'%';
314
    	$tableau_donnees[$ligne->p_id]['activite'] = $ligne->ps_pourcent.'%';
315
    }
315
    }
316
    $res .= $ligne->p_resume ;
316
    $res .= $ligne->p_resume ;
317
    $this->_url->addQueryString (PROJET_VARIABLE_ACTION, PROJET_ACTION_S_INSCRIRE);
317
    $this->_url->addQueryString (PROJET_VARIABLE_ACTION, PROJET_ACTION_S_INSCRIRE);
318
    $res .= '(<a href="'.$this->_url->getURL().'">Rejoindre ce projet</a>)'."\n";
318
    $res .= '(<a href="'.$this->_url->getURL().'">Rejoindre ce projet</a>)'."\n";
319
    
319
 
320
    // Recherche du forum
320
    // Recherche du forum
321
    if ($ligne->pl_id_liste != null && $ligne->plle_id_liste == null) {
321
    if ($ligne->pl_id_liste != null && $ligne->plle_id_liste == null) {
Line 322... Line 322...
322
    	$this->_url->addQueryString('act', PROJET_ACTION_VOIR_FORUM);
322
    	$this->_url->addQueryString('act', PROJET_ACTION_VOIR_FORUM);
323
 
323
 
324
	    $forum = '<a href="'.$this->_url->getURL().'"><img src="sites/commun/generique/images/favicones/tela_botanica.png" alt="Tela Botanica" /></a>'."\n";
324
	    $forum = '<a href="'.$this->_url->getURL().'"><img src="sites/commun/generique/images/favicones/tela_botanica.png" alt="Tela Botanica" /></a>'."\n";
325
		$res .= $forum;
325
		$res .= $forum;
326
	
326
 
327
    } else {
327
    } else {
328
    
328
 
329
		include_once PROJET_CHEMIN_CLASSES.'liste_externe.class.php' ;
329
		include_once PROJET_CHEMIN_CLASSES.'liste_externe.class.php' ;
330
		$listes_ext = new liste_externe ($this->_db) ;
330
		$listes_ext = new liste_externe ($this->_db) ;
331
		if ($ligne->plle_id_liste != null) {
331
		if ($ligne->plle_id_liste != null) {
332
			$info_liste = $listes_ext->getInfoListe($ligne->plle_id_liste) ;
332
			$info_liste = $listes_ext->getInfoListe($ligne->plle_id_liste) ;
333
		
333
 
334
			$forum = '<a href="'.$info_liste->AGO_A_URLGRP.
334
			$forum = '<a href="'.$info_liste->AGO_A_URLGRP.
335
					'"><img src="sites/commun/generique/images/favicones/yahoo.png" alt="Yahoo"/></a>';
335
					'"><img src="sites/commun/generique/images/icones/yahoo.png" alt="Yahoo"/></a>';
336
			$tableau_donnees[$ligne->p_id]['nombre_participants'] = $ligne->ps_nombre_membre_yahoo;
336
			$tableau_donnees[$ligne->p_id]['nombre_participants'] = $ligne->ps_nombre_membre_yahoo;
337
		} else {
337
		} else {
338
			$forum = '-';
338
			$forum = '-';
339
		}
339
		}
340
    }
340
    }
341
    if ($ligne->ps_msg_derniere_semaine != 0) {
341
    if ($ligne->ps_msg_derniere_semaine != 0) {
342
    	
342
 
343
    	$tableau_donnees[$ligne->p_id]['nombre_message'] = $ligne->ps_msg_derniere_semaine;
343
    	$tableau_donnees[$ligne->p_id]['nombre_message'] = $ligne->ps_msg_derniere_semaine;
344
    } else {
344
    } else {
345
    	$tableau_donnees[$ligne->p_id]['nombre_message'] = 0;
345
    	$tableau_donnees[$ligne->p_id]['nombre_message'] = 0;
Line 356... Line 356...
356
	} else {
356
	} else {
357
	    $wiki_res = '-' ;
357
	    $wiki_res = '-' ;
358
	}
358
	}
359
	$tableau_donnees[$ligne->p_id]['wikini'] = $wiki_res;
359
	$tableau_donnees[$ligne->p_id]['wikini'] = $wiki_res;
360
    $titre= '<a href="'.$this->_url->getURL().'">'.$ligne->p_titre.'</a>';
360
    $titre= '<a href="'.$this->_url->getURL().'">'.$ligne->p_titre.'</a>';
361
    
361
 
362
    if ($ligne->p_avoir_document != 0) {
362
    if ($ligne->p_avoir_document != 0) {
363
    	$this->_url->addQueryString('act', PROJET_ACTION_VOIR_DOCUMENT) ;
363
    	$this->_url->addQueryString('act', PROJET_ACTION_VOIR_DOCUMENT) ;
364
    	$document = '<a href="'.$this->_url->getURL().'">voir</a>' ;
364
    	$document = '<a href="'.$this->_url->getURL().'">voir</a>' ;
365
    	if ($ligne->ps_doc_derniere_semaine != 0) {
365
    	if ($ligne->ps_doc_derniere_semaine != 0) {
366
    		$document .= ' <span title="Nouveaux documents cette semaine">( + '.$ligne->ps_doc_derniere_semaine.')</span>';
366
    		$document .= ' <span title="Nouveaux documents cette semaine">( + '.$ligne->ps_doc_derniere_semaine.')</span>';
367
    	}
367
    	}
368
    } else {
368
    } else {
369
    	$document = '-' ;
369
    	$document = '-' ;
370
    }
370
    }
371
    $tableau_donnees[$ligne->p_id]['document'] = $document;
371
    $tableau_donnees[$ligne->p_id]['document'] = $document;
372
                            
372
 
373
   if ($ligne->p_wikini) {
373
   if ($ligne->p_wikini) {
374
		$this->_url->addQueryString ('act',PROJET_ACTION_VOIR_WIKINI);
374
		$this->_url->addQueryString ('act',PROJET_ACTION_VOIR_WIKINI);
375
		$link=$this->_url->getURL();
375
		$link=$this->_url->getURL();
376
		$this->_url->addQueryString('wiki', 'DerniersChangementsRSS/xml');
376
		$this->_url->addQueryString('wiki', 'DerniersChangementsRSS/xml');
377
	    $wiki_rss = '<a href="'.$this->_url->getURL().'"><img src="sites/commun/generique/images/rss.gif" alt="rss"/></a>' ;
377
	    $wiki_rss = '<a href="'.$this->_url->getURL().'"><img src="sites/commun/generique/images/rss.gif" alt="rss"/></a>' ;
Line 379... Line 379...
379
	    $this->_url->removeQueryString ('wiki');
379
	    $this->_url->removeQueryString ('wiki');
380
	} else {
380
	} else {
381
	    $wiki_rss = '-' ;
381
	    $wiki_rss = '-' ;
382
	}
382
	}
383
    $tableau_donnees[$ligne->p_id]['wikini_rss'] = $wiki_rss;
383
    $tableau_donnees[$ligne->p_id]['wikini_rss'] = $wiki_rss;
384
    
384
 
385
    $this->_url->addQueryString ('act', PROJET_ACTION_VOIR_PARTICIPANT);
385
    $this->_url->addQueryString ('act', PROJET_ACTION_VOIR_PARTICIPANT);
386
    $participant = '<a href="'.$this->_url->getURL().'">voir</a>' ;
386
    $participant = '<a href="'.$this->_url->getURL().'">voir</a>' ;
387
    $tableau_donnees[$ligne->p_id]['lien_participants'] = $this->_url->getURL();
387
    $tableau_donnees[$ligne->p_id]['lien_participants'] = $this->_url->getURL();
388
    if ($ligne->ps_nombre_inscrit_derniere_semaine != 0) {
388
    if ($ligne->ps_nombre_inscrit_derniere_semaine != 0) {
389
    	$tableau_donnees[$ligne->p_id]['ps_nombre_inscrit_derniere_semaine'] = '<span title="Nouveaux inscrits cette semaine">( + '.$ligne->ps_nombre_inscrit_derniere_semaine.' )</span>';	
389
    	$tableau_donnees[$ligne->p_id]['ps_nombre_inscrit_derniere_semaine'] = '<span title="Nouveaux inscrits cette semaine">( + '.$ligne->ps_nombre_inscrit_derniere_semaine.' )</span>';
390
    } else {
390
    } else {
391
    	$tableau_donnees[$ligne->p_id]['ps_nombre_inscrit_derniere_semaine'] = '';
391
    	$tableau_donnees[$ligne->p_id]['ps_nombre_inscrit_derniere_semaine'] = '';
392
    }
392
    }
393
    
393
 
394
    $ligne_projet = array ( '', $titre, $forum,  // le nom du projet
394
    $ligne_projet = array ( '', $titre, $forum,  // le nom du projet
395
                        $wiki_res, $wiki_rss,$document, $participant) ;
395
                        $wiki_res, $wiki_rss,$document, $participant) ;
Line 396... Line 396...
396
 
396
 
397
    $this->_url->removeQueryString(PROJET_VARIABLE_ACTION);
397
    $this->_url->removeQueryString(PROJET_VARIABLE_ACTION);
398
    array_push ($liste_projet, $ligne_projet) ;
398
    array_push ($liste_projet, $ligne_projet) ;
399
    
399
 
400
    if ($loggue) {
400
    if ($loggue) {
401
	    switch ($ligne->psu_id_statut) {
401
	    switch ($ligne->psu_id_statut) {
402
	    	case 1 : $icone_statut = 'etoile_rouge';
402
	    	case 1 : $icone_statut = 'etoile_rouge';
403
	    	$tableau_donnees[$ligne->p_id]['id_statut'] = 3;
403
	    	$tableau_donnees[$ligne->p_id]['id_statut'] = 3;
Line 411... Line 411...
411
	    	default :  $tableau_donnees[$ligne->p_id]['statut_icone'] = '';
411
	    	default :  $tableau_donnees[$ligne->p_id]['statut_icone'] = '';
412
	    	$tableau_donnees[$ligne->p_id]['id_statut'] = 0;
412
	    	$tableau_donnees[$ligne->p_id]['id_statut'] = 0;
413
	    		$icone_statut = false;
413
	    		$icone_statut = false;
414
	    }
414
	    }
415
	    if ($icone_statut) $tableau_donnees[$ligne->p_id]['statut_icone'] = '<img src="'.PROJET_CHEMIN_ICONES.$icone_statut.'.png" alt="'.$ligne->ps_statut_nom.'" title="'.$ligne->ps_statut_nom.'" />';
415
	    if ($icone_statut) $tableau_donnees[$ligne->p_id]['statut_icone'] = '<img src="'.PROJET_CHEMIN_ICONES.$icone_statut.'.png" alt="'.$ligne->ps_statut_nom.'" title="'.$ligne->ps_statut_nom.'" />';
416
	    
416
 
417
    }
417
    }
418
    $res .= '</li>'."\n";
418
    $res .= '</li>'."\n";
419
}
419
}
420
$res .= '</ul>'."\n";
420
$res .= '</ul>'."\n";
421
$this->_url->removeQueryString(PROJET_VARIABLE_ACTION) ;
421
$this->_url->removeQueryString(PROJET_VARIABLE_ACTION) ;
Line 450... Line 450...
450
	include_once PROJET_CHEMIN_CLASSES.'enteteColonneTriable.class.php';
450
	include_once PROJET_CHEMIN_CLASSES.'enteteColonneTriable.class.php';
451
	foreach ($valeur_acceptable_tri as $var_tri) {
451
	foreach ($valeur_acceptable_tri as $var_tri) {
452
		$enteteTri[$var_tri] = new enteteColonneTriable($var_tri);
452
		$enteteTri[$var_tri] = new enteteColonneTriable($var_tri);
453
		$enteteTri[$var_tri]->setColonneCliquee($tri, PROJET_VARIABLE_TRI);
453
		$enteteTri[$var_tri]->setColonneCliquee($tri, PROJET_VARIABLE_TRI);
454
		$enteteTri[$var_tri]->setOrdre($ordre_tri, PROJET_VARIABLE_ORDRE_TRI);
454
		$enteteTri[$var_tri]->setOrdre($ordre_tri, PROJET_VARIABLE_ORDRE_TRI);
455
		
455
 
456
	}
456
	}
Line 457... Line 457...
457
 
457
 
458
	$lien_tri_titre = $enteteTri['p_titre']->getLien($this->_url);
458
	$lien_tri_titre = $enteteTri['p_titre']->getLien($this->_url);
459
	$lien_tri_activite = $enteteTri['ps_pourcent']->getLien($this->_url);
459
	$lien_tri_activite = $enteteTri['ps_pourcent']->getLien($this->_url);