Subversion Repositories wimsdev

Rev

Rev 9890 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9890 Rev 12523
Line 1... Line 1...
1
!if $noselect=1
1
!if $noselect=1
2
    <script type="text/javascript" src="$jsdir/nocut.js"></script>
2
    <script src="$jsdir/nocut.js"></script>
3
!endif
3
!endif
4
 
4
 
5
<script type="text/javascript">
5
<script>
6
//<![CDATA[
6
//<![CDATA[
7
<!-- no validator -->
7
<!-- no validator -->
8
    var stickit = 0;
8
    var stickit = 0;
9
    var xcalc_window = null;
9
    var xcalc_window = null;
10
    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 showimage() {MijnVenster1=window.open("$wims_ref_name?&session=$session&module=$module&cmd=getins&special_parm=insert-1.gif", "", "scrollbars=1,width=640px,height=480px,left=0px,top=0px");MijnVenster1.focus();}
11
    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
    function showScribble(){if(stickit == 0){stickit=1;document.getElementById('stickit_area').style.display = "block";}else{stickit=0;document.getElementById('stickit_area').style.display = "none";}}
12
!if $time=1
12
!if $time=1
13
    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
    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();
14
!endif
14
!endif
15
//]]>
15
//]]>
Line 47... Line 47...
47
            </span>
47
            </span>
48
        !endif
48
        !endif
49
    </td><!-- end td class=header1 -->
49
    </td><!-- end td class=header1 -->
50
    <td class="header2">
50
    <td class="header2">
51
        !if $calculator=3
51
        !if $calculator=3
52
            <script type="text/javascript">
52
            <script>
53
            //<![CDATA[
53
            //<![CDATA[
54
            <!-- no validator -->
54
            <!-- no validator -->
55
            function Readxcalc(){
55
            function Readxcalc(){
56
                var calc=document.getElementById("javaxcalc").ReadApplet();
56
                var calc=document.getElementById("javaxcalc").ReadApplet();
57
                if(confirm("$send \n"+calc)){
57
                if(confirm("$send \n"+calc)){
Line 109... Line 109...
109
                <img src="$gifdir/math.jpg" alt="mathematical inputfield" style="border:0px;;vertical-align:top" />
109
                <img src="$gifdir/math.jpg" alt="mathematical inputfield" style="border:0px;;vertical-align:top" />
110
            </a>
110
            </a>
111
        !endif
111
        !endif
112
        !if $scribbling=1
112
        !if $scribbling=1
113
            <a onclick="javascript:showScribble();" onmouseover="return escape('Post-It Memo')" >
113
            <a onclick="javascript:showScribble();" onmouseover="return escape('Post-It Memo')" >
114
                <img src="$gifdir/pencil.png" style="width:50;height:70;border:0px;vertical-align:top" alt="scribling" />
114
                <img src="$gifdir/pencil.png" style="width:50px;height:70px;border:0px;vertical-align:top" alt="scribling" />
115
            </a>
115
            </a>
116
        !endif
116
        !endif
117
        !if $calculator=2
117
        !if $calculator=2
118
            <a onclick="xcalc_window = window.open('$htmldir/mathcalc.html','xcalc','width=265px,height=400px,left=0px,top=0px')">
118
            <a onclick="xcalc_window = window.open('$htmldir/mathcalc.html','xcalc','width=265px,height=400px,left=0px,top=0px')">
119
                <img src="$gifdir/xcalc.png" style="border:0px;;vertical-align:top" alt="xcalc" />
119
                <img src="$gifdir/xcalc.png" style="border:0px;;vertical-align:top" alt="xcalc" />
Line 138... Line 138...
138
<br />
138
<br />
139
<!-- end class=myheader.phtml -->
139
<!-- end class=myheader.phtml -->
140
!if $try = $maxtry
140
!if $try = $maxtry
141
    !set alarm=!record 52 of $remarkdir/commonremarks.$taal
141
    !set alarm=!record 52 of $remarkdir/commonremarks.$taal
142
!endif
142
!endif
143
<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">
143
<div id="alarmtext" style="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">
144
!if $goback = 1
144
!if $goback = 1
145
    $errortext
145
    $errortext
146
!else
146
!else
147
    $(remark$[$n-1])
147
    $(remark$[$n-1])
148
!endif
148
!endif
149
$alarm
149
$alarm
150
</div>
150
</div>
151
 
151
 
152
!if $goback=1 or ($goodbadsign>0 and $counter>1) or $try>=$maxtry
152
!if $goback=1 or ($goodbadsign>0 and $counter>1) or $try>=$maxtry
153
    <script type="text/javascript">
153
    <script>
154
    //<![CDATA[
154
    //<![CDATA[
155
    <!-- no validator -->
155
    <!-- no validator -->
156
        var h = parseInt( (document.documentElement.clientHeight)/2);
156
        var h = parseInt( (document.documentElement.clientHeight)/2);
157
        var w = parseInt( (document.documentElement.clientWidth)/2 - 200);
157
        var w = parseInt( (document.documentElement.clientWidth)/2 - 200);
158
        document.getElementById('alarmtext').style.top = h+'px';
158
        document.getElementById('alarmtext').style.top = h+'px';