Annotation of loncom/html/res/adm/pages/menu.html, revision 1.43

1.1       www         1: <html>
                      2: <!--
                      3: The LearningOnline Network with CAPA
                      4: Remote Control
1.40      www         5: 
                      6: //
1.43    ! matthew     7: // $Id: menu.html,v 1.42 2002/02/13 22:26:23 matthew Exp $
1.40      www         8: //
                      9: // Copyright Michigan State University Board of Trustees
                     10: //
                     11: // This file is part of the LearningOnline Network with CAPA (LON-CAPA).
                     12: //
                     13: // LON-CAPA is free software; you can redistribute it and/or modify
                     14: // it under the terms of the GNU General Public License as published by
                     15: // the Free Software Foundation; either version 2 of the License, or
                     16: // (at your option) any later version.
                     17: //
                     18: // LON-CAPA is distributed in the hope that it will be useful,
                     19: // but WITHOUT ANY WARRANTY; without even the implied warranty of
                     20: // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                     21: // GNU General Public License for more details.
                     22: //
                     23: // You should have received a copy of the GNU General Public License
                     24: // along with LON-CAPA; if not, write to the Free Software
                     25: // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
                     26: //
                     27: // /home/httpd/html/adm/gpl.txt
                     28: //
                     29: // http://www.lon-capa.org/
                     30: //
                     31: 
1.1       www        32: 6/12/00,6/13,6/14,6/15 Gerd Kortemeyer
1.5       www        33: Sept Ben Tyszka
1.15      www        34: 10/2,10/3,10/4,10/17,10/19,3/1/1 Gerd Kortemeyer
1.18      www        35: Jan Guy Albertelli
                     36: 5/1/1 Gerd Kortemeyer
1.19      albertel   37: 2/19 Guy Albertelli
1.23      www        38: 3/21 Gerd Kortemeyer
1.24      tyszkabe   39: 4/30 Ben Tyszka
1.28      www        40: 5/2 Scott Harrison
1.36      www        41: 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   42: 7/24,8/6 Scott Harrison
1.39      www        43: 8/24 Gerd Kortemeyer
1.1       www        44: -->
                     45: <head>
                     46: <title>LON-CAPA Remote</title>
                     47: </head>
                     48: 
                     49: 
1.23      www        50: <body bgcolor="#BBBBBB" 
1.41      www        51:       background="remotebg.gif">
1.19      albertel   52: <basefont size="1" />
1.1       www        53: 
1.19      albertel   54: <script type="text/javascript">
1.22      harris41   55: <!--
1.1       www        56: statustop='';
                     57: statusbot='';
1.23      www        58: active=0;
1.1       www        59: 
1.31      www        60: imgpath='/res/adm/pages/';
                     61: 
1.27      harris41   62: var currentURL='';
1.28      www        63: var currentStale=1;
1.33      www        64: var menucltim;
1.26      harris41   65: 
1.25      harris41   66: // not used (yet)
                     67: // var w_Annotator;
                     68: // var w_bmquery;
                     69: // var w_BookmarkPal;
                     70: // var w_LONcatInfo;
                     71: 
                     72: //////////////////////////////////////
                     73: var w_Annotator_flag=-1;
                     74: var w_bmquery_flag=-1;
                     75: var w_BookmarkPal_flag=-1;
                     76: var w_LONcatInfo_flag=-1;
                     77:  // 1 means currently open
                     78:  // 0 means closed (but has been open)
                     79:  // -1 means never yet opened/defined
                     80: ///////////////////////////////////////
                     81: 
1.31      www        82: hr=new Array;
                     83: db=new Array;
                     84: dt=new Array;
                     85: 
1.1       www        86: clienthost=window.location.host;
                     87: clientwindow=opener;
                     88: 
                     89: function windowcheck() {
                     90:    if (clientwindow.closed) {
                     91:       clientwindow=window.open("http://"+clienthost+"/"); 
                     92:    }
1.7       www        93:    clientwindow.name='loncapaclient';
1.1       www        94: }
                     95: 
