Subversion Repositories Applications.bazar

Rev

Rev 45 | Rev 54 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 45 Rev 51
1
 
-
 
2
<?php
1
<?php
3
/*vim: set expandtab tabstop=4 shiftwidth=4: */ 
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */ 
4
// +------------------------------------------------------------------------------------------------------+
3
// +------------------------------------------------------------------------------------------------------+
5
// | PHP version 4.1                                                                                      |
4
// | PHP version 4.1                                                                                      |
6
// +------------------------------------------------------------------------------------------------------+
5
// +------------------------------------------------------------------------------------------------------+
7
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
8
// +------------------------------------------------------------------------------------------------------+
7
// +------------------------------------------------------------------------------------------------------+
9
// | This library is free software; you can redistribute it and/or                                        |
8
// | This library is free software; you can redistribute it and/or                                        |
10
// | modify it under the terms of the GNU Lesser General Public                                           |
9
// | modify it under the terms of the GNU Lesser General Public                                           |
11
// | License as published by the Free Software Foundation; either                                         |
10
// | License as published by the Free Software Foundation; either                                         |
12
// | version 2.1 of the License, or (at your option) any later version.                                   |
11
// | version 2.1 of the License, or (at your option) any later version.                                   |
13
// |                                                                                                      |
12
// |                                                                                                      |
14
// | This library is distributed in the hope that it will be useful,                                      |
13
// | This library is distributed in the hope that it will be useful,                                      |
15
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
14
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
16
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
15
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
17
// | Lesser General Public License for more details.                                                      |
16
// | Lesser General Public License for more details.                                                      |
18
// |                                                                                                      |
17
// |                                                                                                      |
19
// | You should have received a copy of the GNU Lesser General Public                                     |
18
// | You should have received a copy of the GNU Lesser General Public                                     |
20
// | 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                                  |
21
// | 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                            |
22
// +------------------------------------------------------------------------------------------------------+
21
// +------------------------------------------------------------------------------------------------------+
23
// CVS : $Id: bazar.php,v 1.12 2005-11-07 17:05:46 florian Exp $
22
// CVS : $Id: bazar.php,v 1.13 2005-11-14 16:04:54 florian Exp $
24
/**
23
/**
25
* 
24
* 
26
*@package bazar
25
*@package bazar
27
//Auteur original :
26
//Auteur original :
28
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
27
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
29
*@author        Florian Schmitt <florian@ecole-et-nature.org>
28
*@author        Florian Schmitt <florian@ecole-et-nature.org>
30
//Autres auteurs :
29
//Autres auteurs :
31
*@copyright     Tela-Botanica 2000-2004
30
*@copyright     Tela-Botanica 2000-2004
32
*@version       $Revision: 1.12 $ $Date: 2005-11-07 17:05:46 $
31
*@version       $Revision: 1.13 $ $Date: 2005-11-14 16:04:54 $
33
// +------------------------------------------------------------------------------------------------------+
32
// +------------------------------------------------------------------------------------------------------+
34
*/
33
*/
35
 
34
 
36
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
37
// |                             LES CONSTANTES DES ACTIONS DE BAZAR                                      |
36
// |                             LES CONSTANTES DES ACTIONS DE BAZAR                                      |
38
// +------------------------------------------------------------------------------------------------------+
37
// +------------------------------------------------------------------------------------------------------+
39
 
38
 
