--- rat/client/Attic/code.html 2001/06/27 19:19:06 1.38 +++ rat/client/Attic/code.html 2001/07/08 18:35:03 1.42 @@ -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(); @@ -1976,6 +2038,7 @@ function tabledraw() { var condid; var url=''; var mime=''; + var ext=''; var urlparts=new Array; var sortstr=sortobjs(); insrestab(1,-1,-1,''); @@ -1997,12 +2060,15 @@ function tabledraw() { ck=rescolor(data1[2],data1[3]); parent.mapout.document.write(''); url=data1[1]; + ext=data1[2]; urlparts=url.split('.'); mime=urlparts[urlparts.length-1]; if (mime==undefined) { mime=''; } - if (mime!='') { + if ((mime!='') && (ext!='true')) { parent.mapout.document.write - ('

'+ + '

'); } parent.mapout.document.write( @@ -2058,7 +2124,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')) { @@ -2189,6 +2255,10 @@ function simpletabledraw() { var nr; var ck; var cck; + var mime; + var ext; + var url; + var urlparts=new Array; var condid; var sortstr=sortobjs(); if ((sortstr!='') && (sortstr!=undefined)) { @@ -2209,12 +2279,15 @@ function simpletabledraw() { ck=rescolor(data1[2],data1[3]); parent.mapout.document.write(''); url=data1[1]; + ext=data1[2]; urlparts=url.split('.'); mime=urlparts[urlparts.length-1]; if (mime==undefined) { mime=''; } - if (mime!='') { + if ((mime!='') && (ext!='true')) { parent.mapout.document.write - ('

'+ + '

'); } parent.mapout.document.write(''+k+''); @@ -2458,7 +2531,7 @@ function finishload() { data1=inputstr.split('<&>'); var k; for (k=0;k'); + data2=data1[k].split(':').join(':').split('<:>'); if (data2[0]=='graphdef') { graphdef=data2[1]; } if (data2[0]=='maxcol') { maxcol=1*data2[1]; } if (data2[0]=='maxrow') { maxrow=1*data2[1]; } @@ -2676,16 +2749,20 @@ function leave() { -Toggle Display Mode -Zoom Out -Zoom In -Condense -Straighten -Revert -Undo -Redo -Group Search -Group Import -Store +
+ + + + + + + + + + + + +
Toggle display Zoom out Zoom in Condense Straighten Revert Undo Redo Group search Group import Save map 
+