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