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.17 2005-11-17 18:48:02 florian Exp $ |
// CVS : $Id: bazar.fonct.php,v 1.18 2005-11-18 16:03:23 florian 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.17 $ $Date: 2005-11-17 18:48:02 $ |
*@version $Revision: 1.18 $ $Date: 2005-11-18 16:03:23 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
|
37,17 → 37,10 |
// +------------------------------------------------------------------------------------------------------+ |
// | ENTETE du PROGRAMME | |
// +------------------------------------------------------------------------------------------------------+ |
|
// TODO : afficher evenement sur plusieur jours |
// TODO : traduction entete mois calendrier |
// Parametrage EVENEMENT : template |
|
|
|
require_once 'HTML/QuickForm.php' ; |
require_once 'HTML/QuickForm/checkbox.php' ; |
require_once 'HTML/QuickForm/textarea.php' ; |
require_once 'HTML/Table.php' ; |
require_once PAP_CHEMIN_RACINE.'api/pear/HTML/QuickForm.php' ; |
require_once PAP_CHEMIN_RACINE.'api/pear/HTML/QuickForm/checkbox.php' ; |
require_once PAP_CHEMIN_RACINE.'api/pear/HTML/QuickForm/textarea.php' ; |
require_once PAP_CHEMIN_RACINE.'api/pear/HTML/Table.php' ; |
require_once 'bazar.fonct.formulaire.php'; |
require_once 'bazar.fonct.rss.php'; |
|
273,7 → 266,7 |
$lien_formulaire=$GLOBALS['_BAZAR_']['url']; |
$lien_formulaire->addQueryString('action', $_REQUEST['action']); |
$formtemplate = new HTML_QuickForm('formulaire', 'post', preg_replace ('/&/', '&', $lien_formulaire->getURL()) ); |
require_once 'HTML/QuickForm/html.php'; |
require_once PAP_CHEMIN_RACINE.'api/pear/HTML/QuickForm/html.php'; |
$conditions= new HTML_QuickForm_html('<tr><td colspan="2"><p style="padding:4px; margin:5px; width: 100%; background: #C1CBA7;">'.$ligne['bn_condition'].'</p></td></tr>'); |
$formtemplate->addElement('hidden','typeannonce', $_REQUEST['typeannonce']); |
if (isset($_REQUEST['id_fiche'])) $formtemplate->addElement('hidden','id_fiche', $_REQUEST['id_fiche']); |
768,7 → 761,7 |
$val=$valeur[$tableau[$i]['nom_bdd']]['Y'].'-'.$valeur[$tableau[$i]['nom_bdd']]['m'].'-'.$valeur[$tableau[$i]['nom_bdd']]['d']; |
} |
else { |
$val=addslashes(baz_unhtmlentities($valeur[$tableau[$i]['nom_bdd']])); |
$val=addslashes($valeur[$tableau[$i]['nom_bdd']]); |
} |
$requete.=$tableau[$i]['nom_bdd'].'="'.$val.'", '; |
} |
789,13 → 782,11 |
function baz_insertion($valeur) { |
|
// Recuperation de bn_appropriation |
|
$requete_app = 'select bn_appropriation from bazar_nature where bn_id_nature='.$GLOBALS['_BAZAR_']['id_typeannonce'] ; |
$resultat_app = $GLOBALS['_BAZAR_']['db']->query($requete_app) ; |
$ligne = $resultat_app ->fetchRow(DB_FETCHMODE_ASSOC) ; |
|
// =========== Insertion d'une nouvelle fiche =================== |
|
//requete d'insertion dans bazar_fiche |
$requete = 'INSERT INTO bazar_fiche SET bf_id_fiche='.baz_nextid('bazar_fiche', 'bf_id_fiche', $GLOBALS['_BAZAR_']['db']).','. |
'bf_ce_utilisateur='.$GLOBALS['id_user'].', bf_ce_nature='.$GLOBALS['_BAZAR_']['id_typeannonce'].','. |
1334,6 → 1325,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.17 2005/11/17 18:48:02 florian |
* corrections bugs + amélioration de l'application d'inscription |
* |
* Revision 1.16 2005/11/07 17:30:36 florian |
* ajout controle sur les listes pour la saisie |
* |