20,7 → 20,7 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
|
// CVS : $Id: projetControleur.class.php,v 1.13 2005-10-17 13:41:34 ddelon Exp $ |
// CVS : $Id: projetControleur.class.php,v 1.14 2005-10-17 16:20:38 alexandre_tb Exp $ |
|
/** |
* Application projet |
33,7 → 33,7 |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.13 $ |
*@version $Revision: 1.14 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
|
518,7 → 518,6 |
if ($auth) { |
$projetNonParticipantListe = $participant -> getProjetsNonParticipant($id_u) ; |
// Si certain projet sont à exclure, on les exclu |
// Si certain projet sont à exclure, on les exclu |
$projet_a_exclure = array() ; |
if (count($this->_projet_exclu)) { |
arsort($this->_projet_exclu) ; |
527,9 → 526,16 |
if ($projetNonParticipantListe[$i]->getId() == $valeur) array_push ($projet_a_exclure, $i);} |
} |
} |
foreach ($projet_a_exclure as $valeur) unset ($projetNonParticipantListe[$valeur]) ; |
|
|
if (PROJET_UTILISE_TYPE && $this->_type != '') { |
for ($i = 0; $i < count($projetNonParticipantListe); $i++) { |
if ($projetNonParticipantListe[$i]->getType() != $this->_type) array_push ($projet_a_exclure, $i) ; |
} |
} |
|
foreach ($projet_a_exclure as $valeur) { |
unset ($projetNonParticipantListe[$valeur]) ; |
} |
|
$HTML_projetNonParticipantListe = new HTML_listeProjet(true) ; |
$entete_liste = array (PROJET_LISTE) ; |
array_push ($entete_liste, PROJET_S_INSCRIRE) ; |
548,13 → 554,6 |
array_push ($ligne_projet, '<a href="'.$this->_url->getURL().'">'.PROJET_S_INSCRIRE.'</a>') ; |
|
$this->_url->removeQueryString(PROJET_VARIABLE_ACTION); |
/* |
if ($participant->isAdministrateur($this->_auth->getAuthData(PROJET_CHAMPS_ID))) { |
$this->_url->addQueryString (PROJET_VARIABLE_ACTION, PROJET_SUPPRESSION_PROJET) ; |
array_push ($ligne_projet, '<a href="'.$this->_url->getURL().'" onclick="javascript:return confirm(\''.PROJET_DESTRUCTION_ALERTE.'\');">'. |
PROJET_FICHIER_SUPPRIMER.'</a>'."\n") ; |
} |
*/ |
array_push ($liste_projet, $ligne_projet) ; |
} |
$this->_url->removeQueryString(PROJET_VARIABLE_ACTION) ; |
1212,7 → 1211,6 |
$author->listdomain = $info_liste->getDomaine() ; |
$author->forcehref = $this->_url->getURL() ; |
$author->display($liste->actionargs[0]); |
break; |
break ; |
} |
$sortie_liste = ob_get_contents() ; |