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

1.1       www         1: <html>
                      2: <!--
                      3: The LearningOnline Network with CAPA
                      4: Remote Control
1.40      www         5: 
                      6: //
1.44    ! matthew     7: // $Id: menu.html,v 1.43 2002/02/15 19:53:09 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.44    ! matthew    56: var statustop = '';
        !            57: var statusbot = '';
        !            58: var active = 0;
1.1       www        59: 
1.44    ! matthew    60: var imgpath='/res/adm/pages/';
1.31      www        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.44    ! matthew    82: var hr = new Array;
        !            83: var db = new Array;
        !            84: var dt = new Array;
        !            85: 
        !            86: for (var i=1;i<=3;i++) {
        !            87:    for (var j=1;j<=10;j++) {
        !            88:       var index = 10*j+i;
        !            89:       hr[index]=null;
        !            90:       db[index]=null;
        !            91:       dt[index]=null;
        !            92:    }
        !            93: }
1.31      www        94: 
1.44    ! matthew    95: var clienthost=window.location.host;
        !            96: var clientwindow=opener;
1.1       www        97: 
                     98: function windowcheck() {
                     99:    if (clientwindow.closed) {
                    100:       clientwindow=window.open("http://"+clienthost+"/"); 
                    101:    }
1.7       www       102:    clientwindow.name='loncapaclient';
1.1       www       103: }
                    104: 
1.5       www       105: function logout () {
1.10      www       106:    windowcheck();
1.41      www       107: 
1.25      harris41  108:       if (w_Annotator_flag!=-1 && annotator && !annotator.closed) {
                    109:           annotator.close();
                    110:       }
                    111:       if (w_bmquery_flag!=-1 && bmquery && !bmquery.closed) {
                    112:           bmquery.close();
                    113:       }
                    114:       if (w_BookmarkPal_flag!=-1 && bookmarkpal && !bookmarkpal.closed) {
                    115:           bookmarkpal.close();
                    116:       }
                    117:       if (w_LONcatInfo_flag!=-1 && loncatinfo && !loncatinfo.closed) {
                    118:           loncatinfo.close();
                    119:       }
1.9       www       120:       clientwindow.window.location.href="http://"+clienthost+"/adm/logout";
1.41      www       121: 
1.1       www       122: }
                    123: 
1.23      www       124: function activate () {
1.31      www       125:    opener.menuloaded=1;
1.23      www       126:    setTimeout('active=1;',2000);
                    127: }
                    128: 
                    129: function deactivate () {
                    130:    active=0;
                    131: }
                    132: 
1.1       www       133: function display(utext,ltext) {
1.23      www       134:   var i; var ch;
                    135:   this.window.focus();
1.37      harris41  136:   if (typeof(utext)=="undefined") { utext=''; }
                    137:   if (typeof(ltext)=="undefined") { ltext=''; }
1.31      www       138:   if ((utext=='') && (ltext=='')) {
                    139:      utext=statustop;
                    140:      ltext=statusbot;
                    141:   }
1.23      www       142:   if (active) { 
1.1       www       143:    for (i=0;i<=7;i++) {
                    144:       if (i<utext.length) {
                    145:          ch=utext.charAt(i);
                    146:          if (ch==' ') { ch='space'; }
                    147:          if (ch=='-') { ch='hyphen'; }
                    148:       } else { ch='space'; }
1.31      www       149:       this.document['i'+i].src=imgpath+ch+'.gif';
1.1       www       150:    }
                    151:    for (i=0;i<=7;i++) {
                    152:       if (i<ltext.length) {
                    153:          ch=ltext.charAt(i);
                    154:          if (ch==' ') { ch='space'; }
                    155:          if (ch=='-') { ch='hyphen'; }
                    156:       } else { ch='space'; }
1.31      www       157:       this.document['j'+i].src=imgpath+ch+'.gif';
1.1       www       158:    }
1.23      www       159:   }
1.1       www       160: }
                    161: 
                    162: function defdis() {
                    163:    this.window.focus();
                    164:    display(statustop,statusbot);
                    165: }
                    166: 
