Subversion Repositories wimsdev

Rev

Rev 17176 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 17176 Rev 17525
Line 1... Line 1...
1
!nocache
1
!nocache
2
 
-
 
3
<!-- Begin oef/form.phtml-->
-
 
4
 
-
 
5
!if $hasembedding!=yes
-
 
6
  <fieldset class="oefform">
-
 
7
  !set enter_reply_tag=legend
-
 
8
!else
-
 
9
  !set enter_reply_tag=h2
-
 
10
!endif
-
 
11
 
-
 
12
!if $oefsteps!=$empty
2
!if $oefsteps!=$empty
13
  !set fieldtot=!itemcnt $thisstep
3
  !set fieldtot=!itemcnt $thisstep
14
!else
4
!else
15
  !set fieldtot=$[$choicecnt+$replycnt]
5
  !set fieldtot=$[$choicecnt+$replycnt]
16
!endif
6
!endif
17
 
7
 
18
!if $fieldtot<1
8
!if $fieldtot<1
19
  !changeto oef/noreply.phtml
9
  !changeto oef/noreply.phtml
20
!endif
10
!endif
-
 
11
 
-
 
12
<!-- Begin oef/form.phtml-->
-
 
13
!if $hasembedding!=yes
-
 
14
  <fieldset class="oefform">
-
 
15
  !set enter_reply_tag=legend
-
 
16
!else
-
 
17
  !set enter_reply_tag=h2
-
 
18
!endif
21
 
19
 
22
!set N_=!itemcnt $embedded
20
!set N_=!itemcnt $embedded
23
!if $fieldtot<=$N_
21
!if $fieldtot<=$N_
24
  !goto send
22
  !goto send
25
!endif
23
!endif
26
 
24
 
27
<$enter_reply_tag class="oef_enterreply">
25
<$enter_reply_tag class="oef_enterreply">
28
!if $error=$empty
26
!if $error=$empty
29
  $name_enterreply:
27
  $name_enterreply:
30
!else
28
!else
31
  $name_correctreply:
29
  $name_correctreply:
Line 41... Line 39...
41
  <div>
39
  <div>
42
  !if $dynsteps=yes
40
  !if $dynsteps=yes
43
    ($name_step $oefstep)
41
    ($name_step $oefstep)
44
  !else
42
  !else
45
    ($name_step $oefstep/$oefstepcnt)
43
    ($name_step $oefstep/$oefstepcnt)
46
  !endif
44
  !endif
47
  </div>
45
  </div>
48
!endif
46
!endif
49
 
47
 
50
<table class="oefnoembed">
48
<table class="oefnoembed">
51
!distribute item 1,1 into cntr,cntc
49
!distribute item 1,1 into cntr,cntc
52
!for t in $ansorder
50
!for t in $ansorder
53
  !if $oefsteps=$empty or $t$(cnt$t) isitemof $thisstep
51
  !if $oefsteps=$empty or $t$(cnt$t) isitemof $thisstep
54
    !read oef/form$t.phtml $(cnt$t)
52
    !read oef/form$t.phtml $(cnt$t)
55
  !endif
53
  !endif
56
  !advance cnt$t
54
  !advance cnt$t
57
!next t
55
!next t
58
</table> <!-- end table oefnoembed -->
56
</table> <!-- end table oefnoembed -->
59
 
57
 
60
:send
58
:send
61
!if $wims_fill_list!=$empty and $fillcnt>0 and $wims_fill_type!=$empty
59
!if $wims_fill_list!=$empty and $fillcnt>0 and $wims_fill_type!=$empty
62
  !read anstype/$wims_fill_type.after
60
  !read anstype/$wims_fill_type.after
63
!endif
61
!endif
64
!if $oef_formnosubmit!=yes
62
!if $oef_formnosubmit!=yes
Line 88... Line 86...
88
    !endif
86
    !endif
89
  </div>
87
  </div>
90
!endif
88
!endif
91
 
89
 
92
!formend
90
!formend
93
!if $hasembedding!=yes
91
!if $hasembedding!=yes and $fieldtot>0
94
  </fieldset>
92
  </fieldset>
95
  !! end of "oefform" fieldset
93
  !! end of "oefform" fieldset
96
!endif
94
!endif
97
 
95
 
98
!if $qcmgood<1 and $choicecnt>0
96
!if $qcmgood<1 and $choicecnt>0