--- rat/client/Attic/code.html 2002/03/06 20:30:07 1.50 +++ rat/client/Attic/code.html 2003/02/03 18:03:53 1.63 @@ -4,7 +4,7 @@ The LearningOnline Network Resource Assembly Tool // -// $Id: code.html,v 1.50 2002/03/06 20:30:07 matthew Exp $ +// $Id: code.html,v 1.63 2003/02/03 18:03:53 harris41 Exp $ // // Copyright Michigan State University Board of Trustees // @@ -37,13 +37,9 @@ YEAR 2000 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, YEAR 2001 -01/17/01,03/03,03/05 Gerd Kortemeyer with Scott Harrison -March/April 01 Scott Harrison +01/17/01,03/03,03/05 Gerd Kortemeyer 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 -07/24,8/6,8/7,10/16 Scott Harrison 03/01/02 Matthew Hall --> @@ -118,12 +114,19 @@ var idxflag=-1; // 1 means currently ope // -1 means never yet opened/defined var idxmode=''; +var copydx; +var copydxflag=-1; // 1 means currently open + // 0 means closed (but has been open) + // -1 means never yet opened/defined +var copydxmode=''; + 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/'; +var raticons='/adm/rat/'; function testfunction() { inf.document.forms.resinfo.elements.t.value="ABC"; @@ -967,28 +970,35 @@ function drawcell (rtype,ctype,what,cm,o urlparts=url.split('.'); mime=urlparts[urlparts.length-1]; if (typeof(mime)=="undefined") { mime=''; } + mime=mime.toLowerCase(); } parent.mapout.document.write (''); + +' src="'+raticons+'resource.gif">'); + if (zscale==3) { if ((mime!='') && (ext!='true')) { parent.mapout.document.write - ('
'+ - ''); + ''); } else { parent.mapout.document.write - ('
'); + ('
'); } parent.mapout.document.write - ('
'); + ('
'); + } else { + parent.mapout.document.write + ('
'); + } } else { if (what=='c:') { parent.mapout.document.write (''); + +' src="'+raticons+'condition.gif">'); } else { if (what=='rs:') { mime=''; @@ -1000,23 +1010,30 @@ function drawcell (rtype,ctype,what,cm,o urlparts=url.split('.'); mime=urlparts[urlparts.length-1]; if (typeof(mime)=="undefined") { mime=''; } + mime=mime.toLowerCase(); } parent.mapout.document.write (''); + +' src="'+raticons+'start.gif">'); + if (zscale==3) { if ((mime!='') && (ext!='true')) { parent.mapout.document.write - ('
'+ - ''); + ''); } else { parent.mapout.document.write - ('
'); + ('
'); } parent.mapout.document.write - ('
'); + ('
'); + } else { + parent.mapout.document.write + ('
'); + } } else { if (what=='rf:') { @@ -1029,27 +1046,35 @@ function drawcell (rtype,ctype,what,cm,o urlparts=url.split('.'); mime=urlparts[urlparts.length-1]; if (typeof(mime)=="undefined") { mime=''; } + mime=mime.toLowerCase(); } parent.mapout.document.write (''); + +' src="'+raticons+'finish.gif">'); + if (zscale==3) { if ((mime!='') && (ext!='true')) { parent.mapout.document.write - ('
'+ - ''); + ''); } else { parent.mapout.document.write - ('
'); + ('
'); } parent.mapout.document.write - ('
'); + ('
'); + } else { + parent.mapout.document.write + ('
'); + } + } else { parent.mapout.document.write (''); + +' src="'+raticons+rtype+'.'+ctype+'.'+what+'.gif">'); } } } @@ -1070,7 +1095,7 @@ function drawcell (rtype,ctype,what,cm,o parent.mapout.document.write ( '
'); + +' src="'+raticons+rtype+'.'+ctype+'.empty.gif">'); } parent.mapout.document.write(''); } @@ -1421,7 +1446,7 @@ function info(infostr) { inf.document.clear(); inf.document.writeln( ''+ - '
'); + '
'); data1=infostr.split('&'); if (data1[0]=='c') { inf.document.write('Condition ('); @@ -1509,14 +1534,13 @@ function escape(instring) { for (k=0;k

Copy from Map

'+ + '
'+ + '
'); + + copydx.document.writeln(''); + copydx.focus(); +} // --------------------------------------------------------- Open search window function srchopen(mode) { @@ -1649,6 +1727,14 @@ function idxcheck(mode) { idx.focus(); } +// -------------------------------------------------------- Do idx status check +function copydxcheck(mode) { + if (!copydx || copydx.closed || copydxmode!=mode) { + copydxopen(mode); + } + copydx.focus(); +} + // ---------------------------------------------------- Handles "click to edit" function handler(infostr) { var k; @@ -1658,7 +1744,7 @@ function handler(infostr) { inf.document.clear(); inf.document.writeln( ''+ - '
'); + '
'); data1=infostr.split('&'); if (data1[0]=='c') { inf.document.writeln('Condition
'); @@ -1735,7 +1821,7 @@ function handler(infostr) { inf.document.write( '
'); ++escape(data2[0])+'">'); inf.document.write('' +'
Title:' +'
URL:' +'
External:'+ - '
'+ + '
'+ 'Empty Field
'); inf.document.writeln('
- - - - - - - - - - - + + + + + + + + + + + + +
Toggle display Zoom out Zoom in Condense Straighten Revert Undo Redo Group search Group import Save map Toggle displayZoom outZoom inCondenseStraightenRevertUndoRedoSearchImportCopySave mapSave map and layout