Subversion Repositories wimsdev

Rev

Rev 14980 | Rev 15043 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
20 reyssat 1
!nocache
12461 bpr 2
!read oef/default
12350 bpr 3
!read oef/testseedscore.phtml
12460 bpr 4
!read getparm $module_init_parm intro_check intro_good
12459 bpr 5
!if 3 isin $get_introcheck
12460 bpr 6
  !set introgivegood=1
12459 bpr 7
!endif
12460 bpr 8
!default introgivegood=$get_intro_good
12456 bpr 9
!read oef/default
12362 bpr 10
!default seedrepeat=0
12672 bpr 11
!bound introgivegood between 0 and $limit_version default 1
12460 bpr 12
!if (($introgivegood=1 and $seedrepeat<=1) or\
13671 lemaire 13
    ($introgivegood>=1 and $introgivegood<=$seedcnt and $seedlastcnt>=$seedrepeat)\
14
    or ($introgivegood>=1 and _exam isin $wims_session)\
15
    )
12461 bpr 16
  !set presentgood=1
12393 bpr 17
!else
12461 bpr 18
  !set presentgood=0
12350 bpr 19
!endif
14491 obado 20
 
3051 bpr 21
<div class="oefanswer">
1664 bpr 22
!nocache
23
!if bad_exo iswordof $error
12324 bpr 24
  !exit
1664 bpr 25
!endif
20 reyssat 26
!read ./oef/$module_language/answer.phtml
3100 bpr 27
<div id="answeranalysis">
8824 bpr 28
<h3 class="legend oefanswername">$name_answeranalysis</h3>
8700 obado 29
 
8701 obado 30
<div class="content">
6643 bpr 31
!if $ansorder!=$empty or $conditioncnt >0
11207 obado 32
  <table class="float_left answeranalysis">
6643 bpr 33
!endif
8700 obado 34
 
1664 bpr 35
!distribute item 1,1 into cntr,cntc
3852 bpr 36
 
11207 obado 37
!set indgood   =<span class="oef_indgood">$indgood</span>
38
!set indpartial=<span class="oef_indpartial">$indpartial</span>
39
!set indprec   =<span class="oef_indprec">$indprec</span>
40
!set indbad    =<span class="oef_indbad">$indbad</span>
41
!set condgood  =<span class="oef_condgood">$condgood</span>
42
!set condbad   =<span class="oef_condbad">$condbad</span>
3852 bpr 43
 
1664 bpr 44
!for t in $ansorder
12324 bpr 45
  !set i=$(cnt$t)
46
  !if $oefsteps=$empty or $t$i isitemof $gotsteps
13698 bpr 47
    !set tt=!word 1 of $(replygood$i)
48
    !if noanalyzeprint notwordof $(replyoption$i) or ?analyze notin $(replygood$i)
49
      !read oef/answer$t.phtml
50
    !endif
13191 bpr 51
    !! # Here is a whitelist of answer types where color legend must be displayed.
12324 bpr 52
    !if noanalyzeprint iswordof $(replyoption$i)
13191 bpr 53
      !set display_noanalyze=yes
54
    !else
12324 bpr 55
      !! could have been defined for another reply
56
      !if $display_noanalyze!=yes
57
        !if (($(replytype$i) iswordof radio checkbox mark flashcard numeric and nolegend notwordof $(replyoption$i))\
58
            or legend iswordof $(replyoption$i))\
59
            and ?analyze notin $(replygood$i) and $wims_isexam<1
60
          !if $(diareply$i)!=good or $(partialgood$i)=yes or $(precreply$i)=yes
61
            !set display_oeflegend=yes
62
            !if $(partialgood$i)=yes
63
              !default display_partialgood=yes
64
            !endif
65
            !if $(precreply$i)=yes
66
              !default display_precreply=yes
67
            !endif
68
            !if ($(replystyle$i)=mc or $(replytype$i) iswordof draw) and $(replytype$i) notwordof radio
69
              !default display_forget=yes
70
            !endif
71
          !endif
72
        !endif
9255 bpr 73
      !endif
8821 bpr 74
    !endif
8700 obado 75
  !endif
12324 bpr 76
  !advance cnt$t
