Annotation of loncom/html/res/adm/pages/menu.html, revision 1.30
1.1 www 1: <html>
2: <!--
3: The LearningOnline Network with CAPA
4: Remote Control
5: 6/12/00,6/13,6/14,6/15 Gerd Kortemeyer
1.5 www 6: Sept Ben Tyszka
1.15 www 7: 10/2,10/3,10/4,10/17,10/19,3/1/1 Gerd Kortemeyer
1.18 www 8: Jan Guy Albertelli
9: 5/1/1 Gerd Kortemeyer
1.19 albertel 10: 2/19 Guy Albertelli
1.23 www 11: 3/21 Gerd Kortemeyer
1.24 tyszkabe 12: 4/30 Ben Tyszka
1.28 www 13: 5/2 Scott Harrison
1.29 www 14: 5/4,5/9 Gerd Kortemeyer
1.1 www 15: -->
16: <head>
17: <title>LON-CAPA Remote</title>
18: </head>
19:
20:
1.23 www 21: <body bgcolor="#BBBBBB"
22: background="remotebg.gif"
23: onLoad="activate();"
24: onUnload="logout();">
1.19 albertel 25: <basefont size="1" />
1.1 www 26:
1.19 albertel 27: <script type="text/javascript">
1.22 harris41 28: <!--
1.1 www 29: statustop='';
30: statusbot='';
1.23 www 31: active=0;
1.1 www 32:
1.27 harris41 33: var currentURL='';
1.28 www 34: var currentStale=1;
1.26 harris41 35:
1.25 harris41 36: // not used (yet)
37: // var w_Annotator;
38: // var w_bmquery;
39: // var w_BookmarkPal;
40: // var w_LONcatInfo;
41:
42: //////////////////////////////////////
43: var w_Annotator_flag=-1;
44: var w_bmquery_flag=-1;
45: var w_BookmarkPal_flag=-1;
46: var w_LONcatInfo_flag=-1;
47: // 1 means currently open
48: // 0 means closed (but has been open)
49: // -1 means never yet opened/defined
50: ///////////////////////////////////////
51:
1.1 www 52: clienthost=window.location.host;
53: clientwindow=opener;
54:
55: function windowcheck() {
56: if (clientwindow.closed) {
57: clientwindow=window.open("http://"+clienthost+"/");
58: }
1.7 www 59: clientwindow.name='loncapaclient';
1.1 www 60: }
61:
1.5 www 62: function logout () {
1.10 www 63: windowcheck();
64: if (clientwindow.status!='MenuControl:nologout')
65: {
1.25 harris41 66: if (w_Annotator_flag!=-1 && annotator && !annotator.closed) {
67: annotator.close();
68: }
69: if (w_bmquery_flag!=-1 && bmquery && !bmquery.closed) {
70: bmquery.close();
71: }
72: if (w_BookmarkPal_flag!=-1 && bookmarkpal && !bookmarkpal.closed) {
73: bookmarkpal.close();
74: }
75: if (w_LONcatInfo_flag!=-1 && loncatinfo && !loncatinfo.closed) {
76: loncatinfo.close();
77: }
1.9 www 78: clientwindow.window.location.href="http://"+clienthost+"/adm/logout";
79: }
1.1 www 80: }
81:
1.23 www 82: function activate () {
83: setTimeout('active=1;',2000);
84: }
85:
86: function deactivate () {
87: active=0;
88: }
89:
1.1 www 90: function display(utext,ltext) {
1.23 www 91: var i; var ch;
92: this.window.focus();
93: if (active) {
1.1 www 94: for (i=0;i<=7;i++) {
95: if (i<utext.length) {
96: ch=utext.charAt(i);
97: if (ch==' ') { ch='space'; }
98: if (ch=='-') { ch='hyphen'; }
99: } else { ch='space'; }
100: this.document['i'+i].src=ch+'.gif';
101: }
102: for (i=0;i<=7;i++) {
103: if (i<ltext.length) {
104: ch=ltext.charAt(i);
105: if (ch==' ') { ch='space'; }
106: if (ch=='-') { ch='hyphen'; }
107: } else { ch='space'; }
108: this.document['j'+i].src=ch+'.gif';
109: }
1.23 www 110: }
1.1 www 111: }
112:
113: function defdis() {
114: this.window.focus();
115: display(statustop,statusbot);
116: }
117:
118: function setstatus(tp,bt) {
119: this.document['led'].src="ledblink.gif";
120: statustop=tp;
121: statusbot=bt;
122: defdis();
123: endsend();
124: }
125:
126: function go(url) {
1.10 www 127: windowcheck();
1.1 www 128: this.document['led'].src="ledsend.gif";
129: if (url!='') {
1.7 www 130: clientwindow.window.location.href="http://"+clienthost+url;
131: }
132: }
133:
134: function gopost(url,postdata) {
1.10 www 135: windowcheck();
1.7 www 136: this.document['led'].src="ledsend.gif";
137: if (url!='') {
138: this.document.server.action="http://"+clienthost+url;
1.8 www 139: this.document.server.postdata.value=postdata;
1.7 www 140: this.document.server.submit();
1.1 www 141: }
142: }
143:
1.2 tyszkabe 144: function annotate() {
1.25 harris41 145: w_Annotator_flag=1;
1.11 tyszkabe 146: annotator=window.open('','Annotator','width=365,height=265,scrollbars=0');
1.14 www 147: annotator.document.write(
148: "<html><body onload='Javascript:document.goannotate.submit();'>"
149: +"<form name='goannotate' target='Annotator' method='post' "
150: +"action='/adm/annotations'>"
151: +"<input type='hidden' name='urlnew' value='"+clientwindow.location.href+"'>"
152: +"</form></body></html>");
153: annotator.document.close();
1.2 tyszkabe 154: }
155:
156: function set_bookmark() {
157: go('');
1.24 tyszkabe 158: clienttitle="Enter Title";
159: clienthref="Enter Address";
1.25 harris41 160: w_bmquery_flag=1;
1.24 tyszkabe 161: bmquery=window.open('','bmquery','width=365,height=165,scrollbars=0');
162: bmquery.document.write(
163: "<html><body bgcolor='bbbbbb'><center><form method='post'"
164: +" name='newlink' action='/adm/bookmarks' target='bmquery' "
165: +">\n <table width=340 height=150 "
166: +"bgcolor='ffffff' align=center><tr><td>Link Name:<br><input "
167: +"type='text' name='title' size=45 value='"+clienttitle+"'>"
168: +"<br>Address:<br><input type='text' name='address' size='45' "
169: +"value='"+clienthref+"'><br><center><input type='submit' "
170: +"value='Save'> <input type='button' value='Close (no save)' "
171: +"onclick='javascript:window.close();'></center></td>"
172: +"</tr></table></form></center></body></html>");
173: bmquery.document.close();
1.2 tyszkabe 174: }
175:
176: function edit_bookmarks() {
177: go('');
1.25 harris41 178: w_BookmarkPal_flag=1;
179: bookmarkpal=window.open("http://"+clienthost+"/adm/bookmarks",
1.6 www 180: "BookmarkPal", "width=400,height=505,scrollbars=0");
1.2 tyszkabe 181: }
182:
1.14 www 183: function catalog_info() {
184: go('');
1.25 harris41 185: w_LONcatInfo_flag=1;
186: loncatinfo=window.open(clientwindow.window.location.href+'.meta',"LONcatInfo");
1.14 www 187: }
1.22 harris41 188: // -->
1.1 www 189: </script>
190:
191: <center>
1.19 albertel 192: <table border="0" cellspacing="0" cellpadding="0">
1.1 www 193: <tr><td>
194: <a href="javascript:defdis();"
195: onMouseOver="defdis();"
1.19 albertel 196: ><img border="0" src="title.gif"></img></a>
1.1 www 197: </td><td>
1.19 albertel 198: <img border="0" name="led" src="ledoff.gif"> </img>
1.1 www 199: </td></tr>
200: </table>
1.17 albertel 201: <br />
1.19 albertel 202: <table border="0" cellspacing="1" cellpadding="1">
1.1 www 203: <tr><td bgcolor="#666666">
1.19 albertel 204: <table border="0" cellspacing="1" cellpadding="0">
1.1 www 205: <tr>
1.19 albertel 206: <td><img name="i0" src="l.gif"></img></td>
207: <td><img name="i1" src="o.gif"></img></td>
208: <td><img name="i2" src="n.gif"></img></td>
209: <td><img name="i3" src="hyphen.gif"></img></td>
210: <td><img name="i4" src="c.gif"></img></td>
211: <td><img name="i5" src="a.gif"></img></td>
212: <td><img name="i6" src="p.gif"></img></td>
213: <td><img name="i7" src="a.gif"></img></td>
1.1 www 214: </tr>
215: <tr>
1.19 albertel 216: <td><img name="j0" src="space.gif"></img></td>
217: <td><img name="j1" src="space.gif"></img></td>
218: <td><img name="j2" src="space.gif"></img></td>
219: <td><img name="j3" src="space.gif"></img></td>
220: <td><img name="j4" src="space.gif"></img></td>
221: <td><img name="j5" src="space.gif"></img></td>
222: <td><img name="j6" src="space.gif"></img></td>
223: <td><img name="j7" src="space.gif"></img></td>
1.1 www 224: </tr>
225: </table>
226: </td>
227: </tr>
1.17 albertel 228: </table><br />
1.1 www 229:
230: <a href="javascript:defdis();"
231: onMouseOver="defdis();"
1.19 albertel 232: ><img border="0" src="spacer.gif"></img></a><br />
1.1 www 233:
1.19 albertel 234: <img src="navmenu.gif" usemap="#navmenuMap" border="0"></img><br />
1.1 www 235:
236: <a href="javascript:defdis();"
237: onMouseOver="defdis();"
1.19 albertel 238: ><img border="0" src="spacer.gif"></img></a><br />
1.1 www 239:
1.19 albertel 240: <img src="fnkmenu.gif" usemap="#fnkmenuMap" border="0"></img><br />
1.1 www 241:
242: <a href="javascript:defdis();"
243: onMouseOver="defdis();"
1.19 albertel 244: ><img border="0" src="spacer.gif"></img></a><br />
1.1 www 245:
1.19 albertel 246: <img src="endmenu.gif" usemap="#endmenuMap" border="0"></img>
1.1 www 247:
248: </center>
249:
1.17 albertel 250: <map name="fnkmenuMap">
251: <area shape="rect" coords="4,3,34,21"
1.2 tyszkabe 252: href="javascript:annotate();"
1.1 www 253: onMouseOver="display('my anno-','tations');"
1.17 albertel 254: ></area>
1.1 www 255:
1.17 albertel 256: <area shape="rect" coords="35,3,65,21"
1.15 www 257: href="javascript:go('/adm/searchcat');"
1.1 www 258: onMouseOver="display('search','catalog');"
1.17 albertel 259: ></area>
1.1 www 260:
1.17 albertel 261: <area shape="rect" coords="66,3,96,21"
1.15 www 262: href="javascript:gopost('/adm/feedback',
263: clientwindow.window.location.href);"
1.1 www 264: onMouseOver="display('feedback','on this');"
1.17 albertel 265: ></area>
1.1 www 266:
1.17 albertel 267: <area shape="rect" coords="97,3,127,21"
1.15 www 268: href="javascript:go('/adm/preferences');"
1.1 www 269: onMouseOver="display('my pre-','ferences');"
1.17 albertel 270: ></area>
1.1 www 271:
1.17 albertel 272: <area shape="rect" coords="4,30,34,48"
1.14 www 273: href="javascript:catalog_info('');"
1.1 www 274: onMouseOver="display('catalog','info');"
1.17 albertel 275: ></area>
1.1 www 276:
1.17 albertel 277: <area shape="rect" coords="35,30,65,48"
1.15 www 278: href="javascript:gopost('/adm/printout',
279: clientwindow.window.location.href);"
1.1 www 280: onMouseOver="display('prepare','printout');"
1.17 albertel 281: ></area>
1.1 www 282:
1.17 albertel 283: <area shape="rect" coords="66,30,96,48"
1.15 www 284: href="javascript:gopost('/adm/evaluate',
285: clientwindow.window.location.href);"
1.1 www 286: onMouseOver="display('evaluate','this');"
1.17 albertel 287: ></area>
1.1 www 288:
1.17 albertel 289: <area shape="rect" coords="97,30,127,48"
1.15 www 290: href="javascript:go('/adm/assignments');"
1.1 www 291: onMouseOver="display('assign-','ments');"
1.17 albertel 292: ></area>
1.1 www 293: <area shape="default"
294: href="javascript:defdis();"
1.19 albertel 295: onMouseOver="defdis();"
1.17 albertel 296: ></area>
297: </map>
1.1 www 298:
1.17 albertel 299: <map name="endmenuMap">
300: <area shape="rect" coords="76,1,131,19"
1.10 www 301: href="javascript:logout();"
1.1 www 302: onMouseOver="display('logout','');"
1.17 albertel 303: ></area>
304: <area shape="rect" coords="39,0,69,19"
1.15 www 305: href="javascript:go('/adm/mydesk');"
1.1 www 306: onMouseOver="display('my desk','');"
1.17 albertel 307: ></area>
308: <area shape="rect" coords="1,1,30,19"
1.15 www 309: href="javascript:go('/adm/communicate');"
1.1 www 310: onMouseOver="display('commu-','nication');"
1.17 albertel 311: ></area>
1.1 www 312: <area shape="default"
313: href="javascript:defdis();"
1.19 albertel 314: onMouseOver="defdis();"
1.17 albertel 315: ></area>
316: </map>
1.1 www 317:
1.17 albertel 318: <map name="navmenuMap">
319: <area shape="rect" coords="86,24,110,80"
1.10 www 320: href="javascript:windowcheck();gopost('/adm/flip',
1.7 www 321: 'forward:'+clientwindow.window.location.href);"
1.1 www 322: onMouseOver="display('go','forward');"
1.17 albertel 323: ></area>
324: <area shape="rect" coords="20,23,44,81"
1.10 www 325: href="javascript:windowcheck();gopost('/adm/flip',
1.7 www 326: 'back:'+clientwindow.window.location.href);"
1.1 www 327: onMouseOver="display('go','back');"
1.17 albertel 328: ></area>
329: <area shape="rect" coords="35,72,95,97"
1.10 www 330: href="javascript:windowcheck();gopost('/adm/flip',
1.8 www 331: 'down:'+clientwindow.window.location.href);"
1.1 www 332: onMouseOver="display('go level','down');"
1.17 albertel 333: ></area>
334: <area shape="rect" coords="36,7,94,31"
1.10 www 335: href="javascript:windowcheck();gopost('/adm/flip',
1.8 www 336: 'up:'+clientwindow.window.location.href);"
1.1 www 337: onMouseOver="display('go level','up');"
1.17 albertel 338: ></area>
339: <area shape="circle" coords="64,51,21"
1.12 www 340: href="javascript:windowcheck();gopost('/adm/flip',
1.13 www 341: 'return:');"
1.1 www 342: onMouseOver="display('return','location');"
1.17 albertel 343: ></area>
344: <area shape="polygon" coords="2,2,42,2,2,42"
1.5 www 345: href="javascript:go('/adm/roles');"
1.1 www 346: onMouseOver="display('enter','course');"
1.17 albertel 347: ></area>
348: <area shape="polygon" coords="2,103,42,103,2,63"
1.2 tyszkabe 349: href="javascript:set_bookmark();"
1.1 www 350: onMouseOver="display('set','bookmark');"
1.17 albertel 351: ></area>
352: <area shape="polygon" coords="127,2,87,2,127,42"
1.15 www 353: href="javascript:gopost('/adm/navmaps',
354: clientwindow.window.location.href);"
1.1 www 355: onMouseOver="display('navigate','maps');"
1.17 albertel 356: ></area>
357: <area shape="polygon" coords="128,102,89,102,128,63"
1.2 tyszkabe 358: href="javascript:edit_bookmarks();"
1.1 www 359: onMouseOver="display('go to','bookmark');"
1.17 albertel 360: ></area>
1.1 www 361: <area shape="default"
362: href="javascript:defdis();"
1.19 albertel 363: onMouseOver="defdis();"
1.17 albertel 364: ></area>
365: </map>
1.7 www 366: <form name='server' action='/adm/logout' method='post' target='loncapaclient'>
1.17 albertel 367: <input type='hidden' name='postdata' value='none'></input>
1.7 www 368: </form>
1.1 www 369: </body>
1.20 www 370: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>