40
define ('BAZ_VOIR_VOS_ANNONCES', 0);
39
define ('BAZ_VOIR_VOS_ANNONCES', 0);
41
define ('BAZ_VOIR_TOUTES_ANNONCES', 1) ;
40
define ('BAZ_VOIR_TOUTES_ANNONCES', 1) ;
42
define ('BAZ_RECHERCHER_ANNONCE', 2) ;
41
define ('BAZ_RECHERCHER_ANNONCE', 2) ;
43
define ('BAZ_DEPOSER_ANNONCE', 3) ;
42
define ('BAZ_DEPOSER_ANNONCE', 3) ;
44
define ('BAZ_ANNONCES_A_VALIDER', 4) ;
43
define ('BAZ_ANNONCES_A_VALIDER', 4) ;
45
define ('BAZ_GERER_DROITS', 5) ;
44
define ('BAZ_GERER_DROITS', 5) ;
46
define ('BAZ_ADMINISTRER_ANNONCES', 6) ;
45
define ('BAZ_ADMINISTRER_ANNONCES', 6) ;
47
define ('BAZ_MODIFIER_FICHE', 7) ;
46
define ('BAZ_MODIFIER_FICHE', 7) ;
48
if (!defined('BAZ_VOIR_FICHE')) define ('BAZ_VOIR_FICHE', 8) ;
47
if (!defined('BAZ_VOIR_FICHE')) define ('BAZ_VOIR_FICHE', 8) ;
49
define ('BAZ_SUPPRIMER_FICHE', 9) ;
48
define ('BAZ_SUPPRIMER_FICHE', 9) ;
50
define ('BAZ_ACTION_NOUVEAU', 10) ;
49
define ('BAZ_ACTION_NOUVEAU', 10) ;
51
define ('BAZ_ACTION_NOUVEAU_V', 11) ;
50
define ('BAZ_ACTION_NOUVEAU_V', 11) ;
52
define ('BAZ_ACTION_MODIFIER', 12) ;
51
define ('BAZ_ACTION_MODIFIER', 12) ;
53
define ('BAZ_ACTION_MODIFIER_V', 13) ;
52
define ('BAZ_ACTION_MODIFIER_V', 13) ;
54
define ('BAZ_ACTION_SUPPRESSION', 14) ;
53
define ('BAZ_ACTION_SUPPRESSION', 14) ;
55
define ('BAZ_ACTION_PUBLIER', 15) ;
54
define ('BAZ_ACTION_PUBLIER', 15) ;
56
define ('BAZ_ACTION_PAS_PUBLIER', 16) ;
55
define ('BAZ_ACTION_PAS_PUBLIER', 16) ;
57
define ('BAZ_S_INSCRIRE', 17);
56
define ('BAZ_S_INSCRIRE', 17);
58
define ('BAZ_VOIR_FLUX_RSS', 18);
57
define ('BAZ_VOIR_FLUX_RSS', 18);
59
 
58
 
60
 
59
 
61
// +------------------------------------------------------------------------------------------------------+
60
// +------------------------------------------------------------------------------------------------------+
62
// |                                            ENTETE du PROGRAMME                                       |
61
// |                                            ENTETE du PROGRAMME                                       |
63
// +------------------------------------------------------------------------------------------------------+
62
// +------------------------------------------------------------------------------------------------------+
64
 
63
 
65
error_reporting(E_ALL);
64
error_reporting(E_ALL);
66
include_once 'DB.php' ;
65
include_once 'DB.php' ;
67
include_once 'Auth.php' ;
66
include_once 'Auth.php' ;
68
include_once 'configuration/baz_config.inc.php'; //fichier de configuration de Bazar
67
include_once 'configuration/baz_config.inc.php'; //fichier de configuration de Bazar
69
include_once 'bibliotheque/bazar.fonct.php'; //fichier des fonctions de Bazar
68
include_once 'bibliotheque/bazar.fonct.php'; //fichier des fonctions de Bazar
70
 
69
 
71
if (defined('PAP_VERSION')) { //si on est dans Papyrus
70
if (defined('PAP_VERSION')) { //si on est dans Papyrus
72
	GEN_stockerStyleExterne( 'bazar_interne', 'client/bazar/bazar.interne.css');
71
	GEN_stockerStyleExterne( 'bazar_interne', 'client/bazar/bazar.interne.css');
73
}
72
}
74
 
73
 
75
// +------------------------------------------------------------------------------------------------------+
74
// +------------------------------------------------------------------------------------------------------+
76
// |                                           LISTE de FONCTIONS                                         |
75
// |                                           LISTE de FONCTIONS                                         |
77
// +------------------------------------------------------------------------------------------------------+
76
// +------------------------------------------------------------------------------------------------------+
78
 
77
 
