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