Diff for /rat/client/Attic/code.html between versions 1.38 and 1.41

version 1.38, 2001/06/27 19:19:06 version 1.41, 2001/07/04 19:59:24
Line 15  March/April 01 Scott Harrison Line 15  March/April 01 Scott Harrison
 04/20 Gerd Kortemeyer  04/20 Gerd Kortemeyer
 04/30 Scott Harrison  04/30 Scott Harrison
 05/31 Scott Harrison  05/31 Scott Harrison
 06/11,06/25,06/27 Gerd Kortemeyer  06/11,06/25,06/27,06/28,06/29,07/04 Gerd Kortemeyer
 -->  -->
   
   
Line 941  function drawcell (rtype,ctype,what,cm,o Line 941  function drawcell (rtype,ctype,what,cm,o
  var bgcolor;   var bgcolor;
  var url='';   var url='';
  var urlparts=new Array;   var urlparts=new Array;
  var mimetype;   var mime;
    var ext;
  var objref;   var objref;
    var objnum;
   
  if ((what=='') && (ne==0)) { cm="#DDDDDD"; }   if ((what=='') && (ne==0)) { cm="#DDDDDD"; }
  if (ctype!=0) {   if (ctype!=0) {
Line 956  function drawcell (rtype,ctype,what,cm,o Line 958  function drawcell (rtype,ctype,what,cm,o
      }        } 
      if (what=='r:') {       if (what=='r:') {
         mime='';          mime='';
         if (objcont[obj1]!=undefined) {          objnum=(obj1.split('&'))[1];
             urlparts=objcont[obj1].split(':');          if (objcont[objnum]!=undefined) {
               urlparts=objcont[objnum].split(':');
             url=urlparts[1];              url=urlparts[1];
             urlparts=url.split('.',$url);              ext=urlparts[2];
               urlparts=url.split('.');
             mime=urlparts[urlparts.length-1];              mime=urlparts[urlparts.length-1];
             if (mime==undefined) { mime=''; }              if (mime==undefined) { mime=''; }
         }          }
         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="resource.gif">');
         if (mime!='') {          if ((mime!='') && (ext!='true')) {
              parent.mapout.document.write
              ('<br><img border=0 src="left.gif"></a><a target="preview" href="'+
              url+'.meta"><img border=0 src="'+iconpath+
              'meta.gif"><a target="preview" href="'+url+
              '"><img border=0 src="'+iconpath+mime+'.gif">'+
              '<img border=0 src="right.gif">');
           } else {
            parent.mapout.document.write             parent.mapout.document.write
            ('</a><br><a target="preview" href="'+url+             ('<br><img border=0 src="middle.gif">');
            '"><img border=0 src="'+iconpath+mime+'.gif">');  
         }          }
           parent.mapout.document.write
              ('<br><img border=0 src="bottom.gif">');
      } else {       } else {
         if (what=='c:') {          if (what=='c:') {
            parent.mapout.document.write             parent.mapout.document.write
Line 978  function drawcell (rtype,ctype,what,cm,o Line 990  function drawcell (rtype,ctype,what,cm,o
              +' src="condition.gif">');                         +' src="condition.gif">');          
         } else {          } else {
            if (what=='rs:') {             if (what=='rs:') {
           mime='';
           objnum=(obj1.split('&'))[1];
           if (objcont[objnum]!=undefined) {
               urlparts=objcont[objnum].split(':');
               url=urlparts[1];
               ext=urlparts[2];
               urlparts=url.split('.');
               mime=urlparts[urlparts.length-1];
               if (mime==undefined) { mime=''; }
           }
               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[1]
                +' src="start.gif">');                 +' src="start.gif">');
           if ((mime!='') && (ext!='true')) {
              parent.mapout.document.write
              ('<br><img border=0 src="left.gif"></a><a target="preview" href="'+
              url+'.meta"><img border=0 src="'+iconpath+
              'meta.gif"><a target="preview" href="'+url+
              '"><img border=0 src="'+iconpath+mime+'.gif">'+
              '<img border=0 src="right.gif">');
           } else {
              parent.mapout.document.write
              ('<br><img border=0 src="middle.gif">');
           }
           parent.mapout.document.write
              ('<br><img border=0 src="bottom.gif">');
   
            } else {             } else {
              if (what=='rf:') {               if (what=='rf:') {
           mime='';
           objnum=(obj1.split('&'))[1];
           if (objcont[objnum]!=undefined) {
               urlparts=objcont[objnum].split(':');
               url=urlparts[1];
               ext=urlparts[2];
               urlparts=url.split('.');
               mime=urlparts[urlparts.length-1];
               if (mime==undefined) { mime=''; }
           }
                 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[1]
                 +' src="finish.gif">');                  +' src="finish.gif">');
           if ((mime!='') && (ext!='true')) {
              parent.mapout.document.write
              ('<br><img border=0 src="left.gif"></a><a target="preview" href="'+
              url+'.meta"><img border=0 src="'+iconpath+
              'meta.gif"><a target="preview" href="'+url+
              '"><img border=0 src="'+iconpath+mime+'.gif">'+
              '<img border=0 src="right.gif">');
           } else {
              parent.mapout.document.write
              ('<br><img border=0 src="middle.gif">');
           }
           parent.mapout.document.write
              ('<br><img border=0 src="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]
Line 1361  function infcheck() { Line 1420  function infcheck() {
   
 function info(infostr) {  function info(infostr) {
  var mime='';   var mime='';
    var ext;
  var urlparts=new Array;   var urlparts=new Array;
  var url='';   var url='';
  if ((editmode!=1) && (infostr!=lastinfo)) {   if ((editmode!=1) && (infostr!=lastinfo)) {
Line 1394  function info(infostr) { Line 1454  function info(infostr) {
      if (data1[0]=='r') {       if (data1[0]=='r') {
         data2=objcont[data1[1]].split(':');          data2=objcont[data1[1]].split(':');
         url=data2[1];          url=data2[1];
           ext=data2[2];
         urlparts=url.split('.');          urlparts=url.split('.');
         mime=urlparts[urlparts.length-1];          mime=urlparts[urlparts.length-1];
         if (mime==undefined) { mime=''; }          if (mime==undefined) { mime=''; }
           if (ext=='true') { mime=''; }
         if (mime!='') {          if (mime!='') {
            inf.document.write             inf.document.write
            ('<br><a target="preview" align="right" href="'+url+             ('<br><a target="preview" align="right" href="'+url+
            '"><img border=0 src="'+iconpath+mime+'.gif"></a>');             '"><img border=0 src="'+iconpath+mime+'.gif"></a>&nbsp;&nbsp;');
         }          }
        inf.document.write('<b>');         inf.document.write('<b>');
         if (data2[2]=='true') { inf.document.write('External '); }          if (data2[2]=='true') { inf.document.write('External '); }
Line 1658  function handler(infostr) { Line 1720  function handler(infostr) {
      }       }
      inf.document.writeln(       inf.document.writeln(
       'opener.infoclear();opener.editmode=0;opener.draw('        'opener.infoclear();opener.editmode=0;opener.draw('
       +');"><b>Change to above values</b></a>&nbsp;&nbsp;'        +');"><b>Save Changes</b></a>&nbsp;&nbsp;'
     +' <a href="javascript:self.document.forms.condinfo.reset()">Reset</a><br>'      +' <a href="javascript:self.document.forms.condinfo.reset()">Reset</a><br>'
       +'<input type=hidden name=h value='+data2[1]+'>');        +'<input type=hidden name=h value='+data2[1]+'>');
   
Line 1732  function handler(infostr) { Line 1794  function handler(infostr) {
         +'+self.document.forms.resinfo.elements.e.checked+'+"':'"          +'+self.document.forms.resinfo.elements.e.checked+'+"':'"
         +'+self.document.forms.resinfo.elements.h.value+'+"':res'"          +'+self.document.forms.resinfo.elements.h.value+'+"':res'"
         +';opener.infoclear();opener.editmode=0;opener.draw();">'          +';opener.infoclear();opener.editmode=0;opener.draw();">'
         +'<b>Change to above values</b></a>&nbsp;&nbsp;'          +'<b>Save Changes</b></a>&nbsp;&nbsp;'
         +' <a href="javascript:self.document.forms.resinfo.reset()">Reset</a>'          +' <a href="javascript:self.document.forms.resinfo.reset()">Reset</a>'
         +'</td></tr></table>');          +'</td></tr></table>');
     if ((data2[3]!='start') && (data2[3]!='finish')) {      if ((data2[3]!='start') && (data2[3]!='finish')) {
Line 1776  function handler(infostr) { Line 1838  function handler(infostr) {
   }    }
   inf.document.writeln(    inf.document.writeln(
      '<br><a href="javascript:opener.editmode=0;opener.notclear=0;'       '<br><a href="javascript:opener.editmode=0;opener.notclear=0;'
      +'opener.infoclear();">Done</a>');       +'opener.infoclear();">Cancel</a>');
   inf.document.writeln('</form></td></tr></table></body></html>');    inf.document.writeln('</form></td></tr></table></body></html>');
   inf.document.close();    inf.document.close();
   inf.focus();    inf.focus();
Line 1846  function empty(rid,k) { Line 1908  function empty(rid,k) {
   
   inf.document.writeln(    inf.document.writeln(
    '<br><a href="javascript:opener.editmode=0;opener.notclear=0;'     '<br><a href="javascript:opener.editmode=0;opener.notclear=0;'
   +'opener.infoclear();">Done</a>');    +'opener.infoclear();">Cancel</a>');
   inf.document.writeln('</td></tr></table></body></html>');    inf.document.writeln('</td></tr></table></body></html>');
   inf.document.close();    inf.document.close();
   inf.focus();    inf.focus();
Line 1976  function tabledraw() { Line 2038  function tabledraw() {
   var condid;    var condid;
   var url='';    var url='';
   var mime='';    var mime='';
     var ext='';
   var urlparts=new Array;    var urlparts=new Array;
   var sortstr=sortobjs();    var sortstr=sortobjs();
  insrestab(1,-1,-1,'');   insrestab(1,-1,-1,'');
Line 1997  function tabledraw() { Line 2060  function tabledraw() {
        ck=rescolor(data1[2],data1[3]);         ck=rescolor(data1[2],data1[3]);
         parent.mapout.document.write('<tr><td bgcolor="'+ck+'">');          parent.mapout.document.write('<tr><td bgcolor="'+ck+'">');
         url=data1[1];          url=data1[1];
           ext=data1[2];
         urlparts=url.split('.');          urlparts=url.split('.');
         mime=urlparts[urlparts.length-1];          mime=urlparts[urlparts.length-1];
         if (mime==undefined) { mime=''; }          if (mime==undefined) { mime=''; }
         if (mime!='') {          if ((mime!='') && (ext!='true')) {
            parent.mapout.document.write             parent.mapout.document.write
            ('<a target="preview" align="right"href="'+url+             ('<a target="preview" align="right" href="'+url+'.meta'+
              '"><img src="'+iconpath+'meta.gif"></a><p>'+
              '<a target="preview" align="right"href="'+url+
            '"><img src="'+iconpath+mime+'.gif"></a><p>');             '"><img src="'+iconpath+mime+'.gif"></a><p>');
         }          }
          parent.mapout.document.write(           parent.mapout.document.write(
Line 2058  function tabledraw() { Line 2124  function tabledraw() {
         +'+parent.mapout.document.forms.r'+i+'.elements.e.checked+'+"':'"          +'+parent.mapout.document.forms.r'+i+'.elements.e.checked+'+"':'"
         +'+parent.mapout.document.forms.r'+i+'.elements.h.value+'+"':res'"          +'+parent.mapout.document.forms.r'+i+'.elements.h.value+'+"':res'"
         +';parent.code.draw();">'          +';parent.code.draw();">'
         +'<b>Change to above values</b></a>&nbsp;&nbsp;'          +'<b>Save Changes</b></a>&nbsp;&nbsp;'
         +' <a href="javascript:parent.mapout.document.forms.r'+i          +' <a href="javascript:parent.mapout.document.forms.r'+i
         +'.reset()">Reset</a></td></tr><tr><td colspan=2>');          +'.reset()">Reset</a></td></tr><tr><td colspan=2>');
     if ((data1[3]!='start') && (data1[3]!='finish')) {      if ((data1[3]!='start') && (data1[3]!='finish')) {
Line 2189  function simpletabledraw() { Line 2255  function simpletabledraw() {
   var nr;    var nr;
   var ck;    var ck;
   var cck;    var cck;
     var mime;
     var ext;
     var url;
     var urlparts=new Array;
   var condid;    var condid;
   var sortstr=sortobjs();    var sortstr=sortobjs();
  if ((sortstr!='') && (sortstr!=undefined)) {   if ((sortstr!='') && (sortstr!=undefined)) {
Line 2209  function simpletabledraw() { Line 2279  function simpletabledraw() {
        ck=rescolor(data1[2],data1[3]);         ck=rescolor(data1[2],data1[3]);
         parent.mapout.document.write('<tr><td bgcolor="'+ck+'">');          parent.mapout.document.write('<tr><td bgcolor="'+ck+'">');
         url=data1[1];          url=data1[1];
           ext=data1[2];
         urlparts=url.split('.');          urlparts=url.split('.');
         mime=urlparts[urlparts.length-1];          mime=urlparts[urlparts.length-1];
         if (mime==undefined) { mime=''; }          if (mime==undefined) { mime=''; }
         if (mime!='') {          if ((mime!='') && (ext!='true')) {
            parent.mapout.document.write             parent.mapout.document.write
            ('<a target="preview" align="right"href="'+url+             ('<a target="preview" align="right" href="'+url+'.meta'+
              '"><img src="'+iconpath+'meta.gif"></a><p>'+
              '<a target="preview" align="right"href="'+url+
            '"><img src="'+iconpath+mime+'.gif"></a><p>');             '"><img src="'+iconpath+mime+'.gif"></a><p>');
         }                  }        
       parent.mapout.document.write('<b>'+k+'</b></td><td bgcolor="'+ck+'">');        parent.mapout.document.write('<b>'+k+'</b></td><td bgcolor="'+ck+'">');
Line 2458  function finishload() { Line 2531  function finishload() {
    data1=inputstr.split('<&>');     data1=inputstr.split('<&>');
    var k;     var k;
    for (k=0;k<data1.length;k++) {     for (k=0;k<data1.length;k++) {
        data2=data1[k].split('<:>');         data2=data1[k].split('&colon;').join('&#58;').split('<:>');
        if (data2[0]=='graphdef') { graphdef=data2[1]; }         if (data2[0]=='graphdef') { graphdef=data2[1]; }
        if (data2[0]=='maxcol') { maxcol=1*data2[1]; }         if (data2[0]=='maxcol') { maxcol=1*data2[1]; }
        if (data2[0]=='maxrow') { maxrow=1*data2[1]; }         if (data2[0]=='maxrow') { maxrow=1*data2[1]; }
Line 2686  function leave() { Line 2759  function leave() {
 <a href="javascript:redo();">Redo</a>  <a href="javascript:redo();">Redo</a>
 <a href="javascript:groupsearch();">Group Search</a>  <a href="javascript:groupsearch();">Group Search</a>
 <a href="javascript:groupimport();">Group Import</a>  <a href="javascript:groupimport();">Group Import</a>
 <a href="javascript:storechange();">Store</a>  <a href="javascript:storechange();">Save Map</a>
 </body>  </body>
 </html>  </html>

Removed from v.1.38  
changed lines
  Added in v.1.41


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