Diff for /loncom/html/res/adm/pages/menu.html between versions 1.32 and 1.53

version 1.32, 2001/06/02 19:55:45 version 1.53, 2002/05/17 15:09:06
Line 2 Line 2
 <!--  <!--
 The LearningOnline Network with CAPA  The LearningOnline Network with CAPA
 Remote Control  Remote Control
   
   //
   // $Id$
   //
   // Copyright Michigan State University Board of Trustees
   //
   // This file is part of the LearningOnline Network with CAPA (LON-CAPA).
   //
   // LON-CAPA is free software; you can redistribute it and/or modify
   // it under the terms of the GNU General Public License as published by
   // the Free Software Foundation; either version 2 of the License, or
   // (at your option) any later version.
   //
   // LON-CAPA is distributed in the hope that it will be useful,
   // but WITHOUT ANY WARRANTY; without even the implied warranty of
   // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   // GNU General Public License for more details.
   //
   // You should have received a copy of the GNU General Public License
   // along with LON-CAPA; if not, write to the Free Software
   // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   //
   // /home/httpd/html/adm/gpl.txt
   //
   // http://www.lon-capa.org/
   //
   
 6/12/00,6/13,6/14,6/15 Gerd Kortemeyer  6/12/00,6/13,6/14,6/15 Gerd Kortemeyer
 Sept Ben Tyszka  Sept Ben Tyszka
 10/2,10/3,10/4,10/17,10/19,3/1/1 Gerd Kortemeyer  10/2,10/3,10/4,10/17,10/19,3/1/1 Gerd Kortemeyer
Line 11  Jan Guy Albertelli Line 38  Jan Guy Albertelli
 3/21 Gerd Kortemeyer  3/21 Gerd Kortemeyer
 4/30 Ben Tyszka  4/30 Ben Tyszka
 5/2 Scott Harrison  5/2 Scott Harrison
 5/4,5/9,5/28,5/30,6/1,6/2 Gerd Kortemeyer  5/4,5/9,5/28,5/30,6/1,6/2,6/3,6/8,6/15,6/16 Gerd Kortemeyer
   7/24,8/6 Scott Harrison
   8/24 Gerd Kortemeyer
   YEAR=2002
   March 2002 Matthew Hall
   3/19 Gerd Kortemeyer
   5/6/02 Matthew Hall
   
   // Note: use of style="background-image: url(remotebg.gif)"
   // in body tag causes trouble for NS4.x on multiple platforms. 
   
 -->  -->
 <head>  <head>
 <title>LON-CAPA Remote</title>  <title>LON-CAPA Remote</title>
Line 20  Jan Guy Albertelli Line 57  Jan Guy Albertelli
   
 <body bgcolor="#BBBBBB"   <body bgcolor="#BBBBBB" 
       background="remotebg.gif"        background="remotebg.gif"
       onLoad="activate();"         onUnload="logout();"
       onUnload="logout();">        >
   <style type="text/css">
   </style>
 <basefont size="1" />  <basefont size="1" />
   
 <script type="text/javascript">  <script type="text/javascript">
 <!--  <!--
 statustop='';  var statustop = '';
 statusbot='';  var statusbot = '';
 active=0;  var active = 0;
   
 imgpath='/res/adm/pages/';  var imgpath='/res/adm/pages/';
   
 var currentURL='';  var currentURL='';
 var currentStale=1;  var currentStale=1;
   var menucltim;
   
 // not used (yet)  // not used (yet)
 // var w_Annotator;  // var w_Annotator;
