Subversion Repositories Applications.bazar

Rev

Rev 368 | Rev 370 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 368 Rev 369
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.74.2.8 2008-02-01 09:56:56 alexandre_tb Exp $
22
// CVS : $Id: bazar.fonct.php,v 1.74.2.9 2008-02-01 16:23:29 florian Exp $
23
/**
23
/**
24
*
24
*
25
* Fonctions du module bazar
25
* Fonctions du module bazar
26
* 
26
* 
27
*
27
*
Line 29... Line 29...
29
//Auteur original :
29
//Auteur original :
30
*@author        Alexandre Granier <alexandre@tela-botanica.org>
30
*@author        Alexandre Granier <alexandre@tela-botanica.org>
31
*@author        Florian Schmitt <florian@ecole-et-nature.org>
31
*@author        Florian Schmitt <florian@ecole-et-nature.org>
32
//Autres auteurs :
32
//Autres auteurs :
33
*@copyright     Tela-Botanica 2000-2004
33
*@copyright     Tela-Botanica 2000-2004
34
*@version       $Revision: 1.74.2.8 $ $Date: 2008-02-01 09:56:56 $
34
*@version       $Revision: 1.74.2.9 $ $Date: 2008-02-01 16:23:29 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
Line 554... Line 554...
554
                                    '<!-- BEGIN required --><span class="symbole_obligatoire">&nbsp;*</span><!-- END required -->'."\n".'</td>'."\n".'</tr>'."\n", 'accept_condition');
554
                                    '<!-- BEGIN required --><span class="symbole_obligatoire">&nbsp;*</span><!-- END required -->'."\n".'</td>'."\n".'</tr>'."\n", 'accept_condition');
555
  	  	$squelette->setElementTemplate( '<tr><td colspan="2" class="bouton">{label}{element}</td></tr>'."\n", 'valider');
555
  	  	$squelette->setElementTemplate( '<tr><td colspan="2" class="bouton">{label}{element}</td></tr>'."\n", 'valider');
Line 556... Line 556...
556
  	  	
556
  	  	
557
 	   	$squelette->setRequiredNoteTemplate("\n".'<tr>'."\n".'<td colspan="2" class="symbole_obligatoire">* {requiredNote}</td></tr>'."\n");
557
 	   	$squelette->setRequiredNoteTemplate("\n".'<tr>'."\n".'<td colspan="2" class="symbole_obligatoire">* {requiredNote}</td></tr>'."\n");
558
		//Traduction de champs requis
558
		//Traduction de champs requis
559
		//$formtemplate->setRequiredNote(BAZ_CHAMPS_REQUIS) ;
559
		$formtemplate->setRequiredNote(BAZ_CHAMPS_REQUIS) ;
Line 560... Line 560...
560
		//$formtemplate->setJsWarnings(BAZ_ERREUR_SAISIE,BAZ_VEUILLEZ_CORRIGER);
560
		$formtemplate->setJsWarnings(BAZ_ERREUR_SAISIE,BAZ_VEUILLEZ_CORRIGER);
561
    
561
    
562
		//------------------------------------------------------------------------------------------------
562
		//------------------------------------------------------------------------------------------------
563
		//AFFICHAGE DU FORMULAIRE GENERAL DE CHOIX DU TYPE D'ANNONCE
563
		//AFFICHAGE DU FORMULAIRE GENERAL DE CHOIX DU TYPE D'ANNONCE
Line 886... Line 886...
886
				$val = $valeur[$tableau[$i]['nom_bdd']]['Y'].'-'.$valeur[$tableau[$i]['nom_bdd']]['m'].'-'.$valeur[$tableau[$i]['nom_bdd']]['d'] ;
886
				$val = $valeur[$tableau[$i]['nom_bdd']]['Y'].'-'.$valeur[$tableau[$i]['nom_bdd']]['m'].'-'.$valeur[$tableau[$i]['nom_bdd']]['d'] ;
887
			}
887
			}
888
			$requete .= $tableau[$i]['nom_bdd'].'="'.$val.'", ' ;					
888
			$requete .= $tableau[$i]['nom_bdd'].'="'.$val.'", ' ;					
889
		}
889
		}
890
		//cas des champs texte
890
		//cas des champs texte
891
		elseif ( $tableau[$i]['type']=='texte' || $tableau[$i]['type']=='textelong' || $tableau[$i]['type']=='champs_cache' ) {
891
		elseif ( $tableau[$i]['type']=='texte' || $tableau[$i]['type']=='textelong' || $tableau[$i]['type']=='champs_cache' || $tableau[$i]['type']=='champs_mail' ) {
892
			//on mets les slashes pour les saisies dans les champs texte et textearea
892
			//on mets les slashes pour les saisies dans les champs texte et textearea
893
			$val=addslashes($valeur[$tableau[$i]['nom_bdd']]) ;
893
			$val=addslashes($valeur[$tableau[$i]['nom_bdd']]) ;
894
			$requete .= $tableau[$i]['nom_bdd'].'="'.$val.'", ' ;
894
			$requete .= $tableau[$i]['nom_bdd'].'="'.$val.'", ' ;
895
		}
895
		}
896
		//cas des wikinis
896
		//cas des wikinis
Line 1333... Line 1333...
1333
}
1333
}
Line 1334... Line 1334...
1334
 
1334
 
1335
/* +--Fin du code ----------------------------------------------------------------------------------------+
1335
/* +--Fin du code ----------------------------------------------------------------------------------------+
1336
*
1336
*
-
 
1337
* $Log: not supported by cvs2svn $
-
 
1338
* Revision 1.74.2.8  2008-02-01 09:56:56  alexandre_tb
-
 
1339
* reglage du pb de double saisie de fiche,
-
 
1340
* ajout d un exit apres le header location
1337
* $Log: not supported by cvs2svn $
1341
*
1338
* Revision 1.74.2.7  2008-01-29 14:35:22  alexandre_tb
1342
* Revision 1.74.2.7  2008-01-29 14:35:22  alexandre_tb
1339
* suppression de l identification pour l abonnement au fluxRSS
1343
* suppression de l identification pour l abonnement au fluxRSS
1340
*
1344
*
1341
* Revision 1.74.2.6  2008-01-29 09:55:07  alexandre_tb
1345
* Revision 1.74.2.6  2008-01-29 09:55:07  alexandre_tb