Subversion Repositories wimsdev

Rev

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.    <div class="wimscenter"><input type="submit" value="Send the reply"/></div>
  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.     <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.    </li>
  38.    !next i
  39.    </ul>
  40.   !endif
  41.  !endif
  42. !else
  43.  !if $substep=0
  44.   !form reply
  45.   What do you think of the <em>last</em> step?
  46.   !formselect ans list --,OK,$bad_reasons prompt I don't know,\
  47.         Yes : this step is correct,$bad_rnames
  48.  <input type=submit value="Send"/>
  49.  </form>
  50. !endif
  51.  
  52. !if $substep=2
  53.  You are right:
  54.  !if $step_reason=OK
  55.   the last step is correct.
  56.  !else
  57.   the last step is wrong.
  58.   The good step will be
  59.   <table class="wimscenter" border=0 bgcolor="#d0c0d0" width="80%"><tr><td align=center>
  60.   !line $step of $good
  61.   </td></tr></table>
  62.  !endif
  63.  <p>
  64.  !if $step<$stepcnt
  65.   !href cmd=reply&ans=next Pass to the next step.
  66.  !else
  67.   This is the end of the exercise. Your score: $module_score/10.
  68.  !endif
  69. !endif
  70. !endif
  71.  
  72.