Subversion Repositories wimsdev

Rev

Rev 17058 | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. <div class="wims_msg warning">
  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.     <div>
  9.     !read reasons/$step_reason.det
  10.     </div>
  11.     A correct versionof the last step will be
  12.     <div class="wimscenter">
  13.     !line $step of $good
  14.     </div>
  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>$wims_name_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.     <div class="wimscenter">
  40.     !line $step of $good
  41.     </div>
  42.   !endif
  43.   :gnext
  44.   </div>
  45.   <p>
  46.   !if $step<$stepcnt
  47.     !set wims_ref_class=wims_button
  48.     !href cmd=reply&ans=next Pass to the next step.
  49.   !else
  50.     This is the end of the exercise. Your score: $module_score/10.
  51.   !endif
  52.   </p>
  53.   !exit
  54. !endif
  55.  
  56. !if bad_step iswordof $error
  57.   !if $badstep=0
  58.     You think that all the steps are correct.
  59.   !else
  60.     You think that the first bad step is number $badstep.
  61.   !endif
  62.   !if $bad_steps=$empty
  63.     You are wrong: all the steps are correct.
  64.     <p>
  65.     !line $badstep of $remarks
  66.     </p>
  67.   !else
  68.     No, the <em>first</em> bad step is number $sss. <p>
  69.     !if $badstep>0
  70.       !if $badstep isitemof $bad_steps
  71.         The step number $badstep is indeed wrong, but it is not the first bad step.
  72.       !else
  73.         On the contrary, step $badstep is quite right.
  74.       !endif
  75.     !else
  76.       $bad_reason
  77.       <div>
  78.       !set rrr=!item 1 of $bad_reasons
  79.       !read reasons/$rrr.det
  80.       </div>
  81.     !endif
  82.   !endif
  83.   </div>
  84.   <p>Your score: $module_score/10.</p>
  85.   !exit
  86. !endif
  87.  
  88. !msg $error
  89.