Rev 11382 | Rev 12294 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 11382 | Rev 11478 | ||
---|---|---|---|
Line 4... | Line 4... | ||
4 | <fieldset class="oefform"> |
4 | <fieldset class="oefform"> |
- | 5 | !set enter_reply_tag=legend |
|
- | 6 | !else |
|
- | 7 | !set enter_reply_tag=h2 |
|
5 | !endif |
8 | !endif |
6 | 9 | ||
7 | !nocache |
10 | !nocache |
8 | <!-- Begin form.phtml--> |
11 | <!-- Begin form.phtml--> |
9 | !if $oefsteps!=$empty |
12 | !if $oefsteps!=$empty |
10 | !set fieldtot=!itemcnt $thisstep |
13 | !set fieldtot=!itemcnt $thisstep |
11 | !else |
14 | !else |
12 | !set fieldtot=$[$choicecnt+$replycnt] |
15 | !set fieldtot=$[$choicecnt+$replycnt] |
13 | !endif |
16 | !endif |
14 | 17 | ||
15 | !if $fieldtot<1 |
18 | !if $fieldtot<1 |
16 | !changeto oef/noreply.phtml |
19 | !changeto oef/noreply.phtml |
17 | !endif |
20 | !endif |
18 | 21 | ||
19 | !set N_=!itemcnt $embedded |
22 | !set N_=!itemcnt $embedded |
20 | !if $fieldtot<=$N_ |
23 | !if $fieldtot<=$N_ |
21 | !goto send |
24 | !goto send |
22 | !endif |
25 | !endif |
- | 26 | ||
23 | < |
27 | <$enter_reply_tag class="oef_enterreply"> |
24 | !if $error=$empty |
28 | !if $error=$empty |
25 | $name_enterreply: |
29 | $name_enterreply: |
26 | !else |
30 | !else |
27 | $name_correctreply: |
31 | $name_correctreply: |
28 | !endif |
32 | !endif |
29 | </ |
33 | </$enter_reply_tag> |
30 | 34 | ||
31 | !if $hasembedding!=yes |
35 | !if $hasembedding!=yes |
32 | !form reply name="replyform" onsubmit="return formcheck();" id="a_oefform" autocomplete="off" |
36 | !form reply name="replyform" onsubmit="return formcheck();" id="a_oefform" autocomplete="off" |
33 | !endif |
37 | !endif |
34 | 38 | ||
35 | !if $oefsteps!=$empty and $oefstepcnt>1 |
39 | !if $oefsteps!=$empty and $oefstepcnt>1 |
- | 40 | <div> |
|
36 | !if $dynsteps=yes |
41 | !if $dynsteps=yes |
37 | ($name_step $oefstep) |
42 | ($name_step $oefstep) |
38 | !else |
43 | !else |
39 | ($name_step $oefstep/$oefstepcnt) |
44 | ($name_step $oefstep/$oefstepcnt) |
40 | !endif |
45 | !endif |
- | 46 | </div> |
|
41 | !endif |
47 | !endif |
42 | <br /> |
48 | |
43 | <table class="oefnoembed"> |
49 | <table class="oefnoembed"> |
44 | !distribute item 1,1 into cntr,cntc |
50 | !distribute item 1,1 into cntr,cntc |
45 | !for t in $ansorder |
51 | !for t in $ansorder |
46 | !if $oefsteps=$empty or $t$(cnt$t) isitemof $thisstep |
52 | !if $oefsteps=$empty or $t$(cnt$t) isitemof $thisstep |
47 | !read oef/form$t.phtml $(cnt$t) |
53 | !read oef/form$t.phtml $(cnt$t) |
48 | !endif |
54 | !endif |
49 | !advance cnt$t |
55 | !advance cnt$t |
50 | !next t |
56 | !next t |
51 | </table> <!-- end table oefnoembed --> |
57 | </table> <!-- end table oefnoembed --> |
- | 58 | ||
52 | :send |
59 | :send |
53 | !if $wims_fill_list!=$empty and $fillcnt>0 and $wims_fill_type!=$empty |
60 | !if $wims_fill_list!=$empty and $fillcnt>0 and $wims_fill_type!=$empty |
54 | !read anstype/$wims_fill_type.after |
61 | !read anstype/$wims_fill_type.after |
55 | !endif |
62 | !endif |
56 | !if $oef_formnosubmit!=yes |
63 | !if $oef_formnosubmit!=yes |
57 | !if $oef_js_submit!= |
64 | !if $oef_js_submit!= |
58 | !set oef_js_submit=onclick="javascript:$oef_js_submit;" |
65 | !set oef_js_submit=onclick="javascript:$oef_js_submit;" |
59 | !else |
66 | !else |
60 | !set oef_js_submit= |
67 | !set oef_js_submit= |
61 | !endif |
68 | !endif |
62 | <p class="send_answer"> |
69 | <p class="send_answer"> |
63 | !if _check notin $wims_session |
70 | !if _check notin $wims_session |
64 | <input type="submit" $oef_js_submit value="$name_sendanswer" /> |
71 | <input type="submit" $oef_js_submit value="$name_sendanswer" /> |
65 | !else |
72 | !else |
66 | <input type="submit" $oef_js_submit value="$name_sendanswer" disabled="disabled"/> |
73 | <input type="submit" $oef_js_submit value="$name_sendanswer" disabled="disabled"/> |
67 | !endif |
74 | !endif |
68 | </p> |
75 | </p> |
69 | !endif |
76 | !endif |
70 | 77 | ||
71 | !formend |
78 | !formend |
72 | !if $hasembedding!=yes |
79 | !if $hasembedding!=yes |
73 | </fieldset> |
80 | </fieldset> |
74 | !! end of "oefform" fieldset |
81 | !! end of "oefform" fieldset |
75 | !endif |
82 | !endif |
76 | 83 | ||
77 | !if $qcmgood<1 and $choicecnt>0 |
84 | !if $qcmgood<1 and $choicecnt>0 |
78 | <p class="small">$name_remark</p> |
85 | <p class="small">$name_remark</p> |
79 | !endif |
86 | !endif |
80 | - |