Subversion Repositories wimsdev

Rev

Rev 12294 | Rev 15026 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
20 reyssat 1
!nocache
1393 bpr 2
 
853 czzmrn 3
!if $hasembedding!=yes
11248 obado 4
  <fieldset class="oefform">
11478 obado 5
  !set enter_reply_tag=legend
6
!else
7
  !set enter_reply_tag=h2
853 czzmrn 8
!endif
1665 bpr 9
 
1664 bpr 10
!nocache
11
<!-- Begin form.phtml-->
12
!if $oefsteps!=$empty
11478 obado 13
  !set fieldtot=!itemcnt $thisstep
1664 bpr 14
!else
11478 obado 15
  !set fieldtot=$[$choicecnt+$replycnt]
1664 bpr 16
!endif
1393 bpr 17
 
1664 bpr 18
!if $fieldtot<1
11478 obado 19
  !changeto oef/noreply.phtml
1664 bpr 20
!endif
21
 
22
!set N_=!itemcnt $embedded
23
!if $fieldtot<=$N_
11478 obado 24
  !goto send
1664 bpr 25
!endif
11478 obado 26
 
27
<$enter_reply_tag class="oef_enterreply">
1664 bpr 28
!if $error=$empty
11478 obado 29
  $name_enterreply:
1664 bpr 30
!else
11478 obado 31
  $name_correctreply:
1664 bpr 32
!endif
11478 obado 33
</$enter_reply_tag>
1664 bpr 34
 
35
!if $hasembedding!=yes
11478 obado 36
  !form reply name="replyform" onsubmit="return formcheck();" id="a_oefform" autocomplete="off"
1664 bpr 37
!endif
38
 
39
!if $oefsteps!=$empty and $oefstepcnt>1
11478 obado 40
  <div>
41
  !if $dynsteps=yes
42
    ($name_step $oefstep)
43
  !else
44
    ($name_step $oefstep/$oefstepcnt)
45
  !endif
46
  </div>
1664 bpr 47
!endif
11478 obado 48
 
11248 obado 49
<table class="oefnoembed">
1664 bpr 50
!distribute item 1,1 into cntr,cntc
51
!for t in $ansorder
11478 obado 52
  !if $oefsteps=$empty or $t$(cnt$t) isitemof $thisstep
53
    !read oef/form$t.phtml $(cnt$t)
54
  !endif
55
  !advance cnt$t
1664 bpr 56
!next t
11248 obado 57
</table> <!-- end table oefnoembed -->
11478 obado 58
 
1664 bpr 59
:send
60
!if $wims_fill_list!=$empty and $fillcnt>0 and $wims_fill_type!=$empty
11478 obado 61
  !read anstype/$wims_fill_type.after
1664 bpr 62
!endif
63
!if $oef_formnosubmit!=yes
11478 obado 64
  !if $oef_js_submit!=
65
    !set oef_js_submit=onclick="javascript:$oef_js_submit;"
66
  !else
67
    !set oef_js_submit=
68
  !endif
13841 obado 69
  <div class="send_answer">
70
    !if _check notin $wims_session
71
      <input type="submit" $oef_js_submit value="$name_sendanswer" />
72
    !else
73
      <input type="submit" $oef_js_submit value="$name_sendanswer" disabled="disabled" />
74
    !endif
75
    !if $jquery_defined=yes
76
      <script>
77
      /*<![CDATA[*/
78
        $$(function(jq){
79
          jq("#exo_formCheck").dialog({
80
            autoOpen: false,
81
            modal: true,
82
            buttons: {
83
              "$wims_name_yes": function() {document.getElementById("a_oefform").submit(); },
84
              "$wims_name_no": function() {jq(this).dialog("close");}
85
            }
86
          });
87
        });
88
      /*]]>*/
89
      </script>
90
      <div class="dropdown-pane wims_msg info small" id="exo_formCheck" title="$wims_name_warning" data-dropdown>
91
        <div>$name_exo_form_check</div>
92
      </div>
93
    !endif
94
  </div>
1664 bpr 95
!endif
5928 bpr 96
 
97
!formend
1664 bpr 98
!if $hasembedding!=yes
11248 obado 99
  </fieldset>
100
  !! end of "oefform" fieldset
1664 bpr 101
!endif
102
 
103
!if $qcmgood<1 and $choicecnt>0
11248 obado 104
  <p class="small">$name_remark</p>
1664 bpr 105
!endif