79
function afficherContenuCorps() {
78
function afficherContenuCorps() {
80
	
79
	
81
	$GLOBALS['id_user']=$GLOBALS['AUTH']->getAuthData(BAZ_CHAMPS_ID);
80
	$GLOBALS['id_user']=$GLOBALS['AUTH']->getAuthData(BAZ_CHAMPS_ID);
82
	
81
	
83
	$res = '';
82
	$res = '';
84
	//---------------l'entête de l'appli-----------
83
	//---------------l'entête de l'appli-----------
85
	$res.='<div id="BAZ_hautdepage">'."\n";
84
	$res.='<div id="BAZ_hautdepage">'."\n";
86
	$res.='<h1>'.$GLOBALS['_GEN_commun']['info_menu']->gm_titre.'</h1>'."\n";
85
	$res.='<h1>'.$GLOBALS['_GEN_commun']['info_menu']->gm_titre.'</h1>'."\n";
87
	$res.='</div>'."\n";
86
	$res.='</div>'."\n";
88
	
87
	
89
	//---------------le menu de l'appli-----------
88
	//---------------le menu de l'appli-----------
90
	$res.='<div id="BAZ_menu">'."\n";
89
	$res.='<div id="BAZ_menu">'."\n";
91
	$res .='<ul>'."\n";
90
	$res .='<ul>'."\n";
92
	$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_VOIR_TOUTES_ANNONCES);
91
	$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_VOIR_TOUTES_ANNONCES);
93
	$GLOBALS['_BAZAR_']['url']->addQueryString('nature', 'toutes');
92
	$GLOBALS['_BAZAR_']['url']->addQueryString('nature', 'toutes');
94
	//partie consultation d'annonces
93
	//partie consultation d'annonces
95
	$res .= '<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_CONSULTER.'</a>'."\n".'</li>'."\n";
94
	$res .= '<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_CONSULTER.'</a>'."\n".'</li>'."\n";
96
	$GLOBALS['_BAZAR_']['url']->removeQueryString('nature');
95
	$GLOBALS['_BAZAR_']['url']->removeQueryString('nature');
97
 
96
 
98
	//partie abonnement aux annonces
97
	//partie abonnement aux annonces
99
	$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_S_INSCRIRE);
98
	$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_S_INSCRIRE);
100
	$res .= '<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_S_ABONNER.'</a></li>'."\n" ;
99
	$res .= '<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_S_ABONNER.'</a></li>'."\n" ;
101
	$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
100
	$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
102
		
101
		
103
	//partie saisie d'annonces
102
	//partie saisie d'annonces
104
	$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_DEPOSER_ANNONCE);
103
	$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_DEPOSER_ANNONCE);
105
	$res .= '<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_SAISIR.'</a>'."\n".'<ul>'."\n";
104
	$res .= '<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_SAISIR.'</a>'."\n".'<ul>'."\n";
106
	$res .= '<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_DEPOSE_UNE_NOUVELLE_ANNONCE.'</a></li>'."\n" ;
105
	$res .= '<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_DEPOSE_UNE_NOUVELLE_ANNONCE.'</a></li>'."\n" ;
107
	$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
106
	$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
108
 
107
 
109
	//annonces propres
108
	//annonces propres
110
	$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_VOIR_VOS_ANNONCES);
109
	$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_VOIR_VOS_ANNONCES);
111
	$res .='<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_VOS_ANNONCES.'</a></li>'."\n";
110
	$res .='<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_VOS_ANNONCES.'</a></li>'."\n";
112
	$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
111
	$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
113
	$res .='</ul></li>'."\n";
112
	$res .='</ul></li>'."\n";
114
		
113
		
115
	//choix des administrateurs	
114
	//choix des administrateurs	
116
	$est_admin=0;
115
	$est_admin=0;
