--- rat/client/Attic/code.html 2001/03/05 16:01:35 1.16
+++ rat/client/Attic/code.html 2001/07/08 18:35:03 1.42
@@ -11,6 +11,11 @@ Resource Assembly Tool
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,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,07/04 Gerd Kortemeyer
-->
@@ -72,6 +77,28 @@ 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
@@ -912,20 +939,50 @@ function delres (obj1,recon) {
function drawcell (rtype,ctype,what,cm,obj1,ej,ek,ne) {
var bgcolor;
+ var url='';
+ var urlparts=new Array;
+ var mime;
+ var ext;
+ var objref;
+ var objnum;
+
if ((what=='') && (ne==0)) { cm="#DDDDDD"; }
if (ctype!=0) {
parent.mapout.document.write('
');
if ((what!='') && (what!=undefined)) {
if ((obj1!='') && (obj1!=undefined)) {
- obj1="'"+obj1+"'";
+ 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];
+ 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=='c:') {
parent.mapout.document.write
@@ -933,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
(' |