Subversion Repositories wimsdev

Rev

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

  1. !nocache
  2. !read oef/testseedscore.phtml
  3.  
  4. !!3,30,31,32,33,34,35 ->  ,0,1,2,3,4,5
  5. !read getparm $module_init_parm intro_check
  6. !default introcheck=$get_intro_check
  7. !set introcheck3=!values x-30 for x in $introcheck
  8. !set introcheck3=!listintersect $introcheck3 and 0,1,2,3,4,5
  9. !default seedrepeat=0
  10. !default introcheck3=1
  11. !! iintrocheck3 should have only one element amongst 2,3,4,5 or empty
  12. !! 3 isitemof $intro_check is for retrocompatibility
  13. !if (3 isitemof $intro_check or ($introcheck3=1 and $seedrepeat=0) or\
  14.     ($introcheck3>=1 and $introcheck3<$seedcnt and $seedlastcnt>=$seedrepeat+1))
  15.   !set presentgood=1
  16. !endif
  17.  
  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 ($presentfeed=$empty\
  96.         or ($presentfeed=2 and ($score=10 or $seedlastcnt>=$seedrepeat+1))\
  97.         or ($presentfeed>2 and $seedcnt>=$presentfeed-1 and ($score=10 or $seedlastcnt>=$seedrepeat+1)))
  98.   <div class="oef_feedbacks" style="clear:left;">
  99.   !read $deffile feedback
  100.   </div>
  101. !endif
  102.  
  103. !!presentsol=1 deprecated
  104. !! presentsol=2: always if $score=10 or at the last try of all versions
  105. !! presentsol=n : at the last try of version if version is > n-1
  106. !if $solution!=$empty and \
  107.       (($presentsol=1 and $score<10)\
  108.         or ($presentsol=2 and ($score=10 or $seedlastcnt>=$seedrepeat+1))\
  109.         or ($presentsol>2 and $seedcnt>=$presentsol-1 and ($score=10 or $seedlastcnt>=$seedrepeat+1)))
  110.   <div class="wims_widget_box clearall">
  111.     <div class="title_box"><h3>$name_Solution.</h3></div>
  112.     <div class="box_content">
  113.   !if $solution!=$executed_str or $oef2wims_version<3.10
  114.     $solution
  115.   !else
  116.     !read $deffile solution
  117.   !endif
  118.   </div>
  119.   </div>
  120. !endif
  121. !reset seedlastcnt
  122.  
  123. !if $m_reply_err != $empty
  124.   <pre class="wimswarning">$m_reply_err</pre>
  125. !endif
  126.   <br class="spacer clearall" />
  127.   </div>
  128.  </div>
  129. </div>
  130. <!--END oef answer-->
  131.