--- rat/client/Attic/code.html 2001/06/29 21:57:46 1.39
+++ rat/client/Attic/code.html 2001/07/04 19:59:24 1.41
@@ -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,06/28,06/29 Gerd Kortemeyer
+06/11,06/25,06/27,06/28,06/29,07/04 Gerd Kortemeyer
-->
@@ -941,7 +941,8 @@ 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;
@@ -961,6 +962,7 @@ function drawcell (rtype,ctype,what,cm,o
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=''; }
@@ -968,7 +970,7 @@ function drawcell (rtype,ctype,what,cm,o
parent.mapout.document.write
('');
- if (mime!='') {
+ if ((mime!='') && (ext!='true')) {
parent.mapout.document.write
('
');
} 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
('');
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
('
'+ @@ -2201,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)) { @@ -2221,10 +2279,11 @@ function simpletabledraw() { ck=rescolor(data1[2],data1[3]); parent.mapout.document.write('
'+
@@ -2472,7 +2531,7 @@ function finishload() {
data1=inputstr.split('<&>');
var k;
for (k=0;k