version 1.13, 2001/01/17 19:48:33
|
version 1.27, 2001/03/15 18:08:44
|
Line 10 Resource Assembly Tool
|
Line 10 Resource Assembly Tool
|
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, |
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, |
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, |
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 Gerd Kortemeyer with Scott Harrison |
01/17/01,03/03,03/05 Gerd Kortemeyer with Scott Harrison |
--> |
--> |
|
|
|
|
Line 30 var colmap5=new Array();
|
Line 30 var colmap5=new Array();
|
var colmap6=new Array(); |
var colmap6=new Array(); |
var obj=new Array(); |
var obj=new Array(); |
var objcont=new Array(); |
var objcont=new Array(); |
|
var objparms=new Array(); |
var objlinks=new Array(); |
var objlinks=new Array(); |
var rowcont=new Array(); |
var rowcont=new Array(); |
var rowtype=new Array(); |
var rowtype=new Array(); |
Line 71 var data4=new Array(1024);
|
Line 72 var data4=new Array(1024);
|
var data5=new Array(1024); |
var data5=new Array(1024); |
|
|
var inf; |
var inf; |
|
var srch; |
|
|
|
function testfunction() { |
|
inf.document.forms.resinfo.elements.t.value="ABC"; |
|
} |
|
|
// ------------------------------------------------ Insert a row into the table |
// ------------------------------------------------ Insert a row into the table |
|
|
Line 1280 function infoclear() {
|
Line 1286 function infoclear() {
|
} |
} |
inf.document.writeln('</tr></table></body></html>'); |
inf.document.writeln('</tr></table></body></html>'); |
inf.document.close(); |
inf.document.close(); |
parent.focus(); |
srchclose(); |
|
|
|
parent.top.focus(); |
parent.mapout.focus(); |
parent.mapout.focus(); |
notclear=1; |
notclear=1; |
lastinfo=''; |
lastinfo=''; |
Line 1373 function info(infostr) {
|
Line 1381 function info(infostr) {
|
} |
} |
inf.document.writeln('</td></tr></table></body></html>'); |
inf.document.writeln('</td></tr></table></body></html>'); |
inf.document.close(); |
inf.document.close(); |
parent.focus(); |
parent.top.focus(); |
parent.mapout.focus(); |
parent.mapout.focus(); |
notclear=0; |
notclear=0; |
lastinfo=infostr; |
lastinfo=infostr; |
Line 1452 function insertcondlink(cid,lnr) {
|
Line 1460 function insertcondlink(cid,lnr) {
|
joinres(nobj,tobj,0); |
joinres(nobj,tobj,0); |
} |
} |
|
|
|
|
|
|
|
|
|
// ------------------------------------------------------- Clears search window |
|
|
|
function srchclear() { |
|
srch.document.clear(); |
|
} |
|
|
|
// ------------------------------------------------------- Closes search window |
|
|
|
function srchclose() { |
|
if (srch && !srch.closed) { |
|
srch.close(); |
|
} |
|
} |
|
|
|
// --------------------------------------------------------- Open search window |
|
|
|
function srchopen() { |
|
var options="scrollbars=1,resizable=1,menubar=0"; |
|
srch=open("/adm/searchcat?catalogmode=interactive","srchout",options); |
|
srch.focus(); |
|
} |
|
|
|
// -------------------------------------------- Interface function to searching |
|
|
|
function search() { |
|
alert("Searching not yet implemented"); |
|
} |
|
|
|
// ------------------------------------------------------- Do srch status check |
|
|
|
function srchcheck() { |
|
if (!srch || srch.closed) { |
|
srchopen(); |
|
} |
|
srch.focus(); |
|
} |
|
|
// ---------------------------------------------------- Handles "click to edit" |
// ---------------------------------------------------- Handles "click to edit" |
|
|
function handler(infostr) { |
function handler(infostr) { |
Line 1539 function handler(infostr) {
|
Line 1587 function handler(infostr) {
|
} |
} |
} |
} |
inf.document.write( |
inf.document.write( |
'<form name=resinfo><table><tr><td>Title:</td><td>' |
'<form name=resinfo><table><tr><td>Title:</td><td colspan=2>' |
+'<input type=text name=t size=30 value="' |
+'<input type=text name=t size=30 value="' |
+data2[0]+'"><input type=hidden name=h value='+data2[3]+'></td></tr>'); |
+data2[0]+'"><input type=hidden name=h value='+data2[3]+'></td></tr>'); |
if ((data2[3]!='start') && (data2[3]!='finish')) { |
if ((data2[3]!='start') && (data2[3]!='finish')) { |
inf.document.write('<tr><td>URL:</td><td>' |
inf.document.write('<tr><td>URL:</td><td colspan=2>' |
+'<input type=text name=u size=30 value="'+data2[1]+'"></td></tr>' |
+'<input type=text name=u size=30 value="'+data2[1]+'"></td></tr>' |
+'<tr><td>External:</td><td><input type=checkbox name=e'); |
+'<tr><td>External:</td><td><input type=checkbox name=e'); |
if (data2[2]=='true') { inf.document.write(' checked'); } |
if (data2[2]=='true') { inf.document.write(' checked'); } |
inf.document.write('></td></tr>' |
inf.document.write('></td><td align=right><a href="javascript:opener.srchcheck()">Search</a></td></tr>' |
+'<tr><td colspan=2>' |
+'<tr><td colspan=3>' |
+'<input type=radio name=y value=normal '+ |
+'<input type=radio name=y value=normal '+ |
'onClick="self.document.forms.resinfo.elements.h.value='+"'normal'"+'"'); |
'onClick="self.document.forms.resinfo.elements.h.value='+"'normal'"+'"'); |
if (data2[3]=='normal') { inf.document.write(' checked'); } |
if (data2[3]=='normal') { inf.document.write(' checked'); } |
Line 1567 function handler(infostr) {
|
Line 1615 function handler(infostr) {
|
+'<input type=hidden name=u value=""></td></tr>'); |
+'<input type=hidden name=u value=""></td></tr>'); |
} |
} |
inf.document.writeln( |
inf.document.writeln( |
'<tr><td colspan=2><a href="javascript:opener.editmode=0;' |
'<tr><td colspan=3><a href="javascript:opener.editmode=0;' |
+'opener.notclear=0;opener.objcont['+data1[1] |
+'opener.notclear=0;opener.objcont['+data1[1] |
+']=opener.escape(self.document.forms.resinfo.elements.t.value)+'+"':'" |
+']=opener.escape(self.document.forms.resinfo.elements.t.value)+'+"':'" |
+'+opener.escape(self.document.forms.resinfo.elements.u.value)+'+"':'" |
+'+opener.escape(self.document.forms.resinfo.elements.u.value)+'+"':'" |
Line 1593 function handler(infostr) {
|
Line 1641 function handler(infostr) {
|
+'opener.linkmode='+data1[1]+';' |
+'opener.linkmode='+data1[1]+';' |
+'opener.infoclear();">Link Resource</a>'); |
+'opener.infoclear();">Link Resource</a>'); |
} |
} |
|
inf.document.writeln( |
|
'<br><a href="javascript:' |
|
+'opener.setparms('+data1[1]+');' |
|
+'opener.infoclear();">Set Parameters</a>'); |
|
|
} |
} |
} else { |
} else { |
linkmode=0; |
linkmode=0; |
Line 1894 function tabledraw() {
|
Line 1947 function tabledraw() {
|
parent.mapout.document.writeln( |
parent.mapout.document.writeln( |
'<a href="javascript:parent.code.linkmode='+i+ |
'<a href="javascript:parent.code.linkmode='+i+ |
';parent.code.notclear=0;parent.code.infoclear();">'+ |
';parent.code.notclear=0;parent.code.infoclear();">'+ |
'Link resource</a></td></tr>'); |
'Link resource</a>'); |
} |
} |
|
parent.mapout.document.writeln( |
|
'<br><a href="javascript:' |
|
+'parent.code.setparms('+i+');">Set Parameters</a>'); |
|
|
|
parent.mapout.document.writeln('</td></tr>'); |
parent.mapout.document.writeln('<tr><td colspan=2><table><tr>'); |
parent.mapout.document.writeln('<tr><td colspan=2><table><tr>'); |
for (j=2;j<data2.length;j++) { |
for (j=2;j<data2.length;j++) { |
data4=data2[j].split(':'); |
data4=data2[j].split(':'); |
Line 1963 function insrestab(irow,be,af,typ) {
|
Line 2021 function insrestab(irow,be,af,typ) {
|
'<a href="javascript:parent.code.insertrow(' |
'<a href="javascript:parent.code.insertrow(' |
+irow+');parent.code.newresource(parent.code.maxrow,'+rcol[0] |
+irow+');parent.code.newresource(parent.code.maxrow,'+rcol[0] |
+",'','','false','normal');parent.code.mostrecent=parent.code.obj.length-1;" |
+",'','','false','normal');parent.code.mostrecent=parent.code.obj.length-1;" |
|
+"parent.code.save();" |
+'parent.code.joinres('+be+',parent.code.mostrecent,0);' |
+'parent.code.joinres('+be+',parent.code.mostrecent,0);' |
+'parent.code.draw();">' |
+'parent.code.draw();">' |
+'Insert resource linked to from above</a><br>'); |
+'Insert resource linked to from above</a><br>'); |
Line 1972 function insrestab(irow,be,af,typ) {
|
Line 2031 function insrestab(irow,be,af,typ) {
|
'<a href="javascript:parent.code.insertrow(' |
'<a href="javascript:parent.code.insertrow(' |
+irow+');parent.code.newresource(parent.code.maxrow,'+rcol[0] |
+irow+');parent.code.newresource(parent.code.maxrow,'+rcol[0] |
+",'','','false','normal');parent.code.mostrecent=parent.code.obj.length-1;" |
+",'','','false','normal');parent.code.mostrecent=parent.code.obj.length-1;" |
|
+"parent.code.save();" |
+'parent.code.joinres('+be+',parent.code.mostrecent,0);' |
+'parent.code.joinres('+be+',parent.code.mostrecent,0);' |
|
+"parent.code.save();" |
+'parent.code.joinres(parent.code.mostrecent,'+af+',0);' |
+'parent.code.joinres(parent.code.mostrecent,'+af+',0);' |
+'parent.code.draw();">' |
+'parent.code.draw();">' |
+'Insert resource linked to from above and linking to below</a><br>'); |
+'Insert resource linked to from above and linking to below</a><br>'); |
Line 1982 function insrestab(irow,be,af,typ) {
|
Line 2043 function insrestab(irow,be,af,typ) {
|
'<a href="javascript:parent.code.insertrow(' |
'<a href="javascript:parent.code.insertrow(' |
+irow+');parent.code.newresource(parent.code.maxrow,'+rcol[0] |
+irow+');parent.code.newresource(parent.code.maxrow,'+rcol[0] |
+",'','','false','normal');parent.code.mostrecent=parent.code.obj.length-1;" |
+",'','','false','normal');parent.code.mostrecent=parent.code.obj.length-1;" |
|
+"parent.code.save();" |
+'parent.code.joinres(parent.code.mostrecent,'+af+',0);' |
+'parent.code.joinres(parent.code.mostrecent,'+af+',0);' |
+'parent.code.draw();">' |
+'parent.code.draw();">' |
+'Insert resource linking to below</a><br>'); |
+'Insert resource linking to below</a><br>'); |
Line 2283 function finishload() {
|
Line 2345 function finishload() {
|
} |
} |
} |
} |
|
|
|
// -------------------------------------------------------------- Parameter set |
|
|
|
function setparms(resid) { |
|
alert('Called setparms for '+resid); |
|
} |
|
|
// -------------------------------------------------------------- Undo function |
// -------------------------------------------------------------- Undo function |
|
|
function undo() { |
function undo() { |
Line 2422 function togglemode() {
|
Line 2490 function togglemode() {
|
function main() { |
function main() { |
|
|
if (mainrun==0) { |
if (mainrun==0) { |
|
srchopen(); |
|
// srchclose(); |
infopen(); |
infopen(); |
infoclear(); |
infoclear(); |
load(); |
load(); |
Line 2431 function main() {
|
Line 2501 function main() {
|
|
|
} |
} |
|
|
// ------------------------------------------------------------- Save on leave? |
// ---------------------------------------------------------- Close the window? |
|
|
function leave() { |
function leave() { |
if (!inf.closed) { |
if (!inf.closed) { |
inf.close(); |
inf.close(); |
} |
} |
|
if (srch && !srch.closed) { |
|
srchclose(); |
|
} |
} |
} |
|
|
</script> |
</script> |