Subversion Repositories wimsdev

Rev

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

  1. !if dontknow iswordof $error
  2.   In fact, the last step
  3.   !if $step_reason=OK
  4.     is correct. $step_remark
  5.   !else
  6.     is wrong. $step_remark
  7.     <div>
  8.     !read reasons/$step_reason.det
  9.     </div>
  10.     A correct versionof the last step will be
  11.     <div class="wimscenter">
  12.     !line $step of $good
  13.     </div>
  14.   !endif
  15.   <p>
  16.   It's a pity that you didn't see all this.
  17.   </p>
  18.   !goto gnext
  19. !endif
  20.  
  21. <b>$wims_name_Error</b>
  22.  
  23. !if step_error iswordof $error
  24.   !if $step_reason=OK
  25.     But this step IS perfectly right!
  26.     $step_remark
  27.   !else
  28.     !if $ask_reason>0 and $step_reason!=$ans
  29.       No, the last step is wrong, but not for what you think to be.
  30.     !else
  31.       But no, there is well an error in the last step.
  32.     !endif
  33.     $step_remark
  34.     <div>
  35.     !read reasons/$step_reason.det
  36.     </div>
  37.     A correct version of the last step will be
  38.     <div class="wimscenter">
  39.     !line $step of $good
  40.     </div>
  41.   !endif
  42.   :gnext
  43.   <p>
  44.   !if $step<$stepcnt
  45.     !href cmd=reply&ans=next Pass to the next step.
  46.   !else
  47.     This is the end of the exercise. Your score: $module_score/10.
  48.   !endif
  49.   </p>
  50.   !exit
  51. !endif
  52.  
  53. !if bad_step iswordof $error
  54.   !if $badstep=0
  55.     You think that all the steps are correct.
  56.   !else
  57.     You think that the first bad step is number $badstep.
  58.   !endif
  59.   !if $bad_steps=$empty
  60.     You are wrong: all the steps are correct.
  61.     <p>
  62.     !line $badstep of $remarks
  63.     </p>
  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 step.
  69.       !else
  70.         On the contrary, step $badstep is quite right.
  71.       !endif
  72.     !else
  73.       $bad_reason
  74.       <div>
  75.       !set rrr=!item 1 of $bad_reasons
  76.       !read reasons/$rrr.det
  77.       </div>
  78.     !endif
  79.   !endif
  80.   <p>Your score: $module_score/10.</p>
  81.   !exit
  82. !endif
  83.  
  84. !msg $error
  85.