Subversion Repositories Applications.projet

Rev

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

Rev 77 Rev 137
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.2 2005-11-28 16:25:23 alexandre_tb Exp $
22
// CVS : $Id: liste.php,v 1.3 2006-09-18 09:56:28 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.2 $
34
*@version       $Revision: 1.3 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
Line 43... Line 43...
43
 
43
 
44
// On inclue un fichier local
44
// On inclue un fichier local
45
if (file_exists(PROJET_CHEMIN_APPLI.'langues/pro_langues_fr.local.inc.php'))
45
if (file_exists(PROJET_CHEMIN_APPLI.'langues/pro_langues_fr.local.inc.php'))
46
	include_once PROJET_CHEMIN_APPLI.'langues/pro_langues_fr.local.inc.php' ;
46
	include_once PROJET_CHEMIN_APPLI.'langues/pro_langues_fr.local.inc.php' ;
-
 
47
// On vérifie si l'utilisateur participe à des projets
-
 
48
 
-
 
49
// Entete de la liste, qu'on recupere dans un template
-
 
50
 
-
 
51
if (PROJET_UTILISE_TYPE && $this->_type != "") {
-
 
52
	include_once PROJET_CHEMIN_CLASSES.'projetTemplate.class.php' ;
-
 
53
	include_once 'HTML/Template/IT.php';
-
 
54
	$template = new projetTemplate ($this->_db) ;
-
 
55
	$chaine = $template->getTemplate(2, $GLOBALS['lang'], $this->_type);
-
 
56
	if (projetTemplate::isError ($chaine)) echo $chaine->getMessage() ;
-
 
57
	$tpl = new HTML_Template_IT() ;
-
 
58
	$tpl -> setTemplate($chaine);
-
 
59
	
-
 
60
}
47
// On vérifie si l'utilisateur participe à des projets
61
 
Line 48... Line 62...
48
if ($auth) {
62
if ($auth){
49
 
63
 
50
    $utilisateur_liste = new inscription_liste($this->_db) ;
64
    $utilisateur_liste = new inscription_liste($this->_db) ;
51
    // On teste ici s'il y a une mise à jour de statut
65
    // On teste ici s'il y a une mise à jour de statut
Line 191... Line 205...
191
		$res .= '<p>'.PROJET_TOUS_LES_PROJETS.'</p>' ;
205
		$res .= '<p>'.PROJET_TOUS_LES_PROJETS.'</p>' ;
192
		$res .= $HTML_projetNonParticipantListe->toHTML() ;
206
		$res .= $HTML_projetNonParticipantListe->toHTML() ;
193
    }
207
    }
194
}
208
}
195
// Nettoyage de l'url
209
// Nettoyage de l'url
-
 
210
 
-
 
211
if (PROJET_UTILISE_TYPE && $this->_type != '') {
-
 
212
	$tpl->setVariable('liste_projet', $res) ;
-
 
213
	$res = $tpl->get();
-
 
214
}
196
$this->_url->removeQueryString (PROJET_VARIABLE_ID_PROJET);
215
$this->_url->removeQueryString (PROJET_VARIABLE_ID_PROJET);
197
return $titre.$res ;
216
return $titre.$res ;
Line 198... Line 217...
198
 
217
 
199
/* +--Fin du code ----------------------------------------------------------------------------------------+
218
/* +--Fin du code ----------------------------------------------------------------------------------------+
200
*
219
*
-
 
220
* $Log: not supported by cvs2svn $
-
 
221
* Revision 1.2  2005/11/28 16:25:23  alexandre_tb
-
 
222
* nettoyage URL en sortie de programme
201
* $Log: not supported by cvs2svn $
223
*
202
* Revision 1.1  2005/11/25 14:47:51  alexandre_tb
224
* Revision 1.1  2005/11/25 14:47:51  alexandre_tb
203
* version initiale
225
* version initiale
Line 204... Line 226...
204
*
226
*