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