Annotation of loncom/html/res/adm/pages/menu.html, revision 1.37
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.36 www 14: 5/4,5/9,5/28,5/30,6/1,6/2,6/3,6/8,6/15,6/16 Gerd Kortemeyer
1.37 ! harris41 15: 7/24 Scott Harrison
1.1 www 16: -->
17: <head>
18: <title>LON-CAPA Remote</title>
19: </head>
20:
21:
1.23 www 22: <body bgcolor="#BBBBBB"
23: background="remotebg.gif"
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.31 www 33: imgpath='/res/adm/pages/';
34:
1.27 harris41 35: var currentURL='';
1.28 www 36: var currentStale=1;
1.33 www 37: var menucltim;
1.26 harris41 38:
1.25 harris41 39: // not used (yet)
40: // var w_Annotator;
41: // var w_bmquery;
42: // var w_BookmarkPal;
43: // var w_LONcatInfo;
44:
45: //////////////////////////////////////
46: var w_Annotator_flag=-1;
47: var w_bmquery_flag=-1;
48: var w_BookmarkPal_flag=-1;
49: var w_LONcatInfo_flag=-1;
50: // 1 means currently open
51: // 0 means closed (but has been open)
52: // -1 means never yet opened/defined
53: ///////////////////////////////////////
54:
1.31 www 55: hr=new Array;
56: db=new Array;
57: dt=new Array;
58:
1.1 www 59: clienthost=window.location.host;
60: clientwindow=opener;
61:
62: function windowcheck() {
63: if (clientwindow.closed) {
64: clientwindow=window.open("http://"+clienthost+"/");
65: }
1.7 www 66: clientwindow.name='loncapaclient';
1.1 www 67: }
68:
1.5 www 69: function logout () {
1.10 www 70: windowcheck();
71: if (clientwindow.status!='MenuControl:nologout')
72: {
1.25 harris41 73: if (w_Annotator_flag!=-1 && annotator && !annotator.closed) {
74: annotator.close();
75: }
76: if (w_bmquery_flag!=-1 && bmquery && !bmquery.closed) {
77: bmquery.close();
78: }
79: if (w_BookmarkPal_flag!=-1 && bookmarkpal && !bookmarkpal.closed) {
80: bookmarkpal.close();
81: }
82: if (w_LONcatInfo_flag!=-1 && loncatinfo && !loncatinfo.closed) {
83: loncatinfo.close();
84: }
1.9 www 85: clientwindow.window.location.href="http://"+clienthost+"/adm/logout";
86: }
1.1 www 87: }
88:
1.23 www 89: function activate () {
1.31 www 90: opener.menuloaded=1;
1.23 www 91: setTimeout('active=1;',2000);
92: }
93:
94: function deactivate () {
95: active=0;
96: }
97:
1.1 www 98: function display(utext,ltext) {
1.23 www 99: var i; var ch;
100: this.window.focus();
1.37 ! harris41 101: if (typeof(utext)=="undefined") { utext=''; }
! 102: if (typeof(ltext)=="undefined") { ltext=''; }
1.31 www 103: if ((utext=='') && (ltext=='')) {
104: utext=statustop;
105: ltext=statusbot;
106: }
1.23 www 107: if (active) {
1.1 www 108: for (i=0;i<=7;i++) {
109: if (i<utext.length) {
110: ch=utext.charAt(i);
111: if (ch==' ') { ch='space'; }
112: if (ch=='-') { ch='hyphen'; }
113: } else { ch='space'; }
1.31 www 114: this.document['i'+i].src=imgpath+ch+'.gif';
1.1 www 115: }
116: for (i=0;i<=7;i++) {
117: if (i<ltext.length) {
118: ch=ltext.charAt(i);
119: if (ch==' ') { ch='space'; }
120: if (ch=='-') { ch='hyphen'; }
121: } else { ch='space'; }
1.31 www 122: this.document['j'+i].src=imgpath+ch+'.gif';
1.1 www 123: }
1.23 www 124: }
1.1 www 125: }
126:
127: function defdis() {
128: this.window.focus();
129: display(statustop,statusbot);
130: }
131:
1.31 www 132: function switchbutton(row,col,imgsrc,texttop,textbot,action) {
133: var idx=10*row+col;
134: this.document['b'+idx].src=imgpath+imgsrc;
135: hr[idx]=action;
136: dt[idx]=texttop;
137: db[idx]=textbot;
138: }
139:
140: function clearbut(row,col) {
141: var idx=10*row+col;
142: this.document['b'+idx].src=imgpath+'empty.gif';
143: hr[idx]='javascript:defdis();';
144: dt[idx]='';
145: db[idx]='';
146: }
147:
1.1 www 148: function setstatus(tp,bt) {
149: this.document['led'].src="ledblink.gif";
150: statustop=tp;
151: statusbot=bt;
152: defdis();
153: endsend();
154: }
155:
156: function go(url) {
1.10 www 157: windowcheck();
1.1 www 158: this.document['led'].src="ledsend.gif";
159: if (url!='') {
1.7 www 160: clientwindow.window.location.href="http://"+clienthost+url;
161: }
162: }
163:
164: function gopost(url,postdata) {
1.10 www 165: windowcheck();
1.7 www 166: this.document['led'].src="ledsend.gif";
167: if (url!='') {
168: this.document.server.action="http://"+clienthost+url;
1.8 www 169: this.document.server.postdata.value=postdata;
1.34 www 170: this.document.server.command.value='';
171: this.document.server.url.value='';
172: this.document.server.submit();
173: }
174: }
175:
176: function gocmd(url,cmd) {
177: windowcheck();
178: this.document['led'].src="ledsend.gif";
179: if (url!='') {
180: this.document.server.action="http://"+clienthost+url;
181: this.document.server.postdata.value='';
182: this.document.server.command.value=cmd;
183: this.document.server.url.value=currentURL;
1.7 www 184: this.document.server.submit();
1.1 www 185: }
186: }
187:
1.2 tyszkabe 188: function annotate() {
1.25 harris41 189: w_Annotator_flag=1;
1.11 tyszkabe 190: annotator=window.open('','Annotator','width=365,height=265,scrollbars=0');
1.14 www 191: annotator.document.write(
192: "<html><body onload='Javascript:document.goannotate.submit();'>"
193: +"<form name='goannotate' target='Annotator' method='post' "
194: +"action='/adm/annotations'>"
1.36 www 195: +"<input type='hidden' name='urlnew' value='"+currentURL+"'>"
1.14 www 196: +"</form></body></html>");
197: annotator.document.close();
1.2 tyszkabe 198: }
199:
200: function set_bookmark() {
201: go('');
1.36 www 202: if (currentStale) {
203: clienttitle="Enter Title";
204: clienthref=currentURL;
205: } else {
206: clienttitle=clientwindow.document.title;
207: clienthref=clientwindow.location.pathname;
208: }
1.25 harris41 209: w_bmquery_flag=1;
1.24 tyszkabe 210: bmquery=window.open('','bmquery','width=365,height=165,scrollbars=0');
211: bmquery.document.write(
212: "<html><body bgcolor='bbbbbb'><center><form method='post'"
213: +" name='newlink' action='/adm/bookmarks' target='bmquery' "
214: +">\n <table width=340 height=150 "
215: +"bgcolor='ffffff' align=center><tr><td>Link Name:<br><input "
216: +"type='text' name='title' size=45 value='"+clienttitle+"'>"
217: +"<br>Address:<br><input type='text' name='address' size='45' "
218: +"value='"+clienthref+"'><br><center><input type='submit' "
219: +"value='Save'> <input type='button' value='Close (no save)' "
220: +"onclick='javascript:window.close();'></center></td>"
221: +"</tr></table></form></center></body></html>");
222: bmquery.document.close();
1.2 tyszkabe 223: }
224:
225: function edit_bookmarks() {
226: go('');
1.25 harris41 227: w_BookmarkPal_flag=1;
228: bookmarkpal=window.open("http://"+clienthost+"/adm/bookmarks",
1.6 www 229: "BookmarkPal", "width=400,height=505,scrollbars=0");
1.2 tyszkabe 230: }
231:
1.14 www 232: function catalog_info() {
233: go('');
1.25 harris41 234: w_LONcatInfo_flag=1;
235: loncatinfo=window.open(clientwindow.window.location.href+'.meta',"LONcatInfo");
1.14 www 236: }
1.22 harris41 237: // -->
1.1 www 238: </script>
239:
240: <center>
1.31 www 241: <table border="0" cellspacing="1" cellpadding="0">
1.1 www 242: <tr><td>
243: <a href="javascript:defdis();"
244: onMouseOver="defdis();"
1.19 albertel 245: ><img border="0" src="title.gif"></img></a>
1.1 www 246: </td><td>
1.19 albertel 247: <img border="0" name="led" src="ledoff.gif"> </img>
1.1 www 248: </td></tr>
249: </table>
1.17 albertel 250: <br />
1.19 albertel 251: <table border="0" cellspacing="1" cellpadding="1">
1.1 www 252: <tr><td bgcolor="#666666">
1.19 albertel 253: <table border="0" cellspacing="1" cellpadding="0">
1.1 www 254: <tr>
1.19 albertel 255: <td><img name="i0" src="l.gif"></img></td>
256: <td><img name="i1" src="o.gif"></img></td>
257: <td><img name="i2" src="n.gif"></img></td>
258: <td><img name="i3" src="hyphen.gif"></img></td>
259: <td><img name="i4" src="c.gif"></img></td>
260: <td><img name="i5" src="a.gif"></img></td>
261: <td><img name="i6" src="p.gif"></img></td>
262: <td><img name="i7" src="a.gif"></img></td>
1.1 www 263: </tr>
264: <tr>
1.19 albertel 265: <td><img name="j0" src="space.gif"></img></td>
266: <td><img name="j1" src="space.gif"></img></td>
267: <td><img name="j2" src="space.gif"></img></td>
268: <td><img name="j3" src="space.gif"></img></td>
269: <td><img name="j4" src="space.gif"></img></td>
270: <td><img name="j5" src="space.gif"></img></td>
271: <td><img name="j6" src="space.gif"></img></td>
272: <td><img name="j7" src="space.gif"></img></td>
1.1 www 273: </tr>
274: </table>
275: </td>
276: </tr>
1.17 albertel 277: </table><br />
1.1 www 278:
1.31 www 279: <table border="0" cellspacing="0" cellpadding="0">
280:
281: <tr>
282: <td colspan="2"><a href="javascript:eval(hr[11]);" onMouseOver="display(dt[11],db[11]);"><img border="0" name="b11" src="dempty.gif"></img></a></td>
283: <td><a href="javascript:eval(hr[12]);" onMouseOver="display(dt[12],db[12]);"><img border="0" name="b12" src="empty.gif"></img></a></td>
284: </tr>
285:
286: <tr>
287: <td rowspan="2"><a href="javascript:eval(hr[21]);" onMouseOver="display(dt[21],db[21]);"><img border="0" name="b21" src="qempty.gif"></img></a></td>
288: <td><a href="javascript:eval(hr[22]);" onMouseOver="display(dt[22],db[22]);"><img border="0" name="b22" src="empty.gif"></img></a></td>
289: <td rowspan="2"><a href="javascript:eval(hr[23]);" onMouseOver="display(dt[23],db[23]);"><img border="0" name="b23" src="qempty.gif"></img></a></td>
290: </tr>
291:
292: <tr>
293: <td><a href="javascript:eval(hr[31]);" onMouseOver="display(dt[31],db[31]);"><img border="0" name="b31" src="empty.gif"></img></a></td>
294: </tr>
295:
296: <tr>
297: <td><a href="javascript:eval(hr[41]);" onMouseOver="display(dt[41],db[41]);"><img border="0" name="b41" src="empty.gif"></img></a></td>
298: <td><a href="javascript:eval(hr[42]);" onMouseOver="display(dt[42],db[42]);"><img border="0" name="b42" src="empty.gif"></img></a></td>
299: <td><a href="javascript:eval(hr[43]);" onMouseOver="display(dt[43],db[43]);"><img border="0" name="b43" src="empty.gif"></img></a></td>
300: </tr>
301:
302: <tr>
303: <td><a href="javascript:eval(hr[51]);" onMouseOver="display(dt[51],db[51]);"><img border="0" name="b51" src="empty.gif"></img></a></td>
304: <td><a href="javascript:eval(hr[52]);" onMouseOver="display(dt[52],db[52]);"><img border="0" name="b52" src="empty.gif"></img></a></td>
305: <td><a href="javascript:eval(hr[53]);" onMouseOver="display(dt[53],db[53]);"><img border="0" name="b53" src="empty.gif"></img></a></td>
306: </tr>
307:
308: <tr>
309: <td><a href="javascript:eval(hr[61]);" onMouseOver="display(dt[61],db[61]);"><img border="0" name="b61" src="empty.gif"></img></a></td>
310: <td><a href="javascript:eval(hr[62]);" onMouseOver="display(dt[62],db[62]);"><img border="0" name="b62" src="empty.gif"></img></a></td>
311: <td><a href="javascript:eval(hr[63]);" onMouseOver="display(dt[63],db[63]);"><img border="0" name="b63" src="empty.gif"></img></a></td>
312: </tr>
313:
314: <tr>
315: <td><a href="javascript:eval(hr[71]);" onMouseOver="display(dt[71],db[71]);"><img border="0" name="b71" src="empty.gif"></img></a></td>
316: <td><a href="javascript:eval(hr[72]);" onMouseOver="display(dt[72],db[72]);"><img border="0" name="b72" src="empty.gif"></img></a></td>
317: <td><a href="javascript:eval(hr[73]);" onMouseOver="display(dt[73],db[73]);"><img border="0" name="b73" src="empty.gif"></img></a></td>
318: </tr>
319:
320: <tr>
321: <td><a href="javascript:eval(hr[81]);" onMouseOver="display(dt[81],db[81]);"><img border="0" name="b81" src="empty.gif"></img></a></td>
322: <td><a href="javascript:eval(hr[82]);" onMouseOver="display(dt[82],db[82]);"><img border="0" name="b82" src="empty.gif"></img></a></td>
323: <td><a href="javascript:eval(hr[83]);" onMouseOver="display(dt[83],db[83]);"><img border="0" name="b83" src="empty.gif"></img></a></td>
324: </tr>
1.1 www 325:
1.31 www 326: <tr>
327: <td><a href="javascript:eval(hr[91]);" onMouseOver="display(dt[91],db[91]);"><img border="0" name="b91" src="empty.gif"></img></a></td>
1.35 www 328: <td><a href="javascript:eval(hr[92]);" onMouseOver="display(dt[92],db[92]);"><img border="0" name="b92" src="empty.gif"></img></a></td>
329: <td><a href="javascript:eval(hr[93]);" onMouseOver="display(dt[93],db[93]);"><img border="0" name="b93" src="empty.gif"></img></a></td>
330: </tr>
331:
332: <tr>
333: <td><a href="javascript:eval(hr[101]);" onMouseOver="display(dt[101],db[101]);"><img border="0" name="b101" src="empty.gif"></img></a></td>
334: <td colspan="2"><a href="javascript:eval(hr[102]);" onMouseOver="display(dt[102],db[102]);"><img border="0" name="b102" src="dempty.gif"></img></a></td>
1.31 www 335: </tr>
1.1 www 336:
1.31 www 337: </table>
1.1 www 338:
339:
340: <a href="javascript:defdis();"
341: onMouseOver="defdis();"
1.19 albertel 342: ><img border="0" src="spacer.gif"></img></a><br />
1.1 www 343:
1.7 www 344: <form name='server' action='/adm/logout' method='post' target='loncapaclient'>
1.34 www 345: <input type='hidden' name='postdata' value='none' />
346: <input type="hidden" name="command" value="none" />
347: <input type="hidden" name="url" value="none" />
348: </form>
1.31 www 349: </center>
1.37 ! harris41 350: <script>
! 351: activate();
! 352: </script>
1.1 www 353: </body>
1.20 www 354: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>