1.5       www        96: function logout () {
1.10      www        97:    windowcheck();
1.41      www        98: 
1.25      harris41   99:       if (w_Annotator_flag!=-1 && annotator && !annotator.closed) {
                    100:           annotator.close();
                    101:       }
                    102:       if (w_bmquery_flag!=-1 && bmquery && !bmquery.closed) {
                    103:           bmquery.close();
                    104:       }
                    105:       if (w_BookmarkPal_flag!=-1 && bookmarkpal && !bookmarkpal.closed) {
                    106:           bookmarkpal.close();
                    107:       }
                    108:       if (w_LONcatInfo_flag!=-1 && loncatinfo && !loncatinfo.closed) {
                    109:           loncatinfo.close();
                    110:       }
1.9       www       111:       clientwindow.window.location.href="http://"+clienthost+"/adm/logout";
1.41      www       112: 
1.1       www       113: }
                    114: 
1.23      www       115: function activate () {
1.31      www       116:    opener.menuloaded=1;
1.23      www       117:    setTimeout('active=1;',2000);
                    118: }
                    119: 
                    120: function deactivate () {
                    121:    active=0;
                    122: }
                    123: 
1.1       www       124: function display(utext,ltext) {
1.23      www       125:   var i; var ch;
                    126:   this.window.focus();
1.37      harris41  127:   if (typeof(utext)=="undefined") { utext=''; }
                    128:   if (typeof(ltext)=="undefined") { ltext=''; }
1.31      www       129:   if ((utext=='') && (ltext=='')) {
                    130:      utext=statustop;
                    131:      ltext=statusbot;
                    132:   }
1.23      www       133:   if (active) { 
1.1       www       134:    for (i=0;i<=7;i++) {
                    135:       if (i<utext.length) {
                    136:          ch=utext.charAt(i);
                    137:          if (ch==' ') { ch='space'; }
                    138:          if (ch=='-') { ch='hyphen'; }
                    139:       } else { ch='space'; }
1.31      www       140:       this.document['i'+i].src=imgpath+ch+'.gif';
1.1       www       141:    }
                    142:    for (i=0;i<=7;i++) {
                    143:       if (i<ltext.length) {
                    144:          ch=ltext.charAt(i);
                    145:          if (ch==' ') { ch='space'; }
                    146:          if (ch=='-') { ch='hyphen'; }
                    147:       } else { ch='space'; }
1.31      www       148:       this.document['j'+i].src=imgpath+ch+'.gif';
1.1       www       149:    }
1.23      www       150:   }
1.1       www       151: }
                    152: 
                    153: function defdis() {
                    154:    this.window.focus();
                    155:    display(statustop,statusbot);
                    156: }
                    157: 
1.31      www       158: function switchbutton(row,col,imgsrc,texttop,textbot,action) {
                    159:    var idx=10*row+col;
1.39      www       160:    this.document['b'+idx].src="http://"+clienthost+imgpath+imgsrc;
1.31      www       161:    hr[idx]=action;
                    162:    dt[idx]=texttop;
                    163:    db[idx]=textbot;
1.39      www       164: } 
1.31      www       165: 
                    166: function clearbut(row,col) {
                    167:    var idx=10*row+col;
1.39      www       168:    this.document['b'+idx].src="http://"+clienthost+imgpath+'empty.gif';
1.31      www       169:    hr[idx]='javascript:defdis();';
                    170:    dt[idx]='';
                    171:    db[idx]='';
                    172: }
                    173: 
