19,7 → 19,7 |
// | License along with this library; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: liste.php,v 1.3 2006-09-18 09:56:28 alexandre_tb Exp $ |
// CVS : $Id: liste.php,v 1.3.2.1 2007-04-11 14:25:05 alexandre_tb Exp $ |
/** |
* Application projet |
* |
31,7 → 31,7 |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.3 $ |
*@version $Revision: 1.3.2.1 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
|
41,6 → 41,13 |
|
$titre = '<h1>'.PROJET_LISTE.'</h1>'."\n" ; |
|
if (PROJET_UTILISE_TYPE && $this->_type != '') { |
$projetListe = projet::getProjetDuType($this->_type, $this->_db) ; |
} else { |
// Un tableau de tous les projets dans $projetListe |
$projetListe = projet::getTousLesProjets($this->_db, $this->_projet_exclu) ; |
} |
|
// On inclue un fichier local |
if (file_exists(PROJET_CHEMIN_APPLI.'langues/pro_langues_fr.local.inc.php')) |
include_once PROJET_CHEMIN_APPLI.'langues/pro_langues_fr.local.inc.php' ; |
60,7 → 67,7 |
} |
|
if ($auth){ |
|
include_once PROJET_CHEMIN_CLASSES.'inscription_liste.class.php' ; |
$utilisateur_liste = new inscription_liste($this->_db) ; |
// On teste ici s'il y a une mise à jour de statut |
if (isset($_POST['statut'])) { |
73,7 → 80,7 |
$utilisateur_liste->modifierTypeInscription($projet->_listes_associes[0],$annuaire, $_POST['statut']) ; |
} |
if (count($participant->getIdProjetsStatuts($id_u))) { |
|
include_once PROJET_CHEMIN_CLASSES.'HTML_listeProjet.class.php' ; |
$HTML_projetListe = new HTML_listeProjet(true) ; |
$entete_liste = array($auth ? PROJET_VOUS_PARTICIPEZ : PROJET_LISTE) ; |
if ($auth) array_push ($entete_liste, PROJET_SE_DESINSCRIRE, PROJET_LISTE_DE_DISCUSSION) ; |
84,6 → 91,7 |
$HTML_projetListe->construitEntete ($entete_liste) ; |
|
// On construit $tableau_resultat avec une ligne par projet contenant un tableau (titre, statut_nom, id_statut, id_projet) |
include_once PROJET_CHEMIN_CLASSES.'statut_liste.class.php' ; |
$statut_liste = new statut_liste($this->_db) ; |
$tableau_statut = $statut_liste->getTousLesStatuts() ; |
|
184,6 → 192,7 |
if ($HTML_projetNonParticipantListe->getRowCount() > 1) $res .= $HTML_projetNonParticipantListe->toHTML() ; |
} else { |
$projetNonParticipantListe = & $projetListe ; |
include_once PROJET_CHEMIN_CLASSES.'HTML_listeProjet.class.php' ; |
$HTML_projetNonParticipantListe = new HTML_listeProjet(true) ; |
$entete_liste = array (PROJET_LISTE) ; |
$HTML_projetNonParticipantListe->construitEntete($entete_liste) ; |
218,6 → 227,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.3 2006/09/18 09:56:28 alexandre_tb |
* utilisation d'un template pour l'entête de la liste des projets |
* |
* Revision 1.2 2005/11/28 16:25:23 alexandre_tb |
* nettoyage URL en sortie de programme |
* |