Subversion Repositories wimsdev

Rev

Rev 16530 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
16530 guerimand 1
!!  select recipient for theme with jquery use
2
!!  file selecttrecipient.old need to be synchronise
3
!!
17529 obado 4
      <script src="scripts/js/interface/ui_utils.js"></script>
16530 guerimand 5
      $name_recipients
6
      <select id="method" name="method"
7
            onchange="toggle_select_options(this,{'select': '#js_restricted_select','login': '#js_restricted_login','filter': '#js_restricted_filter'})"
8
      >
9
        !if $tv_listtechvar=$empty
10
          !set list_method=all,select,login
11
        !else
12
          !set list_method=all,select,login,filter
13
        !endif
14
        !set list_method_name=$name_allparticipants,$name_select,$name_loginlist,$wims_name_filter
15
        !let nboption=!itemcnt $list_method
16
        !for i=1 to $nboption
17
          !if $(list_method[$i])=$method
18
            <option value="$(list_method[$i])" selected="selected">$(list_method_name[$i])</option>
19
          !else
20
            <option value="$(list_method[$i])" >$(list_method_name[$i])</option>
21
          !endif
22
        !next i
23
      </select>
24
      !! --------------- html for method=select
25
      <div id="js_restricted_select"
26
        !if $method=select
27
          style="display:block"
28
        !else
29
          style="display:none"
30
        !endif
31
      >
32
        <div class="help-text" id="jobHelpText">$name_expert1</div>
33
        <div class="wimscenter">
34
          !read js/chooselist.phtml select_user1,select_user2,select_user
35
        </div>
36
      </div>
37
      !! --------------- html for method=login
38
      <div id="js_restricted_login"
39
        !if $method=login
40
          style="display:block"
41
        !else
42
          style="display:none"
43
        !endif
44
        >
45
        <p class="wimscenter">
46
          <label for="loginlist">$name_expert2</label>
47
          <textarea name="loginlist" cols="20" rows="5" id="loginlist">$loginlist</textarea>
48
        </p>
49
      </div>
50
      !if $tv_listtechvar!=$empty
51
        !! --------------- html for method=filter
52
        <div id="js_restricted_filter"
53
          !if $method=filter
54
            style="display:block"
55
          !else
56
            style="display:none"
57
          !endif
58
         >
59
         <p class="wimscenter">
60
           <label for="loginlist">$name_expert3</label>
61
           !read adm/vfilter/varfilter htmldiv
62
         </p>
63
        </div>
64
      !endif