Subversion Repositories wimsdev

Rev

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

  1. !if $noselect=1
  2.     <script type="text/javascript" src="$jsdir/nocut.js"></script>
  3. !endif
  4.  
  5. <script type="text/javascript">
  6. //<![CDATA[
  7. <!-- no validator -->
  8.     var stickit=0;
  9.     function showimage() {MijnVenster1=window.open("$wims_ref_name?&session=$session&module=$module&cmd=getins&special_parm=insert-1.gif", "", "scrollbars=1,width=640,height=480,left=0,top=0");MijnVenster1.focus();}
  10.     function showScribble(){if(stickit == 0){stickit=1;document.getElementById('stickit_area').style.display = "block";}else{stickit=0;document.getElementById('stickit_area').style.display = "none";}}
  11. !if $time=1
  12.     var clps = 0;function update() {if(clps) {clearTimeout(clps);clps  = 0;}var t = new Date();document.getElementById('time').value = ""  + t.getHours() + ":"  + t.getMinutes() + ":" + t.getSeconds();clps = setTimeout("update()", 1000);}function startclock() {clps = setTimeout("update()", 500);} startclock();
  13. !endif
  14.  
  15. //]]>
  16. </script>
  17. !set wims_texsize=$mytexsize
  18.  
  19. <table id="myheader">
  20.     <tr>
  21.     <td id="header1">
  22.         !if $exotitle != $empty
  23.             <kbd>$exotitle</kbd>
  24.             <br />
  25.         !endif
  26.         !if exam notin $session
  27.             !href  module=adm/light&session=$session&phtml=useropts.phtml.$lang <img src="$gifdir/use_mathml.png" alt="use_mathml" style="border:0px;" />
  28.             !href target=wims_mhelp module=$module&session=$session&cmd=help <img src="$gifdir/help.png" alt="help" style="border:0px;" />
  29.             !if $helptext=$empty
  30.                 <a onmouseover="this.T_OPACITY=70;return escape('<img src=\'$gifdir/nohelp.jpg\' alt=\'no help today\' >')"><img src="$gifdir/tip.png" alt="tip" style="border:0px" /></a>
  31.             !else
  32.                 <a onmouseover="return escape('$helptext')"><img src="$gifdir/tip.png" alt="tip" style="border:0px" /></a>
  33.             !endif
  34.             <img style="display:none" id="wait_gif" src="$gifdir/wait.gif" alt="wait wait" />
  35.             <br />
  36.             <span class="schaersvoorde_alarm">
  37.                 $no_back_button
  38.             </span>
  39.             <br />
  40.         !endif
  41.         !if $roundingtext!=$empty
  42.             <span class="schaersvoorde_alarm">
  43.                 $roundingtext
  44.             </span>
  45.         !endif
  46.     </td><!-- end td class=header1 -->
  47.     <td class="header2">
  48.         !if $calculator=3
  49.             <script type="text/javascript">
  50.             //<![CDATA[
  51.             <!-- no validator -->
  52.             function Readxcalc(){
  53.                 var calc=document.getElementById("javaxcalc").ReadApplet();
  54.                 if(confirm("$send \n"+calc)){
  55.                     calc = encodeURIComponent(calc);
  56.                     URL = '$wims_ref_name?session=$session&+module=$module&+cmd=reply&+reply$n='+calc ;
  57.                     document.location.href = URL;
  58.                     document.getElementById("xcalc").destroy();
  59.                 }
  60.             }
  61.             //]]>
  62.             </script>
  63.             <object id="javaxcalc" width="100px" height="60px" classid="java:Rekenmachien.class" type="application/x-java-applet;jpi-version=1.4">>
  64.                 <param name="java_codebase" value="$appletdir" />
  65.                 <param name="java_archive" value="Rekenmachien.jar" />
  66.                 <param name="java_code" value="Rekenmachien.class" />
  67.                 <param name="fontsize1" value="10" />
  68.                 <param name="fontsize2" value="10" />
  69.                 <param name="fontsize2" value="14" />
  70.                 <param name="language" value="$taal" />
  71.                 <param name="pencolor1" value="0,0,0" />
  72.                 <param name="pencolor2" value="255,0,15" />
  73.                 <param name="bgcolor1" value="200,250,255" />
  74.                 <param name="#fffff0" value="200,210,210" />
  75.                 <a onmouseover="return escape('<img src=\'$gifdir/java.jpg\' alt=\'Get JAVA\' />');" target="newwindow" href="http://www.java.com/$lang/download/manual.jsp?locale=$lang" >
  76.                     $nojava
  77.                 </a>
  78.             </object>
  79.             <br />
  80.                 <input style="font-size:tiny;background-color:#afceff;" type="button" onclick="javascript:Readxcalc();" value="$send" />
  81.             <br />
  82.         !endif
  83.         <textarea id="stickit_area" cols="20" rows="3" style="display:none;background-color:yellow;font-size:12pt;border:1px solid red;"></textarea>
  84.         !if $debug=1
  85.             !if $wims_exec_error != $empty
  86.                 <span style="schaersvoorde_alarm">$wims_exec_error</span>
  87.                 <br />
  88.                 <span style="schaersvoorde_alarm">$debug</span>
  89.                 <br />
  90.             !endif
  91.         !endif
  92.     </td><!-- end td class=header2 -->
  93.  
  94.     <td class="header3">
  95.         !if $debug=1
  96.             !href target=wims_mhelp session=$session&+module=$module&+cmd=help
  97.             <img src="$gifdir/exec.png" style="border:0px;;vertical-align:top" alt="debug-info" />
  98.         !endif
  99.         !if $viewlogo=1
  100.             <a onmouseover="this.T_OPACITY=70;this.T_PADDING=10;this.T_BORDERCOLOR='red';this.T_BORDERWIDTH=1;return escape('$logotext')">
  101.                 $logo
  102.             </a>
  103.         !endif
  104.         !if $mathview isin 1,2
  105.             !if exam isin $session
  106.             !! hope this is not interfering with something important...
  107.                 !set help_session=!nospace $session _mhelp
  108.             !else
  109.                 !set help_session=!replace internal . by , in $session
  110.                 !set help_session=!item 1 of $help_session
  111.                 !set help_session=!nospace $help_session _ mhelp
  112.             !endif
  113.             <a onmouseover="return escape('$mathchecktext')" onclick="wims_help=window.open('$wims_ref_name?wims_window=new&+lang=nl&+session=$help_session&+module=$module&+cmd=help&+myvar4=$session','wims_help','status=no,toolbar=no,location=no,menubar=no,scrollbars=yes,resizable=yes')">
  114.                 <img src="$gifdir/math.jpg" alt="mathematical inputfield" style="border:0px;;vertical-align:top" />
  115.             </a>
  116.         !endif
  117.         !if $scribbling=1
  118.             <a onclick="javascrip:showScribble();" onmouseover="return escape('Post-It Memo')" >
  119.                 <img src="$gifdir/pencil.png" style="width:50;height:70;border:0px;vertical-align:top" alt="scribling" />
  120.             </a>
  121.         !endif
  122.         !if $calculator=2
  123.             <a onclick="window.open('$htmldir/mathcalc.html','xcalc','width=265px,height=400px,left=0px,top=0px')">
  124.                 <img src="$gifdir/xcalc.png" style="border:0px;;vertical-align:top" alt="xcalc" />
  125.             </a>
  126.         !else
  127.             !if $calculator=1
  128.                 <a onclick="window.open('$htmldir/basicalc.html','xcalc','width=240px,height=240px,left=0px,top=0px')">
  129.                     <img src="$gifdir/xcalc.png" style="border:0px;;vertical-align:top" alt="xcalc" />
  130.                 </a>
  131.             !endif
  132.         !endif
  133.         !if $time=1
  134.             </td>
  135.             <td style="text-align:right;vertical-align:top;line-height:1px;width:110px;height:64px;">
  136.                 <input style="width:110px;background-color:#c6e8ff;color:#ff0000;font-size:14pt;margin-right:0px;margin-top:0px;vertical-align:top;" type="text" id="time" size="7" />
  137.                 <br>
  138.                 <a onmouseover="this.T_OPACITY=80; return escape('<span style=\'color:red;font-size:12pt\'><tt>This exercise is written for the <i>Mozilla FireFox / Gecko</i> browser. Display and/or functionality on other browsers may be impaired. Use at your own peril ! <hr style=\'width:50%\' />2012<br/>j.m. evers </tt></span>')"  target="nieuw" href="http://www.mozilla-europe.org/$taal/" ><img src="$gifdir/getFireFox.gif" alt="get FIREFOX" style="border:0px;vertical-align:top;" /></a>
  139.         !endif
  140.     </td><!-- end td id=myheader3 -->
  141.     </tr>
  142. </table><!-- end table id=myheader -->
  143. <br />
  144.  
  145. <!-- end class=myheader.phtml -->
  146.  
  147. !if $try = $maxtry
  148.     !set alarm=!record 52 of $remarkdir/commonremarks.$taal
  149. !endif
  150.  
  151. <div id="alarmtext" style="white-space:wrap;text-align:center;margin-left:auto;margin-right:auto;max-width:460px;min-width:120px;min-height:50px;display:none;top:0px;left:0px;background-color:#daf6a4;font-style:italic;border:solid 2px red">
  152. !if $goback = 1
  153.     $errortext
  154. !else
  155.     $(remark$[$n-1])
  156. !endif
  157. $alarm
  158. </div>
  159.  
  160. !if $goback=1 or ($goodbadsign>0 and $counter>1) or $try>=$maxtry
  161.     <script type="text/javascript">
  162.     //<![CDATA[
  163.     <!-- no validator -->
  164.         var h = parseInt( (document.documentElement.clientHeight)/2);
  165.         var w = parseInt( (document.documentElement.clientWidth)/2 - 200);
  166.         document.getElementById('alarmtext').style.top = h+'px';
  167.         document.getElementById('alarmtext').style.left = w+'px';
  168.         document.getElementById('alarmtext').style.display = "block";
  169.         !if $try=$maxtry
  170.             document.getElementById('alarmtext').style.backgroundColor = "#ffafdd";
  171.         !else
  172.             document.getElementById('alarmtext').style.backgroundColor = "#ffc093";
  173.         !endif
  174.         window.scrollTo(w,h-120);
  175.         setTimeout('resetAlarm()',6000);
  176.         document.getElementById('alarmtext').style.backgroundColor = "#daf6a4";
  177.     //]]>
  178.     </script>
  179. !endif
  180.  
  181. <kbd>$questionnumber $counter)</kbd>
  182.  
  183. !exit
  184.