Rev 9936 | Rev 14807 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
20 | reyssat | 1 | !set i=$wims_read_parm |
2 | !if c$i isitemof $embedded |
||
12324 | bpr | 3 | !exit |
20 | reyssat | 4 | !endif |
12324 | bpr | 5 | !set C_=$(choice$i) |
6 | !if debug iswordof $m_oefenv |
||
20 | reyssat | 7 | !set replydefaulted=yes |
8 | !if $oef_default=yes |
||
12324 | bpr | 9 | !set T_=!positionof item $(choicegood$i[1]) in $(choicelist$i) |
10 | !default choice$i=$(T_[1]) |
||
20 | reyssat | 11 | !endif |
12324 | bpr | 12 | !endif |
13 | !if $choicecnt<=1 and $replycnt<1 |
||
20 | reyssat | 14 | !for jj=1 to $choiceitems1 |
12324 | bpr | 15 | <tr><td><input type="radio" name="choice1" value="$jj" |
16 | !if $jj=$(choice$i) |
||
17 | checked="checked" |
||
18 | !endif |
||
19 | /> |
||
20 | !item $jj of $choicelist1 |
||
21 | </td> |
||
22 | </tr> |
||
20 | reyssat | 23 | !next jj |
6355 | bpr | 24 | |
20 | reyssat | 25 | !if $idontknow>0 and noidontknow notwordof $(choiceoption$i) |
12324 | bpr | 26 | <tr><td><input type="radio" name="choice1" value="$[$choiceitems1+1]" /> $ch_noidea |
27 | </td></tr> |
||
20 | reyssat | 28 | !endif |
29 | !if $qcmgood<=0 |
||
12324 | bpr | 30 | <tr><td><input type="radio" name="choice1" value="$[$choiceitems1+2]" /> $ch_none |
31 | </td></tr> |
||
20 | reyssat | 32 | !endif |
12324 | bpr | 33 | !else |
9936 | bpr | 34 | <tr><td><label for="choice$i">$(choicename$i)</label></td><td>: |
20 | reyssat | 35 | !set p_=$ch_choose,$(choicelist$i) |
36 | !if $idontknow>0 and noidontknow notwordof $(choiceoption$i) |
||
12324 | bpr | 37 | !set p_=$p_,$ch_noidea |
20 | reyssat | 38 | !endif |
39 | !if $qcmgood<1 |
||
12324 | bpr | 40 | !set p_=$p_,$ch_none |
20 | reyssat | 41 | !endif |
42 | !set N_=!itemcnt $p_ |
||
43 | !if debug iswordof $m_oefenv |
||
12324 | bpr | 44 | !set replydefaulted=yes |
45 | !if $oef_default=yes |
||
46 | !set T_=!positionof item $(choicegood$i[1]) in $(choicelist$i) |
||
47 | !default choice$i=$(T_[1]) |
||
48 | !endif |
||
20 | reyssat | 49 | !endif |
50 | !formselect choice$i from 0 to $[$N_-1] prompt $p_ |
||
6355 | bpr | 51 | </td></tr> |
12324 | bpr | 52 | !endif |
53 | !set choice$i=$C_ |