--- rat/client/Attic/code.html 2001/06/27 19:19:06 1.38 +++ rat/client/Attic/code.html 2001/06/29 21:57:46 1.39 @@ -15,7 +15,7 @@ March/April 01 Scott Harrison 04/20 Gerd Kortemeyer 04/30 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 --> @@ -943,6 +943,7 @@ function drawcell (rtype,ctype,what,cm,o var urlparts=new Array; var mimetype; var objref; + var objnum; if ((what=='') && (ne==0)) { cm="#DDDDDD"; } if (ctype!=0) { @@ -956,10 +957,11 @@ function drawcell (rtype,ctype,what,cm,o } if (what=='r:') { mime=''; - if (objcont[obj1]!=undefined) { - urlparts=objcont[obj1].split(':'); + objnum=(obj1.split('&'))[1]; + if (objcont[objnum]!=undefined) { + urlparts=objcont[objnum].split(':'); url=urlparts[1]; - urlparts=url.split('.',$url); + urlparts=url.split('.'); mime=urlparts[urlparts.length-1]; if (mime==undefined) { mime=''; } } @@ -968,9 +970,17 @@ function drawcell (rtype,ctype,what,cm,o +' src="resource.gif">'); if (mime!='') { parent.mapout.document.write - ('
'); + ('
'+ + ''); + } else { + parent.mapout.document.write + ('
'); } + parent.mapout.document.write + ('
'); } else { if (what=='c:') { parent.mapout.document.write @@ -1400,7 +1410,7 @@ function info(infostr) { if (mime!='') { inf.document.write ('
'); + '">  '); } inf.document.write(''); if (data2[2]=='true') { inf.document.write('External '); } @@ -1658,7 +1668,7 @@ function handler(infostr) { } inf.document.writeln( 'opener.infoclear();opener.editmode=0;opener.draw(' - +');">Change to above values  ' + +');">Save Changes  ' +' Reset
' +''); @@ -1732,7 +1742,7 @@ function handler(infostr) { +'+self.document.forms.resinfo.elements.e.checked+'+"':'" +'+self.document.forms.resinfo.elements.h.value+'+"':res'" +';opener.infoclear();opener.editmode=0;opener.draw();">' - +'Change to above values  ' + +'Save Changes  ' +' Reset' +''); if ((data2[3]!='start') && (data2[3]!='finish')) { @@ -1776,7 +1786,7 @@ function handler(infostr) { } inf.document.writeln( '
Done'); + +'opener.infoclear();">Cancel'); inf.document.writeln(''); inf.document.close(); inf.focus(); @@ -1846,7 +1856,7 @@ function empty(rid,k) { inf.document.writeln( '
Done'); + +'opener.infoclear();">Cancel'); inf.document.writeln(''); inf.document.close(); inf.focus(); @@ -2002,7 +2012,9 @@ function tabledraw() { if (mime==undefined) { mime=''; } if (mime!='') { parent.mapout.document.write - ('

'+ + '

'); } parent.mapout.document.write( @@ -2058,7 +2070,7 @@ function tabledraw() { +'+parent.mapout.document.forms.r'+i+'.elements.e.checked+'+"':'" +'+parent.mapout.document.forms.r'+i+'.elements.h.value+'+"':res'" +';parent.code.draw();">' - +'Change to above values  ' + +'Save Changes  ' +' Reset'); if ((data1[3]!='start') && (data1[3]!='finish')) { @@ -2214,7 +2226,9 @@ function simpletabledraw() { if (mime==undefined) { mime=''; } if (mime!='') { parent.mapout.document.write - ('

'+ + '

'); } parent.mapout.document.write(''+k+''); @@ -2686,6 +2700,6 @@ function leave() { Redo Group Search Group Import -Store +Save Map