Subversion Repositories wimsdev

Rev

Rev 10482 | Rev 16377 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 10482 Rev 16227
Line 1... Line -...
1
 
-
 
2
!if dontknow iswordof $error
1
!if dontknow iswordof $error
3
 In fact, the last step
2
  In fact, the last step
4
 !if $step_reason=OK
3
  !if $step_reason=OK
5
  is correct. $step_remark
4
    is correct. $step_remark
6
 !else
5
  !else
7
  is wrong. $step_remark
6
    is wrong. $step_remark
8
  <p>
7
    <div>
9
  !read reasons/$step_reason.det
8
    !read reasons/$step_reason.det
-
 
9
    </div>
-
 
10
   A correct versionof the last step will be
-
 
11
   <table class="wimscenter wimsnoborder" style="width:80%"><tr><td>
-
 
12
   !line $step of $good
-
 
13
    </div>
-
 
14
  !endif
10
  <p>
15
  <p>
11
  A correct versionof the last step will be
-
 
12
  <table class="wimscenter wimsnoborder" style="width:80%"><tr><td>
-
 
13
  !line $step of $good
-
 
14
 </td></tr></table>
-
 
15
 !endif
-
 
16
 <p>
-
 
17
 It's a pity that you didn't see all this.
16
  It's a pity that you didn't see all this.
18
 </p>
17
  </p>
19
 !goto gnext
18
  !goto gnext
20
!endif
19
!endif
21
 
20
 
22
<b>Error.</b>
21
<b>$wims_name_Error</b>
23
 
22
 
24
!if step_error iswordof $error
23
!if step_error iswordof $error
25
 !if $step_reason=OK
24
  !if $step_reason=OK
26
  But this step IS perfectly right!
25
    But this step IS perfectly right!
27
  $step_remark
26
    $step_remark
28
 !else
27
  !else
29
  !if $ask_reason>0 and $step_reason!=$ans
28
    !if $ask_reason>0 and $step_reason!=$ans
30
   No, the last step is wrong, but not for what you think to be.
29
      No, the last step is wrong, but not for what you think to be.
31
  !else
30
    !else
32
   But no, there is well an error in the last step.
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.
33
  !endif
48
  !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
  <table class="wimscenter wimsnoborder" style="width:80%"><tr><td>
-
 
40
  !line $step of $good
-
 
41
  </td></tr></table>
-
 
42
 !endif
-
 
43
 :gnext
-
 
44
 <p>
-
 
45
 !if $step<$stepcnt
-
 
46
  !href cmd=reply&ans=next Pass to the next step.
-
 
47
 !else
-
 
48
  This is the end of the exercise. Your score: $module_score/10.
-
 
49
 !endif
-
 
50
 </p>
49
  </p>
51
 !exit
50
  !exit
52
!endif
51
!endif
53
 
52
 
54
!if bad_step iswordof $error
53
!if bad_step iswordof $error
55
 !if $badstep=0
54
  !if $badstep=0
56
  You think that all the steps are correct.
55
    You think that all the steps are correct.
57
 !else
-
 
58
  You think that the first bad step is number $badstep.
-
 
59
 !endif
-
 
60
 !if $bad_steps=$empty
-
 
61
  You are wrong: all the steps are correct.
-
 
62
  <p>
-
 
63
  !line $badstep of $remarks
-
 
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
-
 
69
    step.
-
 
70
   !else
-
 
71
    On the contrary, step $badstep is quite right.
-
 
72
   !endif
-
 
73
  !else
56
  !else
74
   $bad_reason
-
 
75
   <div>
-
 
76
   !set rrr=!item 1 of $bad_reasons
57
    You think that the first bad step is number $badstep.
77
   !read reasons/$rrr.det
-
 
78
   </div>
-
 
79
  !endif
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
80
 !endif
79
  !endif
81
 <p>Your score: $module_score/10.</p>
80
  <p>Your score: $module_score/10.</p>
82
 !exit
81
  !exit
83
!endif
82
!endif
84
 
-
 
85
!!!if double_reply=$error
-
 
86
!! You have already submitted a reply to this problem, which has been
-
 
87
!! analysed and scored. Repetitive replies are ignored. (Don't use the
-
 
88
!! `reload' button of your browser to repost replies!)
-
 
89
!! !exit
-
 
90
!!!endif
-
 
91
 
83
 
92
!msg $error
84
!msg $error