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

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

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