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