--- rat/client/Attic/code.html 2001/06/11 19:25:12 1.34 +++ rat/client/Attic/code.html 2001/11/29 19:15:37 1.48 @@ -3,6 +3,32 @@ @@ -93,6 +121,8 @@ 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"; @@ -118,7 +148,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 @@ -958,14 +1018,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 { @@ -1031,7 +1138,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'; @@ -1118,7 +1225,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'; @@ -1127,7 +1234,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'; @@ -1137,7 +1244,7 @@ if (rowtype[jid]!=0) { } if (rightout>middle) { for (k=middle+1;k'); + url=data2[1]; + ext=data2[2]; + urlparts=url.split('.'); + mime=urlparts[urlparts.length-1]; + if (typeof(mime)=="undefined") { mime=''; } + if (ext=='true') { mime=''; } + if (mime!='') { + inf.document.write + (' '); + } + inf.document.write(''); if (data2[2]=='true') { inf.document.write('External '); } if (data2[3]=='start') { inf.document.writeln('Start'); @@ -1541,7 +1663,7 @@ function idxopen(mode) { var options="scrollbars=1,resizable=1,menubar=0"; idxmode=mode; idxflag=1; - idx=open("/res?catalogmode="+mode,"idxout",options); + idx=open("/res/?launch=1&catalogmode="+mode,"idxout",options); idx.focus(); } @@ -1551,7 +1673,7 @@ function srchopen(mode) { var options="scrollbars=1,resizable=1,menubar=0"; srchmode=mode; srchflag=1; - srch=open("/adm/searchcat?catalogmode=interactive","srchout",options); + srch=open("/adm/searchcat?launch=1&catalogmode="+mode,"srchout",options); srch.focus(); } @@ -1565,7 +1687,7 @@ function search() { function srchcheck(mode) { if (!srch || srch.closed || srchmode!=mode) { - srchopen(); + srchopen(mode); } srch.focus(); } @@ -1626,7 +1748,7 @@ function handler(infostr) { } inf.document.writeln( 'opener.infoclear();opener.editmode=0;opener.draw(' - +');">Change to above values ' + +');">Save Changes ' +' Reset' +''); @@ -1669,7 +1791,6 @@ function handler(infostr) { 'Title:' +''); - if ((data2[3]!='start') && (data2[3]!='finish')) { inf.document.write('URL:' +'' +'External:' +'Browse ' +'Search' - +'' + +'.srchcheck(\'interactive\')">Search'); + if ((data2[3]!='start') && (data2[3]!='finish')) { + inf.document.write('' +' Optional'); - } else { - inf.document.write( - '' - +''); - } + } inf.document.writeln( '' - +'Change to above values ' + +'Save Changes ' +' Reset' +''); if ((data2[3]!='start') && (data2[3]!='finish')) { @@ -1748,7 +1866,7 @@ function handler(infostr) { } inf.document.writeln( 'Done'); + +'opener.infoclear();">Cancel'); inf.document.writeln('