Line 51  var w_LONcatInfo_flag=-1; Line 91  var w_LONcatInfo_flag=-1;
  // -1 means never yet opened/defined   // -1 means never yet opened/defined
 ///////////////////////////////////////  ///////////////////////////////////////
   
 hr=new Array;  var hr = new Array;
 db=new Array;  var db = new Array;
 dt=new Array;  var dt = new Array;
   
   for (var i=1;i<=3;i++) {
      for (var j=1;j<=10;j++) {
         var index = 10*j+i;
         hr[index]='';
         db[index]='';
         dt[index]='';
      }
   }
   
 clienthost=window.location.host;  var clienthost=window.location.host;
 clientwindow=opener;  var clientwindow=opener;
   
 function windowcheck() {  function windowcheck() {
    if (clientwindow.closed) {     if (clientwindow==null || clientwindow.closed) {
       clientwindow=window.open("http://"+clienthost+"/");         clientwindow=window.open("http://"+clienthost+"/",'',
         "height=400,width=440,"+
         "scrollbars=1,toolbar=1,status=1,resizable=1,location=1,"+
         "left=190,top=15,screenX=190,screenY=15"); 
    }     }
    clientwindow.name='loncapaclient';     clientwindow.name='loncapaclient';
      clientwindow.menuwindow=self;
 }  }
   
 function logout () {  function logout () {
    windowcheck();     windowcheck();
    if (clientwindow.status!='MenuControl:nologout')  
    {     
       if (w_Annotator_flag!=-1 && annotator && !annotator.closed) {        if (w_Annotator_flag!=-1 && annotator && !annotator.closed) {
           annotator.close();            annotator.close();
       }        }
Line 82  function logout () { Line 134  function logout () {
           loncatinfo.close();            loncatinfo.close();
       }        }
       clientwindow.window.location.href="http://"+clienthost+"/adm/logout";        clientwindow.window.location.href="http://"+clienthost+"/adm/logout";
    }  
 }  }
   
 function activate () {  function activate () {
Line 97  function deactivate () { Line 149  function deactivate () {
 function display(utext,ltext) {  function display(utext,ltext) {
   var i; var ch;    var i; var ch;
   this.window.focus();    this.window.focus();
   if (utext==undefined) { utext=''; }    if (utext == null) { utext = '';}
   if (ltext==undefined) { ltext=''; }    if (ltext == null) { ltext = '';}
     if (typeof(utext)!="string") { utext=''; }
     if (typeof(ltext)!="string") { ltext=''; }
   if ((utext=='') && (ltext=='')) {    if ((utext=='') && (ltext=='')) {
      utext=statustop;       utext=statustop;
      ltext=statusbot;       ltext=statusbot;
Line 130  function defdis() { Line 184  function defdis() {
   
 function switchbutton(row,col,imgsrc,texttop,textbot,action) {  function switchbutton(row,col,imgsrc,texttop,textbot,action) {
    var idx=10*row+col;     var idx=10*row+col;
    this.document['b'+idx].src=imgpath+imgsrc;     this.document['b'+idx].src="http://"+clienthost+imgpath+imgsrc;
    hr[idx]=action;     hr[idx]=action;
    dt[idx]=texttop;     dt[idx]=texttop;
    db[idx]=textbot;     db[idx]=textbot;
 }  } 
   
 function clearbut(row,col) {  function clearbut(row,col) {
    var idx=10*row+col;     var idx=10*row+col;
    this.document['b'+idx].src=imgpath+'empty.gif';     this.document['b'+idx].src="http://"+clienthost+imgpath+'empty.gif';
    hr[idx]='javascript:defdis();';     hr[idx]='javascript:defdis();';
    dt[idx]='';     dt[idx]='';
    db[idx]='';     db[idx]='';
Line 152  function setstatus(tp,bt) { Line 206  function setstatus(tp,bt) {
    endsend();     endsend();
 }  }
   
   function is_editable_resource (url) {
      var Chunks = url.split('.');
      var tmp = Chunks[Chunks.length-1];
      if ((Chunks.length > 1) && (Math.floor(tmp) == tmp)) {
          return true;
      } 
      return false;
   }
   
   function cstrgo(currenturl,defaulturl) {
      windowcheck();
      var url;
      if ((currenturl == null) || 
          (currenturl == '')   || 
          (! is_editable_resource(currenturl))) {
         url = defaulturl;
      } else {
         url = currenturl;
         var res_pattern     = /^\/res\/[A-z0-p]+\//;
         if (res_pattern.test(url)) {
            // map /res/103/turtle to /priv/turtle
            url = url.replace(/^\/res\/[A-z0-9]+\//,'/priv/');
         } else {
            url = defaulturl;
         }
      }
      this.document['led'].src="ledsend.gif";
      if (url != '') {
          clientwindow.window.location.href="http://"+clienthost+url;
      }
   }
   
 function go(url) {  function go(url) {
    windowcheck();     windowcheck();
    this.document['led'].src="ledsend.gif";     this.document['led'].src="ledsend.gif";
    if (url!='') {     if (url!='' && url!= null) {
          currentURL = null;
        clientwindow.window.location.href="http://"+clienthost+url;         clientwindow.window.location.href="http://"+clienthost+url;
    }     }
 }  }
Line 166  function gopost(url,postdata) { Line 253  function gopost(url,postdata) {
    if (url!='') {     if (url!='') {
       this.document.server.action="http://"+clienthost+url;        this.document.server.action="http://"+clienthost+url;
       this.document.server.postdata.value=postdata;        this.document.server.postdata.value=postdata;
         this.document.server.command.value='';
         this.document.server.url.value='';
         this.document.server.submit();
      }
   }
   
   function gocmd(url,cmd) {
      windowcheck();
      this.document['led'].src="ledsend.gif";
      if (url!='') {
         this.document.server.action="http://"+clienthost+url;
         this.document.server.postdata.value='';
         this.document.server.command.value=cmd;
         this.document.server.url.value=currentURL;
       this.document.server.submit();        this.document.server.submit();
    }     }
 }  }
Line 177  function annotate() { Line 278  function annotate() {
    "<html><body onload='Javascript:document.goannotate.submit();'>"     "<html><body onload='Javascript:document.goannotate.submit();'>"
   +"<form name='goannotate' target='Annotator' method='post' "    +"<form name='goannotate' target='Annotator' method='post' "
   +"action='/adm/annotations'>"    +"action='/adm/annotations'>"
   +"<input type='hidden' name='urlnew' value='"+clientwindow.location.href+"'>"    +"<input type='hidden' name='urlnew' value='"+currentURL+"'>"
   +"</form></body></html>");    +"</form></body></html>");
    annotator.document.close();     annotator.document.close();
 }  }
   
 function set_bookmark() {  function set_bookmark() {
    go('');     go('');
    clienttitle="Enter Title";     if (currentStale) {
    clienthref="Enter Address";        clienttitle="Enter Title";
         clienthref=currentURL;
      } else {
         clienttitle=clientwindow.document.title;
         clienthref=clientwindow.location.pathname;
      }
    w_bmquery_flag=1;     w_bmquery_flag=1;
    bmquery=window.open('','bmquery','width=365,height=165,scrollbars=0');     bmquery=window.open('','bmquery','width=365,height=165,scrollbars=0');
    bmquery.document.write(     bmquery.document.write(
Line 305  function catalog_info() { Line 411  function catalog_info() {
   
 <tr>  <tr>
 <td><a href="javascript:eval(hr[91]);" onMouseOver="display(dt[91],db[91]);"><img border="0" name="b91" src="empty.gif"></img></a></td>  <td><a href="javascript:eval(hr[91]);" onMouseOver="display(dt[91],db[91]);"><img border="0" name="b91" src="empty.gif"></img></a></td>
 <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>  <td><a href="javascript:eval(hr[92]);" onMouseOver="display(dt[92],db[92]);"><img border="0" name="b92" src="empty.gif"></img></a></td>
   <td><a href="javascript:eval(hr[93]);" onMouseOver="display(dt[93],db[93]);"><img border="0" name="b93" src="empty.gif"></img></a></td>
   </tr>
   
   <tr>
   <td><a href="javascript:eval(hr[101]);" onMouseOver="display(dt[101],db[101]);"><img border="0" name="b101" src="empty.gif"></img></a></td>
   <td><a href="javascript:eval(hr[102]);" onMouseOver="display(dt[102],db[102]);"><img border="0" name="b102" src="empty.gif"></img></a></td>
   <td><a href="javascript:eval(hr[103]);" onMouseOver="display(dt[103],db[103]);"><img border="0" name="b103" src="empty.gif"></img></a></td>
 </tr>  </tr>
   
 </table>  </table>
Line 316  function catalog_info() { Line 429  function catalog_info() {
 ><img border="0" src="spacer.gif"></img></a><br />  ><img border="0" src="spacer.gif"></img></a><br />
   
 <form name='server' action='/adm/logout' method='post' target='loncapaclient'>  <form name='server' action='/adm/logout' method='post' target='loncapaclient'>
 <input type='hidden' name='postdata' value='none'></input>  <input type='hidden' name='postdata' value='none' />
 </form>  <input type="hidden" name="command" value="none" />
   <input type="hidden" name="url" value="none" />
    </form>
 </center>  </center>
   <script>
   activate();
   </script>
 </body>  </body>
 </html>  </html>
   
   
   
   
   
   
   

Removed from v.1.32  
changed lines
  Added in v.1.53


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