Subversion Repositories Applications.projet

Rev

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

Rev 351 Rev 389
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 159... Line 159...
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
	if (!isset($GLOBALS['_MOTEUR_RECHERCHE_']['bd']['papyrus'])) $GLOBALS['_MOTEUR_RECHERCHE_']['bd']['papyrus'] = $this->_db;
161
	if (!isset($GLOBALS['_MOTEUR_RECHERCHE_']['bd']['papyrus'])) $GLOBALS['_MOTEUR_RECHERCHE_']['bd']['papyrus'] = $this->_db;
162
	include_once 'papyrus/applettes/moteur_recherche/bibliotheque/more_recherche.class.php';
162
	include_once 'papyrus/applettes/moteur_recherche/bibliotheque/more_recherche.class.php';
163
	include_once 'papyrus/applettes/moteur_recherche/bibliotheque/more_recherche_projet.class.php';
163
	include_once 'papyrus/applettes/moteur_recherche/bibliotheque/more_recherche_projet.class.php';
164
	
164
 
165
	$moteur = new More_Recherche($_SESSION['_PROJET_']['motif_recherche']);
165
	$moteur = new More_Recherche($_SESSION['_PROJET_']['motif_recherche']);
166
    $recherche_projet = new More_Recherche_Projet($_SESSION['_PROJET_']['motif_recherche']);
166
    $recherche_projet = new More_Recherche_Projet($_SESSION['_PROJET_']['motif_recherche']);
167
    $moteur->ajouterRecherche($recherche_projet);
167
    $moteur->ajouterRecherche($recherche_projet);
168
    $resultats = $moteur->rechercherMotif();
168
    $resultats = $moteur->rechercherMotif();
169
    
169
 
170
    // $chaine_id_projet contient une liste d identifiant separer par une virgule
170
    // $chaine_id_projet contient une liste d identifiant separer par une virgule
171
    if (!empty($resultats)) {
171
    if (!empty($resultats)) {
172
	    $chaine_id_projet = '';
172
	    $chaine_id_projet = '';
173
	    foreach ($resultats as $projet) {
173
	    foreach ($resultats as $projet) {
174
	    	$chaine_id_projet .= $projet['id'].',';
174
	    	$chaine_id_projet .= $projet['id'].',';
175
	    }
175
	    }
176
	    $chaine_id_projet = substr($chaine_id_projet, 0, -1);
176
	    $chaine_id_projet = substr($chaine_id_projet, 0, -1);
177
		$where_recherche = ' where p_id in ('.$chaine_id_projet.')';
177
		$where_recherche = ' where p_id in ('.$chaine_id_projet.')';
178
				
178
 
179
		$valeur_projet_recherche = $_GET['projet_recherche'];
179
		$valeur_projet_recherche = $_GET['projet_recherche'];
180
    }
180
    }
181
} else {
181
} else {
182
	$where_recherche = '';
182
	$where_recherche = '';
183
	$valeur_projet_recherche = '';
183
	$valeur_projet_recherche = '';
Line 192... Line 192...
192
	$theme_selectionne = 0;
192
	$theme_selectionne = 0;
193
}
193
}
Line 194... Line 194...
194
 
194
 
195
if ($this->_auth->getAuth()) {
195
if ($this->_auth->getAuth()) {
196
	/** on recherche egalement le statut si l utilisateur est loggue */
196
	/** on recherche egalement le statut si l utilisateur est loggue */
197
	
197
 
198
	$from_recherche .= ' left join projet_statut_utilisateurs on psu_id_projet=p_id and psu_id_utilisateur='.$this->_auth->getAuthData(PROJET_CHAMPS_ID).
198
	$from_recherche .= ' left join projet_statut_utilisateurs on psu_id_projet=p_id and psu_id_utilisateur='.$this->_auth->getAuthData(PROJET_CHAMPS_ID).
199
						' left join projet_statut on psu_id_statut=ps_id_statut';
199
						' left join projet_statut on psu_id_statut=ps_id_statut';
200
	$select = 'psu_id_statut, ps_statut_nom,';
200
	$select = 'psu_id_statut, ps_statut_nom,';
201
}
201
}
Line 208... Line 208...
208
				$from_recherche.
