20,7 → 20,7 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
|
// CVS : $Id: projetControleur.class.php,v 1.9 2005-10-04 10:09:23 alexandre_tb Exp $ |
// CVS : $Id: projetControleur.class.php,v 1.10 2005-10-06 14:51:55 alexandre_tb Exp $ |
|
/** |
* Application projet |
33,7 → 33,7 |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.9 $ |
*@version $Revision: 1.10 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
|
366,12 → 366,17 |
$participant = new participe ($this->_db) ; |
|
if (PROJET_UTILISE_TYPE && $this->_type != '') { |
|
$projetListe = projet::getProjetDuType($this->_type, $this->_db) ; |
array_push ($projetListe, projet::getProjetRacine($this->_db)) ; |
if ($this->_presentation == 'arbre')array_push ($projetListe, projet::getProjetRacine($this->_db)) ; |
} else { |
// Un tableau de tous les projets dans $projetListe |
$projetListe = projet::getTousLesProjets($this->_db) ; |
} |
// Si la liste est vide, on renvoie un texte |
if (count($projetListe) == 0) { |
return PROJET_PAS_DE_LISTE; |
} |
// Si certain projet sont à exclure, on les exclu |
if (count($this->_projet_exclu)) { |
foreach ($this->_projet_exclu as $valeur) { |
492,6 → 497,14 |
// Et si pas loggué tous les projets |
if ($auth) { |
$projetNonParticipantListe = $participant -> getProjetsNonParticipant($id_u) ; |
// Si certain projet sont à exclure, on les exclu |
if (count($this->_projet_exclu)) { |
foreach ($this->_projet_exclu as $valeur) { |
for ($i = 0; $i < count ($projetNonParticipantListe); $i++) { |
if ($projetNonParticipantListe[$i]->getId() == $valeur) unset ($projetNonParticipantListe[$i]) ; |
} |
} |
} |
$HTML_projetNonParticipantListe = new HTML_listeProjet(true) ; |
$entete_liste = array (PROJET_LISTE) ; |
if ($auth) array_push ($entete_liste, PROJET_S_INSCRIRE) ; |