Subversion Repositories wimsdev

Rev

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

  1. !set wims_texsize=$mytexsize
  2. !set n=$counter
  3. !if $showanswer=0
  4.     $finalresult
  5.     !! to ensure playback of the exam is possible
  6.     !if $wims_user=supervisor
  7.         <p align="center">
  8.         <font color=red>Alert: these results are only visible for the <em>supervisor</em></font>
  9.         <table bgcolor=$bgcolor2 cellpadding=10 cellspacing=$cellspacing border=1>
  10.             <tr>
  11.             !for n=1 to $total_exos
  12.                 <td valign="top">
  13.                     <small>
  14.                         !if $total_exos >1
  15.                             $questionnumber <b>$n</b>)<p>
  16.                         !endif
  17.                         $(question$n)
  18.                         !if $(formula$n) !=$empty
  19.                             <br>
  20.                             !insmath $(formula$n)
  21.                         !endif
  22.                         !if $(texanswer$n) != $empty
  23.                             <p>
  24.                             !insmath $(texanswer$n)
  25.                         !endif
  26.                         !if $(textanswer$n) != $empty
  27.                             <p>
  28.                             <font color=green>$(textanswer$n)</font>                                                                    
  29.                         !endif  
  30.                     </small>
  31.                 </td>
  32.                 <td  valign="top">
  33.                     <small>
  34.                         $youranswer
  35.                         !if $(reply$n) != $empty
  36.                             <p>
  37.                             !if $multiimage=1
  38.                                 !if $plot=1
  39.                                     !insplot $(reply$n)
  40.                                 !else
  41.                                     !if $draw=1
  42.                                         !insdraw $(reply$n)
  43.                                     !endif
  44.                                 !endif
  45.                             !else      
  46.                                 !if $math=1
  47.                                     !insmath $(reply$n)
  48.                                 !else
  49.                                     $(reply$n)
  50.                                 !endif
  51.                             !endif
  52.                         !endif
  53.                 </small>
  54.             </td>
  55.             </tr><tr>
  56.         !next n
  57.     </table>
  58.     </p>
  59.     !endif
  60. !else
  61.     <p align="center">
  62.     <table bgcolor=$bgcolor2 cellpadding=10 cellspacing=$cellspacing border=1>
  63.         <tr>
  64.         !for n=1 to $total_exos
  65.             <td valign="top">
  66.                 <small>
  67.                     !if $total_exos >1
  68.                         $questionnumber <b>$n</b>)<p>
  69.                     !endif
  70.                     $(question$n)
  71.                     !if $(formula$n) !=$empty
  72.                         <br>
  73.                         !insmath $(formula$n)
  74.                     !endif
  75.                     !if $(texanswer$n) != $empty
  76.                         <p>
  77.                         !insmath $(texanswer$n)
  78.                     !endif
  79.                     !if $(textanswer$n) != $empty
  80.                         <p>
  81.                         <font color=green>$(textanswer$n)</font>                                                                    
  82.                     !endif      
  83.                 </small>
  84.             </td>
  85.             <td  valign="top">
  86.                 <p align="center">
  87.                     !if $(image$n) != $empty
  88.                         !if $plot=1
  89.                             !set insplot_set=$(image_settings$n) ; size 0.5,0.5;
  90.                             !insplot $(image$n)
  91.                         !endif
  92.                         !if $draw=1
  93.                             !set insdraw_size=$(image_settings$n)
  94.                             !insdraw $(image$n)
  95.                         !endif
  96.                     !endif
  97.                 </p>
  98.             </td>
  99.             <td  valign="top">
  100.                 <small>
  101.                     $youranswer
  102.                     !if $(reply$n) != $empty
  103.                         <p>
  104.                         !if $multiimage=1
  105.                             !if $plot=1
  106.                                 !insplot $(reply$n)
  107.                             !else
  108.                                 !if $draw=1
  109.                                     !insdraw $(reply$n)
  110.                                 !endif
  111.                             !endif
  112.                         !else  
  113.                             !if $math=1
  114.                                 !insmath $(reply$n)
  115.                             !else
  116.                                 $(reply$n)
  117.                             !endif
  118.                         !endif
  119.                         <hr>
  120.                     !endif
  121.                     !if $goodbadsign>0 
  122.                         <em>
  123.                             $(remark$n)
  124.                         </em>
  125.                     !endif
  126.                 </small>
  127.             </td>
  128.             </tr><tr>
  129.         !next n
  130.     </table>
  131.     </p>
  132.     $finalresult
  133. !endif
  134. !ifval $try >0 and $module_score !=0
  135.     <br>
  136.     !set s=!record 87 of $remarkdir/commonremarks.$taal
  137.     <font size="-1" color="red">$s</font>
  138. !endif
  139. !exit
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.