Subversion Repositories wimsdev

Rev

Rev 9271 | Rev 11207 | 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 or legend iswordof $(replyoption$i)) 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 or $(replytype$i) iswordof draw) and $(replytype$i) notwordof radio
  48.        !default display_forget=yes
  49.       !endif
  50.      !endif
  51.     !endif
  52.   !endif
  53.   !endif
  54.  !endif
  55.  !advance cnt$t
  56. !next t
  57.  
  58. !if $conditioncnt>0
  59.  !if $embedded_bracket!=$empty
  60.   <tr><td style="text-align:left" colspan="2" class="nowrap small">$embedded_bracket</td></tr>
  61.  !endif
  62. !endif
  63.  
  64. !for i in $condlist
  65.  !if hide notwordof $(condoption$i)
  66.   <tr><td colspan="2" class="bold">$(condname$i):</td><td>
  67.   !item $(condtest$i)+1 of $condbad,$condgood
  68.   </td></tr>
  69.  !endif
  70. !next i
  71.  
  72. !if $ansorder!=$empty or $conditioncnt >0
  73.   </table>
  74. !endif
  75.  
  76. !if $display_oeflegend issametext yes
  77.   !read oef/color_legend.phtml
  78. !endif
  79.  
  80. !if $feedbackcnt>0
  81.  <div class="oef_feedbacks" style="clear:left;">
  82.   !read $deffile feedback
  83.  </div>
  84. !endif
  85.  
  86. !if $solution!=$empty and ($presentsol>1 or ($presentsol=1 and $score<10))
  87.   <div class="wims_widget_box clearall">
  88.    <div class="title_box"><h3>$name_Solution.</h3></div>
  89.    <div class="box_content">
  90.      !if $solution!=$executed_str or $oef2wims_version<3.10
  91.       $solution
  92.      !else
  93.       !read $deffile solution
  94.      !endif
  95.    </div>
  96.   </div>
  97. !endif
  98.  
  99. !if $m_reply_err != $empty
  100.  <pre class="wimswarning">$m_reply_err</pre>
  101. !endif
  102.     <br class="spacer clearall"/>
  103.   </div>
  104.  </div>
  105. </div>
  106. <!--END oef answer-->
  107.