117
	if ($GLOBALS['AUTH']->getAuth()) {
116
	if ($GLOBALS['AUTH']->getAuth()) {
118
		$requete='SELECT bn_id_nature FROM bazar_nature';
117
		$requete='SELECT bn_id_nature FROM bazar_nature';
119
		$resultat = $GLOBALS['_BAZAR_']['db']->query($requete) ;
118
		$resultat = $GLOBALS['_BAZAR_']['db']->query($requete) ;
120
		if (DB::isError($resultat)) {
119
		if (DB::isError($resultat)) {
121
			die ($resultat->getMessage().$resultat->getDebugInfo()) ;
120
			die ($resultat->getMessage().$resultat->getDebugInfo()) ;
122
		}
121
		}
123
		while ($ligne = $resultat->fetchRow(DB_FETCHMODE_ASSOC)) {
122
		while ($ligne = $resultat->fetchRow(DB_FETCHMODE_ASSOC)) {
124
			if ((niveau_droit($ligne['bn_id_nature'],$GLOBALS['AUTH']->getAuthData(BAZ_CHAMPS_ID)))=='administrateur') {
123
			if ((niveau_droit($ligne['bn_id_nature'],$GLOBALS['AUTH']->getAuthData(BAZ_CHAMPS_ID)))=='administrateur') {
125
				$est_admin=1;
124
				$est_admin=1;
126
		    }
125
		    }
127
		}
126
		}
128
		if (($est_admin)or(niveau_droit($id_nature_offre='0',$GLOBALS['AUTH']->getAuthData(BAZ_CHAMPS_ID))=='superadministrateur')) {
127
		if (($est_admin)or(niveau_droit($id_nature_offre='0',$GLOBALS['AUTH']->getAuthData(BAZ_CHAMPS_ID))=='superadministrateur')) {
129
		//partie administrer
128
		//partie administrer
130
		$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_ANNONCES_A_VALIDER);
129
		$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_ANNONCES_A_VALIDER);
131
		$res .= '<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_ADMINISTRER.'</a><ul>'."\n";
130
		$res .= '<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_ADMINISTRER.'</a><ul>'."\n";
132
		$res .= '<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_ANNONCES_A_ADMINISTRER.'</a></li>'."\n" ;
131
		$res .= '<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_ANNONCES_A_ADMINISTRER.'</a></li>'."\n" ;
133
		$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
132
		$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
134
		
133
		
135
		if (niveau_droit($id_nature_offre='0',$GLOBALS['AUTH']->getAuthData(BAZ_CHAMPS_ID))=='superadministrateur') {
134
		if (niveau_droit($id_nature_offre='0',$GLOBALS['AUTH']->getAuthData(BAZ_CHAMPS_ID))=='superadministrateur') {
136
			$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_GERER_DROITS);
135
			$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_GERER_DROITS);
137
			$res .= '<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_GESTION_DES_DROITS.'</a></li>'."\n" ;
136
			$res .= '<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_GESTION_DES_DROITS.'</a></li>'."\n" ;
138
			$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
137
			$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
139
			
138
			
140
			$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_ADMINISTRER_ANNONCES);
139
			$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_ADMINISTRER_ANNONCES);
141
			$res .= '<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_ADMIN_ANNONCES.'</a></li>'."\n" ;
140
			$res .= '<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_ADMIN_ANNONCES.'</a></li>'."\n" ;
142
			$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
141
			$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
143
		}
142
		}
144
		$res .= '</ul></li>'."\n";
143
		$res .= '</ul></li>'."\n";
145
		}
144
		}
146
	}	
145
	}	
147
	$res.= '</ul>'."\n";
146
	$res.= '</ul>'."\n";
148
	$res.='</div>'."\n";
147
	$res.='</div>'."\n";
149
	
148
	
150
	//le corps de l'appli
149
	//le corps de l'appli
151
	$res.='<div id="BAZ_corps">'."\n";
150
	$res.='<div id="BAZ_corps">'."\n";
