Subversion Repositories wimsdev

Rev

Rev 8890 | Rev 9255 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. !nocache
  2. <div class="oefanswer">
  3.  
  4. !nocache
  5. !if bad_exo iswordof $error
  6.  !exit
  7. !endif
  8. !read ./oef/$module_language/answer.phtml
  9. <div id="answeranalysis">
  10. <h3 class="legend oefanswername">$name_answeranalysis</h3>
  11.  
  12. <div class="content">
  13.  
  14. !if $ansorder!=$empty or $conditioncnt >0
  15.   <table style="border:0;" class="float_left spacer">
  16. !endif
  17.  
  18. !distribute item 1,1 into cntr,cntc
  19.  
  20. !set indgood   =<div class="oef_indgood inline">$indgood</div>
  21. !set indpartial=<div class="oef_indpartial inline">$indpartial</div>
  22. !set indprec   =<div class="oef_indprec inline">$indprec</div>
  23. !set indbad    =<div class="oef_indbad inline">$indbad</div>
  24. !set condgood  =<div class="oef_condgood inline">$condgood</div>
  25. !set condbad   =<div class="oef_condbad inline">$condbad</div>
  26.  
  27. !for t in $ansorder
  28.  !set i=$(cnt$t)
  29.  !if $oefsteps=$empty or $t$i isitemof $gotsteps
  30.   !read oef/answer$t.phtml
  31.   !! # Here is a whitelist of answer types where color legend must be displayed.
  32.  !if $(replytype$i) iswordof radio checkbox mark flashcard numeric and ?analyze notin $(replygood$i) \
  33.      and $wims_isexam<1
  34.  
  35.    !if $(diareply$i)!=good or $(partialgood$i)=yes or $(precreply$i)=yes
  36.     !set display_oeflegend=yes
  37.     !if $(partialgood$i)=yes
  38.       !default display_partialgood=yes
  39.     !endif
  40.     !if $(precreply$i)=yes
  41.       !default display_precreply=yes
  42.     !endif
  43.     !if $(replystyle$i)=mc and $(replytype$i) notwordof radio
  44.      !default display_forget=yes
  45.     !endif
  46.    !endif
  47.   !endif
  48.  !endif
  49.  !advance cnt$t
  50. !next t
  51.  
  52. !if $conditioncnt>0
  53.  !if $embedded_bracket!=$empty
  54.   <tr><td style="text-align:left" colspan="2" class="nowrap small">$embedded_bracket</td></tr>
  55.  !endif
  56. !endif
  57.  
  58. !for i in $condlist
  59.  !if hide notwordof $(condoption$i)
  60.   <tr><td colspan="2" class="bold">$(condname$i):</td><td>
  61.   !item $(condtest$i)+1 of $condbad,$condgood
  62.   </td></tr>
  63.  !endif
  64. !next i
  65.  
  66. !if $ansorder!=$empty or $conditioncnt >0
  67.   </table>
  68. !endif
  69.  
  70. !if $display_oeflegend issametext yes
  71.   !read oef/color_legend.phtml
  72. !endif
  73.  
  74. !if $feedbackcnt>0
  75.  <div class="oef_feedbacks" style="clear:left;">
  76.   !read $deffile feedback
  77.  </div>
  78. !endif
  79.  
  80. !if $solution!=$empty and ($presentsol>1 or ($presentsol=1 and $score<10))
  81.   <div class="wims_widget_box clearall">
  82.    <div class="title_box"><h3>$name_Solution.</h3></div>
  83.    <div class="box_content">
  84.      !if $solution!=$executed_str or $oef2wims_version<3.10
  85.       $solution
  86.      !else
  87.       !read $deffile solution
  88.      !endif
  89.    </div>
  90.   </div>
  91. !endif
  92.  
  93. !if $m_reply_err != $empty
  94.  <pre class="wimswarning">$m_reply_err</pre>
  95. !endif
  96.     <br class="spacer clearall"/>
  97.   </div>
  98.  </div>
  99. </div>
  100. <!--END oef answer-->
  101.