1.31      www       167: function switchbutton(row,col,imgsrc,texttop,textbot,action) {
                    168:    var idx=10*row+col;
1.39      www       169:    this.document['b'+idx].src="http://"+clienthost+imgpath+imgsrc;
1.31      www       170:    hr[idx]=action;
                    171:    dt[idx]=texttop;
                    172:    db[idx]=textbot;
1.39      www       173: } 
1.31      www       174: 
                    175: function clearbut(row,col) {
                    176:    var idx=10*row+col;
1.39      www       177:    this.document['b'+idx].src="http://"+clienthost+imgpath+'empty.gif';
1.31      www       178:    hr[idx]='javascript:defdis();';
                    179:    dt[idx]='';
                    180:    db[idx]='';
                    181: }
                    182: 
1.1       www       183: function setstatus(tp,bt) {
                    184:    this.document['led'].src="ledblink.gif";
                    185:    statustop=tp;
                    186:    statusbot=bt;
                    187:    defdis();
                    188:    endsend();
                    189: }
                    190: 
                    191: function go(url) {
1.10      www       192:    windowcheck();
1.1       www       193:    this.document['led'].src="ledsend.gif";
                    194:    if (url!='') {
1.7       www       195:        clientwindow.window.location.href="http://"+clienthost+url;
                    196:    }
                    197: }
                    198: 
                    199: function gopost(url,postdata) {
1.10      www       200:    windowcheck();
1.7       www       201:    this.document['led'].src="ledsend.gif";
                    202:    if (url!='') {
                    203:       this.document.server.action="http://"+clienthost+url;
1.8       www       204:       this.document.server.postdata.value=postdata;
1.34      www       205:       this.document.server.command.value='';
                    206:       this.document.server.url.value='';
                    207:       this.document.server.submit();
                    208:    }
                    209: }
                    210: 
                    211: function gocmd(url,cmd) {
                    212:    windowcheck();
                    213:    this.document['led'].src="ledsend.gif";
                    214:    if (url!='') {
                    215:       this.document.server.action="http://"+clienthost+url;
                    216:       this.document.server.postdata.value='';
                    217:       this.document.server.command.value=cmd;
                    218:       this.document.server.url.value=currentURL;
1.7       www       219:       this.document.server.submit();
1.1       www       220:    }
                    221: }
                    222: 
1.2       tyszkabe  223: function annotate() {
1.25      harris41  224:    w_Annotator_flag=1;
1.11      tyszkabe  225:    annotator=window.open('','Annotator','width=365,height=265,scrollbars=0');
1.14      www       226:    annotator.document.write(
                    227:    "<html><body onload='Javascript:document.goannotate.submit();'>"
                    228:   +"<form name='goannotate' target='Annotator' method='post' "
                    229:   +"action='/adm/annotations'>"
1.36      www       230:   +"<input type='hidden' name='urlnew' value='"+currentURL+"'>"
1.14      www       231:   +"</form></body></html>");
                    232:    annotator.document.close();
1.2       tyszkabe  233: }
                    234: 
                    235: function set_bookmark() {
                    236:    go('');
1.36      www       237:    if (currentStale) {
                    238:       clienttitle="Enter Title";
                    239:       clienthref=currentURL;
                    240:    } else {
                    241:       clienttitle=clientwindow.document.title;
                    242:       clienthref=clientwindow.location.pathname;
                    243:    }
1.25      harris41  244:    w_bmquery_flag=1;
1.24      tyszkabe  245:    bmquery=window.open('','bmquery','width=365,height=165,scrollbars=0');
                    246:    bmquery.document.write(
                    247:    "<html><body bgcolor='bbbbbb'><center><form method='post'"
                    248:    +" name='newlink' action='/adm/bookmarks' target='bmquery' "
                    249:    +">\n <table width=340 height=150 "
                    250:    +"bgcolor='ffffff' align=center><tr><td>Link Name:<br><input "
                    251:    +"type='text' name='title' size=45 value='"+clienttitle+"'>"
                    252:    +"<br>Address:<br><input type='text' name='address' size='45' "
                    253:    +"value='"+clienthref+"'><br><center><input type='submit' "
                    254:    +"value='Save'> <input type='button' value='Close (no save)' "
                    255:    +"onclick='javascript:window.close();'></center></td>"
                    256:    +"</tr></table></form></center></body></html>");
                    257:    bmquery.document.close();
1.2       tyszkabe  258: }
                    259: 
                    260: function edit_bookmarks() {
                    261:    go('');
1.25      harris41  262:    w_BookmarkPal_flag=1;
                    263:    bookmarkpal=window.open("http://"+clienthost+"/adm/bookmarks",
1.6       www       264:                "BookmarkPal", "width=400,height=505,scrollbars=0");
1.2       tyszkabe  265: }
                    266: 
