Subversion Repositories wimsdev

Rev

Rev 5763 | Rev 6071 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. !nocache
  2.  
  3. !if $hasembedding!=yes
  4. <fieldset class="oefform">
  5. !endif
  6.  
  7. !nocache
  8. <!-- Begin form.phtml-->
  9. !if $oefsteps!=$empty
  10.  !set fieldtot=!itemcnt $thisstep
  11. !else
  12.  !set fieldtot=$[$choicecnt+$replycnt]
  13. !endif
  14.  
  15. !if $fieldtot<1
  16.  !changeto oef/noreply.phtml
  17. !endif
  18.  
  19. !set N_=!itemcnt $embedded
  20. !if $fieldtot<=$N_
  21.  !goto send
  22. !endif
  23. <legend>
  24. !if $error=$empty
  25. $name_enterreply:
  26. !else
  27.  $name_correctreply:
  28. !endif
  29. </legend>
  30.  
  31. !if $hasembedding!=yes
  32.  <a name="oefform" id="oefform"> </a>
  33.  !form reply name="replyform" onsubmit="return formcheck();"
  34. !endif
  35.  
  36. !if $oefsteps!=$empty and $oefstepcnt>1
  37.  !if $dynsteps=yes
  38.   ($name_step $oefstep)
  39.  !else
  40.   ($name_step $oefstep/$oefstepcnt)
  41.  !endif
  42. !endif
  43. <br/><table border="0">
  44. !distribute item 1,1 into cntr,cntc
  45. !for t in $ansorder
  46.  !if $oefsteps=$empty or $t$(cnt$t) isitemof $thisstep
  47.   !read oef/form$t.phtml $(cnt$t)
  48.  !endif
  49.  !advance cnt$t
  50. !next t
  51. </table>
  52. :send
  53. !if $wims_fill_list!=$empty and $fillcnt>0 and $wims_fill_type!=$empty
  54.  !read anstype/$wims_fill_type.after
  55. !endif
  56. !if $oef_formnosubmit!=yes
  57.  !if $oef_js_submit!=
  58.   !set oef_js_submit=onclick="javascript:$oef_js_submit;"
  59.  !else
  60.   !set oef_js_submit=
  61.  !endif
  62.  <p class="send_answer"><input type="submit"  $oef_js_submit value="$name_sendanswer"/></p>
  63. !endif
  64.  
  65. !formend
  66. !if $hasembedding!=yes
  67. </fieldset>
  68. <!-- </fieldset> end of "oefform" fieldset-->
  69. !endif
  70.  
  71. !if $qcmgood<1 and $choicecnt>0
  72.  <p><small class="remark">$name_remark</small></p>
  73. !endif
  74.  
  75.