Subversion Repositories wimsdev

Rev

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

  1.  
  2. !if $sstyle=1
  3.  !if $substep=0
  4.   !if $all_steps=0
  5.    !form reply
  6.    Which is the <em>first</em> wrong step of this series?
  7.    !formselect badstep from 0 to $stepcnt
  8.    (0 would mean that every step is correct.)
  9.    <p><center><input type=submit value="Send the reply"></center>
  10.   !else
  11.    Mark <em>all</em> bad steps above, then
  12.    <input type=submit value="click here">.
  13.   !endif
  14.   </form>
  15.  !else
  16.   !if $all_steps=0
  17.    !if $badstep=0
  18.     Indeed, all the steps are correct.
  19.    !else
  20.     Indeed, the first bad step is number $badstep.
  21.    !endif
  22.   !endif
  23.   Your score: $module_score/10.
  24.   !if $expstep!=$empty
  25.    <p>Some explanations.<ul>
  26.    !for i in $expstep
  27.     <p><li> Step $i
  28.     !if $i isitemof $badstep
  29.      is correct.
  30.      !line $i of $remarks
  31.     !else
  32.      !set j=!positionof item $i in $bad_steps
  33.      !set e=!item $j of $bad_reasons
  34.      is not good.
  35.      !read reasons/$e.det
  36.     !endif
  37.    !next i  
  38.    </ul>
  39.   !endif
  40.  !endif
  41. !else
  42.  !if $substep=0
  43.   !form reply
  44.   What do you think of the <em>last</em> step?
  45.   !formselect ans list --,OK,$bad_reasons prompt I don't know,\
  46.         Yes : this step is correct,$bad_rnames
  47.  <input type=submit value="Send">
  48.  </form>
  49. !endif
  50.  
  51. !if $substep=2
  52.  You are right:
  53.  !if $step_reason=OK
  54.   the last step is correct.
  55.  !else
  56.   the last step is wrong.
  57.   The good step will be<p><center>
  58.   <table border=0 bgcolor="#d0c0d0" width="80%"><tr><td align=center>
  59.   !line $step of $good
  60.   </table> </center>
  61.  !endif
  62.  <p>
  63.  !if $step<$stepcnt
  64.   !href cmd=reply&ans=next Pass to the next step.
  65.  !else
  66.   This is the end of the exercise. Your score: $module_score/10.
  67.  !endif
  68. !endif
  69. !endif
  70.  
  71.