--- rat/client/Attic/code.html 2000/06/28 03:41:48 1.5
+++ rat/client/Attic/code.html 2001/06/29 21:57:46 1.39
@@ -9,8 +9,13 @@ Resource Assembly Tool
1/7,1/8,1/10,1/14,1/15,1/16,1/21,1/22,1/29,1/30,1/31,
2/2,2/3,2/10,2/12,2/13,2/14,2/15,2/17,2/18,2/19,2/20,2/21,2/22,
5/2,5/3,5/4,5/5,5/6,5/8,5/9,5/13,5/18,5/20,5/22,5/24,5/25,
-6/7,6/8,6/9,6/10,6/12,6/15
-Gerd Kortemeyer with Scott Harrison
+6/7,6/8,6/9,6/10,6/12,6/15,7/4,7/26,7/28,7/31,8/5,8/19,8/24,
+01/17/01,03/03,03/05 Gerd Kortemeyer with Scott Harrison
+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
-->
@@ -30,6 +35,7 @@ var colmap5=new Array();
var colmap6=new Array();
var obj=new Array();
var objcont=new Array();
+var objparms=new Array();
var objlinks=new Array();
var rowcont=new Array();
var rowtype=new Array();
@@ -47,6 +53,7 @@ var notclear=0;
var linkmode=0;
var lastinfo='';
var graphdef='no';
+var mode='';
var mainrun=0;
var tablemode=0;
var mostrecent=0;
@@ -55,6 +62,14 @@ var zscale=3;
var disrows=0;
var discols=0;
+var finishdone=0;
+var tim=0;
+var funny='|';
+var reqaction='';
+var canceltim;
+
+var expense=0;
+
var data1=new Array(1024);
var data2=new Array(1024);
var data3=new Array(1024);
@@ -62,12 +77,35 @@ var data4=new Array(1024);
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
function insertrow(j,ex1,ex2) {
var kj;
stored=0;
+ expense++; expense++;
objects1='';
objects2='';
for (kj=0;kj<=maxrow;kj++) {
@@ -82,7 +120,7 @@ function insertrow(j,ex1,ex2) {
objects=objects1+':'+objects2;
data1=objects.split(':');
for (kj=0;kjj ) { col[kj]++; }
}
maxcol++;
+ expense++; expense++;
col[maxcol]=j+1;
}
@@ -245,7 +284,7 @@ function maprow (jid,obj1,ign) {
var j; var k; var left; var right; var middle;
middle=-1;
for (j=0;j<=maxcol;j++) { colmap[j]=0; }
- if (rowcont[jid]!='') {
+ if ((rowcont[jid]!='') && (rowcont[jid]!=undefined)) {
data2=rowcont[jid].split(':');
for (j=0;j');
- if (what!='') {
- if (obj1!='') {
- obj1="'"+obj1+"'";
+ if ((what!='') && (what!=undefined)) {
+ if ((obj1!='') && (obj1!=undefined)) {
+ objref="'"+obj1+"'";
parent.mapout.document.write
- ('');
+ ('');
}
if (what=='r:') {
+ mime='';
+ objnum=(obj1.split('&'))[1];
+ if (objcont[objnum]!=undefined) {
+ urlparts=objcont[objnum].split(':');
+ url=urlparts[1];
+ urlparts=url.split('.');
+ mime=urlparts[urlparts.length-1];
+ if (mime==undefined) { mime=''; }
+ }
parent.mapout.document.write
- ('');
+ if (mime!='') {
+ parent.mapout.document.write
+ ('
'+
+ '');
+ } else {
+ parent.mapout.document.write
+ ('
');
+ }
+ parent.mapout.document.write
+ ('
');
} else {
if (what=='c:') {
parent.mapout.document.write
@@ -876,7 +1004,7 @@ function drawcell (rtype,ctype,what,cm,o
}
}
}
- if (obj1!='') {
+ if ((obj1!='') && (obj1!=undefined)) {
parent.mapout.document.write('');
}
} else {
@@ -933,7 +1061,7 @@ if (rowtype[jid]!=0) {
}
parent.mapout.document.writeln('');
- if (rowcont[jid]!='') {
+ if ((rowcont[jid]!='') && (rowcont[jid]!=undefined)) {
data2=rowcont[jid].split(':');
for (jk=0;jkmiddle) {
for (k=middle+1;kleftin;k--) {
- if (colmap4[k]!='') {
+ if ((colmap4[k]!='') && (colmap4[k]!=undefined)) {
colmap[k]='lrt';
} else {
colmap[k]='lr';
@@ -1020,7 +1148,7 @@ if (rowtype[jid]!=0) {
if (rightoutmiddle) {
- if (colmap3[middle]!='') {
+ if ((colmap3[middle]!='') && (colmap3[middle]!=undefined)) {
colmap2[middle]='rtdl';
} else {
colmap2[middle]='rtl';
@@ -1029,7 +1157,7 @@ if (rowtype[jid]!=0) {
}
if (leftoutleftout;k--) {
- if (colmap3[k]!='') {
+ if ((colmap3[k]!='') && (colmap3[k]!=undefined)) {
colmap2[k]='rld';
} else {
colmap2[k]='rl';
@@ -1039,7 +1167,7 @@ if (rowtype[jid]!=0) {
}
if (rightout>middle) {
for (k=middle+1;k');
- for (kr=0;kr<=maxrow;kr++) {
+ for (kr=0;kr<=maxrow;kr++) {
message("Generating Output Row "+kr);
drawrow(rrow[kr]);
}
@@ -1208,7 +1336,16 @@ function infoclear() {
}
inf.document.writeln('