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