208
				$from_recherche.
209
				$where_recherche.
209
				$where_recherche.
210
				' group by p_id order by '.$tri.' '.$ordre_tri ;
210
				' group by p_id order by '.$tri.' '.$ordre_tri ;
Line 211... Line 211...
211
 
211
 
212
if ($ordre_tri == '') $ordre_tri = 'desc';
212
if ($ordre_tri == '') $ordre_tri = 'desc';
213
 
213
 
214
$resultat = $this->_db->query($requete) ;
214
$resultat = $this->_db->query($requete) ;
215
if (DB::isError($resultat)) {
215
if (DB::isError($resultat)) {
216
	return ("Echec de la requete<br />".$resultat->getMessage()."<br />".$resultat->getDebugInfo()) ;
216
	return ("Echec de la requete<br />".$resultat->getMessage()."<br />".$resultat->getDebugInfo()) ;
Line 230... Line 230...
230
}
230
}
Line 231... Line 231...
231
 
231
 
Line 232... Line 232...
232
include_once PROJET_CHEMIN_BIBLIOTHEQUE_API.'pear/Pager/Pager.php';
232
include_once PROJET_CHEMIN_BIBLIOTHEQUE_API.'pear/Pager/Pager.php';
233
 
233
 
234
while ($ligne = $resultat->fetchRow(DB_FETCHMODE_OBJECT)) {
234
while ($ligne = $resultat->fetchRow(DB_FETCHMODE_OBJECT)) {
235
	
235
 
236
	// Si le projet est en dormance, on ne l affiche pas dans le mode normal
236
	// Si le projet est en dormance, on ne l affiche pas dans le mode normal
237
	// Sauf si le theme choisit est "en dormance"
237
	// Sauf si le theme choisit est "en dormance"
238
	if ($_SESSION['_PROJET_']['projet_affichage'] != 'expert' && $ligne->p_en_dormance == 1  && $theme_selectionne != 9) {	
238
	if ($_SESSION['_PROJET_']['projet_affichage'] != 'expert' && $ligne->p_en_dormance == 1  && $theme_selectionne != 9) {
239
					
239
 
240
	} else {
240
	} else {
241
		$donnees[] = $ligne;
241
		$donnees[] = $ligne;
242
	}
242
	}
Line 243... Line 243...
243
	 
243
 
244
}
244
}
245
 
245
 
Line 254... Line 254...
254
	'spacesBeforeSeparator' => 0,
254
	'spacesBeforeSeparator' => 0,
255
	'spacesAfterSeparator' => 0,
255
	'spacesAfterSeparator' => 0,
256
	'separator' => '',
256
	'separator' => '',
257
	'prevImg' => '&lt;&lt; Page pr&eacute;c&eacute;dente',
257
	'prevImg' => '&lt;&lt; Page pr&eacute;c&eacute;dente',
258
	'nextImg' => 'Page suivante &gt;&gt;',
258
	'nextImg' => 'Page suivante &gt;&gt;',
259
	'extraVars' => array ('projet_recherche' => $_SESSION['_PROJET_']['motif_recherche'], 
259
	'extraVars' => array ('projet_recherche' => $_SESSION['_PROJET_']['motif_recherche'],
260
					PROJET_VARIABLE_MODE_AFFICHAGE => $_SESSION['_PROJET_']['projet_affichage']),
260
					PROJET_VARIABLE_MODE_AFFICHAGE => $_SESSION['_PROJET_']['projet_affichage']),
261
	'itemData' => $donnees
261
	'itemData' => $donnees
262
	);
262
	);
