Subversion Repositories wimsdev

Rev

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

Rev 15043 Rev 15146
Line 2... Line 2...
2
!read oef/default
2
!read oef/default
3
!read oef/testseedscore.phtml
3
!read oef/testseedscore.phtml
4
!read getparm $module_init_parm intro_check intro_good
-
 
5
!if 3 isin $get_introcheck
-
 
6
  !set introgivegood=1
-
 
7
!endif
-
 
8
!default introgivegood=$get_intro_good
-
 
9
!read oef/default
-
 
10
!default seedrepeat=0
-
 
11
!bound introgivegood between 0 and $limit_version default 1
-
 
12
!if (($introgivegood=1 and $seedrepeat<=1) or\
-
 
13
    ($introgivegood>=1 and $introgivegood<=$seedcnt and $seedlastcnt>=$seedrepeat)\
-
 
14
    or ($introgivegood>=1 and _exam isin $wims_session)\
-
 
15
    )
-
 
16
  !set presentgood=1
4
!read oef/get_presentgood.proc
17
!else
-
 
18
  !set presentgood=0
-
 
19
!endif
-
 
20
 
5
 
21
<div class="oefanswer">
-
 
22
!nocache
-
 
23
!if bad_exo iswordof $error
6
!if bad_exo iswordof $error
24
  !exit
7
  !exit
25
!endif
8
!endif
-
 
9
 
-
 
10
<div class="oefanswer">
26
!read ./oef/$module_language/answer.phtml
11
!read ./oef/$module_language/answer.phtml
27
<div class="answer_analysis">
12
<div class="answer_analysis">
28
<h3 class="legend oefanswername">$name_answeranalysis</h3>
13
<h3 class="legend oefanswername">$name_answeranalysis</h3>
29
 
14
 
30
<div class="content">
15
<div class="content">
Line 49... Line 34...
49
      !read oef/answer$t.phtml
34
      !read oef/answer$t.phtml
50
    !endif
35
    !endif
51
    !! # Here is a whitelist of answer types where color legend must be displayed.
36
    !! # Here is a whitelist of answer types where color legend must be displayed.
52
    !if noanalyzeprint iswordof $(replyoption$i)
37
    !if noanalyzeprint iswordof $(replyoption$i)
53
      !set display_noanalyze=yes
38
      !set display_noanalyze=yes
54
    !else
39
    !else
55
      !! could have been defined for another reply
40
      !! could have been defined for another reply
56
      !if $display_noanalyze!=yes
41
      !if $display_noanalyze!=yes
57
        !if (($(replytype$i) iswordof radio checkbox mark flashcard numeric and nolegend notwordof $(replyoption$i))\
42
        !if (($(replytype$i) iswordof radio checkbox mark flashcard numeric and nolegend notwordof $(replyoption$i))\
58
            or legend iswordof $(replyoption$i))\
43
            or legend iswordof $(replyoption$i))\
59
            and ?analyze notin $(replygood$i) and $wims_isexam<1
44
            and ?analyze notin $(replygood$i) and $wims_isexam<1
Line 73... Line 58...
73
      !endif
58
      !endif
74
    !endif
59
    !endif
75
  !endif
60
  !endif
76
  !advance cnt$t
61
  !advance cnt$t
77
!next t
62
!next t
78
 
63
 
79
!if $conditioncnt>0
64
!if $conditioncnt>0
80
  !if $embedded_bracket!=$empty
65
  !if $embedded_bracket!=$empty
81
    <tr><td style="text-align:left" colspan="2" class="nowrap small">$embedded_bracket</td></tr>
66
    <tr><td style="text-align:left" colspan="2" class="nowrap small">$embedded_bracket</td></tr>
82
  !endif
67
  !endif
83
!endif
68
!endif
Line 108... Line 93...
108
  </div>
93
  </div>
109
!endif
94
!endif
110
<br class="spacer clearall" />
95
<br class="spacer clearall" />
111
!if $status=$empty
96
!if $status=$empty
112
  <span class="oef_modulescore">
97
  <span class="oef_modulescore">
113
  !if $qnum>1
98
    !if $qnum>1
114
    $name_serie_score
99
      $name_serie_score
115
  !else
100
    !else
116
    $name_exo_score
101
      $name_exo_score
117
  !endif
102
    !endif
118
  </span>
103
  </span>
119
  !ifval $module_score>9.8
104
  !ifval $module_score>9.8
120
    <span class="oef_congratulations">$wims_name_Congratulations</span>
105
    <span class="oef_congratulations">$wims_name_Congratulations</span>
121
  !endif
106
  !endif
122
  !if $toolate!=$empty and $score>$module_score
107
  !if $toolate!=$empty and $score>$module_score
123
    <span class="oef_penalty">$name_penalty</span>
108
    <span class="oef_penalty">$name_penalty</span>
124
  !endif
109
  !endif
125
!endif
110
!endif
-
 
111
!!end of .content
126
</div>
112
</div>
-
 
113
!!end of .answer_analysis
127
</div>
114
</div>
128
 
115
 
129
!!presentsol=1 deprecated
116
!!presentsol=1 deprecated
130
!! givesol=1: always if $score=10 or at the last try of all versions
117
!! givesol=1: always if $score=10 or at the last try of all versions
131
!if $solution!=$empty and ($givesol=$empty or (($presentsol=1 and $score<10)\
118
!if $solution!=$empty and ($givesol=$empty or (($presentsol=1 and $score<10)\