--- rat/client/Attic/code.html 2001/06/27 19:19:06 1.38 +++ rat/client/Attic/code.html 2001/07/25 03:10:15 1.43 @@ -15,7 +15,8 @@ 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 +07/24 Scott Harrison --> @@ -120,7 +121,7 @@ function insertrow(j,ex1,ex2) { objects=objects1+':'+objects2; data1=objects.split(':'); for (kj=0;kj'); - if ((what!='') && (what!=undefined)) { - if ((obj1!='') && (obj1!=undefined)) { + if ((what!='') && (typeof(what)!="undefined")) { + if ((obj1!='') && (typeof(obj1)!="undefined")) { objref="'"+obj1+"'"; 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 +991,61 @@ function drawcell (rtype,ctype,what,cm,o +' src="condition.gif">'); } else { if (what=='rs:') { + mime=''; + objnum=(obj1.split('&'))[1]; + if (typeof(objcont[objnum])!="undefined") { + urlparts=objcont[objnum].split(':'); + url=urlparts[1]; + ext=urlparts[2]; + urlparts=url.split('.'); + mime=urlparts[urlparts.length-1]; + if (typeof(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 (typeof(objcont[objnum])!="undefined") { + urlparts=objcont[objnum].split(':'); + url=urlparts[1]; + ext=urlparts[2]; + urlparts=url.split('.'); + mime=urlparts[urlparts.length-1]; + if (typeof(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 (''); } } else { @@ -1051,7 +1111,7 @@ if (rowtype[jid]!=0) { } parent.mapout.document.writeln(''); - if ((rowcont[jid]!='') && (rowcont[jid]!=undefined)) { + if ((rowcont[jid]!='') && (typeof(rowcont[jid])!="undefined")) { data2=rowcont[jid].split(':'); for (jk=0;jkmiddle) { for (k=middle+1;kleftin;k--) { - if ((colmap4[k]!='') && (colmap4[k]!=undefined)) { + if ((colmap4[k]!='') && (typeof(colmap4[k])!="undefined")) { colmap[k]='lrt'; } else { colmap[k]='lr'; @@ -1138,7 +1198,7 @@ if (rowtype[jid]!=0) { if (rightoutmiddle) { - if ((colmap3[middle]!='') && (colmap3[middle]!=undefined)) { + if ((colmap3[middle]!='') && (typeof(colmap3[middle])!="undefined")) { colmap2[middle]='rtdl'; } else { colmap2[middle]='rtl'; @@ -1147,7 +1207,7 @@ if (rowtype[jid]!=0) { } if (leftoutleftout;k--) { - if ((colmap3[k]!='') && (colmap3[k]!=undefined)) { + if ((colmap3[k]!='') && (typeof(colmap3[k])!="undefined")) { colmap2[k]='rld'; } else { colmap2[k]='rl'; @@ -1157,7 +1217,7 @@ if (rowtype[jid]!=0) { } if (rightout>middle) { for (k=middle+1;k
'); + '">  '); } inf.document.write(''); if (data2[2]=='true') { inf.document.write('External '); } @@ -1658,7 +1721,7 @@ function handler(infostr) { } inf.document.writeln( 'opener.infoclear();opener.editmode=0;opener.draw(' - +');">Change to above values  ' + +');">Save Changes  ' +' Reset
' +''); @@ -1732,7 +1795,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 +1839,7 @@ function handler(infostr) { } inf.document.writeln( '
Done'); + +'opener.infoclear();">Cancel'); inf.document.writeln(''); inf.document.close(); inf.focus(); @@ -1806,7 +1869,7 @@ function empty(rid,k) { +');">Insert resource'); if ((mostrecent!=0) && (objcont[mostrecent]!='') && - (objcont[mostrecent]!=undefined)) { + (typeof(objcont[mostrecent])!="undefined")) { inf.document.writeln('
Done'); + +'opener.infoclear();">Cancel'); inf.document.writeln(''); inf.document.close(); inf.focus(); @@ -1935,7 +1998,7 @@ function graphreset() { objcont[0]=''; objlinks[0]=''; - if (((objcont[1]==undefined)&&(objcont[2]==undefined)) || + if (((typeof(objcont[1])=="undefined")&&(typeof(objcont[2])=="undefined")) || ((objcont[1]=='')&&(objcont[2]==''))) { objcont[1]='Start::false:start:res' objcont[2]='Finish::false:finish:res'; @@ -1976,10 +2039,11 @@ function tabledraw() { var condid; var url=''; var mime=''; + var ext=''; var urlparts=new Array; var sortstr=sortobjs(); insrestab(1,-1,-1,''); - if ((sortstr!='') && (sortstr!=undefined)) { + if ((sortstr!='') && (typeof(sortstr)!="undefined")) { objsorted=sortstr.split('&'); for (k=0;k'); url=data1[1]; + ext=data1[2]; urlparts=url.split('.'); mime=urlparts[urlparts.length-1]; - if (mime==undefined) { mime=''; } - if (mime!='') { + if (typeof(mime)=="undefined") { mime=''; } + if ((mime!='') && (ext!='true')) { parent.mapout.document.write - ('

'+ + '

'); } parent.mapout.document.write( @@ -2058,7 +2125,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,9 +2256,13 @@ 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)) { + if ((sortstr!='') && (typeof(sortstr)!="undefined")) { objsorted=sortstr.split('&'); for (k=0;k'); url=data1[1]; + ext=data1[2]; urlparts=url.split('.'); mime=urlparts[urlparts.length-1]; - if (mime==undefined) { mime=''; } - if (mime!='') { + if (typeof(mime)=="undefined") { mime=''; } + if ((mime!='') && (ext!='true')) { parent.mapout.document.write - ('

'+ + '

'); } parent.mapout.document.write(''+k+''); @@ -2298,7 +2372,7 @@ function sortobjs() { for (k=1;k'); 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]; } @@ -2466,7 +2540,7 @@ function finishload() { if (data2[0]=='objcont') { objcont[data2[1]]=data2[2]; } if (data2[0]=='objlinks') { objlinks[data2[1]]=data2[2]; } if (data2[0]=='objparms') { - if (objparms[data2[1]]==undefined) { + if (typeof(objparms[data2[1]])=="undefined") { objparms[data2[1]]=data2[2]; } else { objparms[data2[1]]+=':'+data2[2]; @@ -2482,7 +2556,7 @@ function finishload() { } if (graphdef=='yes') { for (k=1;k<=maxrow;k++) { - if (rowcont[k]==undefined) { rowcont[k]=''; } + if (typeof(rowcont[k])=="undefined") { rowcont[k]=''; } } } } @@ -2675,17 +2749,24 @@ 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 
+
+