Subversion Repositories wimsdev

Rev

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

Rev 13607 Rev 15719
Line 4... Line 4...
4
<ol>
4
<ol>
5
  !for i=1 to $(choices$parmcnt)
5
!for i=1 to $(choices$parmcnt)
6
    <li>
6
  <li>
7
      !reset checked emph1 emph2
7
    !reset checked emph1 emph2
8
      !if $i iswordof $(parm$parmcnt)
8
    !if $i iswordof $(parm$parmcnt)
9
        !set checked=checked="checked"
9
      !set checked=checked="checked"
10
        !set emph1=<strong>$name_yourchoice<em>
10
      !set emph1=<strong>$name_yourchoice<em>
11
        !set emph2=</em></strong>
11
      !set emph2=</em></strong>
12
      !endif
12
    !endif
13
      !set i_1=<input type="radio" name="parm$parmcnt" id="parm$(parmcnt)_$i" value="$i" $checked />
13
    !set i_1=<input type="radio" name="parm$parmcnt" id="parm$(parmcnt)_$i" value="$i" $checked />
14
      !set i_2=$emph1 $(parms[$i]) $emph2
14
    !set i_2=$emph1 $(parms[$i]) $emph2
15
      !set ll=!item $i of $limits
15
    !set ll=!item $i of $limits
16
      !set remain=$[max(0,$ll-0$(vcnt_$(parmcnt)_$i))]
16
    !set remain=$[max(0,$ll-0$(vcnt_$(parmcnt)_$i))]
17
      <label for="parm$(parmcnt)_$i">
17
    <label for="parm$(parmcnt)_$i">
18
        !if $ll>0
18
      !if $ll>0
19
          !if $remain>0
19
        !if $remain>0
20
            $i_1
20
          $i_1
21
          !endif
21
        !endif
22
          $i_2
22
        $i_2
23
          ($remain $name_remaining)
23
        ($remain $name_remaining)
-
 
24
      !else
-
 
25
        !if $ll<0
-
 
26
          $i_2 ($name_optionclosed)
24
        !else
27
        !else
25
          !if $ll<0
-
 
26
            $i_2 ($name_optionclosed)
-
 
27
          !else
-
 
28
            $i_1 $i_2
28
          $i_1 $i_2
29
            !if $(vcnt_$(parmcnt)_$i)!=$empty and $vshow=1
29
          !if $(vcnt_$(parmcnt)_$i)!=$empty and $vshow=1
30
              ($(vcnt_$(parmcnt)_$i)).
30
            ($(vcnt_$(parmcnt)_$i)).
31
            !endif
-
 
32
          !endif
31
          !endif
33
        !endif
32
        !endif
-
 
33
      !endif
34
      </label>
34
    </label>
35
    </li>
35
  </li>
36
  !next i
36
!next i
37
</ol>
37
</ol>
38
 
-