152
	if (isset($_GET['action'])) {
151
	if (isset($_GET['action'])) {
153
		switch ($_GET['action']) {
152
		switch ($_GET['action']) {
154
			case BAZ_VOIR_VOS_ANNONCES : $res .= mes_fiches(); break;
153
			case BAZ_VOIR_VOS_ANNONCES : $res .= mes_fiches(); break;
155
			case BAZ_VOIR_TOUTES_ANNONCES : $res .= baz_liste($_REQUEST['nature'],'',''); break;
154
			case BAZ_VOIR_TOUTES_ANNONCES : $res .= baz_liste($_REQUEST['nature'],'',''); break;
156
			case BAZ_RECHERCHER_ANNONCE : $res .= baz_rechercher(); break;
155
			case BAZ_RECHERCHER_ANNONCE : $res .= baz_rechercher(); break;
157
			case BAZ_DEPOSER_ANNONCE : $res .= baz_formulaire(BAZ_DEPOSER_ANNONCE); break;
156
			case BAZ_DEPOSER_ANNONCE : $res .= baz_formulaire(BAZ_DEPOSER_ANNONCE); break;
158
			case BAZ_ANNONCES_A_VALIDER : $res .= fiches_a_valider(); break;
157
			case BAZ_ANNONCES_A_VALIDER : $res .= fiches_a_valider(); break;
159
			case BAZ_ADMINISTRER_ANNONCES : $res .= baz_administrer_annonces(); break;
158
			case BAZ_ADMINISTRER_ANNONCES : $res .= baz_administrer_annonces(); break;
160
			case BAZ_MODIFIER_FICHE : $res .= baz_formulaire(BAZ_ACTION_MODIFIER); break;
159
			case BAZ_MODIFIER_FICHE : $res .= baz_formulaire(BAZ_ACTION_MODIFIER); break;
161
			case BAZ_SUPPRIMER_FICHE : $res .= baz_suppression().baz_liste('',$GLOBALS['id_user'],''); break;
160
			case BAZ_SUPPRIMER_FICHE : $res .= baz_suppression().baz_liste('',$GLOBALS['id_user'],''); break;
162
			case BAZ_VOIR_FICHE : $res .= baz_voir_fiche(1); break;
161
			case BAZ_VOIR_FICHE : $res .= baz_voir_fiche(1); break;
163
			case BAZ_ACTION_NOUVEAU : $res .= baz_formulaire(BAZ_ACTION_NOUVEAU); break;
162
			case BAZ_ACTION_NOUVEAU : $res .= baz_formulaire(BAZ_ACTION_NOUVEAU); break;
164
			case BAZ_ACTION_NOUVEAU_V : $res .= baz_formulaire().mes_fiches(); break;
163
			case BAZ_ACTION_NOUVEAU_V : $res .= baz_formulaire().mes_fiches(); break;
165
			case BAZ_ACTION_MODIFIER : $res .= baz_formulaire(BAZ_ACTION_MODIFIER); break;
164
			case BAZ_ACTION_MODIFIER : $res .= baz_formulaire(BAZ_ACTION_MODIFIER); break;
166
			case BAZ_ACTION_MODIFIER_V : $res .= baz_formulaire(BAZ_ACTION_MODIFIER_V).mes_fiches(); break;
165
			case BAZ_ACTION_MODIFIER_V : $res .= baz_formulaire(BAZ_ACTION_MODIFIER_V).mes_fiches(); break;
167
			case BAZ_ACTION_SUPPRESSION : $res .= baz_suppression().mes_fiches(); break;
166
			case BAZ_ACTION_SUPPRESSION : $res .= baz_suppression().mes_fiches(); break;
168
			case BAZ_ACTION_PUBLIER : publier_fiche(1) ;$res .= fiches_a_valider(); break;
167
			case BAZ_ACTION_PUBLIER : publier_fiche(1) ;$res .= fiches_a_valider(); break;
169
			case BAZ_ACTION_PAS_PUBLIER : publier_fiche(0) ;$res .= fiches_a_valider(); break;
168
			case BAZ_ACTION_PAS_PUBLIER : publier_fiche(0) ;$res .= fiches_a_valider(); break;
170
			case BAZ_GERER_DROITS : $res .= baz_formulaire(BAZ_GERER_DROITS); break;
169
			case BAZ_GERER_DROITS : $res .= baz_formulaire(BAZ_GERER_DROITS); break;
171
			case BAZ_S_INSCRIRE : $res .= baz_s_inscrire(); break;
170
			case BAZ_S_INSCRIRE : $res .= baz_s_inscrire(); break;
172
			case BAZ_VOIR_FLUX_RSS : header('Content-type: text/xml; charset=ISO-8859-1');include("bazarRSS.php");exit(0);break;
171
			case BAZ_VOIR_FLUX_RSS : header('Content-type: text/xml; charset=ISO-8859-1');include("bazarRSS.php");exit(0);break;
173
			default : $res .= accueil() ;
172
			default : $res .= accueil() ;
174
		}
173
		}
175
	}
174
	}
176
	else {
175
	else {
177
		$res .= baz_liste('toutes','','');
176
		$res .= baz_liste('toutes','','');
178
	}
177
	}
179
	$res.='</div>'."\n";
178
	$res.='</div>'."\n";
180
	return $res ;
179
	return $res ;
181
}
180
}
182
 
181
 
183
 
182
 
