| Line 17... |
Line 17... |
| 17 |
// | |
|
17 |
// | |
|
| 18 |
// | You should have received a copy of the GNU General Public |
|
18 |
// | You should have received a copy of the GNU General Public |
|
| 19 |
// | License along with this library; if not, write to the Free Software |
|
19 |
// | License along with this library; if not, write to the Free Software |
|
| 20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
| 21 |
// +------------------------------------------------------------------------------------------------------+
|
21 |
// +------------------------------------------------------------------------------------------------------+
|
| 22 |
// CVS : $Id: liste.php,v 1.7 2007-06-01 13:56:13 alexandre_tb Exp $
|
22 |
// CVS : $Id: liste.php,v 1.8 2007-06-25 12:15:07 alexandre_tb Exp $
|
| 23 |
/**
|
23 |
/**
|
| 24 |
* Application projet
|
24 |
* Application projet
|
| 25 |
*
|
25 |
*
|
| 26 |
* Fichier de présentation de la liste des projets
|
26 |
* Fichier de présentation de la liste des projets
|
| 27 |
*
|
27 |
*
|
| Line 29... |
Line 29... |
| 29 |
//Auteur original :
|
29 |
//Auteur original :
|
| 30 |
*@author Alexandre Granier <alexandre@tela-botanica.org>
|
30 |
*@author Alexandre Granier <alexandre@tela-botanica.org>
|
| 31 |
//Autres auteurs :
|
31 |
//Autres auteurs :
|
| 32 |
*@author Aucun
|
32 |
*@author Aucun
|
| 33 |
*@copyright Tela-Botanica 2000-2004
|
33 |
*@copyright Tela-Botanica 2000-2004
|
| 34 |
*@version $Revision: 1.7 $
|
34 |
*@version $Revision: 1.8 $
|
| 35 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
| 36 |
*/
|
36 |
*/
|
| Line 37... |
Line 37... |
| 37 |
|
37 |
|
| 38 |
// +------------------------------------------------------------------------------------------------------+
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
| Line 49... |
Line 49... |
| 49 |
}
|
49 |
}
|
| Line 50... |
Line 50... |
| 50 |
|
50 |
|
| 51 |
// On inclue un fichier local
|
51 |
// On inclue un fichier local
|
| 52 |
if (file_exists(PROJET_CHEMIN_APPLI.'langues/pro_langue_'.$GLOBALS['lang'].'.local.inc.php'))
|
52 |
if (file_exists(PROJET_CHEMIN_APPLI.'langues/pro_langue_'.$GLOBALS['lang'].'.local.inc.php'))
|
| 53 |
include_once PROJET_CHEMIN_APPLI.'langues/pro_langue_'.$GLOBALS['lang'].'.local.inc.php' ;
|
53 |
include_once PROJET_CHEMIN_APPLI.'langues/pro_langue_'.$GLOBALS['lang'].'.local.inc.php' ;
|
| 54 |
// On vérifie si l'utilisateur participe à des projets
|
54 |
// On verifie si l'utilisateur participe a des projets
|
| 55 |
//echo PROJET_CHEMIN_APPLI.'langues/pro_langue_'.$GLOBALS['lang'].'.local.inc.php';
|
55 |
//echo PROJET_CHEMIN_APPLI.'langues/pro_langue_'.$GLOBALS['lang'].'.local.inc.php';
|
| Line 56... |
Line 56... |
| 56 |
// Entete de la liste, qu'on recupere dans un template
|
56 |
// Entete de la liste, qu'on recupere dans un template
|
| 57 |
|
57 |
|
| Line 67... |
Line 67... |
| 67 |
}
|
67 |
}
|
| Line 68... |
Line 68... |
| 68 |
|
68 |
|
| 69 |
if ($auth){
|
69 |
if ($auth){
|
| 70 |
include_once PROJET_CHEMIN_CLASSES.'inscription_liste.class.php' ;
|
70 |
include_once PROJET_CHEMIN_CLASSES.'inscription_liste.class.php' ;
|
| 71 |
$utilisateur_liste = new inscription_liste($this->_db) ;
|
71 |
$utilisateur_liste = new inscription_liste($this->_db) ;
|
| 72 |
// On teste ici s'il y a une mise à jour de statut
|
72 |
// On teste ici s'il y a une mise a jour de statut
|
| 73 |
if (isset($_POST['statut'])) {
|
73 |
if (isset($_POST['statut'])) {
|
| 74 |
// $_POST['statut'] et $_GET['identifiant_projet'] proviennent du formulaire voir HTML_listeProjet
|
74 |
// $_POST['statut'] et $_GET['identifiant_projet'] proviennent du formulaire voir HTML_listeProjet
|
| 75 |
include_once PROJET_CHEMIN_CLASSES.'annuaire.class.php' ;
|
75 |
include_once PROJET_CHEMIN_CLASSES.'annuaire.class.php' ;
|
| 76 |
$annuaire = new annuaire($this->_db, array('identifiant' => PROJET_CHAMPS_ID, 'mail' => PROJET_CHAMPS_MAIL, 'table' => PROJET_ANNUAIRE)) ;
|
76 |
$annuaire = new annuaire($this->_db, array('identifiant' => PROJET_CHAMPS_ID, 'mail' => PROJET_CHAMPS_MAIL, 'table' => PROJET_ANNUAIRE)) ;
|
| Line 142... |
Line 142... |
| 142 |
// Un texte pour ceux qui ne sont pas identifiés
|
142 |
// Un texte pour ceux qui ne sont pas identifiés
|
| 143 |
if (!$auth) {
|
143 |
if (!$auth) {
|
| 144 |
$res .= '<p>'.PROJET_TEXTE_NON_IDENTIFIE.'</p>'."\n" ;
|
144 |
$res .= '<p>'.PROJET_TEXTE_NON_IDENTIFIE.'</p>'."\n" ;
|
| 145 |
}
|
145 |
}
|
| Line 146... |
Line 146... |
| 146 |
|
146 |
|
| 147 |
// Maintenant la liste des projets où l'utilisateur ne participe pas.
|
147 |
// Maintenant la liste des projets ou l'utilisateur ne participe pas.
|
| 148 |
// Et si pas logué tous les projets
|
148 |
// Et si pas loggue tous les projets
|
| 149 |
if ($auth) {
|
149 |
if ($auth) {
|
| 150 |
$projetNonParticipantListe = $participant -> getProjetsNonParticipant($id_u) ;
|
150 |
$projetNonParticipantListe = $participant -> getProjetsNonParticipant($id_u) ;
|
| 151 |
// Si certain projet sont à exclure, on les exclu
|
151 |
// Si certain projet sont à exclure, on les exclu
|
| 152 |
$projet_a_exclure = array() ;
|
152 |
$projet_a_exclure = array() ;
|
| Line 225... |
Line 225... |
| 225 |
return $titre.$res ;
|
225 |
return $titre.$res ;
|
| Line 226... |
Line 226... |
| 226 |
|
226 |
|
| 227 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
227 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
| 228 |
*
|
228 |
*
|
| - |
|
229 |
* $Log: not supported by cvs2svn $
|
| - |
|
230 |
* Revision 1.7 2007-06-01 13:56:13 alexandre_tb
|
| - |
|
231 |
* ajout d un include manquant
|
| 229 |
* $Log: not supported by cvs2svn $
|
232 |
*
|
| 230 |
* Revision 1.6 2007/04/19 15:34:35 neiluj
|
233 |
* Revision 1.6 2007/04/19 15:34:35 neiluj
|
| 231 |
* préparration release (livraison) "Narmer" - v0.25
|
234 |
* préparration release (livraison) "Narmer" - v0.25
|
| 232 |
*
|
235 |
*
|
| 233 |
* Revision 1.5 2006/12/19 09:48:50 alexandre_tb
|
236 |
* Revision 1.5 2006/12/19 09:48:50 alexandre_tb
|