Subversion Repositories wimsdev

Rev

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