263
$pager = & Pager::factory($params);
263
$pager = & Pager::factory($params);
264
$links = $pager->getLinks();
264
$links = $pager->getLinks();
265
$data  = $pager->getPageData();
265
$data  = $pager->getPageData();
266
$nombre_projets = $pager->numItems();
266
$nombre_projets = $pager->numItems();
267
$range = $pager->getOffsetByPageId(); 
267
$range = $pager->getOffsetByPageId();
Line 268... Line 268...
268
 
268
 
269
 
269
 
270
// On inclue un fichier local
270
// On inclue un fichier local
Line 290... Line 290...
290
 
290
 
291
    $tableau_donnees[$ligne->p_id]['resume'] = $ligne->p_resume;
291
    $tableau_donnees[$ligne->p_id]['resume'] = $ligne->p_resume;
292
    if ($_SESSION['_PROJET_']['projet_affichage'] == 'simple') {
292
    if ($_SESSION['_PROJET_']['projet_affichage'] == 'simple') {
293
	    if ($ligne->ps_pourcent <33) {
293
	    if ($ligne->ps_pourcent <33) {
294
	    	$tableau_donnees[$ligne->p_id]['activite'] = 'Peu actif';
294
	    	$tableau_donnees[$ligne->p_id]['activite'] = 'Peu actif';
295
	    	$tableau_donnees[$ligne->p_id]['classe_projet_activite'] = 'projet_activite_faible';	
295
	    	$tableau_donnees[$ligne->p_id]['classe_projet_activite'] = 'projet_activite_faible';
296
	    }
296
	    }
297
	    	else if ($ligne->ps_pourcent < 66) {
297
	    	else if ($ligne->ps_pourcent < 66) {
298
	    		$tableau_donnees[$ligne->p_id]['activite'] = 'Assez actif';
298
	    		$tableau_donnees[$ligne->p_id]['activite'] = 'Assez actif';
299
	    		$tableau_donnees[$ligne->p_id]['classe_projet_activite'] = 'projet_activite_moyenne';	
299
	    		$tableau_donnees[$ligne->p_id]['classe_projet_activite'] = 'projet_activite_moyenne';
300
	    	}
300
	    	}
301
	    	else if ($ligne->ps_pourcent <= 100) { 
301
	    	else if ($ligne->ps_pourcent <= 100) {
302
	    		$tableau_donnees[$ligne->p_id]['activite'] = 'Tr&egrave;s actif';
302
	    		$tableau_donnees[$ligne->p_id]['activite'] = 'Tr&egrave;s actif';
303
	    		$tableau_donnees[$ligne->p_id]['classe_projet_activite'] = 'projet_activite_elevee';
303
	    		$tableau_donnees[$ligne->p_id]['classe_projet_activite'] = 'projet_activite_elevee';
304
	    	}
304
	    	}
305
    } else {
305
    } else {
306
    	$tableau_donnees[$ligne->p_id]['activite'] = $ligne->ps_pourcent.'%';
306
    	$tableau_donnees[$ligne->p_id]['activite'] = $ligne->ps_pourcent.'%';
307
    }
307
    }
308
    $res .= $ligne->p_resume ;
308
    $res .= $ligne->p_resume ;
309
    $this->_url->addQueryString (PROJET_VARIABLE_ACTION, PROJET_ACTION_S_INSCRIRE);
309
    $this->_url->addQueryString (PROJET_VARIABLE_ACTION, PROJET_ACTION_S_INSCRIRE);
310
    $res .= '(<a href="'.$this->_url->getURL().'">Rejoindre ce projet</a>)'."\n";
310
    $res .= '(<a href="'.$this->_url->getURL().'">Rejoindre ce projet</a>)'."\n";
311
    
311
 
312
    // Recherche du forum
312
    // Recherche du forum
