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

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

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