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