313
    if ($ligne->pl_id_liste != null && $ligne->plle_id_liste == null) {
313
    if ($ligne->pl_id_liste != null && $ligne->plle_id_liste == null) {
Line 314... Line 314...
314
    	$this->_url->addQueryString('act', PROJET_ACTION_VOIR_FORUM);
314
    	$this->_url->addQueryString('act', PROJET_ACTION_VOIR_FORUM);
315
 
315
 
316
	    $forum = '<a href="'.$this->_url->getURL().'"><img src="sites/commun/generique/images/favicones/tela_botanica.png" alt="Tela Botanica" /></a>'."\n";
316
	    $forum = '<a href="'.$this->_url->getURL().'"><img src="sites/commun/generique/images/favicones/tela_botanica.png" alt="Tela Botanica" /></a>'."\n";
317
		$res .= $forum;
317
		$res .= $forum;
318
	
318
 
319
    } else {
319
    } else {
320
    
320
 
321
		include_once PROJET_CHEMIN_CLASSES.'liste_externe.class.php' ;
321
		include_once PROJET_CHEMIN_CLASSES.'liste_externe.class.php' ;
322
		$listes_ext = new liste_externe ($this->_db) ;
322
		$listes_ext = new liste_externe ($this->_db) ;
323
		if ($ligne->plle_id_liste != null) {
323
		if ($ligne->plle_id_liste != null) {
324
			$info_liste = $listes_ext->getInfoListe($ligne->plle_id_liste) ;
324
			$info_liste = $listes_ext->getInfoListe($ligne->plle_id_liste) ;
325
		
325
 
326
			$forum = '<a href="'.$info_liste->AGO_A_URLGRP.
326
			$forum = '<a href="'.$info_liste->AGO_A_URLGRP.
327
					'"><img src="sites/commun/generique/images/favicones/yahoo.png" alt="Yahoo"/></a>';
327
					'"><img src="sites/commun/generique/images/favicones/yahoo.png" alt="Yahoo"/></a>';
328
			$tableau_donnees[$ligne->p_id]['nombre_participants'] = $ligne->ps_nombre_membre_yahoo;
328
			$tableau_donnees[$ligne->p_id]['nombre_participants'] = $ligne->ps_nombre_membre_yahoo;
329
		} else {
329
		} else {
330
			$forum = '-';
330
			$forum = '-';
331
		}
331
		}
332
    }
332
    }
333
    if ($ligne->ps_msg_derniere_semaine != 0) {
333
    if ($ligne->ps_msg_derniere_semaine != 0) {
334
    	
334
 
335
    	$tableau_donnees[$ligne->p_id]['nombre_message'] = $ligne->ps_msg_derniere_semaine;
335
    	$tableau_donnees[$ligne->p_id]['nombre_message'] = $ligne->ps_msg_derniere_semaine;
336
    } else {
336
    } else {
337
    	$tableau_donnees[$ligne->p_id]['nombre_message'] = 0;
337
    	$tableau_donnees[$ligne->p_id]['nombre_message'] = 0;
Line 348... Line 348...
348
	} else {
348
	} else {
349
	    $wiki_res = '-' ;
349
	    $wiki_res = '-' ;
350
	}
350
	}
351
	$tableau_donnees[$ligne->p_id]['wikini'] = $wiki_res;
351
	$tableau_donnees[$ligne->p_id]['wikini'] = $wiki_res;
352
    $titre= '<a href="'.$this->_url->getURL().'">'.$ligne->p_titre.'</a>';
352
    $titre= '<a href="'.$this->_url->getURL().'">'.$ligne->p_titre.'</a>';
353
    
353
 
