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.74.2.7 2008-01-29 14:35:22 alexandre_tb Exp $ |
// CVS : $Id: bazar.fonct.php,v 1.74.2.8 2008-02-01 09:56:56 alexandre_tb Exp $ |
/** |
* |
* Fonctions du module bazar |
31,7 → 31,7 |
*@author Florian Schmitt <florian@ecole-et-nature.org> |
//Autres auteurs : |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.74.2.7 $ $Date: 2008-01-29 14:35:22 $ |
*@version $Revision: 1.74.2.8 $ $Date: 2008-02-01 09:56:56 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
|
633,7 → 633,7 |
//------------------------------------------------------------------------------------------------ |
if ($mode == BAZ_ACTION_NOUVEAU) { |
$lien_formulaire->addQueryString(BAZ_VARIABLE_ACTION, BAZ_ACTION_NOUVEAU_V); |
$formtemplate->updateAttributes(array(BAZ_VARIABLE_ACTION => str_replace('&', '&', $lien_formulaire->getURL()))); |
$formtemplate->updateAttributes(array('action' => str_replace('&', '&', $lien_formulaire->getURL()))); |
// Appel du modele |
include_once BAZ_CHEMIN_APPLI.'bibliotheque/bazarTemplate.class.php'; |
$modele = new bazarTemplate($GLOBALS['_BAZAR_']['db']); |
662,7 → 662,10 |
if ($mode == BAZ_ACTION_NOUVEAU_V) { |
if ($formtemplate->validate()) { |
$formtemplate->process('baz_insertion', false) ; |
return; |
// Redirection vers mes_fiches pour eviter la revalidation du formulaire |
$GLOBALS['_BAZAR_']['url']->addQueryString (BAZ_VARIABLE_VOIR, BAZ_VOIR_MES_FICHES); |
header ('Location: '.str_replace ('&', '&', $GLOBALS['_BAZAR_']['url']->getURL())) ; |
exit(); |
} |
} |
|
674,9 → 677,9 |
$formtemplate->process('baz_mise_a_jour', false) ; |
|
// Redirection vers mes_fiches pour eviter la revalidation du formulaire |
$GLOBALS['_BAZAR_']['url']->addQueryString (BAZ_VARIABLE_ACTION, BAZ_ACTION_VOIR_VOS_ANNONCES); |
header ('Location: '.$GLOBALS['_BAZAR_']['url']->getURL()) ; |
return ; |
$GLOBALS['_BAZAR_']['url']->addQueryString (BAZ_VARIABLE_VOIR, BAZ_VOIR_MES_FICHES); |
header ('Location: '.str_replace ('&', '&', $GLOBALS['_BAZAR_']['url']->getURL())) ; |
exit(); |
} |
} |
} |
947,10 → 950,7 |
} |
} |
} |
|
// Redirection vers mes_fiches pour eviter la revalidation du formulaire |
$GLOBALS['_BAZAR_']['url']->addQueryString (BAZ_VARIABLE_ACTION, BAZ_ACTION_VOIR_VOS_ANNONCES); |
header ('Location: '.$GLOBALS['_BAZAR_']['url']->getURL()) ; |
|
return ; |
} |
|
1335,6 → 1335,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.74.2.7 2008-01-29 14:35:22 alexandre_tb |
* suppression de l identification pour l abonnement au fluxRSS |
* |
* Revision 1.74.2.6 2008-01-29 09:55:07 alexandre_tb |
* suppression de l identification pour l abonnement au fluxRSS |
* |