1.14      www       267: function catalog_info() {
                    268:    go('');
1.25      harris41  269:    w_LONcatInfo_flag=1;
                    270:    loncatinfo=window.open(clientwindow.window.location.href+'.meta',"LONcatInfo");
1.14      www       271: }
1.22      harris41  272: // -->
1.1       www       273: </script>
                    274: 
                    275: <center>
1.31      www       276: <table border="0" cellspacing="1" cellpadding="0">
1.1       www       277: <tr><td>
                    278: <a href="javascript:defdis();"
                    279:    onMouseOver="defdis();"
1.19      albertel  280: ><img border="0" src="title.gif"></img></a>
1.1       www       281: </td><td>
1.19      albertel  282: <img border="0" name="led" src="ledoff.gif"> </img>
1.1       www       283: </td></tr>
                    284: </table>
1.17      albertel  285: <br />
1.19      albertel  286: <table border="0" cellspacing="1" cellpadding="1">
1.1       www       287: <tr><td bgcolor="#666666">
1.19      albertel  288: <table border="0" cellspacing="1" cellpadding="0"> 
1.1       www       289: <tr>
1.19      albertel  290: <td><img name="i0" src="l.gif"></img></td>
                    291: <td><img name="i1" src="o.gif"></img></td>
                    292: <td><img name="i2" src="n.gif"></img></td>
                    293: <td><img name="i3" src="hyphen.gif"></img></td>
                    294: <td><img name="i4" src="c.gif"></img></td>
                    295: <td><img name="i5" src="a.gif"></img></td>
                    296: <td><img name="i6" src="p.gif"></img></td>
                    297: <td><img name="i7" src="a.gif"></img></td>
1.1       www       298: </tr>
                    299: <tr>
1.19      albertel  300: <td><img name="j0" src="space.gif"></img></td>
                    301: <td><img name="j1" src="space.gif"></img></td>
                    302: <td><img name="j2" src="space.gif"></img></td>
                    303: <td><img name="j3" src="space.gif"></img></td>
                    304: <td><img name="j4" src="space.gif"></img></td>
                    305: <td><img name="j5" src="space.gif"></img></td>
                    306: <td><img name="j6" src="space.gif"></img></td>
                    307: <td><img name="j7" src="space.gif"></img></td>
1.1       www       308: </tr>
                    309: </table>
                    310: </td>
                    311: </tr>
