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

version 1.38, 2001/06/27 19:19:06 version 1.39, 2001/06/29 21:57:46
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 Gerd Kortemeyer
 -->  -->
   
   
Line 943  function drawcell (rtype,ctype,what,cm,o Line 943  function drawcell (rtype,ctype,what,cm,o
  var urlparts=new Array;   var urlparts=new Array;
  var mimetype;   var mimetype;
  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 957  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);              urlparts=url.split('.');
             mime=urlparts[urlparts.length-1];              mime=urlparts[urlparts.length-1];
             if (mime==undefined) { mime=''; }              if (mime==undefined) { mime=''; }
         }          }
Line 968  function drawcell (rtype,ctype,what,cm,o Line 970  function drawcell (rtype,ctype,what,cm,o
           +' src="resource.gif">');            +' src="resource.gif">');
         if (mime!='') {          if (mime!='') {
            parent.mapout.document.write             parent.mapout.document.write
            ('</a><br><a target="preview" href="'+url+             ('<br><img border=0 src="left.gif"></a><a target="preview" href="'+
            '"><img border=0 src="'+iconpath+mime+'.gif">');             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=='c:') {          if (what=='c:') {
            parent.mapout.document.write             parent.mapout.document.write
Line 1400  function info(infostr) { Line 1410  function info(infostr) {
         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 1668  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 1742  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 1786  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 1856  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 2002  function tabledraw() { Line 2012  function tabledraw() {
         if (mime==undefined) { mime=''; }          if (mime==undefined) { mime=''; }
         if (mime!='') {          if (mime!='') {
            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 2070  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 2214  function simpletabledraw() { Line 2226  function simpletabledraw() {
         if (mime==undefined) { mime=''; }          if (mime==undefined) { mime=''; }
         if (mime!='') {          if (mime!='') {
            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 2686  function leave() { Line 2700  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.39


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