Annotation of loncom/html/res/adm/pages/menu.html, revision 1.34
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.34 ! www 14: 5/4,5/9,5/28,5/30,6/1,6/2,6/3,6/8 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.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.31 www 101: if (utext==undefined) { utext=''; }
102: if (ltext==undefined) { ltext=''; }
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'>"
195: +"<input type='hidden' name='urlnew' value='"+clientwindow.location.href+"'>"
196: +"</form></body></html>");
197: annotator.document.close();
1.2 tyszkabe 198: }
199:
200: function set_bookmark() {
201: go('');
1.24 tyszkabe 202: clienttitle="Enter Title";
203: clienthref="Enter Address";
1.25 harris41 204: w_bmquery_flag=1;
1.24 tyszkabe 205: bmquery=window.open('','bmquery','width=365,height=165,scrollbars=0');
206: bmquery.document.write(
207: "<html><body bgcolor='bbbbbb'><center><form method='post'"
208: +" name='newlink' action='/adm/bookmarks' target='bmquery' "
209: +">\n <table width=340 height=150 "
210: +"bgcolor='ffffff' align=center><tr><td>Link Name:<br><input "
211: +"type='text' name='title' size=45 value='"+clienttitle+"'>"
212: +"<br>Address:<br><input type='text' name='address' size='45' "
213: +"value='"+clienthref+"'><br><center><input type='submit' "
214: +"value='Save'> <input type='button' value='Close (no save)' "
215: +"onclick='javascript:window.close();'></center></td>"
216: +"</tr></table></form></center></body></html>");
217: bmquery.document.close();
1.2 tyszkabe 218: }
219:
220: function edit_bookmarks() {
221: go('');
1.25 harris41 222: w_BookmarkPal_flag=1;
223: bookmarkpal=window.open("http://"+clienthost+"/adm/bookmarks",
1.6 www 224: "BookmarkPal", "width=400,height=505,scrollbars=0");
1.2 tyszkabe 225: }
226:
1.14 www 227: function catalog_info() {
228: go('');
1.25 harris41 229: w_LONcatInfo_flag=1;
230: loncatinfo=window.open(clientwindow.window.location.href+'.meta',"LONcatInfo");
1.14 www 231: }
1.22 harris41 232: // -->
1.1 www 233: </script>
234:
235: <center>
1.31 www 236: <table border="0" cellspacing="1" cellpadding="0">
1.1 www 237: <tr><td>
238: <a href="javascript:defdis();"
239: onMouseOver="defdis();"
1.19 albertel 240: ><img border="0" src="title.gif"></img></a>
1.1 www 241: </td><td>
1.19 albertel 242: <img border="0" name="led" src="ledoff.gif"> </img>
1.1 www 243: </td></tr>
244: </table>
1.17 albertel 245: <br />
1.19 albertel 246: <table border="0" cellspacing="1" cellpadding="1">
1.1 www 247: <tr><td bgcolor="#666666">
1.19 albertel 248: <table border="0" cellspacing="1" cellpadding="0">
1.1 www 249: <tr>
1.19 albertel 250: <td><img name="i0" src="l.gif"></img></td>
251: <td><img name="i1" src="o.gif"></img></td>
252: <td><img name="i2" src="n.gif"></img></td>
253: <td><img name="i3" src="hyphen.gif"></img></td>
254: <td><img name="i4" src="c.gif"></img></td>
255: <td><img name="i5" src="a.gif"></img></td>
256: <td><img name="i6" src="p.gif"></img></td>
257: <td><img name="i7" src="a.gif"></img></td>
1.1 www 258: </tr>
259: <tr>
1.19 albertel 260: <td><img name="j0" src="space.gif"></img></td>
261: <td><img name="j1" src="space.gif"></img></td>
262: <td><img name="j2" src="space.gif"></img></td>
263: <td><img name="j3" src="space.gif"></img></td>
264: <td><img name="j4" src="space.gif"></img></td>
265: <td><img name="j5" src="space.gif"></img></td>
266: <td><img name="j6" src="space.gif"></img></td>
267: <td><img name="j7" src="space.gif"></img></td>
1.1 www 268: </tr>
269: </table>
270: </td>
271: </tr>
1.17 albertel 272: </table><br />
1.1 www 273:
1.31 www 274: <table border="0" cellspacing="0" cellpadding="0">
275:
276: <tr>
277: <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>
278: <td><a href="javascript:eval(hr[12]);" onMouseOver="display(dt[12],db[12]);"><img border="0" name="b12" src="empty.gif"></img></a></td>
279: </tr>
280:
281: <tr>
282: <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>
283: <td><a href="javascript:eval(hr[22]);" onMouseOver="display(dt[22],db[22]);"><img border="0" name="b22" src="empty.gif"></img></a></td>
284: <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>
285: </tr>
286:
287: <tr>
288: <td><a href="javascript:eval(hr[31]);" onMouseOver="display(dt[31],db[31]);"><img border="0" name="b31" src="empty.gif"></img></a></td>
289: </tr>
290:
291: <tr>
292: <td><a href="javascript:eval(hr[41]);" onMouseOver="display(dt[41],db[41]);"><img border="0" name="b41" src="empty.gif"></img></a></td>
293: <td><a href="javascript:eval(hr[42]);" onMouseOver="display(dt[42],db[42]);"><img border="0" name="b42" src="empty.gif"></img></a></td>
294: <td><a href="javascript:eval(hr[43]);" onMouseOver="display(dt[43],db[43]);"><img border="0" name="b43" src="empty.gif"></img></a></td>
295: </tr>
296:
297: <tr>
298: <td><a href="javascript:eval(hr[51]);" onMouseOver="display(dt[51],db[51]);"><img border="0" name="b51" src="empty.gif"></img></a></td>
299: <td><a href="javascript:eval(hr[52]);" onMouseOver="display(dt[52],db[52]);"><img border="0" name="b52" src="empty.gif"></img></a></td>
300: <td><a href="javascript:eval(hr[53]);" onMouseOver="display(dt[53],db[53]);"><img border="0" name="b53" src="empty.gif"></img></a></td>
301: </tr>
302:
303: <tr>
304: <td><a href="javascript:eval(hr[61]);" onMouseOver="display(dt[61],db[61]);"><img border="0" name="b61" src="empty.gif"></img></a></td>
305: <td><a href="javascript:eval(hr[62]);" onMouseOver="display(dt[62],db[62]);"><img border="0" name="b62" src="empty.gif"></img></a></td>
306: <td><a href="javascript:eval(hr[63]);" onMouseOver="display(dt[63],db[63]);"><img border="0" name="b63" src="empty.gif"></img></a></td>
307: </tr>
308:
309: <tr>
310: <td><a href="javascript:eval(hr[71]);" onMouseOver="display(dt[71],db[71]);"><img border="0" name="b71" src="empty.gif"></img></a></td>
311: <td><a href="javascript:eval(hr[72]);" onMouseOver="display(dt[72],db[72]);"><img border="0" name="b72" src="empty.gif"></img></a></td>
312: <td><a href="javascript:eval(hr[73]);" onMouseOver="display(dt[73],db[73]);"><img border="0" name="b73" src="empty.gif"></img></a></td>
313: </tr>
314:
315: <tr>
316: <td><a href="javascript:eval(hr[81]);" onMouseOver="display(dt[81],db[81]);"><img border="0" name="b81" src="empty.gif"></img></a></td>
317: <td><a href="javascript:eval(hr[82]);" onMouseOver="display(dt[82],db[82]);"><img border="0" name="b82" src="empty.gif"></img></a></td>
318: <td><a href="javascript:eval(hr[83]);" onMouseOver="display(dt[83],db[83]);"><img border="0" name="b83" src="empty.gif"></img></a></td>
319: </tr>
1.1 www 320:
1.31 www 321: <tr>
322: <td><a href="javascript:eval(hr[91]);" onMouseOver="display(dt[91],db[91]);"><img border="0" name="b91" src="empty.gif"></img></a></td>
323: <td colspan="2"><a href="javascript:eval(hr[92]);" onMouseOver="display(dt[92],db[92]);"><img border="0" name="b92" src="dempty.gif"></img></a></td>
324: </tr>
1.1 www 325:
1.31 www 326: </table>
1.1 www 327:
328:
329: <a href="javascript:defdis();"
330: onMouseOver="defdis();"
1.19 albertel 331: ><img border="0" src="spacer.gif"></img></a><br />
1.1 www 332:
1.7 www 333: <form name='server' action='/adm/logout' method='post' target='loncapaclient'>
1.34 ! www 334: <input type='hidden' name='postdata' value='none' />
! 335: <input type="hidden" name="command" value="none" />
! 336: <input type="hidden" name="url" value="none" />
! 337: </form>
1.31 www 338: </center>
1.1 www 339: </body>
1.20 www 340: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>