--- rat/client/Attic/code.html 2001/03/05 16:01:35 1.16 +++ rat/client/Attic/code.html 2001/03/12 15:35:55 1.17 @@ -72,6 +72,7 @@ var data4=new Array(1024); var data5=new Array(1024); var inf; +var srch; // ------------------------------------------------ Insert a row into the table @@ -1453,6 +1454,78 @@ function insertcondlink(cid,lnr) { joinres(nobj,tobj,0); } + + + +// ------------------------------------------------------- Clears search window + +function srchclear() { + srch.document.clear(); +} + +// ------------------------------------------------------- Closes search window + +function srchclose() { + srch.close(); +} + +// --------------------------------------------------------- Open search window + +function srchopen() { + var options="scrollbars=1,resizable=1,menubar=0"; + srch=open("","srchout",options); + srchclear(); + srch.document.writeln( + '
'+ + ''+ + ''+ + ''+ + '
Resource Library Search
'+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + '
title
author
subject
notes
abstract
mime
language
creationdate
lastrevisiondate
owner
copyright
'+ + ''+ + '
'); +} + +// -------------------------------------------- Interface function to searching + +function search() { + alert("Searching not yet implemented"); +} + +// ------------------------------------------------------- Do srch status check + +function srchcheck() { + if (srch.closed) { + srchopen(); + } +} + // ---------------------------------------------------- Handles "click to edit" function handler(infostr) { @@ -1540,16 +1613,16 @@ function handler(infostr) { } } inf.document.write( - '
Title:' + ''); if ((data2[3]!='start') && (data2[3]!='finish')) { - inf.document.write('' +'' - +'' + +''); } inf.document.writeln( - '
Title:' +'
URL:' + inf.document.write('
URL:' +'
External:
' + inf.document.write('>Search
' +'