--- rat/client/Attic/code.html 2001/06/27 19:19:06 1.38 +++ rat/client/Attic/code.html 2001/07/04 18:19:53 1.40 @@ -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,07/04 Gerd Kortemeyer --> @@ -941,8 +941,10 @@ function drawcell (rtype,ctype,what,cm,o var bgcolor; var url=''; var urlparts=new Array; - var mimetype; + var mime; + var ext; var objref; + var objnum; if ((what=='') && (ne==0)) { cm="#DDDDDD"; } if (ctype!=0) { @@ -956,21 +958,31 @@ 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); + ext=urlparts[2]; + urlparts=url.split('.'); mime=urlparts[urlparts.length-1]; if (mime==undefined) { mime=''; } } parent.mapout.document.write (''); - if (mime!='') { + if ((mime!='') && (ext!='true')) { + parent.mapout.document.write + ('
'+ + ''); + } else { parent.mapout.document.write - ('
'); + ('
'); } + parent.mapout.document.write + ('
'); } else { if (what=='c:') { parent.mapout.document.write @@ -978,14 +990,61 @@ function drawcell (rtype,ctype,what,cm,o +' src="condition.gif">'); } else { 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 - (''); + if ((mime!='') && (ext!='true')) { + parent.mapout.document.write + ('
'+ + ''); + } else { + parent.mapout.document.write + ('
'); + } + parent.mapout.document.write + ('
'); + } else { 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 - (''); + if ((mime!='') && (ext!='true')) { + parent.mapout.document.write + ('
'+ + ''); + } else { + parent.mapout.document.write + ('
'); + } + parent.mapout.document.write + ('
'); } else { parent.mapout.document.write ('
'); + '">  '); } inf.document.write(''); if (data2[2]=='true') { inf.document.write('External '); } @@ -1658,7 +1720,7 @@ function handler(infostr) { } inf.document.writeln( 'opener.infoclear();opener.editmode=0;opener.draw(' - +');">Change to above values  ' + +');">Save Changes  ' +' Reset
' +''); @@ -1732,7 +1794,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 +1838,7 @@ function handler(infostr) { } inf.document.writeln( '
Done'); + +'opener.infoclear();">Cancel'); inf.document.writeln(''); inf.document.close(); inf.focus(); @@ -1846,7 +1908,7 @@ function empty(rid,k) { inf.document.writeln( '
Done'); + +'opener.infoclear();">Cancel'); inf.document.writeln(''); inf.document.close(); inf.focus(); @@ -2002,7 +2064,9 @@ function tabledraw() { if (mime==undefined) { mime=''; } if (mime!='') { parent.mapout.document.write - ('

'+ + '

'); } parent.mapout.document.write( @@ -2058,7 +2122,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 +2278,9 @@ function simpletabledraw() { if (mime==undefined) { mime=''; } if (mime!='') { parent.mapout.document.write - ('

'+ + '

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