1664 bpr 77
!next t
78
 
79
!if $conditioncnt>0
12324 bpr 80
  !if $embedded_bracket!=$empty
81
    <tr><td style="text-align:left" colspan="2" class="nowrap small">$embedded_bracket</td></tr>
82
  !endif
1664 bpr 83
!endif
8700 obado 84
 
1664 bpr 85
!for i in $condlist
12324 bpr 86
  !if hide notwordof $(condoption$i)
87
    <tr><td colspan="2" class="bold">$(condname$i):</td><td>
88
    !item $(condtest$i)+1 of $condbad,$condgood
89
    </td></tr>
90
  !endif
1664 bpr 91
!next i
8700 obado 92
 
6643 bpr 93
!if $ansorder!=$empty or $conditioncnt >0
8700 obado 94
  </table>
6643 bpr 95
!endif
1664 bpr 96
 
8700 obado 97
!if $display_oeflegend issametext yes
98
  !read oef/color_legend.phtml
99
!endif
100
 
12402 bpr 101
!if $feedbackcnt>0 and \
14564 bpr 102
  ($givefeed=$empty or $givefeed=-1 or ($givefeed=1 and ($score=10 or $seedlastcnt>=$seedrepeat))\
13194 bpr 103
    or ($givefeed>=2 and $seedcnt>=$givefeed and ($score=10 or $seedlastcnt>=$seedrepeat))\
104
    or ($givefeed>=1 and _exam isin $wims_session)\
105
  )
12456 bpr 106
  <div class="oef_feedbacks" style="clear:left;">
12345 bpr 107
  !read $deffile feedback
12346 bpr 108
  </div>
12345 bpr 109
!endif
14973 bpr 110
<br class="spacer clearall" />
14980 bpr 111
!if $status=$empty
112
  <span class="oef_modulescore">
113
  !if $qnum>1
114
    $name_serie_score
115
  !else
116
    $name_exo_score
117
  !endif
118
  </span>
119
  !ifval $module_score>9.8
120
    <span class="oef_congratulations">$wims_name_Congratulations</span>
121
  !endif
122
  !if $toolate!=$empty and $score>$module_score
123
    <span class="oef_penalty">$name_penalty</span>
124
  !endif
125
!endif
15026 obado 126
</div>
127
</div>
128
 
12345 bpr 129
!!presentsol=1 deprecated
12460 bpr 130
!! givesol=1: always if $score=10 or at the last try of all versions
13194 bpr 131
!if $solution!=$empty and ($givesol=$empty or (($presentsol=1 and $score<10)\
132
    or ($givesol=1 and ($score=10 or $seedlastcnt>=$seedrepeat))\
133
    or ($givesol>=2 and $seedcnt>=$givesol and ($score=10 or $seedlastcnt>=$seedrepeat))\
134
    or ($givesol>=1 and _exam isin $wims_session)\
135
    ))
8701 obado 136
  <div class="wims_widget_box clearall">
14491 obado 137
    <div class="title_box">
138
      <input type="button" class="wims_button wims_secondary_button float_right small"
139
             id="button_print" value="$name_sol_print"
140
             onclick="printSolution()">
141
      <script>
142
        function printSolution() {
143
          css_print = document.getElementById("css_print");
144
          css_print.disabled=false;
145
          window.print();
146
          css_print.disabled=true;
147
        }
148
      </script>
149
      <h3>$name_Solution</h3>
150
    </div>
12324 bpr 151
    <div class="box_content">
14491 obado 152
      !if $solution!=$executed_str or $oef2wims_version<3.10
153
        $solution
154
      !else
155
        !read $deffile solution
156
      !endif
157
    </div>
8701 obado 158
  </div>
1664 bpr 159
!endif
14491 obado 160
 
12350 bpr 161
!reset seedlastcnt
1664 bpr 162
 
20 reyssat 163
!if $m_reply_err != $empty
12324 bpr 164
  <pre class="wimswarning">$m_reply_err</pre>
20 reyssat 165
!endif
12324 bpr 166
  <br class="spacer clearall" />
4667 obado 167
</div>
6530 bpr 168
<!--END oef answer-->