Subversion Repositories Applications.papyrus

Compare Revisions

Ignore whitespace Rev 1602 → Rev 1603

/trunk/api/formulaire/formulaire.fonct.inc.php
158,7 → 158,7
*/
function checkbox(&$formtemplate, $id_liste , $label, $limite1, $limite2, $defaut,
$source, $obligatoire, $dans_moteur_de_recherche=0, $appli = 'bazar') {
if (is_int ($id_liste)) {
if (intval ($id_liste) != 0) {
$l = $appli[0];
$requete = 'SELECT * FROM '.$appli.'_liste_valeurs WHERE '.$l.'lv_ce_liste='.$id_liste.
' AND '.$l.'lv_ce_i18n="'.$GLOBALS['_BAZAR_']['langue'].'" ORDER BY '.$l.'lv_label';
416,6 → 416,9
$formtemplate->addElement('html', $html) ;
if ($html_url!='') $formtemplate->addElement('html', $html_url) ;
$formtemplate->addElement('text', 'url_lien'.$nom_bdd, BAZ_URL_LIEN) ;
$defauts=array('url_lien'.$nom_bdd=>'http://');
$formtemplate->setDefaults($defauts);
$formtemplate->addElement('text', 'url_texte'.$nom_bdd, BAZ_URL_TEXTE) ;
//gestion du champs obligatoire
if (($dans_moteur_de_recherche==0) && isset($obligatoire) && ($obligatoire==1)) {
624,6 → 627,9
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log$
* Revision 1.7 2007-08-27 12:24:52 alexandre_tb
* correction encodage
*
* Revision 1.3 2007-07-04 11:53:37 alexandre_tb
* ajout du type champs_cache
*