1.17      albertel  312: </table><br />
1.1       www       313: 
1.31      www       314: <table border="0" cellspacing="0" cellpadding="0">
                    315: 
                    316: <tr>
                    317: <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>
                    318: <td><a href="javascript:eval(hr[12]);" onMouseOver="display(dt[12],db[12]);"><img border="0" name="b12" src="empty.gif"></img></a></td>
                    319: </tr>
                    320: 
                    321: <tr>
                    322: <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>
                    323: <td><a href="javascript:eval(hr[22]);" onMouseOver="display(dt[22],db[22]);"><img border="0" name="b22" src="empty.gif"></img></a></td>
                    324: <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>
                    325: </tr>
                    326: 
                    327: <tr>
                    328: <td><a href="javascript:eval(hr[31]);" onMouseOver="display(dt[31],db[31]);"><img border="0" name="b31" src="empty.gif"></img></a></td>
                    329: </tr>
                    330: 
                    331: <tr>
                    332: <td><a href="javascript:eval(hr[41]);" onMouseOver="display(dt[41],db[41]);"><img border="0" name="b41" src="empty.gif"></img></a></td>
                    333: <td><a href="javascript:eval(hr[42]);" onMouseOver="display(dt[42],db[42]);"><img border="0" name="b42" src="empty.gif"></img></a></td>
                    334: <td><a href="javascript:eval(hr[43]);" onMouseOver="display(dt[43],db[43]);"><img border="0" name="b43" src="empty.gif"></img></a></td>
                    335: </tr>
                    336: 
                    337: <tr>
                    338: <td><a href="javascript:eval(hr[51]);" onMouseOver="display(dt[51],db[51]);"><img border="0" name="b51" src="empty.gif"></img></a></td>
                    339: <td><a href="javascript:eval(hr[52]);" onMouseOver="display(dt[52],db[52]);"><img border="0" name="b52" src="empty.gif"></img></a></td>
                    340: <td><a href="javascript:eval(hr[53]);" onMouseOver="display(dt[53],db[53]);"><img border="0" name="b53" src="empty.gif"></img></a></td>
                    341: </tr>
                    342: 
                    343: <tr>
                    344: <td><a href="javascript:eval(hr[61]);" onMouseOver="display(dt[61],db[61]);"><img border="0" name="b61" src="empty.gif"></img></a></td>
                    345: <td><a href="javascript:eval(hr[62]);" onMouseOver="display(dt[62],db[62]);"><img border="0" name="b62" src="empty.gif"></img></a></td>
                    346: <td><a href="javascript:eval(hr[63]);" onMouseOver="display(dt[63],db[63]);"><img border="0" name="b63" src="empty.gif"></img></a></td>
                    347: </tr>
                    348: 
                    349: <tr>
                    350: <td><a href="javascript:eval(hr[71]);" onMouseOver="display(dt[71],db[71]);"><img border="0" name="b71" src="empty.gif"></img></a></td>
                    351: <td><a href="javascript:eval(hr[72]);" onMouseOver="display(dt[72],db[72]);"><img border="0" name="b72" src="empty.gif"></img></a></td>
                    352: <td><a href="javascript:eval(hr[73]);" onMouseOver="display(dt[73],db[73]);"><img border="0" name="b73" src="empty.gif"></img></a></td>
                    353: </tr>
                    354: 
                    355: <tr>
                    356: <td><a href="javascript:eval(hr[81]);" onMouseOver="display(dt[81],db[81]);"><img border="0" name="b81" src="empty.gif"></img></a></td>
                    357: <td><a href="javascript:eval(hr[82]);" onMouseOver="display(dt[82],db[82]);"><img border="0" name="b82" src="empty.gif"></img></a></td>
                    358: <td><a href="javascript:eval(hr[83]);" onMouseOver="display(dt[83],db[83]);"><img border="0" name="b83" src="empty.gif"></img></a></td>
                    359: </tr>
1.1       www       360: 
1.31      www       361: <tr>
                    362: <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       363: <td><a href="javascript:eval(hr[92]);" onMouseOver="display(dt[92],db[92]);"><img border="0" name="b92" src="empty.gif"></img></a></td>
                    364: <td><a href="javascript:eval(hr[93]);" onMouseOver="display(dt[93],db[93]);"><img border="0" name="b93" src="empty.gif"></img></a></td>
                    365: </tr>
                    366: 
                    367: <tr>
                    368: <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   369: <td><a href="javascript:eval(hr[102]);" onMouseOver="display(dt[102],db[102]);"><img border="0" name="b102" src="empty.gif"></img></a></td>
                    370: <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       371: </tr>
1.1       www       372: 
1.31      www       373: </table>
1.1       www       374: 
                    375: 
                    376: <a href="javascript:defdis();"
                    377:    onMouseOver="defdis();"
1.19      albertel  378: ><img border="0" src="spacer.gif"></img></a><br />
1.1       www       379: 
1.7       www       380: <form name='server' action='/adm/logout' method='post' target='loncapaclient'>
1.34      www       381: <input type='hidden' name='postdata' value='none' />
                    382: <input type="hidden" name="command" value="none" />
                    383: <input type="hidden" name="url" value="none" />
                    384:  </form>
1.31      www       385: </center>
1.37      harris41  386: <script>
                    387: activate();
                    388: </script>
1.1       www       389: </body>
1.20      www       390: </html>
1.42      matthew   391: 
                    392: 
                    393: 
                    394: 
                    395: 
                    396: 
                    397: 

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