Subversion Repositories wimsdev

Rev

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

  1.  
  2. !if dontknow iswordof $error
  3.  In fact, the last step
  4.  !if $step_reason=OK
  5.   is correct. $step_remark
  6.  !else
  7.   is wrong. $step_remark
  8.   <p>
  9.   !read reasons/$step_reason.det
  10.   <p>
  11.   A correct versionof the last step will be
  12.   <table class="wimscenter wimsnoborder" style="width:80%"><tr><td>
  13.   !line $step of $good
  14.  </td></tr></table>
  15.  !endif
  16.  <p>
  17.  It's a pity that you didn't see all this.
  18.  </p>
  19.  !goto gnext
  20. !endif
  21.  
  22. <b>Error.</b>
  23.  
  24. !if step_error iswordof $error
  25.  !if $step_reason=OK
  26.   But this step IS perfectly right!
  27.   $step_remark
  28.  !else
  29.   !if $ask_reason>0 and $step_reason!=$ans
  30.    No, the last step is wrong, but not for what you think to be.
  31.   !else
  32.    But no, there is well an error in the last step.
  33.   !endif
  34.   $step_remark
  35.   <div>
  36.   !read reasons/$step_reason.det
  37.   </div>
  38.   A correct version of the last step will be
  39.   <table class="wimscenter wimsnoborder" style="width:80%"><tr><td>
  40.   !line $step of $good
  41.   </td></tr></table>
  42.  !endif
  43.  :gnext
  44.  <p>
  45.  !if $step<$stepcnt
  46.   !href cmd=reply&ans=next Pass to the next step.
  47.  !else
  48.   This is the end of the exercise. Your score: $module_score/10.
  49.  !endif
  50.  </p>
  51.  !exit
  52. !endif
  53.  
  54. !if bad_step iswordof $error
  55.  !if $badstep=0
  56.   You think that all the steps are correct.
  57.  !else
  58.   You think that the first bad step is number $badstep.
  59.  !endif
  60.  !if $bad_steps=$empty
  61.   You are wrong: all the steps are correct.
  62.   <p>
  63.   !line $badstep of $remarks
  64.  !else
  65.   No, the <em>first</em> bad step is number $sss. <p>
  66.   !if $badstep>0
  67.    !if $badstep isitemof $bad_steps
  68.     The step number $badstep is indeed wrong, but it is not the first bad
  69.     step.
  70.    !else
  71.     On the contrary, step $badstep is quite right.
  72.    !endif
  73.   !else
  74.    $bad_reason
  75.    <div>
  76.    !set rrr=!item 1 of $bad_reasons
  77.    !read reasons/$rrr.det
  78.    </div>
  79.   !endif
  80.  !endif
  81.  <p>Your score: $module_score/10.</p>
  82.  !exit
  83. !endif
  84.  
  85. !!!if double_reply=$error
  86. !! You have already submitted a reply to this problem, which has been
  87. !! analysed and scored. Repetitive replies are ignored. (Don't use the
  88. !! `reload' button of your browser to repost replies!)
  89. !! !exit
  90. !!!endif
  91.  
  92. !msg $error
  93.