Subversion Repositories wimsdev

Rev

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