1.1       www       174: function setstatus(tp,bt) {
                    175:    this.document['led'].src="ledblink.gif";
                    176:    statustop=tp;
                    177:    statusbot=bt;
                    178:    defdis();
                    179:    endsend();
                    180: }
                    181: 
                    182: function go(url) {
1.10      www       183:    windowcheck();
1.1       www       184:    this.document['led'].src="ledsend.gif";
                    185:    if (url!='') {
1.7       www       186:        clientwindow.window.location.href="http://"+clienthost+url;
                    187:    }
                    188: }
                    189: 
                    190: function gopost(url,postdata) {
1.10      www       191:    windowcheck();
1.7       www       192:    this.document['led'].src="ledsend.gif";
                    193:    if (url!='') {
                    194:       this.document.server.action="http://"+clienthost+url;
1.8       www       195:       this.document.server.postdata.value=postdata;
1.34      www       196:       this.document.server.command.value='';
                    197:       this.document.server.url.value='';
                    198:       this.document.server.submit();
                    199:    }
                    200: }
                    201: 
                    202: function gocmd(url,cmd) {
                    203:    windowcheck();
                    204:    this.document['led'].src="ledsend.gif";
                    205:    if (url!='') {
                    206:       this.document.server.action="http://"+clienthost+url;
                    207:       this.document.server.postdata.value='';
                    208:       this.document.server.command.value=cmd;
                    209:       this.document.server.url.value=currentURL;
1.7       www       210:       this.document.server.submit();
1.1       www       211:    }
                    212: }
                    213: 
1.2       tyszkabe  214: function annotate() {
1.25      harris41  215:    w_Annotator_flag=1;
1.11      tyszkabe  216:    annotator=window.open('','Annotator','width=365,height=265,scrollbars=0');
1.14      www       217:    annotator.document.write(
                    218:    "<html><body onload='Javascript:document.goannotate.submit();'>"
                    219:   +"<form name='goannotate' target='Annotator' method='post' "
                    220:   +"action='/adm/annotations'>"
1.36      www       221:   +"<input type='hidden' name='urlnew' value='"+currentURL+"'>"
1.14      www       222:   +"</form></body></html>");
                    223:    annotator.document.close();
1.2       tyszkabe  224: }
                    225: 
                    226: function set_bookmark() {
                    227:    go('');
1.36      www       228:    if (currentStale) {
                    229:       clienttitle="Enter Title";
                    230:       clienthref=currentURL;
                    231:    } else {
                    232:       clienttitle=clientwindow.document.title;
                    233:       clienthref=clientwindow.location.pathname;
                    234:    }
1.25      harris41  235:    w_bmquery_flag=1;
1.24      tyszkabe  236:    bmquery=window.open('','bmquery','width=365,height=165,scrollbars=0');
                    237:    bmquery.document.write(
                    238:    "<html><body bgcolor='bbbbbb'><center><form method='post'"
                    239:    +" name='newlink' action='/adm/bookmarks' target='bmquery' "
                    240:    +">\n <table width=340 height=150 "
                    241:    +"bgcolor='ffffff' align=center><tr><td>Link Name:<br><input "
                    242:    +"type='text' name='title' size=45 value='"+clienttitle+"'>"
                    243:    +"<br>Address:<br><input type='text' name='address' size='45' "
                    244:    +"value='"+clienthref+"'><br><center><input type='submit' "
                    245:    +"value='Save'> <input type='button' value='Close (no save)' "
                    246:    +"onclick='javascript:window.close();'></center></td>"
                    247:    +"</tr></table></form></center></body></html>");
                    248:    bmquery.document.close();
1.2       tyszkabe  249: }
                    250: 
                    251: function edit_bookmarks() {
                    252:    go('');
1.25      harris41  253:    w_BookmarkPal_flag=1;
                    254:    bookmarkpal=window.open("http://"+clienthost+"/adm/bookmarks",
1.6       www       255:                "BookmarkPal", "width=400,height=505,scrollbars=0");
1.2       tyszkabe  256: }
                    257: 
1.14      www       258: function catalog_info() {
                    259:    go('');
1.25      harris41  260:    w_LONcatInfo_flag=1;
                    261:    loncatinfo=window.open(clientwindow.window.location.href+'.meta',"LONcatInfo");
1.14      www       262: }
1.22      harris41  263: // -->
1.1       www       264: </script>
                    265: 
                    266: <center>
