[SPIP] +version 3.0.7
[ptitvelo/web/www.git] / www / prive / formulaires / inc-choisir-objets.html
diff --git a/www/prive/formulaires/inc-choisir-objets.html b/www/prive/formulaires/inc-choisir-objets.html
new file mode 100644 (file)
index 0000000..c5581e2
--- /dev/null
@@ -0,0 +1,8 @@
+<BOUCLE_objets(POUR){tableau #REM|lister_tables_objets_sql}{cle !IN #ENV{exclus,''}}>[(#VALEUR{editable}|oui)
+#SET{id,#ENV{name}|replace{\W,'_'}|concat{'_',#CLE}}
+<div class="choix choix_#CLE">
+       <input type="checkbox"  id="#GET{id}" name="#ENV{name}\[\]" value="#CLE"[(#ENV{selected}|=={all}|ou{#CLE|in_any{#ENV{selected}}})checked="checked"] />
+       <label for="#GET{id}">[(#VALEUR{texte_objets}|_T)]</label>
+</div>
+]</BOUCLE_objets>
+<input type="hidden" name="#ENV{name}[]" value="" />