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.fonct.php,v 1.15 2005-11-07 17:05:45 florian Exp $
|
22 |
// CVS : $Id: bazar.fonct.php,v 1.16 2005-11-07 17:30:36 florian Exp $
|
23 |
/**
|
23 |
/**
|
24 |
*
|
24 |
*
|
25 |
* Fonctions du module bazar
|
25 |
* Fonctions du module bazar
|
26 |
*
|
26 |
*
|
27 |
*@package bazar
|
27 |
*@package bazar
|
28 |
//Auteur original :
|
28 |
//Auteur original :
|
29 |
*@author Alexandre Granier <alexandre@tela-botanica.org>
|
29 |
*@author Alexandre Granier <alexandre@tela-botanica.org>
|
30 |
*@author Florian Schmitt <florian@ecole-et-nature.org>
|
30 |
*@author Florian Schmitt <florian@ecole-et-nature.org>
|
31 |
//Autres auteurs :
|
31 |
//Autres auteurs :
|
32 |
*@copyright Tela-Botanica 2000-2004
|
32 |
*@copyright Tela-Botanica 2000-2004
|
33 |
*@version $Revision: 1.15 $ $Date: 2005-11-07 17:05:45 $
|
33 |
*@version $Revision: 1.16 $ $Date: 2005-11-07 17:30:36 $
|
34 |
// +------------------------------------------------------------------------------------------------------+
|
34 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
*/
|
35 |
*/
|
Line 36... |
Line 36... |
36 |
|
36 |
|
37 |
// +------------------------------------------------------------------------------------------------------+
|
37 |
// +------------------------------------------------------------------------------------------------------+
|
Line 259... |
Line 259... |
259 |
|
259 |
|
260 |
//titre de la rubrique
|
260 |
//titre de la rubrique
|
261 |
$res= '<h2>'.BAZ_TITRE_SAISIE_ANNONCE.$GLOBALS['_BAZAR_']['typeannonce'].'</h2>';
|
261 |
$res= '<h2>'.BAZ_TITRE_SAISIE_ANNONCE.$GLOBALS['_BAZAR_']['typeannonce'].'</h2>';
|
262 |
//Ajout des boutons
|
262 |
//Ajout des boutons
|
263 |
$bouton[] = &HTML_QuickForm::createElement('submit', 'valider', BAZ_VALIDER, ' ');
|
- |
|
264 |
//Traduction de champs requis
|
- |
|
Line 265... |
Line 263... |
265 |
$formtemplate->setRequiredNote(BAZ_CHAMPS_REQUIS) ;
|
263 |
$bouton[] = &HTML_QuickForm::createElement('submit', 'valider', BAZ_VALIDER, ' ');
|
266 |
|
264 |
|
267 |
//ajout d'une page sur les conditions pour l'annonce si elles existent
|
265 |
//ajout d'une page sur les conditions pour l'annonce si elles existent
|
268 |
$requete = 'SELECT bn_condition FROM bazar_nature WHERE bn_label_nature="'.$GLOBALS['_BAZAR_']['typeannonce'].'"';
|
266 |
$requete = 'SELECT bn_condition FROM bazar_nature WHERE bn_label_nature="'.$GLOBALS['_BAZAR_']['typeannonce'].'"';
|
Line 505... |
Line 503... |
505 |
if (!isset($GLOBALS['_BAZAR_']['typeannonce'])) $lien_formulaire->addQueryString('action', BAZ_ACTION_NOUVEAU);
|
503 |
if (!isset($GLOBALS['_BAZAR_']['typeannonce'])) $lien_formulaire->addQueryString('action', BAZ_ACTION_NOUVEAU);
|
506 |
else $lien_formulaire->addQueryString('typeannonce', $GLOBALS['_BAZAR_']['typeannonce']);
|
504 |
else $lien_formulaire->addQueryString('typeannonce', $GLOBALS['_BAZAR_']['typeannonce']);
|
507 |
if ($mode == BAZ_GERER_DROITS) $lien_formulaire->addQueryString('action', BAZ_GERER_DROITS);
|
505 |
if ($mode == BAZ_GERER_DROITS) $lien_formulaire->addQueryString('action', BAZ_GERER_DROITS);
|
Line 508... |
Line 506... |
508 |
|
506 |
|
- |
|
507 |
$formtemplate = new HTML_QuickForm('formulaire', 'post', preg_replace ('/&/', '&', $lien_formulaire->getURL()) );
|
- |
|
508 |
//Traduction de champs requis
|
- |
|
509 |
$formtemplate->setRequiredNote(BAZ_CHAMPS_REQUIS) ;
|
Line 509... |
Line 510... |
509 |
$formtemplate = new HTML_QuickForm('formulaire', 'post', preg_replace ('/&/', '&', $lien_formulaire->getURL()) );
|
510 |
$formtemplate->setJsWarnings(BAZ_ERREUR_SAISIE,BAZ_VEUILLEZ_CORRIGER);
|
510 |
|
511 |
|
511 |
//------------------------------------------------------------------------------------------------
|
512 |
//------------------------------------------------------------------------------------------------
|
512 |
//AFFICHAGE DU FORMULAIRE GENERAL DE CHOIX DU TYPE D'ANNONCE
|
513 |
//AFFICHAGE DU FORMULAIRE GENERAL DE CHOIX DU TYPE D'ANNONCE
|
Line 1331... |
Line 1332... |
1331 |
}
|
1332 |
}
|
Line 1332... |
Line 1333... |
1332 |
|
1333 |
|
1333 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
1334 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
1334 |
*
|
1335 |
*
|
- |
|
1336 |
* $Log: not supported by cvs2svn $
|
- |
|
1337 |
* Revision 1.15 2005/11/07 17:05:45 florian
|
- |
|
1338 |
* amélioration validation conditions de saisie, ajout des règles spécifiques de saisie des formulaires
|
1335 |
* $Log: not supported by cvs2svn $
|
1339 |
*
|
1336 |
* Revision 1.14 2005/11/07 08:48:02 florian
|
1340 |
* Revision 1.14 2005/11/07 08:48:02 florian
|
1337 |
* correction pb guillemets pour saisie et modif de fiche
|
1341 |
* correction pb guillemets pour saisie et modif de fiche
|
1338 |
*
|
1342 |
*
|
1339 |
* Revision 1.13 2005/10/21 16:15:04 florian
|
1343 |
* Revision 1.13 2005/10/21 16:15:04 florian
|