Subversion Repositories Applications.bazar

Compare Revisions

Ignore whitespace Rev 20 → Rev 21

/trunk/bibliotheque/bazar.fonct.php
19,7 → 19,7
// | License along with this library; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: bazar.fonct.php,v 1.8 2005-09-30 13:50:07 alexandre_tb Exp $
// CVS : $Id: bazar.fonct.php,v 1.9 2005-10-10 16:22:52 alexandre_tb Exp $
/**
*
* Fonctions du module bazar
30,7 → 30,7
*@author Florian Schmitt <florian@ecole-et-nature.org>
//Autres auteurs :
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.8 $ $Date: 2005-09-30 13:50:07 $
*@version $Revision: 1.9 $ $Date: 2005-10-10 16:22:52 $
// +------------------------------------------------------------------------------------------------------+
*/
 
460,7 → 460,15
function baz_formulaire($mode = 'inscription') {
//Récuperer les éventuelles variables passées en GET ou en POST
if (isset($_GET['id_fiche'])) $GLOBALS['_BAZAR_']['id_fiche']=$_GET['id_fiche'];
if (isset($_REQUEST['typeannonce'])) {$GLOBALS['_BAZAR_']['typeannonce']=$_REQUEST['typeannonce'];}
if (isset($_REQUEST['typeannonce'])) {
$GLOBALS['_BAZAR_']['typeannonce']=$_REQUEST['typeannonce'];
// Pour éviter qu'un formulaire soit revalidé si l'utilisateur
// Clique sur son bouton précédent
if ($mode == BAZ_ACTION_NOUVEAU) unset($_SESSION['formulaire_annonce_valide']) ;
echo $mode;
echo $_SESSION['formulaire_annonce_valide'] ;
}
//requete pour obtenir l'id du type d'annonce
if (isset($GLOBALS['_BAZAR_']['typeannonce'])) {
535,6 → 543,7
//------------------------------------------------------------------------------------------------
if ($mode == BAZ_ACTION_NOUVEAU) {
$res=baz_afficher_formulaire_annonce('insertion',$formtemplate);
}
//------------------------------------------------------------------------------------------------
548,8 → 557,9
//CAS DE L'INSCRIPTION D'UNE ANNONCE
//------------------------------------------------------------------------------------------------
if ($mode == 'inscription') {
if ($formtemplate->validate()) {
if ($formtemplate->validate() && !isset($_SESSION['formulaire_annonce_valide'])) {
$formtemplate->process('baz_insertion', false) ;
$_SESSION['formulaire_annonce_valide'] = 1;
return;
}
}
1343,6 → 1353,9
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.8 2005/09/30 13:50:07 alexandre_tb
* correction bug date parution ressource
*
* Revision 1.7 2005/09/30 13:15:58 ddelon
* compatibilité php5
*