version 1.2, 2005/06/08 19:23:37
|
version 1.13.10.2, 2012/12/16 16:34:23
|
Line 1
|
Line 1
|
<!-- |
<!-- |
The LearningOnline Network |
The LearningOnline Network |
Resource Assembly Tool |
Resource Assembly Tool |
|
// $Id$ |
// |
// |
// Copyright Michigan State University Board of Trustees |
// Copyright Michigan State University Board of Trustees |
// |
// |
Line 40 YEAR 2001
|
Line 41 YEAR 2001
|
--> |
--> |
|
|
|
|
<script language="JavaScript"> |
<script type="text/javascript" language="JavaScript"> |
|
|
var row=new Array(); |
var row=new Array(); |
var maxrow=-1; |
var maxrow=-1; |
Line 95 var data2=new Array(1024);
|
Line 96 var data2=new Array(1024);
|
var data3=new Array(1024); |
var data3=new Array(1024); |
var data4=new Array(1024); |
var data4=new Array(1024); |
var data5=new Array(1024); |
var data5=new Array(1024); |
|
var data6=new Array(1024); |
|
|
var inf; |
var inf; |
var srch; |
var srch; |
Line 242 function newcondition(content,type) {
|
Line 244 function newcondition(content,type) {
|
} |
} |
|
|
// ---------------------------------------------- Creates a new resource object |
// ---------------------------------------------- Creates a new resource object |
function newresource(rid,cid,text,url,ext,type) { |
function newresource(rid,cid,text,url,ext,type,oldidx) { |
stored=0; |
stored=0; |
objcont[addobj(rid,'b&'+rid+'&'+cid+':0:0:0')]= |
var newidx=addobj(rid,'b&'+rid+'&'+cid+':0:0:0',url,oldidx); |
|
|
|
objcont[newidx]= |
text+':'+url+':'+ext+':'+type+':res'; |
text+':'+url+':'+ext+':'+type+':res'; |
|
return newidx; |
} |
} |
|
|
|
|
Line 464 function insertport (obj1,d,inout,linkob
|
Line 469 function insertport (obj1,d,inout,linkob
|
|
|
// ---------------------------- Make a new object and add it to the row content |
// ---------------------------- Make a new object and add it to the row content |
// returns object number of generated object |
// returns object number of generated object |
function addobj(kjid,objs) { |
function addobj(kjid,objs,url,oldindex) { |
stored=0; |
stored=0; |
expense++; |
expense++; |
if ((rowcont[kjid]!='') && (typeof(rowcont[kjid])!="undefined")) { |
if ((rowcont[kjid]!='') && (typeof(rowcont[kjid])!="undefined")) { |
rowcont[kjid]+=':'; |
rowcont[kjid]+=':'; |
} |
} |
rowcont[kjid]+=obj.length; |
var newindex=obj.length; |
obj[obj.length]=objs; |
if ((url!='') && (typeof(url)!="undefined")) { |
return obj.length-1; |
// see if we have a zombie with that url and possibly oldindex |
|
for (oidx=0;oidx<objcont.length;oidx++) { |
|
if (typeof(objcont[oidx])!="undefined") { |
|
data6=objcont[oidx].split(':'); |
|
if (data6[4]=='zombie') { |
|
if (data6[1]==url) { |
|
if (typeof(oldindex) == "undefined") { |
|
newindex=oidx; |
|
} else { |
|
if (oidx == oldindex) { |
|
newindex=oidx; |
|
} |
|
} |
|
} |
|
} |
|
} |
|
} |
|
} |
|
rowcont[kjid]+=newindex; |
|
obj[newindex]=objs; |
|
return newindex; |
} |
} |
|
|
// ---------------------------------------- Make horizontal connection for hrid |
// ---------------------------------------- Make horizontal connection for hrid |
Line 973 function drawcell (rtype,ctype,what,cm,o
|
Line 998 function drawcell (rtype,ctype,what,cm,o
|
mime=mime.toLowerCase(); |
mime=mime.toLowerCase(); |
} |
} |
parent.mapout.document.write |
parent.mapout.document.write |
('<img border=0 width='+cw[ctype]+' height='+rh[1] |
('<img border="0" width="'+cw[ctype]+'" height="'+rh[1] |
+' src="'+raticons+'resource.gif">'); |
+'" src="'+raticons+'resource.gif" />'); |
if (zscale==3) { |
if (zscale==3) { |
if ((mime!='') && (ext!='true')) { |
if ((mime!='') && (ext!='true')) { |
parent.mapout.document.write |
parent.mapout.document.write |
('<br><img border=0 src="'+raticons+'left.gif"></a><a target="preview" href="'+ |
('<br /><img border="0" src="'+raticons+'left.gif" /></a><a target="preview" href="'+ |
url+'.meta"><img border=0 src="'+iconpath+ |
url+'.meta"><img border="0" width="20" src="'+iconpath+ |
'meta.gif"><a target="preview" href="'+url+ |
'meta.gif" /><a target="preview" href="'+url+ |
'"><img border=0 src="'+iconpath+mime+'.gif">'+ |
'"><img border="0" width="20" src="'+iconpath+mime+'.gif" />'+ |
'<img border=0 src="'+raticons+'right.gif">'); |
'<img border="0" src="'+raticons+'right.gif" />'); |
} else { |
} else { |
parent.mapout.document.write |
parent.mapout.document.write |
('<br><img border=0 src="'+raticons+'middle.gif">'); |
('<br /><img border="0" src="'+raticons+'middle.gif" />'); |
} |
} |
parent.mapout.document.write |
parent.mapout.document.write |
('<br><img border=0 src="'+raticons+'bottom.gif">'); |
('<br /><img border="0" src="'+raticons+'bottom.gif" />'); |
} else { |
} else { |
parent.mapout.document.write |
parent.mapout.document.write |
('<br><img border=0 width='+cw[ctype]+' height='+rh[1] |
('<br /><img border="0" width="'+cw[ctype]+'" height="'+rh[1] |
+' src="'+raticons+'bottom.gif">'); |
+'" src="'+raticons+'bottom.gif" />'); |
} |
} |
} else { |
} else { |
if (what=='c:') { |
if (what=='c:') { |
parent.mapout.document.write |
parent.mapout.document.write |
('<img border=0 width='+cw[ctype]+' height='+rh[rtype] |
('<img border="0" width="'+cw[ctype]+'" height="'+rh[rtype] |
+' src="'+raticons+'condition.gif">'); |
+'" src="'+raticons+'condition.gif" />'); |
} else { |
} else { |
if (what=='rs:') { |
if (what=='rs:') { |
mime=''; |
mime=''; |
Line 1013 function drawcell (rtype,ctype,what,cm,o
|
Line 1038 function drawcell (rtype,ctype,what,cm,o
|
mime=mime.toLowerCase(); |
mime=mime.toLowerCase(); |
} |
} |
parent.mapout.document.write |
parent.mapout.document.write |
('<img border=0 width='+cw[ctype]+' height='+rh[1] |
('<img border="0" width="'+cw[ctype]+'" height="'+rh[1] |
+' src="'+raticons+'start.gif">'); |
+'" src="'+raticons+'start.gif" />'); |
if (zscale==3) { |
if (zscale==3) { |
if ((mime!='') && (ext!='true')) { |
if ((mime!='') && (ext!='true')) { |
parent.mapout.document.write |
parent.mapout.document.write |
('<br><img border=0 src="'+raticons+'left.gif"></a><a target="preview" href="'+ |
('<br /><img border="0" src="'+raticons+'left.gif" /></a><a target="preview" href="'+ |
url+'.meta"><img border=0 src="'+iconpath+ |
url+'.meta"><img border="0" width="20" src="'+iconpath+ |
'meta.gif"><a target="preview" href="'+url+ |
'meta.gif" /><a target="preview" href="'+url+ |
'"><img border=0 src="'+iconpath+mime+'.gif">'+ |
'"><img border="0" width="20" src="'+iconpath+mime+'.gif" />'+ |
'<img border=0 src="'+raticons+'right.gif">'); |
'<img border="0" src="'+raticons+'right.gif" />'); |
} else { |
} else { |
parent.mapout.document.write |
parent.mapout.document.write |
('<br><img border=0 src="'+raticons+'middle.gif">'); |
('<br /><img border="0" src="'+raticons+'middle.gif" />'); |
} |
} |
parent.mapout.document.write |
parent.mapout.document.write |
('<br><img border=0 src="'+raticons+'bottom.gif">'); |
('<br /><img border="0" src="'+raticons+'bottom.gif" />'); |
} else { |
} else { |
parent.mapout.document.write |
parent.mapout.document.write |
('<br><img border=0 width='+cw[ctype]+' height='+rh[1] |
('<br /><img border="0" width="'+cw[ctype]+'" height="'+rh[1] |
+' src="'+raticons+'bottom.gif">'); |
+'" src="'+raticons+'bottom.gif" />'); |
} |
} |
|
|
} else { |
} else { |
Line 1049 function drawcell (rtype,ctype,what,cm,o
|
Line 1074 function drawcell (rtype,ctype,what,cm,o
|
mime=mime.toLowerCase(); |
mime=mime.toLowerCase(); |
} |
} |
parent.mapout.document.write |
parent.mapout.document.write |
('<img border=0 width='+cw[ctype]+' height='+rh[1] |
('<img border="0" width="'+cw[ctype]+'" height="'+rh[1] |
+' src="'+raticons+'finish.gif">'); |
+'" src="'+raticons+'finish.gif" />'); |
if (zscale==3) { |
if (zscale==3) { |
if ((mime!='') && (ext!='true')) { |
if ((mime!='') && (ext!='true')) { |
parent.mapout.document.write |
parent.mapout.document.write |
('<br><img border=0 src="'+raticons+'left.gif"></a><a target="preview" href="'+ |
('<br /><img border="0" src="'+raticons+'left.gif" /></a><a target="preview" href="'+ |
url+'.meta"><img border=0 src="'+iconpath+ |
url+'.meta"><img border="0" width="20" src="'+iconpath+ |
'meta.gif"><a target="preview" href="'+url+ |
'meta.gif" /><a target="preview" href="'+url+ |
'"><img border=0 src="'+iconpath+mime+'.gif">'+ |
'"><img border="0" width="20" src="'+iconpath+mime+'.gif" />'+ |
'<img border=0 src="'+raticons+'right.gif">'); |
'<img border="0" src="'+raticons+'right.gif" />'); |
} else { |
} else { |
parent.mapout.document.write |
parent.mapout.document.write |
('<br><img border=0 src="'+raticons+'middle.gif">'); |
('<br /><img border="0" src="'+raticons+'middle.gif" />'); |
} |
} |
parent.mapout.document.write |
parent.mapout.document.write |
('<br><img border=0 src="'+raticons+'bottom.gif">'); |
('<br /><img border="0" src="'+raticons+'bottom.gif" />'); |
} else { |
} else { |
parent.mapout.document.write |
parent.mapout.document.write |
('<br><img border=0 width='+cw[ctype]+' height='+rh[1] |
('<br /><img border="0" width="'+cw[ctype]+'" height="'+rh[1] |
+' src="'+raticons+'bottom.gif">'); |
+'" src="'+raticons+'bottom.gif" />'); |
} |
} |
|
|
} else { |
} else { |
parent.mapout.document.write |
parent.mapout.document.write |
('<img border=0 width='+cw[ctype]+' height='+rh[rtype] |
('<img border="0" width="'+cw[ctype]+'" height="'+rh[rtype] |
+' src="'+raticons+rtype+'.'+ctype+'.'+what+'.gif">'); |
+'" src="'+raticons+rtype+'.'+ctype+'.'+what+'.gif" />'); |
} |
} |
} |
} |
} |
} |
Line 1094 function drawcell (rtype,ctype,what,cm,o
|
Line 1119 function drawcell (rtype,ctype,what,cm,o
|
('onMouseOver="parent.code.infoclear();">'); |
('onMouseOver="parent.code.infoclear();">'); |
parent.mapout.document.write |
parent.mapout.document.write |
( |
( |
'<img border=0 width='+cw[ctype]+' height='+rh[rtype] |
'<img border="0" width="'+cw[ctype]+'" height="'+rh[rtype] |
+' src="'+raticons+rtype+'.'+ctype+'.empty.gif"></a>'); |
+'" src="'+raticons+rtype+'.'+ctype+'.empty.gif" /></a>'); |
} |
} |
parent.mapout.document.write('</td>'); |
parent.mapout.document.write('</td>'); |
} |
} |
Line 1348 function draw () {
|
Line 1373 function draw () {
|
for (k=0;k<=maxrow;k++) { rrow[row[k]]=k; } |
for (k=0;k<=maxrow;k++) { rrow[row[k]]=k; } |
for (k=0;k<=maxcol;k++) { rcol[col[k]]=k; } |
for (k=0;k<=maxcol;k++) { rcol[col[k]]=k; } |
parent.mapout.document.writeln( |
parent.mapout.document.writeln( |
'<table cellpadding=0 cellspacing=0 border=0 rows=' |
'<table cellpadding="0" cellspacing="0" border="0" rows="' |
+disrows+' cols='+discols+'>'); |
+disrows+'" cols="'+discols+'">'); |
for (kr=0;kr<=maxrow;kr++) { |
for (kr=0;kr<=maxrow;kr++) { |
message("Generating Output Row "+kr); |
message("Generating Output Row "+kr); |
drawrow(rrow[kr]); |
drawrow(rrow[kr]); |
Line 1378 function draw () {
|
Line 1403 function draw () {
|
function infoclear() { |
function infoclear() { |
if (notclear!=1) { |
if (notclear!=1) { |
infcheck(); |
infcheck(); |
inf.document.clear(); |
inf.document.open(); |
inf.document.writeln |
inf.document.writeln |
('<html><body bgcolor="#FFFFFF"><table><tr><td>'+ |
('<html><body bgcolor="#FFFFFF"><table><tr><td>'+ |
'<img src="/adm/lonIcons/lonlogos.gif"></td>'); |
'<img src="/adm/lonIcons/lonlogos.gif" /></td>'); |
if (linkmode!=0) { |
if (linkmode!=0) { |
if (tablemode==0) { |
if (tablemode==0) { |
inf.document.writeln( |
inf.document.writeln( |
'<td><b>Link Mode</b><hr>Click on a resource to link it with<br><b>'+ |
'<td><b>Link Mode</b><hr />Click on a resource to link it with<br /><b>'+ |
(objcont[linkmode].split(':'))[0]+ |
(objcont[linkmode].split(':'))[0]+ |
'</b><br>click anywhere else to cancel.</td>'); |
'</b><br />click anywhere else to cancel.</td>'); |
} else { |
} else { |
inf.document.writeln( |
inf.document.writeln( |
'<td><b>Link Mode</b><hr>Click on a resource number to link it with<br><b>'+ |
'<td><b>Link Mode</b><hr />Click on a resource number to link it with<br /><b>'+ |
(objcont[linkmode].split(':'))[0]+'</b><br>'+ |
(objcont[linkmode].split(':'))[0]+'</b><br />'+ |
'<a href="javascript:opener.linkmode=0;opener.notclear=0;opener.infoclear();">' |
'<a href="javascript:opener.linkmode=0;opener.notclear=0;opener.infoclear();">' |
+'Cancel</a></td>'); |
+'Cancel</a></td>'); |
} |
} |
} else { |
} else { |
if (tablemode==0) { |
if (tablemode==0) { |
inf.document.writeln( |
inf.document.writeln( |
'<td><b>Click to Edit</b><hr>Click in a light gray area<br>' |
'<td><b>Click to Edit</b><hr />Click in a light gray area<br />' |
+'to insert resources, columns and rows</td>' |
+'to insert resources, columns and rows</td>' |
); |
); |
} |
} |
Line 1443 function info(infostr) {
|
Line 1468 function info(infostr) {
|
if ((editmode!=1) && (infostr!=lastinfo)) { |
if ((editmode!=1) && (infostr!=lastinfo)) { |
notclear=1; |
notclear=1; |
infcheck(); |
infcheck(); |
inf.document.clear(); |
inf.document.open(); |
inf.document.writeln( |
inf.document.writeln( |
'<html><body bgcolor="#FFFFFF">'+ |
'<html><body bgcolor="#FFFFFF">'+ |
'<table><tr><td width=32><img src="'+raticons+'info.gif"></td><td bgcolor="#AAFFAA">'); |
'<table><tr><td width="32"><img src="'+raticons+'info.gif" /></td><td bgcolor="#AAFFAA">'); |
data1=infostr.split('&'); |
data1=infostr.split('&'); |
if (data1[0]=='c') { |
if (data1[0]=='c') { |
inf.document.write('<b>Condition ('); |
inf.document.write('<b>Condition ('); |
Line 1465 function info(infostr) {
|
Line 1490 function info(infostr) {
|
} |
} |
} |
} |
} |
} |
inf.document.writeln(')</b><hr>From <b>'+objcont[data3[0]].split(':')[0]+ |
inf.document.writeln(')</b><hr />From <b>'+objcont[data3[0]].split(':')[0]+ |
'</b><br>to <b>'+objcont[data3[1]].split(':')[0]+'</b>'); |
'</b><br />to <b>'+objcont[data3[1]].split(':')[0]+'</b>'); |
} else { |
} else { |
if (data1[0]=='r') { |
if (data1[0]=='r') { |
data2=objcont[data1[1]].split(':'); |
data2=objcont[data1[1]].split(':'); |
Line 1478 function info(infostr) {
|
Line 1503 function info(infostr) {
|
if (ext=='true') { mime=''; } |
if (ext=='true') { mime=''; } |
if (mime!='') { |
if (mime!='') { |
inf.document.write |
inf.document.write |
('<br><a target="preview" align="right" href="'+url+ |
('<br /><a target="preview" align="right" href="'+url+ |
'"><img border=0 src="'+iconpath+mime+'.gif"></a> '); |
'"><img border="0" width="20" src="'+iconpath+mime+'.gif" /></a> '); |
} |
} |
inf.document.write('<b>'); |
inf.document.write('<b>'); |
if (data2[2]=='true') { inf.document.write('External '); } |
if (data2[2]=='true') { inf.document.write('External '); } |
Line 1498 function info(infostr) {
|
Line 1523 function info(infostr) {
|
if (data2[3]=='optional') { |
if (data2[3]=='optional') { |
inf.document.write(' (Optional)'); |
inf.document.write(' (Optional)'); |
} |
} |
inf.document.writeln('</b><hr><b>'+data2[0]+'</b><br>'); |
inf.document.writeln('</b><hr /><b>'+data2[0]+'</b><br />'); |
inf.document.writeln((data2[1].split('/')).join(' / ')); |
inf.document.writeln((data2[1].split('/')).join(' / ')); |
} else { |
} else { |
inf.document.writeln('<b>Link</b><hr>'); |
inf.document.writeln('<b>Link</b><hr />'); |
data2=obj[data1[0]].split('&'); |
data2=obj[data1[0]].split('&'); |
data3=objlinks[data2[data2.length-2]].split(':'); |
data3=objlinks[data2[data2.length-2]].split(':'); |
inf.document.writeln('From <b>'+objcont[data3[0]].split(':')[0]+ |
inf.document.writeln('From <b>'+objcont[data3[0]].split(':')[0]+ |
'</b><br>to <b>'+objcont[data3[1]].split(':')[0]+'</b>'); |
'</b><br />to <b>'+objcont[data3[1]].split(':')[0]+'</b>'); |
} |
} |
} |
} |
if (linkmode==0) { |
if (linkmode==0) { |
Line 1597 function insertcondlink(cid,lnr) {
|
Line 1622 function insertcondlink(cid,lnr) {
|
|
|
// ------------------------------------------------------ Clears indexer window |
// ------------------------------------------------------ Clears indexer window |
function idxclear() { |
function idxclear() { |
idx.document.clear(); |
idx.document.open(); |
|
idx.document.close(); |
} |
} |
|
|
// --------------------------------------------------------- Clears copy window |
// --------------------------------------------------------- Clears copy window |
function copydxclear() { |
function copydxclear() { |
copydx.document.clear(); |
copydx.document.open(); |
|
copydx.document.close(); |
} |
} |
// ------------------------------------------------------- Clears search window |
// ------------------------------------------------------- Clears search window |
function srchclear() { |
function srchclear() { |
srch.document.clear(); |
srch.document.open(); |
|
srch.document.close(); |
} |
} |
|
|
// --------------------------------------------------------- Clears parm window |
// --------------------------------------------------------- Clears parm window |
function parmclear() { |
function parmclear() { |
parm.document.clear(); |
parm.document.open(); |
|
parm.document.close(); |
} |
} |
|
|
// ------------------------------------------------------ Closes indexer window |
// ------------------------------------------------------ Closes indexer window |
Line 1654 function idxopen(mode) {
|
Line 1683 function idxopen(mode) {
|
idx=open("/res/?launch=1&mode=rat&catalogmode="+mode,"idxout",options); |
idx=open("/res/?launch=1&mode=rat&catalogmode="+mode,"idxout",options); |
idx.focus(); |
idx.focus(); |
} |
} |
|
// -------------------------------------------------------- Open zombie window |
|
function groupopen(url) { |
|
var options="scrollbars=1,resizable=1,menubar=0"; |
|
idxmode=mode; |
|
idxflag=1; |
|
idx=open("/adm/groupsort?inhibitmenu=yes&mode=rat&recover=1&readfile="+url,"idxout",options); |
|
idx.focus(); |
|
} |
// ------------------------------------------------- Open browser to select map |
// ------------------------------------------------- Open browser to select map |
var editbrowser; |
var editbrowser; |
function openbrowser(formname,elementname,only,omit) { |
function openbrowser(formname,elementname,only,omit) { |
Line 1683 function copydxopen(mode) {
|
Line 1720 function copydxopen(mode) {
|
copydxmode=mode; |
copydxmode=mode; |
copydxflag=1; |
copydxflag=1; |
copydx=open("",'copydxout',options); |
copydx=open("",'copydxout',options); |
copydx.document.clear(''); |
copydx.document.open(''); |
copydx.document.writeln( |
copydx.document.writeln( |
'<html><body bgcolor="#FFFFFF"><h1>Copy from Map</h1>'+ |
'<html><body bgcolor="#FFFFFF"><h1>Copy from Map</h1>'+ |
'<form name="mapload"><input type=text size=40 name=importmap>'+ |
'<form name="mapload"><input type="text" size="40" name="importmap">'+ |
'<input type=button onClick="javascript:opener.openbrowser'+ |
'<input type="button" onClick="javascript:opener.openbrowser'+ |
"('mapload','importmap','sequence,page','')"+ |
"('mapload','importmap','sequence,page','')"+ |
'" value="Browse"><input type=button value="Load Map" '+ |
'" value="Browse"><input type="button" value="Load Map" '+ |
'onClick="window.location=document.mapload.importmap.value+'+ |
'onClick="window.location=document.mapload.importmap.value+'+ |
"'?launch=1&forceselect=1'"+'"></form>'); |
"'?launch=1&forceselect=1'"+'"></form>'); |
|
|
Line 1741 function handler(infostr) {
|
Line 1778 function handler(infostr) {
|
editmode=1; |
editmode=1; |
notclear=1; |
notclear=1; |
infcheck(); |
infcheck(); |
inf.document.clear(); |
inf.document.open(); |
inf.document.writeln( |
inf.document.writeln( |
'<html><body bgcolor="#FFFFFF">'+ |
'<html><body bgcolor="#FFFFFF">'+ |
'<table><tr><td width=32><img src="'+raticons+'edit.gif"></td><td bgcolor="#AAFFAA">'); |
'<table><tr><td width="32"><img src="'+raticons+'edit.gif" /></td><td bgcolor="#AAFFAA">'); |
data1=infostr.split('&'); |
data1=infostr.split('&'); |
if (data1[0]=='c') { |
if (data1[0]=='c') { |
inf.document.writeln('<b>Condition</b><hr>'); |
inf.document.writeln('<b>Condition</b><hr />'); |
linkmode=0; |
linkmode=0; |
if (data1[4]=='-') { |
if (data1[4]=='-') { |
data2[0]=''; data2[1]='normal'; |
data2[0]=''; data2[1]='normal'; |
Line 1755 function handler(infostr) {
|
Line 1792 function handler(infostr) {
|
data2=objcont[data1[4]].split(':'); |
data2=objcont[data1[4]].split(':'); |
} |
} |
inf.document.writeln( |
inf.document.writeln( |
'<form name=condinfo><textarea name=c cols=30 rows=3>' |
'<form name="condinfo"><textarea name="c" cols="30" rows="3">' |
+data2[0]+'</textarea><br><input type=radio name=s value=normal '+ |
+data2[0]+'</textarea><br /><input type="radio" name="s" value="normal" '+ |
'onClick="self.document.forms.condinfo.elements.h.value='+"'normal'"+'"'); |
'onClick="self.document.forms.condinfo.elements.h.value='+"'normal'"+'"'); |
if (data2[1]=='normal') { inf.document.write(' checked'); } |
if (data2[1]=='normal') { inf.document.write(' checked'); } |
inf.document.write( |
inf.document.write( |
'> Recommendation if true<br><input type=radio name=s value=stop '+ |
'> Recommendation if true<br /><input type="radio" name="s" value="stop" '+ |
'onClick="self.document.forms.condinfo.elements.h.value='+"'stop'"+'"'); |
'onClick="self.document.forms.condinfo.elements.h.value='+"'stop'"+'"'); |
if (data2[1]=='stop') { inf.document.write(' checked'); } |
if (data2[1]=='stop') { inf.document.write(' checked'); } |
inf.document.write( |
inf.document.write( |
'> Blocking this link if false<br><input type=radio name=s value=force '+ |
'> Blocking this link if false<br /><input type="radio" name="s" value="force" '+ |
'onClick="self.document.forms.condinfo.elements.h.value='+"'force'"+'"'); |
'onClick="self.document.forms.condinfo.elements.h.value='+"'force'"+'"'); |
if (data2[1]=='force') { inf.document.write(' checked'); } |
if (data2[1]=='force') { inf.document.write(' checked'); } |
inf.document.write( |
inf.document.write( |
'> Blocking other links if true<br><a href="javascript:opener.editmode=0;' |
'> Blocking other links if true<br /><a href="javascript:opener.editmode=0;' |
+'opener.notclear=0;'); |
+'opener.notclear=0;'); |
if (data1[4]=='-') { |
if (data1[4]=='-') { |
inf.document.write('opener.crecond('+data1[2]+','+data1[1]+',' |
inf.document.write('opener.crecond('+data1[2]+','+data1[1]+',' |
Line 1782 function handler(infostr) {
|
Line 1819 function handler(infostr) {
|
inf.document.writeln( |
inf.document.writeln( |
'opener.infoclear();opener.editmode=0;opener.draw(' |
'opener.infoclear();opener.editmode=0;opener.draw(' |
+');"><b>Save Changes</b></a> ' |
+');"><b>Save Changes</b></a> ' |
+' <a href="javascript:self.document.forms.condinfo.reset()">Reset</a><br>' |
+' <a href="javascript:self.document.forms.condinfo.reset()">Reset</a><br />' |
+'<input type=hidden name=h value='+data2[1]+'>'); |
+'<input type="hidden" name="h" value="'+data2[1]+'">'); |
|
|
inf.document.writeln( |
inf.document.writeln( |
'<a href="javascript:opener.notclear=0;opener.infoclear();' |
'<a href="javascript:opener.notclear=0;opener.infoclear();' |
+'opener.delcond('+data1[2]+','+data1[1]+');opener.editmode=0;opener.draw(' |
+'opener.delcond('+data1[2]+','+data1[1]+');opener.editmode=0;opener.draw(' |
+');">Delete Condition</a><br>'); |
+');">Delete Condition</a><br />'); |
inf.document.writeln( |
inf.document.writeln( |
'<a href="javascript:opener.notclear=0;opener.infoclear();' |
'<a href="javascript:opener.notclear=0;opener.infoclear();' |
+'opener.dellink('+data1[3]+');opener.editmode=0;opener.draw(' |
+'opener.dellink('+data1[3]+');opener.editmode=0;opener.draw(' |
+');">Delete Link</a>'); |
+');">Delete Link</a>'); |
|
|
inf.document.writeln('<br><a href="javascript:'+ |
inf.document.writeln('<br /><a href="javascript:'+ |
'opener.insertcondlink('+data1[1]+','+data1[3]+');'+ |
'opener.insertcondlink('+data1[1]+','+data1[3]+');'+ |
'opener.editmode=0;opener.notclear=0;opener.infoclear();opener.draw(' |
'opener.editmode=0;opener.notclear=0;opener.infoclear();opener.draw(' |
+');">Insert Resource Into Link</a>'); |
+');">Insert Resource Into Link</a>'); |
Line 1819 function handler(infostr) {
|
Line 1856 function handler(infostr) {
|
} |
} |
} |
} |
inf.document.write( |
inf.document.write( |
'<form name=resinfo><table><tr><td>Title:</td><td colspan=2>' |
'<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="' |
+escape(data2[0])+'"><input type=hidden name=h value='+data2[3]+'></td></tr>'); |
+escape(data2[0])+'"><input type="hidden" name="h" value='+data2[3]+'></td></tr>'); |
inf.document.write('<tr><td>URL:</td><td colspan=2>' |
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="checked"'); } |
inf.document.write('></td><td align=right>' |
inf.document.write('></td><td align="right">' |
+'<a href="javascript:opener.idxcheck(\'interactive\')">Browse</a> ' |
+'<a href="javascript:opener.idxcheck(\'interactive\')">Browse</a> ' |
+'<a href="javascript:opener' |
+'<a href="javascript:opener' |
+'.srchcheck(\'interactive\')">Search</a></td></tr>'); |
+'.srchcheck(\'interactive\')">Search</a></td></tr>'); |
if ((data2[3]!='start') && (data2[3]!='finish')) { |
if ((data2[3]!='start') && (data2[3]!='finish')) { |
inf.document.write('<tr><td colspan=3>' |
inf.document.write('<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="checked"'); } |
inf.document.write( |
inf.document.write( |
'> Regular <input type=radio name=y value=mandatory '+ |
'> Regular <input type="radio" name="y" value="mandatory" '+ |
'onClick="self.document.forms.resinfo.elements.h.value='+"'mandatory'"+'"'); |
'onClick="self.document.forms.resinfo.elements.h.value='+"'mandatory'"+'"'); |
if (data2[3]=='mandatory') { inf.document.write(' checked'); } |
if (data2[3]=='mandatory') { inf.document.write(' checked="checked"'); } |
inf.document.write( |
inf.document.write( |
'> Mandatory <input type=radio name=y value=optional '+ |
'> Mandatory <input type="radio" name="y" value="optional" '+ |
'onClick="self.document.forms.resinfo.elements.h.value='+"'optional'"+'"'); |
'onClick="self.document.forms.resinfo.elements.h.value='+"'optional'"+'"'); |
if (data2[3]=='optional') { inf.document.write(' checked'); } |
if (data2[3]=='optional') { inf.document.write(' checked="checked"'); } |
inf.document.write('> Optional</td></tr>'); |
inf.document.write('> Optional</td></tr>'); |
} |
} |
inf.document.writeln( |
inf.document.writeln( |
'<tr><td colspan=3><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 1862 function handler(infostr) {
|
Line 1899 function handler(infostr) {
|
+'opener.delres('+data1[1]+',0);opener.editmode=0;opener.draw(' |
+'opener.delres('+data1[1]+',0);opener.editmode=0;opener.draw(' |
+');">Delete Resource (cutting links)</a>'); |
+');">Delete Resource (cutting links)</a>'); |
inf.document.writeln( |
inf.document.writeln( |
'<br><a href="javascript:opener.notclear=0;opener.infoclear();' |
'<br /><a href="javascript:opener.notclear=0;opener.infoclear();' |
+'opener.delres('+data1[1]+',1);opener.editmode=0;opener.draw(' |
+'opener.delres('+data1[1]+',1);opener.editmode=0;opener.draw(' |
+');">Delete Resource (preserving links)</a>'); |
+');">Delete Resource (preserving links)</a>'); |
} |
} |
if (data2[3]!='finish') { |
if (data2[3]!='finish') { |
inf.document.writeln( |
inf.document.writeln( |
'<br><a href="javascript:opener.editmode=0;opener.notclear=0;' |
'<br /><a href="javascript:opener.editmode=0;opener.notclear=0;' |
+'opener.linkmode='+data1[1]+';' |
+'opener.linkmode='+data1[1]+';' |
+'opener.infoclear();">Link Resource</a>'); |
+'opener.infoclear();">Link Resource</a>'); |
} |
} |
inf.document.writeln( |
inf.document.writeln( |
'<br><a href="javascript:' |
'<br /><a href="javascript:' |
+'opener.setparms('+data1[1]+');' |
+'opener.setparms('+data1[1]+');' |
+'opener.infoclear();">Set Parameters</a>'); |
+'opener.infoclear();">Set Parameters</a>'); |
|
|
} |
} |
} else { |
} else { |
linkmode=0; |
linkmode=0; |
inf.document.writeln('<b>Link</b><hr><form>'); |
inf.document.writeln('<b>Link</b><hr /><form>'); |
data2=obj[data1[0]].split('&'); |
data2=obj[data1[0]].split('&'); |
k=data2[data2.length-2]; |
k=data2[data2.length-2]; |
data3=objlinks[k].split(':'); |
data3=objlinks[k].split(':'); |
inf.document.writeln('From <b>'+objcont[data3[0]].split(':')[0]+ |
inf.document.writeln('From <b>'+objcont[data3[0]].split(':')[0]+ |
'</b><br>to <b>'+objcont[data3[1]].split(':')[0]+'</b>'); |
'</b><br />to <b>'+objcont[data3[1]].split(':')[0]+'</b>'); |
inf.document.writeln('<br><a href="javascript:opener.dellink('+ |
inf.document.writeln('<br /><a href="javascript:opener.dellink('+ |
k+');opener.editmode=0;opener.notclear=0;opener.infoclear();opener.draw(' |
k+');opener.editmode=0;opener.notclear=0;opener.infoclear();opener.draw(' |
+');">Delete Link</a>'); |
+');">Delete Link</a>'); |
inf.document.writeln('<br><a href="javascript:'+ |
inf.document.writeln('<br /><a href="javascript:'+ |
"opener.insertreslink('"+infostr+"');"+ |
"opener.insertreslink('"+infostr+"');"+ |
'opener.editmode=0;opener.notclear=0;opener.infoclear();opener.draw(' |
'opener.editmode=0;opener.notclear=0;opener.infoclear();opener.draw(' |
+');">Insert Resource Into Link</a>'); |
+');">Insert Resource Into Link</a>'); |
} |
} |
} |
} |
inf.document.writeln( |
inf.document.writeln( |
'<br><a href="javascript:opener.editmode=0;opener.notclear=0;' |
'<br /><a href="javascript:opener.editmode=0;opener.notclear=0;' |
+'opener.infoclear();">Cancel</a>'); |
+'opener.infoclear();">Cancel</a>'); |
inf.document.writeln('</form></td></tr></table></body></html>'); |
inf.document.writeln('</form></td></tr></table></body></html>'); |
inf.document.close(); |
inf.document.close(); |
Line 1913 function empty(rid,k) {
|
Line 1950 function empty(rid,k) {
|
notclear=1; |
notclear=1; |
linkmode=0; |
linkmode=0; |
infcheck(); |
infcheck(); |
inf.document.clear(); |
inf.document.open(); |
inf.document.writeln( |
inf.document.writeln( |
'<html><body bgcolor="#FFFFFF">'+ |
'<html><body bgcolor="#FFFFFF">'+ |
'<table><tr><td width=32><img src="'+raticons+'edit.gif"></td><td bgcolor="#AAFFAA">'+ |
'<table><tr><td width="32"><img src="'+raticons+'edit.gif" /></td><td bgcolor="#AAFFAA">'+ |
'<b>Empty Field</b><hr>'); |
'<b>Empty Field</b><hr />'); |
|
|
inf.document.writeln('<br><a href="javascript:opener.newresource('+ |
inf.document.writeln('<br /><a href="javascript:opener.newresource('+ |
rid+','+cid+",'','','false','normal');"+ |
rid+','+cid+",'','','false','normal');"+ |
'opener.mostrecent=opener.obj.length-1;'+ |
'opener.mostrecent=opener.obj.length-1;'+ |
'opener.editmode=0;opener.notclear=0;opener.infoclear();opener.draw(' |
'opener.editmode=0;opener.notclear=0;opener.infoclear();opener.draw(' |
Line 1928 function empty(rid,k) {
|
Line 1965 function empty(rid,k) {
|
if ((mostrecent!=0) && (objcont[mostrecent]!='') && |
if ((mostrecent!=0) && (objcont[mostrecent]!='') && |
(typeof(objcont[mostrecent])!="undefined")) { |
(typeof(objcont[mostrecent])!="undefined")) { |
|
|
inf.document.writeln('<br><a href="javascript:opener.newresource('+ |
inf.document.writeln('<br /><a href="javascript:opener.newresource('+ |
rid+','+cid+",'','','false','normal');"+ |
rid+','+cid+",'','','false','normal');"+ |
'opener.mostrecent=opener.obj.length-1;'+ |
'opener.mostrecent=opener.obj.length-1;'+ |
'opener.joinres('+mostrecent+',opener.obj.length-1,0);'+ |
'opener.joinres('+mostrecent+',opener.obj.length-1,0);'+ |
'opener.editmode=0;opener.notclear=0;opener.infoclear();opener.draw(' |
'opener.editmode=0;opener.notclear=0;opener.infoclear();opener.draw(' |
+');">Insert resource linked to from most recent one</a>'); |
+');">Insert resource linked to from most recent one</a>'); |
|
|
inf.document.writeln('<br><a href="javascript:opener.newresource('+ |
inf.document.writeln('<br /><a href="javascript:opener.newresource('+ |
rid+','+cid+",'','','false','normal');"+ |
rid+','+cid+",'','','false','normal');"+ |
'opener.mostrecent=opener.obj.length-1;'+ |
'opener.mostrecent=opener.obj.length-1;'+ |
'opener.joinres(opener.obj.length-1,'+mostrecent+',0);'+ |
'opener.joinres(opener.obj.length-1,'+mostrecent+',0);'+ |
Line 1944 function empty(rid,k) {
|
Line 1981 function empty(rid,k) {
|
} |
} |
|
|
|
|
inf.document.writeln('<hr>Insert column:'); |
inf.document.writeln('<hr />Insert column:'); |
inf.document.writeln('<a href="javascript:opener.insertcol('+ |
inf.document.writeln('<a href="javascript:opener.insertcol('+ |
lcol+');opener.addobj('+rid+",'e&'+opener.maxcol);" |
lcol+');opener.addobj('+rid+",'e&'+opener.maxcol);" |
+'opener.editmode=0;opener.notclear=0;opener.infoclear();opener.draw(' |
+'opener.editmode=0;opener.notclear=0;opener.infoclear();opener.draw(' |
Line 1953 function empty(rid,k) {
|
Line 1990 function empty(rid,k) {
|
k+');opener.addobj('+rid+",'e&'+opener.maxcol);" |
k+');opener.addobj('+rid+",'e&'+opener.maxcol);" |
+'opener.editmode=0;opener.notclear=0;opener.infoclear();opener.draw(' |
+'opener.editmode=0;opener.notclear=0;opener.infoclear();opener.draw(' |
+');">right</a> '); |
+');">right</a> '); |
inf.document.writeln('<br>Insert row:'); |
inf.document.writeln('<br />Insert row:'); |
inf.document.writeln('<a href="javascript:opener.insertrow('+ |
inf.document.writeln('<a href="javascript:opener.insertrow('+ |
trow+');opener.addobj(opener.maxrow'+",'e&"+cid+"');" |
trow+');opener.addobj(opener.maxrow'+",'e&"+cid+"');" |
+'opener.editmode=0;opener.notclear=0;opener.infoclear();opener.draw(' |
+'opener.editmode=0;opener.notclear=0;opener.infoclear();opener.draw(' |
Line 1965 function empty(rid,k) {
|
Line 2002 function empty(rid,k) {
|
|
|
|
|
inf.document.writeln( |
inf.document.writeln( |
'<br><a href="javascript:opener.editmode=0;opener.notclear=0;' |
'<br /><a href="javascript:opener.editmode=0;opener.notclear=0;' |
+'opener.infoclear();">Cancel</a>'); |
+'opener.infoclear();">Cancel</a>'); |
inf.document.writeln('</td></tr></table></body></html>'); |
inf.document.writeln('</td></tr></table></body></html>'); |
inf.document.close(); |
inf.document.close(); |
Line 2117 function tabledraw() {
|
Line 2154 function tabledraw() {
|
if ((mime!='') && (ext!='true')) { |
if ((mime!='') && (ext!='true')) { |
parent.mapout.document.write |
parent.mapout.document.write |
('<a target="preview" align="right" href="'+url+'.meta'+ |
('<a target="preview" align="right" href="'+url+'.meta'+ |
'"><img src="'+iconpath+'meta.gif"></a><p>'+ |
'"><img width="20" src="'+iconpath+'meta.gif" /></a><p>'+ |
'<a target="preview" align="right"href="'+url+ |
'<a target="preview" align="right"href="'+url+ |
'"><img src="'+iconpath+mime+'.gif"></a><p>'); |
'"><img width="20" src="'+iconpath+mime+'.gif" /></a><p>'); |
} |
} |
parent.mapout.document.write( |
parent.mapout.document.write( |
'<b><a href="javascript:if (parent.code.linkmode!=0) { ' |
'<b><a href="javascript:if (parent.code.linkmode!=0) { ' |
Line 2127 function tabledraw() {
|
Line 2164 function tabledraw() {
|
+'parent.code.linkmode=0;parent.code.editmode=0;' |
+'parent.code.linkmode=0;parent.code.editmode=0;' |
+'parent.code.notclear=0;parent.code.infoclear();' |
+'parent.code.notclear=0;parent.code.infoclear();' |
+'parent.code.draw(); }">'+k+'</a></b></td><td bgcolor="'+ck |
+'parent.code.draw(); }">'+k+'</a></b></td><td bgcolor="'+ck |
+'"><form name=r'+i+' method=post>'); |
+'"><form name="r'+i+'" method="post">'); |
data2=obj[i].split('&'); |
data2=obj[i].split('&'); |
parent.mapout.document.write('<table bgcolor="#CCCCCC">'); |
parent.mapout.document.write('<table bgcolor="#CCCCCC">'); |
|
|
Line 2138 function tabledraw() {
|
Line 2175 function tabledraw() {
|
parent.mapout.document.writeln('<tr><td><b>Finish</b></td></tr>'); |
parent.mapout.document.writeln('<tr><td><b>Finish</b></td></tr>'); |
} |
} |
parent.mapout.document.write( |
parent.mapout.document.write( |
'<tr><td>Title:</td><td><input type=text name=t size=50 value="' |
'<tr><td>Title:</td><td><input type="text" name="t" size="50" value="' |
+data1[0]+'"><input type=hidden name=h value='+data1[3] |
+data1[0]+'"><input type="hidden" name="h" value="'+data1[3] |
+'></td></tr>'); |
+'"></td></tr>'); |
parent.mapout.document.write( |
parent.mapout.document.write( |
'<tr><td>URL:</td><td><input type=text name=u size=50 value="' |
'<tr><td>URL:</td><td><input type="text" name="u" size="50" value="' |
+data1[1]+'"></td></tr>' |
+data1[1]+'"></td></tr>' |
+'<tr><td>External:</td><td><input type=checkbox name=e'); |
+'<tr><td>External:</td><td><input type="checkbox" name="e"'); |
if (data1[2]=='true') { parent.mapout.document.write(' checked'); } |
if (data1[2]=='true') { parent.mapout.document.write(' checked="checked"'); } |
parent.mapout.document.write('></td></tr>'); |
parent.mapout.document.write('></td></tr>'); |
if ((data1[3]!='start') && (data1[3]!='finish')) { |
if ((data1[3]!='start') && (data1[3]!='finish')) { |
parent.mapout.document.write( |
parent.mapout.document.write( |
'<tr><td colspan=2><input type=radio name=y value=normal '+ |
'<tr><td colspan="2"><input type="radio" name="y" value="normal" '+ |
'onClick="parent.mapout.document.forms.r'+i+'.elements.h.value='+ |
'onClick="parent.mapout.document.forms.r'+i+'.elements.h.value='+ |
"'normal'"+'"'); |
"'normal'"+'"'); |
if (data1[3]=='normal') { parent.mapout.document.write(' checked'); } |
if (data1[3]=='normal') { parent.mapout.document.write(' checked="checked"'); } |
parent.mapout.document.write( |
parent.mapout.document.write( |
'> Regular <input type=radio name=y value=mandatory '+ |
'> Regular <input type="radio" name="y" value="mandatory" '+ |
'onClick="parent.mapout.document.forms.r'+i+'.elements.h.value='+ |
'onClick="parent.mapout.document.forms.r'+i+'.elements.h.value='+ |
"'mandatory'"+'"'); |
"'mandatory'"+'"'); |
if (data1[3]=='mandatory') { parent.mapout.document.write(' checked'); } |
if (data1[3]=='mandatory') { parent.mapout.document.write(' checked="checked"'); } |
parent.mapout.document.write( |
parent.mapout.document.write( |
'> Mandatory <input type=radio name=y value=optional '+ |
'> Mandatory <input type="radio" name="y" value="optional" '+ |
'onClick="parent.mapout.document.forms.r'+i+'.elements.h.value='+ |
'onClick="parent.mapout.document.forms.r'+i+'.elements.h.value='+ |
"'optional'"+'"'); |
"'optional'"+'"'); |
if (data1[3]=='optional') { parent.mapout.document.write(' checked'); } |
if (data1[3]=='optional') { parent.mapout.document.write(' checked="checked"'); } |
parent.mapout.document.write('> Optional</td></tr>'); |
parent.mapout.document.write('> Optional</td></tr>'); |
} |
} |
parent.mapout.document.write( |
parent.mapout.document.write( |
'<tr><td colspan=2><a href="javascript:parent.code.objcont['+i |
'<tr><td colspan="2"><a href="javascript:parent.code.objcont['+i |
+']=parent.code.escape(parent.mapout.document.forms.r'+i |
+']=parent.code.escape(parent.mapout.document.forms.r'+i |
+'.elements.t.value)+'+"':'" |
+'.elements.t.value)+'+"':'" |
+'+parent.code.escape(parent.mapout.document.forms.r'+i |
+'+parent.code.escape(parent.mapout.document.forms.r'+i |
Line 2176 function tabledraw() {
|
Line 2213 function tabledraw() {
|
+';parent.code.draw();">' |
+';parent.code.draw();">' |
+'<b>Save Changes</b></a> ' |
+'<b>Save Changes</b></a> ' |
+' <a href="javascript:parent.mapout.document.forms.r'+i |
+' <a href="javascript:parent.mapout.document.forms.r'+i |
+'.reset()">Reset</a></td></tr><tr><td colspan=2>'); |
+'.reset()">Reset</a></td></tr><tr><td colspan="2">'); |
if ((data1[3]!='start') && (data1[3]!='finish')) { |
if ((data1[3]!='start') && (data1[3]!='finish')) { |
parent.mapout.document.writeln( |
parent.mapout.document.writeln( |
'<A href="javascript:parent.code.notclear=0;parent.code.infoclear();' |
'<a href="javascript:parent.code.notclear=0;parent.code.infoclear();' |
+'parent.code.delres('+i+',0);parent.code.editmode=0;parent.code.draw();">' |
+'parent.code.delres('+i+',0);parent.code.editmode=0;parent.code.draw();">' |
+'Delete Resource (cutting links)</A><br>' |
+'Delete Resource (cutting links)</a><br />' |
+'<A href="javascript:parent.code.notclear=0;parent.code.infoclear();' |
+'<a href="javascript:parent.code.notclear=0;parent.code.infoclear();' |
+'parent.code.delres('+i+',1);parent.code.editmode=0;parent.code.draw();">' |
+'parent.code.delres('+i+',1);parent.code.editmode=0;parent.code.draw();">' |
+'Delete Resource (preserving links)</A><br>'); |
+'Delete Resource (preserving links)</a><br />'); |
} |
} |
if (data1[3]!='finish') { |
if (data1[3]!='finish') { |
parent.mapout.document.writeln( |
parent.mapout.document.writeln( |
Line 2193 function tabledraw() {
|
Line 2230 function tabledraw() {
|
'Link resource</a>'); |
'Link resource</a>'); |
} |
} |
parent.mapout.document.writeln( |
parent.mapout.document.writeln( |
'<br><a href="javascript:' |
'<br /><a href="javascript:' |
+'parent.code.setparms('+i+');">Set Parameters</a>'); |
+'parent.code.setparms('+i+');">Set Parameters</a>'); |
|
|
parent.mapout.document.writeln('</td></tr>'); |
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(':'); |
data3=objlinks[data4[2]].split(':'); |
data3=objlinks[data4[2]].split(':'); |
Line 2211 function tabledraw() {
|
Line 2248 function tabledraw() {
|
condid='-'; |
condid='-'; |
} |
} |
parent.mapout.document.writeln( |
parent.mapout.document.writeln( |
'<td bgcolor='+cck+'>Next<br>'); |
'<td bgcolor="'+cck+'">Next<br />'); |
parent.mapout.document.writeln( |
parent.mapout.document.writeln( |
'<a href="javascript:parent.code.handler('+ |
'<a href="javascript:parent.code.handler('+ |
"'c&"+data4[0]+'&'+i+'&'+data4[2]+'&'+condid+"');" |
"'c&"+data4[0]+'&'+i+'&'+data4[2]+'&'+condid+"');" |
Line 2233 function tabledraw() {
|
Line 2270 function tabledraw() {
|
condid='-'; |
condid='-'; |
} |
} |
parent.mapout.document.writeln( |
parent.mapout.document.writeln( |
'<td bgcolor='+cck+'>To: '+robjs[data3[1]]+'<br>'); |
'<td bgcolor="'+cck+'">To: '+robjs[data3[1]]+'<br />'); |
parent.mapout.document.writeln( |
parent.mapout.document.writeln( |
'<a href="javascript:parent.code.handler('+ |
'<a href="javascript:parent.code.handler('+ |
"'c&"+data4[0]+'&'+i+'&'+data4[2]+'&'+condid+"');" |
"'c&"+data4[0]+'&'+i+'&'+data4[2]+'&'+condid+"');" |
Line 2252 function tabledraw() {
|
Line 2289 function tabledraw() {
|
|
|
// ----------------------------------------------------- Insert Resource Output |
// ----------------------------------------------------- Insert Resource Output |
function insrestab(irow,be,af,typ) { |
function insrestab(irow,be,af,typ) { |
parent.mapout.document.writeln('<tr><td colspan=2>'+ |
parent.mapout.document.writeln('<tr><td colspan="2">'+ |
'<table><tr><td><a href="javascript:parent.code.insertrow(' |
'<table><tr><td><a href="javascript:parent.code.insertrow(' |
+irow+');parent.code.newresource(parent.code.maxrow,'+rcol[1] |
+irow+');parent.code.newresource(parent.code.maxrow,'+rcol[1] |
+",'','','false','normal');parent.code.mostrecent=parent.code.obj.length-1;" |
+",'','','false','normal');parent.code.mostrecent=parent.code.obj.length-1;" |
Line 2266 function insrestab(irow,be,af,typ) {
|
Line 2303 function insrestab(irow,be,af,typ) {
|
+"parent.code.save();" |
+"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 />'); |
} |
} |
if ((be!=-1) && (af!=-1) && (typ!='finish')) { |
if ((be!=-1) && (af!=-1) && (typ!='finish')) { |
parent.mapout.document.writeln( |
parent.mapout.document.writeln( |
Line 2278 function insrestab(irow,be,af,typ) {
|
Line 2315 function insrestab(irow,be,af,typ) {
|
+"parent.code.save();" |
+"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 />'); |
} |
} |
if (af!=-1) { |
if (af!=-1) { |
parent.mapout.document.writeln( |
parent.mapout.document.writeln( |
Line 2288 function insrestab(irow,be,af,typ) {
|
Line 2325 function insrestab(irow,be,af,typ) {
|
+"parent.code.save();" |
+"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 />'); |
} |
} |
parent.mapout.document.writeln('</td></tr></table></tr>'); |
parent.mapout.document.writeln('</td></tr></table></tr>'); |
} |
} |
Line 2335 function simpletabledraw() {
|
Line 2372 function simpletabledraw() {
|
if ((mime!='') && (ext!='true')) { |
if ((mime!='') && (ext!='true')) { |
parent.mapout.document.write |
parent.mapout.document.write |
('<a target="preview" align="right" href="'+url+'.meta'+ |
('<a target="preview" align="right" href="'+url+'.meta'+ |
'"><img src="'+iconpath+'meta.gif"></a><p>'+ |
'"><img width="20" src="'+iconpath+'meta.gif" /></a><p>'+ |
'<a target="preview" align="right"href="'+url+ |
'<a target="preview" align="right"href="'+url+ |
'"><img src="'+iconpath+mime+'.gif"></a><p>'); |
'"><img width="20" src="'+iconpath+mime+'.gif" /></a><p>'); |
} |
} |
parent.mapout.document.write('<b>'+k+'</b></td><td bgcolor="'+ck+'">'); |
parent.mapout.document.write('<b>'+k+'</b></td><td bgcolor="'+ck+'">'); |
data2=obj[i].split('&'); |
data2=obj[i].split('&'); |
Line 2353 function simpletabledraw() {
|
Line 2390 function simpletabledraw() {
|
'<tr><td>Title:</td><td>'+data1[0]+'</td></tr>'); |
'<tr><td>Title:</td><td>'+data1[0]+'</td></tr>'); |
parent.mapout.document.write( |
parent.mapout.document.write( |
'<tr><td>URL:</td><td>'+data1[1]+'</td></tr>' |
'<tr><td>URL:</td><td>'+data1[1]+'</td></tr>' |
+'<tr><td colspan=2><table><tr>'); |
+'<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(':'); |
data3=objlinks[data4[2]].split(':'); |
data3=objlinks[data4[2]].split(':'); |
Line 2367 function simpletabledraw() {
|
Line 2404 function simpletabledraw() {
|
condid='-'; |
condid='-'; |
} |
} |
parent.mapout.document.writeln( |
parent.mapout.document.writeln( |
'<td bgcolor='+cck+'>Next<br>'); |
'<td bgcolor='+cck+'>Next<br />'); |
parent.mapout.document.writeln('</td>'); |
parent.mapout.document.writeln('</td>'); |
} |
} |
} |
} |
Line 2385 function simpletabledraw() {
|
Line 2422 function simpletabledraw() {
|
condid='-'; |
condid='-'; |
} |
} |
parent.mapout.document.writeln( |
parent.mapout.document.writeln( |
'<td bgcolor='+cck+'>To: '+robjs[data3[1]]+'<br>'); |
'<td bgcolor="'+cck+'">To: '+robjs[data3[1]]+'<br />'); |
parent.mapout.document.writeln('</td>'); |
parent.mapout.document.writeln('</td>'); |
} |
} |
} |
} |
Line 2732 function schedule(action) {
|
Line 2769 function schedule(action) {
|
|
|
// ----------------------------------------------------- launch indexer browser |
// ----------------------------------------------------- launch indexer browser |
function groupsearch() { |
function groupsearch() { |
srchcheck('groupsearch'); |
srchcheck('import'); |
} |
} |
|
|
function groupimport() { |
function groupimport() { |
idxcheck('groupimport'); |
idxcheck('import'); |
} |
} |
|
|
function groupcopy() { |
function groupcopy() { |
copydxcheck('groupsec'); |
copydxcheck('import'); |
} |
} |
|
|
// -------------------------------------------------------------- Store changes |
// -------------------------------------------------------------- Store changes |