354
    if ($ligne->p_avoir_document != 0) {
354
    if ($ligne->p_avoir_document != 0) {
355
    	$this->_url->addQueryString('act', PROJET_ACTION_VOIR_DOCUMENT) ;
355
    	$this->_url->addQueryString('act', PROJET_ACTION_VOIR_DOCUMENT) ;
356
    	$document = '<a href="'.$this->_url->getURL().'">voir</a>' ;
356
    	$document = '<a href="'.$this->_url->getURL().'">voir</a>' ;
357
    	if ($ligne->ps_doc_derniere_semaine != 0) {
357
    	if ($ligne->ps_doc_derniere_semaine != 0) {
358
    		$document .= ' <span title="Nouveaux documents cette semaine">( + '.$ligne->ps_doc_derniere_semaine.')</span>';
358
    		$document .= ' <span title="Nouveaux documents cette semaine">( + '.$ligne->ps_doc_derniere_semaine.')</span>';
359
    	}
359
    	}
360
    } else {
360
    } else {
361
    	$document = '-' ;
361
    	$document = '-' ;
362
    }
362
    }
363
    $tableau_donnees[$ligne->p_id]['document'] = $document;
363
    $tableau_donnees[$ligne->p_id]['document'] = $document;
364
                            
364
 
365
   if ($ligne->p_wikini) {
365
   if ($ligne->p_wikini) {
366
		$this->_url->addQueryString ('act',PROJET_ACTION_VOIR_WIKINI);
366
		$this->_url->addQueryString ('act',PROJET_ACTION_VOIR_WIKINI);
367
		$link=$this->_url->getURL();
367
		$link=$this->_url->getURL();
-
 
368
		$url_rss = PROJET_URL_WIKINI.$ligne->p_wikini.'/wakka.php?wiki=DerniersChangementsRss/xml';
368
		$this->_url->addQueryString('wiki', 'DerniersChangementsRSS/xml');
369
		//$this->_url->addQueryString('wiki', 'DerniersChangementsRSS/xml');
369
	    $wiki_rss = '<a href="'.$this->_url->getURL().'"><img src="sites/commun/generique/images/rss.gif" alt="rss"/></a>' ;
370
	    $wiki_rss = '<a href="'.$url_rss.'"><img src="sites/commun/generique/images/rss.gif" alt="rss"/></a>' ;
370
	    $this->_url->removeQueryString ('act');
371
	    //$this->_url->removeQueryString ('act');
371
	    $this->_url->removeQueryString ('wiki');
372
	    //$this->_url->removeQueryString ('wiki');
372
	} else {
373
	} else {
373
	    $wiki_rss = '-' ;
374
	    $wiki_rss = '-' ;
374
	}
375
	}
375
    $tableau_donnees[$ligne->p_id]['wikini_rss'] = $wiki_rss;
376
    $tableau_donnees[$ligne->p_id]['wikini_rss'] = $wiki_rss;
376
    
377
 
377
    $this->_url->addQueryString ('act', PROJET_ACTION_VOIR_PARTICIPANT);
378
    $this->_url->addQueryString ('act', PROJET_ACTION_VOIR_PARTICIPANT);
378
    $participant = '<a href="'.$this->_url->getURL().'">voir</a>' ;
379
    $participant = '<a href="'.$this->_url->getURL().'">voir</a>' ;
379
    $tableau_donnees[$ligne->p_id]['lien_participants'] = $this->_url->getURL();
380
    $tableau_donnees[$ligne->p_id]['lien_participants'] = $this->_url->getURL();
380
    if ($ligne->ps_nombre_inscrit_derniere_semaine != 0) {
381
    if ($ligne->ps_nombre_inscrit_derniere_semaine != 0) {
381
    	$tableau_donnees[$ligne->p_id]['ps_nombre_inscrit_derniere_semaine'] = '<span title="Nouveaux inscrits cette semaine">( + '.$ligne->ps_nombre_inscrit_derniere_semaine.' )</span>';	
382
    	$tableau_donnees[$ligne->p_id]['ps_nombre_inscrit_derniere_semaine'] = '<span title="Nouveaux inscrits cette semaine">( + '.$ligne->ps_nombre_inscrit_derniere_semaine.' )</span>';
382
    } else {
383
    } else {
383
    	$tableau_donnees[$ligne->p_id]['ps_nombre_inscrit_derniere_semaine'] = '';
384
    	$tableau_donnees[$ligne->p_id]['ps_nombre_inscrit_derniere_semaine'] = '';
384
    }
385
    }
