Subversion Repositories wimsdev

Rev

Rev 7086 | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. <script>
  2. //<![CDATA[
  3. <!-- no validator -->
  4.     function dontknow(){
  5.         myConfirm('$dontknow','?','$wims_ref_name','$session','$module','$counter','$nok_send_color');
  6.     }
  7.  
  8. //]]>
  9. </script>
  10. !set n=$counter
  11. !! multiplechoice=1 choose from $options possibilities
  12. !! each possibility is called ex1,ex2,ex3...ex10 etc
  13. <table id="exercise" class="exercise"><!-- begin table id="exercise" -->
  14.     <tr>
  15.     <td class="exercise_t">
  16.         $(question$n)
  17.         !if $(formula$n) != $empty
  18.             <br />
  19.             !if $display=1234
  20.                 !insmath $$$$ $(formula$n) $$$$
  21.             !else
  22.                 !insmath $(formula$n)
  23.             !endif
  24.         !endif
  25.         !if $applet=1
  26.             <br />
  27.             $(object$n)
  28.         !endif
  29.         !if $exotext != $empty
  30.             <br />
  31.             $exotext
  32.         !endif
  33.     <td>
  34. !if $make_tr=1
  35.     </tr>
  36.     <tr>
  37.     !endif
  38.     <td class="exercise_m">
  39.         <table class="exercise"><!-- begin table with click stuff -->
  40.             <tr>
  41.         !if $[$options*$xsize]>840
  42.             !set one_row=2
  43.         !else
  44.             !set one_row=1
  45.         !endif
  46.         !set t=0
  47.         !for p=1 to $options
  48.             !increase t
  49.             <td style="vertical-align:top;background-color:lightblue;padding:10px;border-spacing:5px" onmouseover="this.style.backgroundColor='yellow';" onmouseout="this.style.backgroundColor='lightblue';">
  50.                 <a style="cursor:pointer" onclick="javascript:myConfirm('<br />$send : no. $p ?<br />','$p','$wims_ref_name','$session','$module','$counter','$ok_send_color');">
  51.             !if $multiimage=1
  52.                 !if $draw=1
  53.                     !set insdraw_size=$xsize,$ysize
  54.                     !insdraw $(ex$p)
  55.                 !else
  56.                     !if $plot=1
  57.                         !set insplot_set=$(image_settings$n)
  58.                         !insplot $(ex$p)
  59.                     !else
  60.                         $(ex$p)
  61.                     !endif
  62.                 !endif
  63.             !else
  64.                 !if $math=0
  65.                     <span class="schaersvoorde_link">$(ex$p)</span>
  66.                 !else
  67.                     !insmath $(ex$p)
  68.                 !endif
  69.             !endif
  70.                 </a>
  71.             </td>
  72.             !if $t=2 and $one_row=2
  73.             </tr>
  74.             <tr>
  75.                 !set t=0
  76.             !endif
  77.         !next p
  78.             </tr>
  79.         </table><!-- end table with click stuff -->
  80.     </td>
  81. </table><!-- end table id="exercise" -->
  82.  
  83. <div id="send_buttons" class="embedded_central">
  84.     <input type="button" id="schaersvoorde_nok_button" onclick="javascript:dontknow();" value="$dontknow" />
  85. </div>
  86. !exit
  87.