!nocache
<div class="oefanswer">
!nocache
!if bad_exo iswordof $error
!endif
!read ./oef/$module_language/answer.phtml
<div id="answeranalysis">
<h3 class="legend oefanswername">$name_answeranalysis</h3>
<div class="content">
!if $ansorder!=$empty or $conditioncnt >0
<table style="border:0;" class="float_left spacer">
!endif
!distribute item 1,1 into cntr,cntc
!set indgood =<div class="oef_indgood inline">$indgood</div>
!set indpartial=<div class="oef_indpartial inline">$indpartial</div>
!set indprec =<div class="oef_indprec inline">$indprec</div>
!set indbad =<div class="oef_indbad inline">$indbad</div>
!set condgood =<div class="oef_condgood inline">$condgood</div>
!set condbad =<div class="oef_condbad inline">$condbad</div>
!for t in $ansorder
!set i=$(cnt$t)
!if $oefsteps=$empty or $t$i isitemof $gotsteps
!read oef/answer$t.phtml
!! # Here is a whitelist of answer types where color legend must be displayed.
!if noanalyzeprint iswordof $(replyoption$i)
!set display_noanalyze=yes
!else
!! could have been
defined for another reply
!if $display_noanalyze!=yes
!if $(replytype$i) iswordof radio checkbox mark flashcard numeric and ?analyze notin $(replygood$i) \
and $wims_isexam<1
!if $(diareply$i)!=good or $(partialgood$i)=yes or $(precreply$i)=yes
!set display_oeflegend=yes
!if $(partialgood$i)=yes
!default display_partialgood=yes
!endif
!if $(precreply$i)=yes
!default display_precreply=yes
!endif
!if $(replystyle$i)=mc and $(replytype$i) notwordof radio
!default display_forget=yes
!endif
!endif
!endif
!endif
!endif
!advance cnt$t
!if $conditioncnt>0
!if $embedded_bracket!=$empty
<tr><td style="text-align:left" colspan="2" class="nowrap small">$embedded_bracket</td></tr>
!endif
!endif
!for i in $condlist
!if hide notwordof $(condoption$i)
<tr><td colspan="2" class="bold">$(condname$i):</td><td>
!item $(condtest$i)+1 of $condbad,$condgood
</td></tr>
!endif
!if $ansorder!=$empty or $conditioncnt >0
</table>
!endif
!if $display_oeflegend issametext yes
!read oef/color_legend.phtml
!endif
!if $feedbackcnt>0
<div class="oef_feedbacks" style="clear:left;">
!read $deffile feedback
</div>
!endif
!if $solution!=$empty and ($presentsol>1 or ($presentsol=1 and $score<10))
<div class="wims_widget_box clearall">
<div class="title_box"><h3>$name_Solution.</h3></div>
<div class="box_content">
!if $solution!=$executed_str or $oef2wims_version<3.10
$solution
!else
!read $deffile solution
!endif
</div>
</div>
!endif
!if $m_reply_err != $empty
<pre class="wimswarning">$m_reply_err</pre>
!endif
<br class="spacer clearall"/>
</div>
</div>
</div>