Rev 7086 | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 12523 | schaersvoo | 1 | <script> |
| 5857 | schaersvoo | 2 | //<![CDATA[ |
| 5979 | schaersvoo | 3 | <!-- no validator --> |
| 338 | schaersvoo | 4 | function dontknow(){ |
| 5984 | schaersvoo | 5 | myConfirm('$dontknow','?','$wims_ref_name','$session','$module','$counter','$nok_send_color'); |
| 338 | schaersvoo | 6 | } |
| 5979 | schaersvoo | 7 | |
| 5857 | schaersvoo | 8 | //]]> |
| 338 | schaersvoo | 9 | </script> |
| 10 | !set n=$counter |
||
| 11 | !! multiplechoice=1 choose from $options possibilities |
||
| 12 | !! each possibility is called ex1,ex2,ex3...ex10 etc |
||
| 5984 | schaersvoo | 13 | <table id="exercise" class="exercise"><!-- begin table id="exercise" --> |
| 5889 | schaersvoo | 14 | <tr> |
| 5944 | schaersvoo | 15 | <td class="exercise_t"> |
| 5889 | schaersvoo | 16 | $(question$n) |
| 17 | !if $(formula$n) != $empty |
||
| 18 | <br /> |
||
| 6507 | schaersvoo | 19 | !if $display=1234 |
| 6041 | schaersvoo | 20 | !insmath $$$$ $(formula$n) $$$$ |
| 21 | !else |
||
| 22 | !insmath $(formula$n) |
||
| 23 | !endif |
||
| 5889 | schaersvoo | 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> |
||
| 5966 | schaersvoo | 34 | !if $make_tr=1 |
| 5944 | schaersvoo | 35 | </tr> |
| 36 | <tr> |
||
| 5889 | schaersvoo | 37 | !endif |
| 5944 | schaersvoo | 38 | <td class="exercise_m"> |
| 5984 | schaersvoo | 39 | <table class="exercise"><!-- begin table with click stuff --> |
| 5889 | schaersvoo | 40 | <tr> |
| 5984 | schaersvoo | 41 | !if $[$options*$xsize]>840 |
| 42 | !set one_row=2 |
||
| 5944 | schaersvoo | 43 | !else |
| 44 | !set one_row=1 |
||
| 45 | !endif |
||
| 46 | !set t=0 |
||
| 47 | !for p=1 to $options |
||
| 48 | !increase t |
||
| 5966 | schaersvoo | 49 | <td style="vertical-align:top;background-color:lightblue;padding:10px;border-spacing:5px" onmouseover="this.style.backgroundColor='yellow';" onmouseout="this.style.backgroundColor='lightblue';"> |
| 5984 | schaersvoo | 50 | <a style="cursor:pointer" onclick="javascript:myConfirm('<br />$send : no. $p ?<br />','$p','$wims_ref_name','$session','$module','$counter','$ok_send_color');"> |
| 5944 | schaersvoo | 51 | !if $multiimage=1 |
| 52 | !if $draw=1 |
||
| 53 | !set insdraw_size=$xsize,$ysize |
||
| 54 | !insdraw $(ex$p) |
||
| 5889 | schaersvoo | 55 | !else |
| 5944 | schaersvoo | 56 | !if $plot=1 |
| 57 | !set insplot_set=$(image_settings$n) |
||
| 58 | !insplot $(ex$p) |
||
| 59 | !else |
||
| 7086 | schaersvoo | 60 | $(ex$p) |
| 5889 | schaersvoo | 61 | !endif |
| 5944 | schaersvoo | 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> |
||
| 5984 | schaersvoo | 72 | !if $t=2 and $one_row=2 |
| 5889 | schaersvoo | 73 | </tr> |
| 5944 | schaersvoo | 74 | <tr> |
| 5984 | schaersvoo | 75 | !set t=0 |
| 5944 | schaersvoo | 76 | !endif |
| 77 | !next p |
||
| 78 | </tr> |
||
| 5984 | schaersvoo | 79 | </table><!-- end table with click stuff --> |
| 5889 | schaersvoo | 80 | </td> |
| 5984 | schaersvoo | 81 | </table><!-- end table id="exercise" --> |
| 5923 | schaersvoo | 82 | |
| 5944 | schaersvoo | 83 | <div id="send_buttons" class="embedded_central"> |
| 6041 | schaersvoo | 84 | <input type="button" id="schaersvoorde_nok_button" onclick="javascript:dontknow();" value="$dontknow" /> |
| 5944 | schaersvoo | 85 | </div> |
| 6041 | schaersvoo | 86 | !exit |