Subversion Repositories wimsdev

Rev

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

  1. !nocache
  2. !read oef/default
  3. !read oef/testseedscore.phtml
  4. !read getparm $module_init_parm intro_check intro_good
  5. !if 3 isin $get_introcheck
  6.   !set introgivegood=1
  7. !endif
  8. !default introgivegood=$get_intro_good
  9. !read oef/default
  10. !default seedrepeat=0
  11. !bound introgivegood between 0 and $limit_version default 1
  12. !if (($introgivegood=1 and $seedrepeat<=1) or\
  13.     ($introgivegood>=1 and $introgivegood<=$seedcnt and $seedlastcnt>=$seedrepeat))
  14.   !set presentgood=1
  15. !else
  16.   !set presentgood=0
  17. !endif
  18. <div class="oefanswer">
  19. !nocache
  20. !if bad_exo iswordof $error
  21.   !exit
  22. !endif
  23. !read ./oef/$module_language/answer.phtml
  24. <div id="answeranalysis">
  25. <h3 class="legend oefanswername">$name_answeranalysis</h3>
  26.  
  27. <div class="content">
  28. !if $ansorder!=$empty or $conditioncnt >0
  29.   <table class="float_left answeranalysis">
  30. !endif
  31.  
  32. !distribute item 1,1 into cntr,cntc
  33.  
  34. !set indgood   =<span class="oef_indgood">$indgood</span>
  35. !set indpartial=<span class="oef_indpartial">$indpartial</span>
  36. !set indprec   =<span class="oef_indprec">$indprec</span>
  37. !set indbad    =<span class="oef_indbad">$indbad</span>
  38. !set condgood  =<span class="oef_condgood">$condgood</span>
  39. !set condbad   =<span class="oef_condbad">$condbad</span>
  40.  
  41. !for t in $ansorder
  42.   !set i=$(cnt$t)
  43.   !if $oefsteps=$empty or $t$i isitemof $gotsteps
  44.     !read oef/answer$t.phtml
  45.   !! # Here is a whitelist of answer types where color legend must be displayed.
  46.    !if noanalyzeprint iswordof $(replyoption$i)
  47.         !set display_noanalyze=yes
  48.       !else
  49.       !! could have been defined for another reply
  50.       !if $display_noanalyze!=yes
  51.         !if (($(replytype$i) iswordof radio checkbox mark flashcard numeric and nolegend notwordof $(replyoption$i))\
  52.             or legend iswordof $(replyoption$i))\
  53.             and ?analyze notin $(replygood$i) and $wims_isexam<1
  54.           !if $(diareply$i)!=good or $(partialgood$i)=yes or $(precreply$i)=yes
  55.             !set display_oeflegend=yes
  56.             !if $(partialgood$i)=yes
  57.               !default display_partialgood=yes
  58.             !endif
  59.             !if $(precreply$i)=yes
  60.               !default display_precreply=yes
  61.             !endif
  62.             !if ($(replystyle$i)=mc or $(replytype$i) iswordof draw) and $(replytype$i) notwordof radio
  63.               !default display_forget=yes
  64.             !endif
  65.           !endif
  66.         !endif
  67.       !endif
  68.     !endif
  69.   !endif
  70.   !advance cnt$t
  71. !next t
  72.  
  73. !if $conditioncnt>0
  74.   !if $embedded_bracket!=$empty
  75.     <tr><td style="text-align:left" colspan="2" class="nowrap small">$embedded_bracket</td></tr>
  76.   !endif
  77. !endif
  78.  
  79. !for i in $condlist
  80.   !if hide notwordof $(condoption$i)
  81.     <tr><td colspan="2" class="bold">$(condname$i):</td><td>
  82.     !item $(condtest$i)+1 of $condbad,$condgood
  83.     </td></tr>
  84.   !endif
  85. !next i
  86.  
  87. !if $ansorder!=$empty or $conditioncnt >0
  88.   </table>
  89. !endif
  90.  
  91. !if $display_oeflegend issametext yes
  92.   !read oef/color_legend.phtml
  93. !endif
  94.  
  95. !if $feedbackcnt>0 and \
  96.   ($givefeed=$empty or ($givefeed=1 and ($score=10 or $seedlastcnt>=$seedrepeat))\
  97.         or ($givefeed>=2 and $seedcnt>=$givefeed and ($score=10 or $seedlastcnt>=$seedrepeat)))
  98.   <div class="oef_feedbacks" style="clear:left;">
  99.   !read $deffile feedback
  100.   </div>
  101. !endif
  102.  
  103. !!presentsol=1 deprecated
  104. !! givesol=1: always if $score=10 or at the last try of all versions
  105. !if $solution!=$empty and ($givesol=$empty or\
  106.       (($presentsol=1 and $score<10)\
  107.         or ($givesol=1 and ($score=10 or $seedlastcnt>=$seedrepeat))\
  108.         or ($givesol>=2 and $seedcnt>=$givesol and ($score=10 or $seedlastcnt>=$seedrepeat))))
  109.   <div class="wims_widget_box clearall">
  110.     <div class="title_box"><h3>$name_Solution.</h3></div>
  111.     <div class="box_content">
  112.   !if $solution!=$executed_str or $oef2wims_version<3.10
  113.     $solution
  114.   !else
  115.     !read $deffile solution
  116.   !endif
  117.   </div>
  118.   </div>
  119. !endif
  120. !reset seedlastcnt
  121.  
  122. !if $m_reply_err != $empty
  123.   <pre class="wimswarning">$m_reply_err</pre>
  124. !endif
  125.   <br class="spacer clearall" />
  126.   </div>
  127.  </div>
  128. </div>
  129. <!--END oef answer-->
  130.