Line 17... |
Line 17... |
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.50 2007-12-04 09:07:21 alexandre_tb Exp $
|
22 |
// CVS : $Id: bazar.php,v 1.51 2008-02-08 08:44:59 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.50 $ $Date: 2007-12-04 09:07:21 $
|
31 |
*@version $Revision: 1.51 $ $Date: 2008-02-08 08:44:59 $
|
32 |
// +------------------------------------------------------------------------------------------------------+
|
32 |
// +------------------------------------------------------------------------------------------------------+
|
33 |
*/
|
33 |
*/
|
Line 34... |
Line 34... |
34 |
|
34 |
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
36 |
// | ENTETE du PROGRAMME |
|
36 |
// | ENTETE du PROGRAMME |
|
Line 37... |
Line 37... |
37 |
// +------------------------------------------------------------------------------------------------------+
|
37 |
// +------------------------------------------------------------------------------------------------------+
|
38 |
|
38 |
|
39 |
error_reporting(E_ALL);
|
39 |
//error_reporting(E_ALL);
|
40 |
require_once PAP_CHEMIN_API_PEAR.'DB.php' ;
|
40 |
require_once PAP_CHEMIN_API_PEAR.'DB.php' ;
|
41 |
require_once PAP_CHEMIN_API_PEAR.'Auth.php' ;
|
41 |
require_once PAP_CHEMIN_API_PEAR.'Auth.php' ;
|
42 |
require_once 'configuration/baz_config.inc.php'; //fichier de configuration de Bazar
|
42 |
require_once 'configuration/baz_config.inc.php'; //fichier de configuration de Bazar
|
Line 221... |
Line 221... |
221 |
$res.='<h1 id="titre_bazar">'.$GLOBALS['_GEN_commun']['info_menu']->gm_titre.'</h1>'."\n";
|
221 |
$res.='<h1 id="titre_bazar">'.$GLOBALS['_GEN_commun']['info_menu']->gm_titre.'</h1>'."\n";
|
Line 222... |
Line 222... |
222 |
|
222 |
|
223 |
// La resolution des actions ci-dessous AVANT l afichage des vues afin
|
223 |
// La resolution des actions ci-dessous AVANT l afichage des vues afin
|
Line 224... |
Line 224... |
224 |
// d afficher des vues correctes
|
224 |
// d afficher des vues correctes
|
225 |
|
225 |
|
226 |
if (isset($_GET['action'])) {
|
226 |
if (isset($_GET[BAZ_VARIABLE_ACTION])) {
|
227 |
if (($_GET['action']!=BAZ_ACTION_NOUVEAU_V)and($_GET['action']!=BAZ_ACTION_MODIFIER_V)) unset($_SESSION['formulaire_annonce_valide']);
|
227 |
if (($_GET[BAZ_VARIABLE_ACTION]!=BAZ_ACTION_NOUVEAU_V)and($_GET[BAZ_VARIABLE_ACTION]!=BAZ_ACTION_MODIFIER_V)) unset($_SESSION['formulaire_annonce_valide']);
|
228 |
switch ($_GET['action']) {
|
228 |
switch ($_GET[BAZ_VARIABLE_ACTION]) {
|
229 |
case BAZ_ACTION_VOIR_VOS_ANNONCES : $res .= mes_fiches(); break;
|
229 |
case BAZ_ACTION_VOIR_VOS_ANNONCES : $res .= mes_fiches(); break;
|
230 |
case BAZ_ANNONCES_A_VALIDER : $res .= fiches_a_valider(); break;
|
230 |
case BAZ_ANNONCES_A_VALIDER : $res .= fiches_a_valider(); break;
|
231 |
case BAZ_ADMINISTRER_ANNONCES : $res .= baz_administrer_annonces(); break;
|
231 |
case BAZ_ADMINISTRER_ANNONCES : $res .= baz_administrer_annonces(); break;
|
Line 241... |
Line 241... |
241 |
|
241 |
|
242 |
}
|
242 |
}
|
243 |
if (isset ($_GET[BAZ_VARIABLE_VOIR])) {
|
243 |
if (isset ($_GET[BAZ_VARIABLE_VOIR])) {
|
244 |
switch ($_GET[BAZ_VARIABLE_VOIR]) {
|
244 |
switch ($_GET[BAZ_VARIABLE_VOIR]) {
|
245 |
case BAZ_VOIR_CONSULTER:
|
245 |
case BAZ_VOIR_CONSULTER:
|
246 |
if (isset ($_GET['action']) && $_GET['action'] != BAZ_VOIR_TOUTES_ANNONCES) {
|
246 |
if (isset ($_GET[BAZ_VARIABLE_ACTION]) && $_GET[BAZ_VARIABLE_ACTION] != BAZ_VOIR_TOUTES_ANNONCES) {
|
247 |
$res .= baz_formulaire($_GET['action']) ;
|
247 |
$res .= baz_formulaire($_GET[BAZ_VARIABLE_ACTION]) ;
|
248 |
if ($_GET['action'] == BAZ_ACTION_MODIFIER_V) $res .= baz_voir_fiche(1);
|
248 |
if ($_GET[BAZ_VARIABLE_ACTION] == BAZ_ACTION_MODIFIER_V) $res .= baz_voir_fiche(1);
|
249 |
} else $res .= baz_liste($GLOBALS['_BAZAR_']['id_typeannonce']);
|
249 |
} else $res .= baz_liste($GLOBALS['_BAZAR_']['id_typeannonce']);
|
250 |
break;
|
250 |
break;
|
251 |
case BAZ_VOIR_MES_FICHES :
|
251 |
case BAZ_VOIR_MES_FICHES :
|
252 |
if (isset ($_GET['action'])) $res .= baz_formulaire($_GET['action']) ; else $res .= mes_fiches();
|
252 |
if (isset ($_GET[BAZ_VARIABLE_ACTION])) $res .= baz_formulaire($_GET[BAZ_VARIABLE_ACTION]) ; else $res .= mes_fiches();
|
253 |
break;
|
253 |
break;
|
254 |
case BAZ_VOIR_S_ABONNER : $res .= baz_s_inscrire();
|
254 |
case BAZ_VOIR_S_ABONNER : $res .= baz_s_inscrire();
|
255 |
break;
|
255 |
break;
|
256 |
case BAZ_VOIR_SAISIR :
|
256 |
case BAZ_VOIR_SAISIR :
|
257 |
if (isset ($_GET['action'])) $res .= baz_formulaire($_GET['action']) ; else $res .= baz_formulaire(BAZ_DEPOSER_ANNONCE);
|
257 |
if (isset ($_GET[BAZ_VARIABLE_ACTION])) $res .= baz_formulaire($_GET[BAZ_VARIABLE_ACTION]) ; else $res .= baz_formulaire(BAZ_DEPOSER_ANNONCE);
|
258 |
break;
|
258 |
break;
|
259 |
case BAZ_VOIR_ADMIN:
|
259 |
case BAZ_VOIR_ADMIN:
|
260 |
if (isset($_GET['action'])) $res .= baz_formulaire($_GET['action']) ; else $res .= fiches_a_valider();
|
260 |
if (isset($_GET[BAZ_VARIABLE_ACTION])) $res .= baz_formulaire($_GET[BAZ_VARIABLE_ACTION]) ; else $res .= fiches_a_valider();
|
261 |
break;
|
261 |
break;
|
262 |
case BAZ_VOIR_GESTION_DROITS: $res .= baz_gestion_droits();
|
262 |
case BAZ_VOIR_GESTION_DROITS: $res .= baz_gestion_droits();
|
263 |
break;
|
263 |
break;
|
264 |
default :
|
264 |
default :
|
Line 270... |
Line 270... |
270 |
|
270 |
|
271 |
|
271 |
|
272 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
272 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
- |
|
273 |
*
|
- |
|
274 |
* $Log: not supported by cvs2svn $
|
- |
|
275 |
* Revision 1.50 2007-12-04 09:07:21 alexandre_tb
|
273 |
*
|
276 |
* Fusion avec la livraison AHA : 4 déc 2007
|
274 |
* $Log: not supported by cvs2svn $
|
277 |
*
|
275 |
* Revision 1.49 2007-10-24 13:26:02 alexandre_tb
|
278 |
* Revision 1.49 2007-10-24 13:26:02 alexandre_tb
|
276 |
* bug : double saisie d url
|
279 |
* bug : double saisie d url
|
277 |
*
|
280 |
*
|