1.31      www       267: <table border="0" cellspacing="1" cellpadding="0">
1.1       www       268: <tr><td>
                    269: <a href="javascript:defdis();"
                    270:    onMouseOver="defdis();"
1.19      albertel  271: ><img border="0" src="title.gif"></img></a>
1.1       www       272: </td><td>
1.19      albertel  273: <img border="0" name="led" src="ledoff.gif"> </img>
1.1       www       274: </td></tr>
                    275: </table>
1.17      albertel  276: <br />
1.19      albertel  277: <table border="0" cellspacing="1" cellpadding="1">
1.1       www       278: <tr><td bgcolor="#666666">
1.19      albertel  279: <table border="0" cellspacing="1" cellpadding="0"> 
1.1       www       280: <tr>
1.19      albertel  281: <td><img name="i0" src="l.gif"></img></td>
                    282: <td><img name="i1" src="o.gif"></img></td>
                    283: <td><img name="i2" src="n.gif"></img></td>
                    284: <td><img name="i3" src="hyphen.gif"></img></td>
                    285: <td><img name="i4" src="c.gif"></img></td>
                    286: <td><img name="i5" src="a.gif"></img></td>
                    287: <td><img name="i6" src="p.gif"></img></td>
                    288: <td><img name="i7" src="a.gif"></img></td>
1.1       www       289: </tr>
                    290: <tr>
1.19      albertel  291: <td><img name="j0" src="space.gif"></img></td>
                    292: <td><img name="j1" src="space.gif"></img></td>
                    293: <td><img name="j2" src="space.gif"></img></td>
                    294: <td><img name="j3" src="space.gif"></img></td>
                    295: <td><img name="j4" src="space.gif"></img></td>
                    296: <td><img name="j5" src="space.gif"></img></td>
                    297: <td><img name="j6" src="space.gif"></img></td>
                    298: <td><img name="j7" src="space.gif"></img></td>
1.1       www       299: </tr>
                    300: </table>
                    301: </td>
                    302: </tr>
