Rev 15574 | Rev 16736 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 20 | reyssat | 1 | !nocache |
| 12461 | bpr | 2 | !read oef/default |
| 12350 | bpr | 3 | !read oef/testseedscore.phtml |
| 15146 | obado | 4 | !read oef/get_presentgood.proc |
| 14491 | obado | 5 | |
| 1664 | bpr | 6 | !if bad_exo iswordof $error |
| 12324 | bpr | 7 | !exit |
| 1664 | bpr | 8 | !endif |
| 15146 | obado | 9 | |
| 10 | <div class="oefanswer"> |
||
| 20 | reyssat | 11 | !read ./oef/$module_language/answer.phtml |
| 15043 | obado | 12 | <div class="answer_analysis"> |
| 16085 | bpr | 13 | <h2 class="legend oefanswername">$name_answeranalysis</h2> |
| 8700 | obado | 14 | |
| 8701 | obado | 15 | <div class="content"> |
| 6643 | bpr | 16 | !if $ansorder!=$empty or $conditioncnt >0 |
| 11207 | obado | 17 | <table class="float_left answeranalysis"> |
| 6643 | bpr | 18 | !endif |
| 8700 | obado | 19 | |
| 1664 | bpr | 20 | !distribute item 1,1 into cntr,cntc |
| 3852 | bpr | 21 | |
| 11207 | obado | 22 | !set indgood =<span class="oef_indgood">$indgood</span> |
| 23 | !set indpartial=<span class="oef_indpartial">$indpartial</span> |
||
| 24 | !set indprec =<span class="oef_indprec">$indprec</span> |
||
| 25 | !set indbad =<span class="oef_indbad">$indbad</span> |
||
| 26 | !set condgood =<span class="oef_condgood">$condgood</span> |
||
| 27 | !set condbad =<span class="oef_condbad">$condbad</span> |
||
| 3852 | bpr | 28 | |
| 1664 | bpr | 29 | !for t in $ansorder |
| 12324 | bpr | 30 | !set i=$(cnt$t) |
| 31 | !if $oefsteps=$empty or $t$i isitemof $gotsteps |
||
| 13698 | bpr | 32 | !set tt=!word 1 of $(replygood$i) |
| 33 | !if noanalyzeprint notwordof $(replyoption$i) or ?analyze notin $(replygood$i) |
||
| 34 | !read oef/answer$t.phtml |
||
| 35 | !endif |
||
| 13191 | bpr | 36 | !! # Here is a whitelist of answer types where color legend must be displayed. |
| 12324 | bpr | 37 | !if noanalyzeprint iswordof $(replyoption$i) |
| 13191 | bpr | 38 | !set display_noanalyze=yes |
| 39 | !else |
||
| 12324 | bpr | 40 | !! could have been defined for another reply |
| 41 | !if $display_noanalyze!=yes |
||
| 15255 | bpr | 42 | !if (($(replytype$i) iswordof radio checkbox mark flashcard numeric multipleclick\ |
| 43 | chemclick and nolegend notwordof $(replyoption$i))\ |
||
| 12324 | bpr | 44 | or legend iswordof $(replyoption$i))\ |
| 45 | and ?analyze notin $(replygood$i) and $wims_isexam<1 |
||
| 46 | !if $(diareply$i)!=good or $(partialgood$i)=yes or $(precreply$i)=yes |
||
| 47 | !set display_oeflegend=yes |
||
| 48 | !if $(partialgood$i)=yes |
||
| 49 | !default display_partialgood=yes |
||
| 50 | !endif |
||
| 51 | !if $(precreply$i)=yes |
||
| 52 | !default display_precreply=yes |
||
| 53 | !endif |
||
| 15255 | bpr | 54 | !if ($(replystyle$i)=mc or $(replytype$i) iswordof draw multipleclick chemclick) and $(replytype$i) notwordof radio |
| 12324 | bpr | 55 | !default display_forget=yes |
| 56 | !endif |
||
| 57 | !endif |
||
| 58 | !endif |
||
| 9255 | bpr | 59 | !endif |
| 8821 | bpr | 60 | !endif |
| 8700 | obado | 61 | !endif |
| 12324 | bpr | 62 | !advance cnt$t |
| 1664 | bpr | 63 | !next t |
| 64 | |||
| 65 | !if $conditioncnt>0 |
||
| 12324 | bpr | 66 | !if $embedded_bracket!=$empty |
| 67 | <tr><td style="text-align:left" colspan="2" class="nowrap small">$embedded_bracket</td></tr> |
||
| 68 | !endif |
||
| 1664 | bpr | 69 | !endif |
| 8700 | obado | 70 | |
| 1664 | bpr | 71 | !for i in $condlist |
| 12324 | bpr | 72 | !if hide notwordof $(condoption$i) |
| 73 | <tr><td colspan="2" class="bold">$(condname$i):</td><td> |
||
| 74 | !item $(condtest$i)+1 of $condbad,$condgood |
||
| 75 | </td></tr> |
||
| 76 | !endif |
||
| 1664 | bpr | 77 | !next i |
| 8700 | obado | 78 | |
| 6643 | bpr | 79 | !if $ansorder!=$empty or $conditioncnt >0 |
| 8700 | obado | 80 | </table> |
| 6643 | bpr | 81 | !endif |
| 1664 | bpr | 82 | |
| 8700 | obado | 83 | !if $display_oeflegend issametext yes |
| 84 | !read oef/color_legend.phtml |
||
| 85 | !endif |
||
| 86 | |||
| 12402 | bpr | 87 | !if $feedbackcnt>0 and \ |
| 14564 | bpr | 88 | ($givefeed=$empty or $givefeed=-1 or ($givefeed=1 and ($score=10 or $seedlastcnt>=$seedrepeat))\ |
| 13194 | bpr | 89 | or ($givefeed>=2 and $seedcnt>=$givefeed and ($score=10 or $seedlastcnt>=$seedrepeat))\ |
| 90 | or ($givefeed>=1 and _exam isin $wims_session)\ |
||
| 91 | ) |
||
| 12456 | bpr | 92 | <div class="oef_feedbacks" style="clear:left;"> |
| 12345 | bpr | 93 | !read $deffile feedback |
| 12346 | bpr | 94 | </div> |
| 12345 | bpr | 95 | !endif |
| 14973 | bpr | 96 | <br class="spacer clearall" /> |
| 14980 | bpr | 97 | !if $status=$empty |
| 98 | <span class="oef_modulescore"> |
||
| 15146 | obado | 99 | !if $qnum>1 |
| 100 | $name_serie_score |
||
| 101 | !else |
||
| 102 | $name_exo_score |
||
| 103 | !endif |
||
| 14980 | bpr | 104 | </span> |
| 105 | !ifval $module_score>9.8 |
||
| 106 | <span class="oef_congratulations">$wims_name_Congratulations</span> |
||
| 107 | !endif |
||
| 108 | !if $toolate!=$empty and $score>$module_score |
||
| 109 | <span class="oef_penalty">$name_penalty</span> |
||
| 110 | !endif |
||
| 111 | !endif |
||
| 15146 | obado | 112 | !!end of .content |
| 15026 | obado | 113 | </div> |
| 15146 | obado | 114 | !!end of .answer_analysis |
| 15026 | obado | 115 | </div> |
| 116 | |||
| 12345 | bpr | 117 | !!presentsol=1 deprecated |
| 12460 | bpr | 118 | !! givesol=1: always if $score=10 or at the last try of all versions |
| 13194 | bpr | 119 | !if $solution!=$empty and ($givesol=$empty or (($presentsol=1 and $score<10)\ |
| 120 | or ($givesol=1 and ($score=10 or $seedlastcnt>=$seedrepeat))\ |
||
| 121 | or ($givesol>=2 and $seedcnt>=$givesol and ($score=10 or $seedlastcnt>=$seedrepeat))\ |
||
| 122 | or ($givesol>=1 and _exam isin $wims_session)\ |
||
| 123 | )) |
||
| 8701 | obado | 124 | <div class="wims_widget_box clearall"> |
| 14491 | obado | 125 | <div class="title_box"> |
| 126 | <input type="button" class="wims_button wims_secondary_button float_right small" |
||
| 127 | id="button_print" value="$name_sol_print" |
||
| 128 | onclick="printSolution()"> |
||
| 129 | <script> |
||
| 130 | function printSolution() { |
||
| 131 | css_print = document.getElementById("css_print"); |
||
| 132 | css_print.disabled=false; |
||
| 133 | window.print(); |
||
| 134 | css_print.disabled=true; |
||
| 135 | } |
||
| 136 | </script> |
||
| 16085 | bpr | 137 | <h2>$name_Solution</h2> |
| 14491 | obado | 138 | </div> |
| 12324 | bpr | 139 | <div class="box_content"> |
| 14491 | obado | 140 | !if $solution!=$executed_str or $oef2wims_version<3.10 |
| 141 | $solution |
||
| 142 | !else |
||
| 143 | !read $deffile solution |
||
| 144 | !endif |
||
| 145 | </div> |
||
| 8701 | obado | 146 | </div> |
| 1664 | bpr | 147 | !endif |
| 14491 | obado | 148 | |
| 15574 | bpr | 149 | !!reset seedlastcnt |
| 1664 | bpr | 150 | |
| 20 | reyssat | 151 | !if $m_reply_err != $empty |
| 12324 | bpr | 152 | <pre class="wimswarning">$m_reply_err</pre> |
| 20 | reyssat | 153 | !endif |
| 12324 | bpr | 154 | <br class="spacer clearall" /> |
| 4667 | obado | 155 | </div> |
| 6530 | bpr | 156 | <!--END oef answer--> |