Rev 12351 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
12316 | bpr | 1 | !!!liste provisoire, juste pour essayer |
2 | |||
12351 | bpr | 3 | !set list_attribut=!record 0 of wimshome/public_html/themes/icon |
4 | !set list_attribut=!lines2items $list_attribut |
||
12316 | bpr | 5 | |
12351 | bpr | 6 | !if $list_attribut=$empty |
7 | !exit |
||
8 | !endif |
||
12316 | bpr | 9 | <label for="mod_attribut">$name_attribut</label> |
10 | <select name="mod_attribut" id="mod_attribut"> |
||
12317 | bpr | 11 | !for i in none,$list_attribut |
12327 | obado | 12 | <option value="$i" |
12316 | bpr | 13 | !if $i=$attribut_ |
14 | selected="selected" |
||
15 | !endif |
||
16 | >$i</option> |
||
17 | !next |
||
18 | </select> |
||
12329 | bpr | 19 | $ $ <i class="text_icon icon_$attribut_" id="mod_icon_preview"> </i> |
12316 | bpr | 20 | !if $jquery_defined=yes |
21 | <script> |
||
22 | $$("#mod_attribut").change(function() { |
||
12356 | obado | 23 | document.getElementById("mod_icon_preview").className="text_icon icon_"+$$("#mod_attribut>option:selected").val(); |
12316 | bpr | 24 | }); |
25 | </script> |
||
26 | !endif |
||
27 | <div class="formHelp">$name_attribut_help</div> |