1.17      albertel  303: </table><br />
1.1       www       304: 
1.31      www       305: <table border="0" cellspacing="0" cellpadding="0">
                    306: 
                    307: <tr>
                    308: <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>
                    309: <td><a href="javascript:eval(hr[12]);" onMouseOver="display(dt[12],db[12]);"><img border="0" name="b12" src="empty.gif"></img></a></td>
                    310: </tr>
                    311: 
                    312: <tr>
                    313: <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>
                    314: <td><a href="javascript:eval(hr[22]);" onMouseOver="display(dt[22],db[22]);"><img border="0" name="b22" src="empty.gif"></img></a></td>
                    315: <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>
                    316: </tr>
                    317: 
                    318: <tr>
                    319: <td><a href="javascript:eval(hr[31]);" onMouseOver="display(dt[31],db[31]);"><img border="0" name="b31" src="empty.gif"></img></a></td>
                    320: </tr>
                    321: 
                    322: <tr>
                    323: <td><a href="javascript:eval(hr[41]);" onMouseOver="display(dt[41],db[41]);"><img border="0" name="b41" src="empty.gif"></img></a></td>
                    324: <td><a href="javascript:eval(hr[42]);" onMouseOver="display(dt[42],db[42]);"><img border="0" name="b42" src="empty.gif"></img></a></td>
                    325: <td><a href="javascript:eval(hr[43]);" onMouseOver="display(dt[43],db[43]);"><img border="0" name="b43" src="empty.gif"></img></a></td>
                    326: </tr>
                    327: 
                    328: <tr>
                    329: <td><a href="javascript:eval(hr[51]);" onMouseOver="display(dt[51],db[51]);"><img border="0" name="b51" src="empty.gif"></img></a></td>
                    330: <td><a href="javascript:eval(hr[52]);" onMouseOver="display(dt[52],db[52]);"><img border="0" name="b52" src="empty.gif"></img></a></td>
                    331: <td><a href="javascript:eval(hr[53]);" onMouseOver="display(dt[53],db[53]);"><img border="0" name="b53" src="empty.gif"></img></a></td>
                    332: </tr>
                    333: 
                    334: <tr>
                    335: <td><a href="javascript:eval(hr[61]);" onMouseOver="display(dt[61],db[61]);"><img border="0" name="b61" src="empty.gif"></img></a></td>
                    336: <td><a href="javascript:eval(hr[62]);" onMouseOver="display(dt[62],db[62]);"><img border="0" name="b62" src="empty.gif"></img></a></td>
                    337: <td><a href="javascript:eval(hr[63]);" onMouseOver="display(dt[63],db[63]);"><img border="0" name="b63" src="empty.gif"></img></a></td>
                    338: </tr>
                    339: 
                    340: <tr>
                    341: <td><a href="javascript:eval(hr[71]);" onMouseOver="display(dt[71],db[71]);"><img border="0" name="b71" src="empty.gif"></img></a></td>
                    342: <td><a href="javascript:eval(hr[72]);" onMouseOver="display(dt[72],db[72]);"><img border="0" name="b72" src="empty.gif"></img></a></td>
                    343: <td><a href="javascript:eval(hr[73]);" onMouseOver="display(dt[73],db[73]);"><img border="0" name="b73" src="empty.gif"></img></a></td>
                    344: </tr>
                    345: 
                    346: <tr>
                    347: <td><a href="javascript:eval(hr[81]);" onMouseOver="display(dt[81],db[81]);"><img border="0" name="b81" src="empty.gif"></img></a></td>
                    348: <td><a href="javascript:eval(hr[82]);" onMouseOver="display(dt[82],db[82]);"><img border="0" name="b82" src="empty.gif"></img></a></td>
                    349: <td><a href="javascript:eval(hr[83]);" onMouseOver="display(dt[83],db[83]);"><img border="0" name="b83" src="empty.gif"></img></a></td>
                    350: </tr>
1.1       www       351: 
1.31      www       352: <tr>
                    353: <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       354: <td><a href="javascript:eval(hr[92]);" onMouseOver="display(dt[92],db[92]);"><img border="0" name="b92" src="empty.gif"></img></a></td>
                    355: <td><a href="javascript:eval(hr[93]);" onMouseOver="display(dt[93],db[93]);"><img border="0" name="b93" src="empty.gif"></img></a></td>
                    356: </tr>
                    357: 
                    358: <tr>
                    359: <td><a href="javascript:eval(hr[101]);" onMouseOver="display(dt[101],db[101]);"><img border="0" name="b101" src="empty.gif"></img></a></td>
1.43    ! matthew   360: <td><a href="javascript:eval(hr[102]);" onMouseOver="display(dt[102],db[102]);"><img border="0" name="b102" src="empty.gif"></img></a></td>
        !           361: <td><a href="javascript:eval(hr[103]);" onMouseOver="display(dt[103],db[103]);"><img border="0" name="b103" src="empty.gif"></img></a></td>
1.31      www       362: </tr>
1.1       www       363: 
1.31      www       364: </table>
1.1       www       365: 
                    366: 
                    367: <a href="javascript:defdis();"
                    368:    onMouseOver="defdis();"
1.19      albertel  369: ><img border="0" src="spacer.gif"></img></a><br />
1.1       www       370: 
1.7       www       371: <form name='server' action='/adm/logout' method='post' target='loncapaclient'>
1.34      www       372: <input type='hidden' name='postdata' value='none' />
                    373: <input type="hidden" name="command" value="none" />
                    374: <input type="hidden" name="url" value="none" />
                    375:  </form>
1.31      www       376: </center>
1.37      harris41  377: <script>
                    378: activate();
                    379: </script>
1.1       www       380: </body>
1.20      www       381: </html>
1.42      matthew   382: 
                    383: 
                    384: 
                    385: 
                    386: 
                    387: 
                    388: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>