Subversion Repositories wimsdev

Rev

Rev 6356 | Rev 11248 | 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 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 />
  44. <table class="oefnoembed"> <!-- table noembed-->
  45. !distribute item 1,1 into cntr,cntc
  46. !for t in $ansorder
  47.  !if $oefsteps=$empty or $t$(cnt$t) isitemof $thisstep
  48.   !read oef/form$t.phtml $(cnt$t)
  49.  !endif
  50.  !advance cnt$t
  51. !next t
  52. </table> <!-- end table noembed-->
  53. :send
  54. !if $wims_fill_list!=$empty and $fillcnt>0 and $wims_fill_type!=$empty
  55.  !read anstype/$wims_fill_type.after
  56. !endif
  57. !if $oef_formnosubmit!=yes
  58.  !if $oef_js_submit!=
  59.   !set oef_js_submit=onclick="javascript:$oef_js_submit;"
  60.  !else
  61.   !set oef_js_submit=
  62.  !endif
  63.  <p class="send_answer"><input type="submit" $oef_js_submit value="$name_sendanswer" /></p>
  64. !endif
  65.  
  66. !formend
  67. !if $hasembedding!=yes
  68. </fieldset>
  69. <!-- </fieldset> end of "oefform" fieldset-->
  70. !endif
  71.  
  72. !if $qcmgood<1 and $choicecnt>0
  73.  <p class="small">$name_remark</p>
  74. !endif
  75.  
  76.