Diff for /rat/client/Attic/code.html between versions 1.50 and 1.51

version 1.50, 2002/03/06 20:30:07 version 1.51, 2002/03/12 21:37:18
Line 124  var parmflag=-1; // 1 means currently op Line 124  var parmflag=-1; // 1 means currently op
                  // -1 means never yet opened/defined                   // -1 means never yet opened/defined
                                     
 var iconpath='/adm/lonIcons/';  var iconpath='/adm/lonIcons/';
   var raticons='/adm/rat/';
   
 function testfunction() {  function testfunction() {
    inf.document.forms.resinfo.elements.t.value="ABC";     inf.document.forms.resinfo.elements.t.value="ABC";
Line 970  function drawcell (rtype,ctype,what,cm,o Line 971  function drawcell (rtype,ctype,what,cm,o
         }          }
         parent.mapout.document.write          parent.mapout.document.write
          ('<img border=0 width='+cw[ctype]+' height='+rh[1]           ('<img border=0 width='+cw[ctype]+' height='+rh[1]
           +' src="resource.gif">');            +' src="'+raticons+'resource.gif">');
         if ((mime!='') && (ext!='true')) {          if ((mime!='') && (ext!='true')) {
            parent.mapout.document.write             parent.mapout.document.write
            ('<br><img border=0 src="left.gif"></a><a target="preview" href="'+             ('<br><img border=0 src="'+raticons+'left.gif"></a><a target="preview" href="'+
            url+'.meta"><img border=0 src="'+iconpath+             url+'.meta"><img border=0 src="'+iconpath+
            'meta.gif"><a target="preview" href="'+url+             'meta.gif"><a target="preview" href="'+url+
            '"><img border=0 src="'+iconpath+mime+'.gif">'+             '"><img border=0 src="'+iconpath+mime+'.gif">'+
            '<img border=0 src="right.gif">');             '<img border=0 src="'+raticons+'right.gif">');
         } else {          } else {
            parent.mapout.document.write             parent.mapout.document.write
            ('<br><img border=0 src="middle.gif">');             ('<br><img border=0 src="'+raticons+'middle.gif">');
         }          }
         parent.mapout.document.write          parent.mapout.document.write
            ('<br><img border=0 src="bottom.gif">');             ('<br><img border=0 src="'+raticons+'bottom.gif">');
      } else {       } else {
         if (what=='c:') {          if (what=='c:') {
            parent.mapout.document.write             parent.mapout.document.write
             ('<img border=0 width='+cw[ctype]+' height='+rh[rtype]              ('<img border=0 width='+cw[ctype]+' height='+rh[rtype]
              +' src="condition.gif">');                         +' src="'+raticons+'condition.gif">');          
         } else {          } else {
            if (what=='rs:') {             if (what=='rs:') {
         mime='';          mime='';
Line 1003  function drawcell (rtype,ctype,what,cm,o Line 1004  function drawcell (rtype,ctype,what,cm,o
         }          }
               parent.mapout.document.write                parent.mapout.document.write
                ('<img border=0 width='+cw[ctype]+' height='+rh[1]                 ('<img border=0 width='+cw[ctype]+' height='+rh[1]
                +' src="start.gif">');                 +' src="'+raticons+'start.gif">');
         if ((mime!='') && (ext!='true')) {          if ((mime!='') && (ext!='true')) {
            parent.mapout.document.write             parent.mapout.document.write
            ('<br><img border=0 src="left.gif"></a><a target="preview" href="'+             ('<br><img border=0 src="'+raticons+'left.gif"></a><a target="preview" href="'+
            url+'.meta"><img border=0 src="'+iconpath+             url+'.meta"><img border=0 src="'+iconpath+
            'meta.gif"><a target="preview" href="'+url+             'meta.gif"><a target="preview" href="'+url+
            '"><img border=0 src="'+iconpath+mime+'.gif">'+             '"><img border=0 src="'+iconpath+mime+'.gif">'+
            '<img border=0 src="right.gif">');             '<img border=0 src="'+raticons+'right.gif">');
         } else {          } else {
            parent.mapout.document.write             parent.mapout.document.write
            ('<br><img border=0 src="middle.gif">');             ('<br><img border=0 src="'+raticons+'middle.gif">');
         }          }
         parent.mapout.document.write          parent.mapout.document.write
            ('<br><img border=0 src="bottom.gif">');             ('<br><img border=0 src="'+raticons+'bottom.gif">');
   
            } else {             } else {
              if (what=='rf:') {               if (what=='rf:') {
Line 1032  function drawcell (rtype,ctype,what,cm,o Line 1033  function drawcell (rtype,ctype,what,cm,o
         }          }
                 parent.mapout.document.write                  parent.mapout.document.write
                 ('<img border=0 width='+cw[ctype]+' height='+rh[1]                  ('<img border=0 width='+cw[ctype]+' height='+rh[1]
                 +' src="finish.gif">');                  +' src="'+raticons+'finish.gif">');
         if ((mime!='') && (ext!='true')) {          if ((mime!='') && (ext!='true')) {
            parent.mapout.document.write             parent.mapout.document.write
            ('<br><img border=0 src="left.gif"></a><a target="preview" href="'+             ('<br><img border=0 src="'+raticons+'left.gif"></a><a target="preview" href="'+
            url+'.meta"><img border=0 src="'+iconpath+             url+'.meta"><img border=0 src="'+iconpath+
            'meta.gif"><a target="preview" href="'+url+             'meta.gif"><a target="preview" href="'+url+
            '"><img border=0 src="'+iconpath+mime+'.gif">'+             '"><img border=0 src="'+iconpath+mime+'.gif">'+
            '<img border=0 src="right.gif">');             '<img border=0 src="'+raticons+'right.gif">');
         } else {          } else {
            parent.mapout.document.write             parent.mapout.document.write
            ('<br><img border=0 src="middle.gif">');             ('<br><img border=0 src="'+raticons+'middle.gif">');
         }          }
         parent.mapout.document.write          parent.mapout.document.write
            ('<br><img border=0 src="bottom.gif">');             ('<br><img border=0 src="'+raticons+'bottom.gif">');
              } else {               } else {
                 parent.mapout.document.write                  parent.mapout.document.write
                 ('<img border=0 width='+cw[ctype]+' height='+rh[rtype]                  ('<img border=0 width='+cw[ctype]+' height='+rh[rtype]
                 +' src="'+rtype+'.'+ctype+'.'+what+'.gif">');                  +' src="'+raticons+rtype+'.'+ctype+'.'+what+'.gif">');
              }               }
            }             }
         }          }
Line 1070  function drawcell (rtype,ctype,what,cm,o Line 1071  function drawcell (rtype,ctype,what,cm,o
       parent.mapout.document.write        parent.mapout.document.write
          (           (
          '<img border=0 width='+cw[ctype]+' height='+rh[rtype]           '<img border=0 width='+cw[ctype]+' height='+rh[rtype]
         +' src="'+rtype+'.'+ctype+'.empty.gif"></a>');          +' src="'+raticons+rtype+'.'+ctype+'.empty.gif"></a>');
    }     }
    parent.mapout.document.write('</td>');     parent.mapout.document.write('</td>');
  }   }
