Subversion Repositories wimsdev

Rev

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

Rev 12327 Rev 12329
Line 1... Line 1...
1
!!!liste provisoire, juste pour essayer
1
!!!liste provisoire, juste pour essayer
2
 
2
 
3
!set list_attribut=V_Chpref,flask,flasks,qcm,molecule,browse,about,mail
3
!set list_attribut=flasks,qcm,molecule
4
 
4
 
5
<label for="mod_attribut">$name_attribut</label>
5
<label for="mod_attribut">$name_attribut</label>
6
  <select name="mod_attribut" id="mod_attribut">
6
  <select name="mod_attribut" id="mod_attribut">
7
!for i in none,$list_attribut
7
!for i in none,$list_attribut
8
    <option value="$i"
8
    <option value="$i"
Line 10... Line 10...
10
      selected="selected"
10
      selected="selected"
11
  !endif
11
  !endif
12
    >$i</option>
12
    >$i</option>
13
!next
13
!next
14
  </select>
14
  </select>
15
  $ $ <i class="text_icon $attribut_" id="mod_icon_preview"> </i>
15
  $ $ <i class="text_icon icon_$attribut_" id="mod_icon_preview"> </i>
16
!if $jquery_defined=yes
16
!if $jquery_defined=yes
17
  <script>
17
  <script>
18
    $$("#mod_attribut").change(function() {
18
    $$("#mod_attribut").change(function() {
19
      document.getElementById("mod_icon_preview").className="text_icon "+$$("#mod_attribut>option:selected").val();
19
      document.getElementById("mod_icon_preview").className="text_icon "+$$("#mod_attribut>option:selected").val();
20
    });
20
    });