| Current Path : /home/atelierpru/www/OLD/plugins/auto/formidable/v3.37.1/saisies/ |
| Current File : /home/atelierpru/www/OLD/plugins/auto/formidable/v3.37.1/saisies/champ.html |
[(#ENV{type_choix}|=={checkbox}|?{
#SET{data,#ARRAY},
#SET{data,#ARRAY{'',#VAL{formidable:traitements_champ_aucun}|_T}}
})]
[(#ENV{forcer_type}|non)
#SET{tab,#ENV{formulaire}}
]
[(#ENV{forcer_type}|oui)
[(#SET{tab,[(#ENV{formulaire}|saisies_lister_avec_type{#ENV{forcer_type}})]})]
]
<BOUCLE_parcours(POUR){tableau #GET{tab}}>
#SET{enfants,#ARRAY}
<BOUCLE_enfants(POUR){tableau #VALEUR|table_valeur{'saisies'}}>
#SET{enfant,#ARRAY{#VALEUR|table_valeur{options}|table_valeur{nom},#VALEUR|table_valeur{options}|table_valeur{label}}}
#SET{enfants,#GET{enfants}|array_merge{#GET{enfant}}}
</BOUCLE_enfants>
#SET{saisie,#ARRAY{#VALEUR|table_valeur{options}|table_valeur{label},#GET{enfants}}
</B_enfants>
#SET{saisie,#ARRAY{#VALEUR|table_valeur{options}|table_valeur{nom},#VALEUR|table_valeur{options}|table_valeur{label}}}
<//B_enfants>
#SET{data,#GET{data}|array_merge{#GET{saisie}}}
</BOUCLE_parcours>
#INCLURE{fond=saisies/#ENV{type_choix,selection},data=#GET{data},env,cacher_option_intro='oui',defaut=''}