Subversion Repositories Applications.bazar

Rev

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

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