Subversion Repositories wimsdev

Rev

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