Subversion Repositories wimsdev

Rev

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