Subversion Repositories wimsdev

Rev

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