184
/* +--Fin du code ----------------------------------------------------------------------------------------+
183
/* +--Fin du code ----------------------------------------------------------------------------------------+
185
*
184
*
186
* $Log: not supported by cvs2svn $
185
* $Log: not supported by cvs2svn $
-
 
186
* Revision 1.12  2005/11/07 17:05:46  florian
-
 
187
* amélioration validation conditions de saisie, ajout des règles spécifiques de saisie des formulaires
-
 
188
*
187
* Revision 1.11  2005/10/21 16:15:04  florian
189
* Revision 1.11  2005/10/21 16:15:04  florian
188
* mise a jour appropriation
190
* mise a jour appropriation
189
*
191
*
190
* Revision 1.10  2005/10/12 17:20:33  ddelon
192
* Revision 1.10  2005/10/12 17:20:33  ddelon
191
* Reorganisation calendrier + applette
193
* Reorganisation calendrier + applette
192
*
194
*
193
* Revision 1.9  2005/10/12 13:35:07  florian
195
* Revision 1.9  2005/10/12 13:35:07  florian
194
* amélioration de l'interface de bazar, de manière a simplifier les consultations, et à harmoniser par rapport aux Ressources
196
* amélioration de l'interface de bazar, de manière a simplifier les consultations, et à harmoniser par rapport aux Ressources
195
*
197
*
196
* Revision 1.8  2005/09/30 13:00:05  ddelon
198
* Revision 1.8  2005/09/30 13:00:05  ddelon
197
* Fiche bazar generique
199
* Fiche bazar generique
198
*
200
*
199
* Revision 1.7  2005/09/30 12:34:44  ddelon
201
* Revision 1.7  2005/09/30 12:34:44  ddelon
200
* petite modification pour integration bazar dans papyrus
202
* petite modification pour integration bazar dans papyrus
201
*
203
*
202
* Revision 1.6  2005/09/30 12:22:54  florian
204
* Revision 1.6  2005/09/30 12:22:54  florian
203
* Ajouts commentaires pour fiche, modifications graphiques, maj SQL
205
* Ajouts commentaires pour fiche, modifications graphiques, maj SQL
204
*
206
*
205
* Revision 1.4  2005/07/21 19:03:12  florian
207
* Revision 1.4  2005/07/21 19:03:12  florian
206
* nouveautés bazar: templates fiches, correction de bugs, ...
208
* nouveautés bazar: templates fiches, correction de bugs, ...
207
*
209
*
208
* Revision 1.2  2005/02/22 15:33:32  florian
210
* Revision 1.2  2005/02/22 15:33:32  florian
209
* integration dans Papyrus
211
* integration dans Papyrus
210
*
212
*
211
* Revision 1.1.1.1  2005/02/17 18:05:11  florian
213
* Revision 1.1.1.1  2005/02/17 18:05:11  florian
212
* Import initial de Bazar
214
* Import initial de Bazar
213
*
215
*
214
* Revision 1.1.1.1  2005/02/17 11:09:50  florian
216
* Revision 1.1.1.1  2005/02/17 11:09:50  florian
215
* Import initial
217
* Import initial
216
*
218
*
217
* Revision 1.1.1.1  2005/02/16 18:06:35  florian
219
* Revision 1.1.1.1  2005/02/16 18:06:35  florian
218
* import de la nouvelle version
220
* import de la nouvelle version
219
*
221
*
220
* Revision 1.3  2004/07/05 15:10:14  florian
222
* Revision 1.3  2004/07/05 15:10:14  florian
221
* changement interface de saisie
223
* changement interface de saisie
222
*
224
*
223
* Revision 1.2  2004/07/01 10:13:41  florian
225
* Revision 1.2  2004/07/01 10:13:41  florian
224
* modif Florian
226
* modif Florian
225
*
227
*
226
* Revision 1.1  2004/06/23 09:58:32  alex
228
* Revision 1.1  2004/06/23 09:58:32  alex
227
* version initiale
229
* version initiale
228
*
230
*
229
* Revision 1.1  2004/06/18 09:00:07  alex
231
* Revision 1.1  2004/06/18 09:00:07  alex
230
* version initiale
232
* version initiale
231
*
233
*
232
*
234
*
233
* +-- Fin du code ----------------------------------------------------------------------------------------+
235
* +-- Fin du code ----------------------------------------------------------------------------------------+
234
*/
236
*/
235
?>
237
?>