Line 1421  function info(infostr) { Line 1422  function info(infostr) {
   inf.document.clear();    inf.document.clear();
   inf.document.writeln(    inf.document.writeln(
    '<html><body bgcolor="#FFFFFF">'+     '<html><body bgcolor="#FFFFFF">'+
    '<table><tr><td width=32><img src="info.gif"></td><td bgcolor="#AAFFAA">');     '<table><tr><td width=32><img src="'+raticons+'info.gif"></td><td bgcolor="#AAFFAA">');
   data1=infostr.split('&');    data1=infostr.split('&');
   if (data1[0]=='c') {    if (data1[0]=='c') {
      inf.document.write('<b>Condition (');       inf.document.write('<b>Condition (');
Line 1509  function escape(instring) { Line 1510  function escape(instring) {
    for (k=0;k<instring.length;k++) {     for (k=0;k<instring.length;k++) {
       thischar=instring.charAt(k);        thischar=instring.charAt(k);
       if (thischar==':') { thischar='&#58;'; }        if (thischar==':') { thischar='&#58;'; }
       if (thischar=='"') { thischar='&#34;'; }        if (thischar=='"') { thischar='&#34;'; }// "
       if (thischar=="'") { thischar='&#39;'; }        if (thischar=="'") { thischar='&#39;'; }
       if (thischar==',') { thischar='&#44;'; }        if (thischar==',') { thischar='&#44;'; }
       outstring+=thischar;        outstring+=thischar;
    }     }
    return outstring;     return outstring;
 }  }
 // There must be a way to get rid of the odd number of "s  
   
 // -------------------------------------------------- Insert resource into link  // -------------------------------------------------- Insert resource into link
 function insertreslink(infostr) {  function insertreslink(infostr) {
Line 1658  function handler(infostr) { Line 1658  function handler(infostr) {
   inf.document.clear();    inf.document.clear();
   inf.document.writeln(    inf.document.writeln(
    '<html><body bgcolor="#FFFFFF">'+     '<html><body bgcolor="#FFFFFF">'+
    '<table><tr><td width=32><img src="edit.gif"></td><td bgcolor="#AAFFAA">');     '<table><tr><td width=32><img src="'+raticons+'edit.gif"></td><td bgcolor="#AAFFAA">');
   data1=infostr.split('&');    data1=infostr.split('&');
   if (data1[0]=='c') {    if (data1[0]=='c') {
      inf.document.writeln('<b>Condition</b><hr>');       inf.document.writeln('<b>Condition</b><hr>');
Line 1830  function empty(rid,k) { Line 1830  function empty(rid,k) {
   inf.document.clear();    inf.document.clear();
   inf.document.writeln(    inf.document.writeln(
    '<html><body bgcolor="#FFFFFF">'+     '<html><body bgcolor="#FFFFFF">'+
    '<table><tr><td width=32><img src="edit.gif"></td><td bgcolor="#AAFFAA">'+     '<table><tr><td width=32><img src="'+raticons+'edit.gif"></td><td bgcolor="#AAFFAA">'+
    '<b>Empty Field</b><hr>');     '<b>Empty Field</b><hr>');
   
         inf.document.writeln('<br><a href="javascript:opener.newresource('+          inf.document.writeln('<br><a href="javascript:opener.newresource('+

Removed from v.1.50  
changed lines
  Added in v.1.51


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