385
    
386
 
386
    $ligne_projet = array ( '', $titre, $forum,  // le nom du projet
387
    $ligne_projet = array ( '', $titre, $forum,  // le nom du projet
387
                        $wiki_res, $wiki_rss,$document, $participant) ;
388
                        $wiki_res, $wiki_rss,$document, $participant) ;
Line 388... Line 389...
388
 
389
 
389
    $this->_url->removeQueryString(PROJET_VARIABLE_ACTION);
390
    $this->_url->removeQueryString(PROJET_VARIABLE_ACTION);
390
    array_push ($liste_projet, $ligne_projet) ;
391
    array_push ($liste_projet, $ligne_projet) ;
391
    
392
 
392
    if ($loggue) {
393
    if ($loggue) {
393
	    switch ($ligne->psu_id_statut) {
394
	    switch ($ligne->psu_id_statut) {
394
	    	case 1 : $icone_statut = 'etoile_rouge';
395
	    	case 1 : $icone_statut = 'etoile_rouge';
395
	    	$tableau_donnees[$ligne->p_id]['id_statut'] = 3;
396
	    	$tableau_donnees[$ligne->p_id]['id_statut'] = 3;
Line 403... Line 404...
403
	    	default :  $tableau_donnees[$ligne->p_id]['statut_icone'] = '';
404
	    	default :  $tableau_donnees[$ligne->p_id]['statut_icone'] = '';
404
	    	$tableau_donnees[$ligne->p_id]['id_statut'] = 0;
405
	    	$tableau_donnees[$ligne->p_id]['id_statut'] = 0;
405
	    		$icone_statut = false;
406
	    		$icone_statut = false;
406
	    }
407
	    }
407
	    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.'" />';
408
	    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.'" />';
408
	    
409
 
409
    }
410
    }
410
    $res .= '</li>'."\n";
411
    $res .= '</li>'."\n";
411
}
412
}
412
$res .= '</ul>'."\n";
413
$res .= '</ul>'."\n";
413
$this->_url->removeQueryString(PROJET_VARIABLE_ACTION) ;
414
$this->_url->removeQueryString(PROJET_VARIABLE_ACTION) ;
Line 442... Line 443...
442
	include_once PROJET_CHEMIN_CLASSES.'enteteColonneTriable.class.php';
443
	include_once PROJET_CHEMIN_CLASSES.'enteteColonneTriable.class.php';
443
	foreach ($valeur_acceptable_tri as $var_tri) {
444
	foreach ($valeur_acceptable_tri as $var_tri) {
444
		$enteteTri[$var_tri] = new enteteColonneTriable($var_tri);
445
		$enteteTri[$var_tri] = new enteteColonneTriable($var_tri);
445
		$enteteTri[$var_tri]->setColonneCliquee($tri, PROJET_VARIABLE_TRI);
446
		$enteteTri[$var_tri]->setColonneCliquee($tri, PROJET_VARIABLE_TRI);
446
		$enteteTri[$var_tri]->setOrdre($ordre_tri, PROJET_VARIABLE_ORDRE_TRI);
447
		$enteteTri[$var_tri]->setOrdre($ordre_tri, PROJET_VARIABLE_ORDRE_TRI);
447
		
448
 
448
	}
449
	}
Line 449... Line 450...
449
 
450
 
450
	$lien_tri_titre = $enteteTri['p_titre']->getLien($this->_url);
451
	$lien_tri_titre = $enteteTri['p_titre']->getLien($this->_url);
451
	$lien_tri_activite = $enteteTri['ps_pourcent']->getLien($this->_url);
452
	$lien_tri_activite = $enteteTri['ps_pourcent']->getLien($this->_url);