File: selectrecipient.jquery

package info (click to toggle)
wims 2%3A4.29a%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 185,704 kB
  • sloc: xml: 366,687; javascript: 120,570; ansic: 62,341; java: 62,170; sh: 7,744; perl: 3,937; yacc: 3,217; cpp: 1,915; lex: 1,805; makefile: 1,084; lisp: 914; pascal: 601; python: 520; php: 318; asm: 7
file content (64 lines) | stat: -rw-r--r-- 2,280 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
!!  select recipient for theme with jquery use
!!  file selecttrecipient.old need to be synchronise
!!
      <script src="scripts/js/interface/ui_utils.js"></script>
      $name_recipients
      <select id="method" name="method"
            onchange="toggle_select_options(this,{'select': '#js_restricted_select','login': '#js_restricted_login','filter': '#js_restricted_filter'})"
      >
        !if $tv_listtechvar=$empty
          !set list_method=all,select,login
        !else
          !set list_method=all,select,login,filter
        !endif
        !set list_method_name=$name_allparticipants,$name_select,$name_loginlist,$wims_name_filter
        !let nboption=!itemcnt $list_method
        !for i=1 to $nboption
          !if $(list_method[$i])=$method
            <option value="$(list_method[$i])" selected="selected">$(list_method_name[$i])</option>
          !else
            <option value="$(list_method[$i])" >$(list_method_name[$i])</option>
          !endif
        !next i
      </select>
      !! --------------- html for method=select
      <div id="js_restricted_select"
        !if $method=select
          style="display:block"
        !else
          style="display:none"
        !endif
      >
        <div class="help-text" id="jobHelpText">$name_expert1</div>
        <div class="wimscenter">
          !read js/chooselist.phtml select_user1,select_user2,select_user
        </div>
      </div>
      !! --------------- html for method=login
      <div id="js_restricted_login"
        !if $method=login
          style="display:block"
        !else
          style="display:none"
        !endif
        >
        <p class="wimscenter">
          <label for="loginlist">$name_expert2</label>
          <textarea name="loginlist" cols="20" rows="5" id="loginlist">$loginlist</textarea>
        </p>
      </div>
      !if $tv_listtechvar!=$empty
        !! --------------- html for method=filter
        <div id="js_restricted_filter"
          !if $method=filter
            style="display:block"
          !else
            style="display:none"
          !endif
         >
         <p class="wimscenter">
           <label for="loginlist">$name_expert3</label>
           !read adm/vfilter/varfilter htmldiv
         </p>
        </div>
      !endif