--- rat/client/Attic/code.html 2001/03/12 15:47:46 1.18
+++ rat/client/Attic/code.html 2001/08/08 02:59:17 1.45
@@ -3,6 +3,7 @@
@@ -73,6 +81,27 @@ var data5=new Array(1024);
var inf;
var srch;
+var srchflag=-1; // 1 means currently open
+ // 0 means closed (but has been open)
+ // -1 means never yet opened/defined
+var srchmode='';
+
+var idx;
+var idxflag=-1; // 1 means currently open
+ // 0 means closed (but has been open)
+ // -1 means never yet opened/defined
+var idxmode='';
+
+var parm;
+var parmflag=-1; // 1 means currently open
+ // 0 means closed (but has been open)
+ // -1 means never yet opened/defined
+
+var iconpath='/adm/lonIcons/';
+
+function testfunction() {
+ inf.document.forms.resinfo.elements.t.value="ABC";
+}
// ------------------------------------------------ Insert a row into the table
@@ -94,7 +123,7 @@ function insertrow(j,ex1,ex2) {
objects=objects1+':'+objects2;
data1=objects.split(':');
for (kj=0;kj');
- if ((what!='') && (what!=undefined)) {
- if ((obj1!='') && (obj1!=undefined)) {
- obj1="'"+obj1+"'";
+ if ((what!='') && (typeof(what)!="undefined")) {
+ if ((obj1!='') && (typeof(obj1)!="undefined")) {
+ objref="'"+obj1+"'";
parent.mapout.document.write
- ('');
+ ('');
}
if (what=='r:') {
+ 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=='c:') {
parent.mapout.document.write
@@ -934,14 +993,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 {
@@ -1007,7 +1113,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';
@@ -1094,7 +1200,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';
@@ -1103,7 +1209,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';
@@ -1113,7 +1219,7 @@ if (rowtype[jid]!=0) {
}
if (rightout>middle) {
for (k=middle+1;k