version 1.12, 2000/08/24 15:04:44
|
version 1.41, 2001/07/04 19:59:24
|
Line 9 Resource Assembly Tool
|
Line 9 Resource Assembly Tool
|
1/7,1/8,1/10,1/14,1/15,1/16,1/21,1/22,1/29,1/30,1/31, |
1/7,1/8,1/10,1/14,1/15,1/16,1/21,1/22,1/29,1/30,1/31, |
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, |
Gerd Kortemeyer with Scott Harrison |
01/17/01,03/03,03/05 Gerd Kortemeyer with Scott Harrison |
|
March/April 01 Scott Harrison |
|
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 |
--> |
--> |
|
|
|
|
Line 30 var colmap5=new Array();
|
Line 35 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 77 var data4=new Array(1024);
|
var data5=new Array(1024); |
var data5=new Array(1024); |
|
|
var inf; |
var inf; |
|
var srch; |
|
var srchflag=-1; // 1 means currently open |
|
// 0 means closed (but has been open) |
|
// -1 means never yet opened/defined |
|
var srchmode=''; |
|
|
|
var idx; |
|
var idxflag=-1; // 1 means currently open |
|
// 0 means closed (but has been open) |
|
// -1 means never yet opened/defined |
|
var idxmode=''; |
|
|
|
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"; |
|
} |
|
|
// ------------------------------------------------ Insert a row into the table |
// ------------------------------------------------ Insert a row into the table |
|
|
Line 92 function insertrow(j,ex1,ex2) {
|
Line 120 function insertrow(j,ex1,ex2) {
|
objects=objects1+':'+objects2; |
objects=objects1+':'+objects2; |
data1=objects.split(':'); |
data1=objects.split(':'); |
for (kj=0;kj<data1.length;kj++) { |
for (kj=0;kj<data1.length;kj++) { |
if (data1[kj]!='') { |
if ((data1[kj]!='') && (data1[kj]!=undefined)) { |
thisisobj=obj[data1[kj]]; |
thisisobj=obj[data1[kj]]; |
thisobjtype=thisisobj.split('&')[0]; |
thisobjtype=thisisobj.split('&')[0]; |
if (thisobjtype=='v') { |
if (thisobjtype=='v') { |
Line 133 function insertrow(j,ex1,ex2) {
|
Line 161 function insertrow(j,ex1,ex2) {
|
} |
} |
} |
} |
} |
} |
if (newobj!='') { |
if ((newobj!='') && (newobj!=undefined)) { |
thisobjcol=newobj.split('&')[1]; |
thisobjcol=newobj.split('&')[1]; |
if (colcover.indexOf(':'+thisobjcol+':',0)==-1) { |
if (colcover.indexOf(':'+thisobjcol+':',0)==-1) { |
colcover+=thisobjcol+':'; |
colcover+=thisobjcol+':'; |
Line 159 function insertrow(j,ex1,ex2) {
|
Line 187 function insertrow(j,ex1,ex2) {
|
} |
} |
} |
} |
} |
} |
if (newobj!='') { |
if ((newobj!='') && (newobj!=undefined)) { |
thisobjcol=newobj.split('&')[1]; |
thisobjcol=newobj.split('&')[1]; |
if (colcover.indexOf(':'+thisobjcol+':',0)==-1) { |
if (colcover.indexOf(':'+thisobjcol+':',0)==-1) { |
colcover+=thisobjcol+':'; |
colcover+=thisobjcol+':'; |
Line 256 function maprow (jid,obj1,ign) {
|
Line 284 function maprow (jid,obj1,ign) {
|
var j; var k; var left; var right; var middle; |
var j; var k; var left; var right; var middle; |
middle=-1; |
middle=-1; |
for (j=0;j<=maxcol;j++) { colmap[j]=0; } |
for (j=0;j<=maxcol;j++) { colmap[j]=0; } |
if (rowcont[jid]!='') { |
if ((rowcont[jid]!='') && (rowcont[jid]!=undefined)) { |
data2=rowcont[jid].split(':'); |
data2=rowcont[jid].split(':'); |
for (j=0;j<data2.length;j++) { |
for (j=0;j<data2.length;j++) { |
data3=obj[data2[j]].split('&'); |
data3=obj[data2[j]].split('&'); |
Line 426 function insertport (obj1,d,inout,linkob
|
Line 454 function insertport (obj1,d,inout,linkob
|
function addobj(kjid,objs) { |
function addobj(kjid,objs) { |
stored=0; |
stored=0; |
expense++; |
expense++; |
if (rowcont[kjid]!='') { rowcont[kjid]+=':'; } |
if ((rowcont[kjid]!='') && (rowcont[kjid]!=undefined)) { |
|
rowcont[kjid]+=':'; |
|
} |
rowcont[kjid]+=obj.length; |
rowcont[kjid]+=obj.length; |
obj[obj.length]=objs; |
obj[obj.length]=objs; |
return obj.length-1; |
return obj.length-1; |
Line 480 function delobj(obj1) {
|
Line 510 function delobj(obj1) {
|
rowcont[k]=''; |
rowcont[k]=''; |
for (k2=0;k2<data4.length;k2++) { |
for (k2=0;k2<data4.length;k2++) { |
if (data4[k2]!=obj1) { |
if (data4[k2]!=obj1) { |
if (rowcont[k]!='') { rowcont[k]+=':'; } |
if ((rowcont[k]!='') && (rowcont[k]!=undefined)) { |
|
rowcont[k]+=':'; |
|
} |
rowcont[k]+=data4[k2]; |
rowcont[k]+=data4[k2]; |
} |
} |
} |
} |
Line 500 function cleanup () {
|
Line 532 function cleanup () {
|
for (kj=0;kj<=maxcol;kj++) { data1[kj]=0; } |
for (kj=0;kj<=maxcol;kj++) { data1[kj]=0; } |
for (kj=0;kj<=maxrow;kj++) { |
for (kj=0;kj<=maxrow;kj++) { |
rowtype[kj]=0; |
rowtype[kj]=0; |
if (rowcont[kj]!='') { |
if ((rowcont[kj]!='') && (rowcont[kj]!=undefined)) { |
data2=rowcont[kj].split(':'); |
data2=rowcont[kj].split(':'); |
for (j=0;j<data2.length;j++) { |
for (j=0;j<data2.length;j++) { |
if (obj[data2[j]].substring(0,2)=='e&') { |
if (obj[data2[j]].substring(0,2)=='e&') { |
Line 593 function crecond(obj1,colid,condtext,con
|
Line 625 function crecond(obj1,colid,condtext,con
|
function dellink (linknr) { |
function dellink (linknr) { |
var k; var obj1; var obj2; |
var k; var obj1; var obj2; |
stored=0; |
stored=0; |
if (objlinks[linknr]!='') { |
if ((objlinks[linknr]!='') && (objlinks[linknr]!=undefined)) { |
data3=objlinks[linknr].split(':'); |
data3=objlinks[linknr].split(':'); |
obj1=data3[0]; |
obj1=data3[0]; |
obj2=data3[1]; |
obj2=data3[1]; |
Line 616 function dellink (linknr) {
|
Line 648 function dellink (linknr) {
|
} |
} |
} |
} |
for (k=0;k<obj.length;k++) { |
for (k=0;k<obj.length;k++) { |
if (obj[k]!='') { |
if ((obj[k]!='') && (obj[k]!=undefined)) { |
data3=obj[k].split('&'); |
data3=obj[k].split('&'); |
if (((data3[0]=='v') || (data3[0]=='h')) && |
if (((data3[0]=='v') || (data3[0]=='h')) && |
(data3[data3.length-2]==linknr)) { |
(data3[data3.length-2]==linknr)) { |
Line 827 function delres (obj1,recon) {
|
Line 859 function delres (obj1,recon) {
|
for (k2=0;k2<inobjs.length;k2++) { |
for (k2=0;k2<inobjs.length;k2++) { |
if (inobjs[k2]==infromobj[k]) { |
if (inobjs[k2]==infromobj[k]) { |
if (inwithcon[k]!=0) { |
if (inwithcon[k]!=0) { |
if (inobjscond[k2]!='') { inobjscond[k2]+='||'; } |
if ((inobjscond[k2]!='') && |
|
(inobjscond[k2]!=undefined)) { |
|
inobjscond[k2]+='||'; |
|
} |
inobjscond[k2]+= |
inobjscond[k2]+= |
'('+(objcont[inwithcon[k]].split(':'))[0]+')'; |
'('+(objcont[inwithcon[k]].split(':'))[0]+')'; |
} |
} |
Line 853 function delres (obj1,recon) {
|
Line 888 function delres (obj1,recon) {
|
for (k2=0;k2<outobjs.length;k2++) { |
for (k2=0;k2<outobjs.length;k2++) { |
if (outobjs[k2]==outtoobj[k]) { |
if (outobjs[k2]==outtoobj[k]) { |
if (outwithcon[k]!=0) { |
if (outwithcon[k]!=0) { |
if (outobjscond[k2]!='') { outobjscond[k2]+='||'; } |
if ((outobjscond[k2]!='') && |
|
(outobjscond[k2]!=undefined)) { |
|
outobjscond[k2]+='||'; |
|
} |
outobjscond[k2]+= |
outobjscond[k2]+= |
'('+(objcont[outwithcon[k]].split(':'))[0]+')'; |
'('+(objcont[outwithcon[k]].split(':'))[0]+')'; |
} |
} |
Line 875 function delres (obj1,recon) {
|
Line 913 function delres (obj1,recon) {
|
|
|
for (k=0;k<inobjs.length;k++) { |
for (k=0;k<inobjs.length;k++) { |
cond=''; |
cond=''; |
if (inobjscond[k]!='') { cond='('+inobjscond[k]+')'; } |
if ((inobjscond[k]!='') && (inobjscond[k]!=undefined)) { |
|
cond='('+inobjscond[k]+')'; |
|
} |
for (k2=0;k2<outobjs.length;k2++) { |
for (k2=0;k2<outobjs.length;k2++) { |
thiscond=cond; |
thiscond=cond; |
if (outobjscond[k2]!='') { |
if ((outobjscond[k2]!='') && (outobjscond[k2]!=undefined)) { |
if (thiscond!='') { thiscond+='&&'; } |
if ((thiscond!='') && (thiscond!=undefined)) { |
|
thiscond+='&&'; |
|
} |
thiscond+='('+outobjscond[k2]+')'; |
thiscond+='('+outobjscond[k2]+')'; |
} |
} |
condnr=0; |
condnr=0; |
if (thiscond!='') { condnr=newcondition(thiscond,'normal'); } |
if ((thiscond!='') && (thiscond!=undefined)) { |
|
condnr=newcondition(thiscond,'normal'); |
|
} |
save(); |
save(); |
joinres(inobjs[k],outobjs[k2],condnr); |
joinres(inobjs[k],outobjs[k2],condnr); |
} |
} |
Line 895 function delres (obj1,recon) {
|
Line 939 function delres (obj1,recon) {
|
|
|
function drawcell (rtype,ctype,what,cm,obj1,ej,ek,ne) { |
function drawcell (rtype,ctype,what,cm,obj1,ej,ek,ne) { |
var bgcolor; |
var bgcolor; |
|
var url=''; |
|
var urlparts=new Array; |
|
var mime; |
|
var ext; |
|
var objref; |
|
var objnum; |
|
|
if ((what=='') && (ne==0)) { cm="#DDDDDD"; } |
if ((what=='') && (ne==0)) { cm="#DDDDDD"; } |
if (ctype!=0) { |
if (ctype!=0) { |
parent.mapout.document.write('<td bgcolor='+cm+' width='+cw[ctype]+'>'); |
parent.mapout.document.write('<td bgcolor='+cm+' width='+cw[ctype]+'>'); |
if (what!='') { |
if ((what!='') && (what!=undefined)) { |
if (obj1!='') { |
if ((obj1!='') && (obj1!=undefined)) { |
obj1="'"+obj1+"'"; |
objref="'"+obj1+"'"; |
parent.mapout.document.write |
parent.mapout.document.write |
('<a href="javascript:parent.code.handler('+obj1 |
('<a href="javascript:parent.code.handler('+objref |
+');" onMouseOver="parent.code.info('+obj1+');">'); |
+');" onMouseOver="parent.code.info('+objref+');">'); |
} |
} |
if (what=='r:') { |
if (what=='r:') { |
|
mime=''; |
|
objnum=(obj1.split('&'))[1]; |
|
if (objcont[objnum]!=undefined) { |
|
urlparts=objcont[objnum].split(':'); |
|
url=urlparts[1]; |
|
ext=urlparts[2]; |
|
urlparts=url.split('.'); |
|
mime=urlparts[urlparts.length-1]; |
|
if (mime==undefined) { mime=''; } |
|
} |
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[1] |
+' src="resource.gif">'); |
+' src="resource.gif">'); |
|
if ((mime!='') && (ext!='true')) { |
|
parent.mapout.document.write |
|
('<br><img border=0 src="left.gif"></a><a target="preview" href="'+ |
|
url+'.meta"><img border=0 src="'+iconpath+ |
|
'meta.gif"><a target="preview" href="'+url+ |
|
'"><img border=0 src="'+iconpath+mime+'.gif">'+ |
|
'<img border=0 src="right.gif">'); |
|
} else { |
|
parent.mapout.document.write |
|
('<br><img border=0 src="middle.gif">'); |
|
} |
|
parent.mapout.document.write |
|
('<br><img border=0 src="bottom.gif">'); |
} else { |
} else { |
if (what=='c:') { |
if (what=='c:') { |
parent.mapout.document.write |
parent.mapout.document.write |
Line 916 function drawcell (rtype,ctype,what,cm,o
|
Line 990 function drawcell (rtype,ctype,what,cm,o
|
+' src="condition.gif">'); |
+' src="condition.gif">'); |
} else { |
} else { |
if (what=='rs:') { |
if (what=='rs:') { |
|
mime=''; |
|
objnum=(obj1.split('&'))[1]; |
|
if (objcont[objnum]!=undefined) { |
|
urlparts=objcont[objnum].split(':'); |
|
url=urlparts[1]; |
|
ext=urlparts[2]; |
|
urlparts=url.split('.'); |
|
mime=urlparts[urlparts.length-1]; |
|
if (mime==undefined) { mime=''; } |
|
} |
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[1] |
+' src="start.gif">'); |
+' src="start.gif">'); |
|
if ((mime!='') && (ext!='true')) { |
|
parent.mapout.document.write |
|
('<br><img border=0 src="left.gif"></a><a target="preview" href="'+ |
|
url+'.meta"><img border=0 src="'+iconpath+ |
|
'meta.gif"><a target="preview" href="'+url+ |
|
'"><img border=0 src="'+iconpath+mime+'.gif">'+ |
|
'<img border=0 src="right.gif">'); |
|
} else { |
|
parent.mapout.document.write |
|
('<br><img border=0 src="middle.gif">'); |
|
} |
|
parent.mapout.document.write |
|
('<br><img border=0 src="bottom.gif">'); |
|
|
} else { |
} else { |
if (what=='rf:') { |
if (what=='rf:') { |
|
mime=''; |
|
objnum=(obj1.split('&'))[1]; |
|
if (objcont[objnum]!=undefined) { |
|
urlparts=objcont[objnum].split(':'); |
|
url=urlparts[1]; |
|
ext=urlparts[2]; |
|
urlparts=url.split('.'); |
|
mime=urlparts[urlparts.length-1]; |
|
if (mime==undefined) { mime=''; } |
|
} |
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[1] |
+' src="finish.gif">'); |
+' src="finish.gif">'); |
|
if ((mime!='') && (ext!='true')) { |
|
parent.mapout.document.write |
|
('<br><img border=0 src="left.gif"></a><a target="preview" href="'+ |
|
url+'.meta"><img border=0 src="'+iconpath+ |
|
'meta.gif"><a target="preview" href="'+url+ |
|
'"><img border=0 src="'+iconpath+mime+'.gif">'+ |
|
'<img border=0 src="right.gif">'); |
|
} else { |
|
parent.mapout.document.write |
|
('<br><img border=0 src="middle.gif">'); |
|
} |
|
parent.mapout.document.write |
|
('<br><img border=0 src="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] |
Line 932 function drawcell (rtype,ctype,what,cm,o
|
Line 1053 function drawcell (rtype,ctype,what,cm,o
|
} |
} |
} |
} |
} |
} |
if (obj1!='') { |
if ((obj1!='') && (obj1!=undefined)) { |
parent.mapout.document.write('</a>'); |
parent.mapout.document.write('</a>'); |
} |
} |
} else { |
} else { |
Line 989 if (rowtype[jid]!=0) {
|
Line 1110 if (rowtype[jid]!=0) {
|
} |
} |
|
|
parent.mapout.document.writeln('<tr height='+rh[rowtype[jid]]+'>'); |
parent.mapout.document.writeln('<tr height='+rh[rowtype[jid]]+'>'); |
if (rowcont[jid]!='') { |
if ((rowcont[jid]!='') && (rowcont[jid]!=undefined)) { |
data2=rowcont[jid].split(':'); |
data2=rowcont[jid].split(':'); |
for (jk=0;jk<data2.length;jk++) { |
for (jk=0;jk<data2.length;jk++) { |
data3=obj[data2[jk]].split('&'); |
data3=obj[data2[jk]].split('&'); |
Line 1046 if (rowtype[jid]!=0) {
|
Line 1167 if (rowtype[jid]!=0) {
|
|
|
if (rightin>middle) { |
if (rightin>middle) { |
for (k=middle+1;k<rightin;k++) { |
for (k=middle+1;k<rightin;k++) { |
if (colmap4[k]!='') { |
if ((colmap4[k]!='') && (colmap4[k]!=undefined)) { |
colmap[k]='rlt'; |
colmap[k]='rlt'; |
} else { |
} else { |
colmap[k]='rl'; |
colmap[k]='rl'; |
Line 1056 if (rowtype[jid]!=0) {
|
Line 1177 if (rowtype[jid]!=0) {
|
} |
} |
if (leftin<middle) { |
if (leftin<middle) { |
for (k=middle-1;k>leftin;k--) { |
for (k=middle-1;k>leftin;k--) { |
if (colmap4[k]!='') { |
if ((colmap4[k]!='') && (colmap4[k]!=undefined)) { |
colmap[k]='lrt'; |
colmap[k]='lrt'; |
} else { |
} else { |
colmap[k]='lr'; |
colmap[k]='lr'; |
Line 1076 if (rowtype[jid]!=0) {
|
Line 1197 if (rowtype[jid]!=0) {
|
if (rightout<middle) { colmap2[middle]='tl'; } |
if (rightout<middle) { colmap2[middle]='tl'; } |
if (rightout==middle) { colmap2[middle]='tdl'; } |
if (rightout==middle) { colmap2[middle]='tdl'; } |
if (rightout>middle) { |
if (rightout>middle) { |
if (colmap3[middle]!='') { |
if ((colmap3[middle]!='') && (colmap3[middle]!=undefined)) { |
colmap2[middle]='rtdl'; |
colmap2[middle]='rtdl'; |
} else { |
} else { |
colmap2[middle]='rtl'; |
colmap2[middle]='rtl'; |
Line 1085 if (rowtype[jid]!=0) {
|
Line 1206 if (rowtype[jid]!=0) {
|
} |
} |
if (leftout<middle) { |
if (leftout<middle) { |
for (k=middle-1;k>leftout;k--) { |
for (k=middle-1;k>leftout;k--) { |
if (colmap3[k]!='') { |
if ((colmap3[k]!='') && (colmap3[k]!=undefined)) { |
colmap2[k]='rld'; |
colmap2[k]='rld'; |
} else { |
} else { |
colmap2[k]='rl'; |
colmap2[k]='rl'; |
Line 1095 if (rowtype[jid]!=0) {
|
Line 1216 if (rowtype[jid]!=0) {
|
} |
} |
if (rightout>middle) { |
if (rightout>middle) { |
for (k=middle+1;k<rightout;k++) { |
for (k=middle+1;k<rightout;k++) { |
if (colmap3[k]!='') { |
if ((colmap3[k]!='') && (colmap3[k]!=undefined)) { |
colmap2[k]='lrd'; |
colmap2[k]='lrd'; |
} else { |
} else { |
colmap2[k]='lr'; |
colmap2[k]='lr'; |
Line 1264 function infoclear() {
|
Line 1385 function infoclear() {
|
} |
} |
inf.document.writeln('</tr></table></body></html>'); |
inf.document.writeln('</tr></table></body></html>'); |
inf.document.close(); |
inf.document.close(); |
parent.focus(); |
if (srchflag==1) { |
|
srchclose(); |
|
} |
|
if (idxflag==1) { |
|
idxclose(); |
|
} |
|
if (parmflag==1) { |
|
parmclose(); |
|
} |
|
parent.top.focus(); |
parent.mapout.focus(); |
parent.mapout.focus(); |
notclear=1; |
notclear=1; |
lastinfo=''; |
lastinfo=''; |
Line 1289 function infcheck() {
|
Line 1419 function infcheck() {
|
// --------------------------------------------------- Prints out resource info |
// --------------------------------------------------- Prints out resource info |
|
|
function info(infostr) { |
function info(infostr) { |
|
var mime=''; |
|
var ext; |
|
var urlparts=new Array; |
|
var url=''; |
if ((editmode!=1) && (infostr!=lastinfo)) { |
if ((editmode!=1) && (infostr!=lastinfo)) { |
notclear=1; |
notclear=1; |
infcheck(); |
infcheck(); |
Line 1319 function info(infostr) {
|
Line 1453 function info(infostr) {
|
} else { |
} else { |
if (data1[0]=='r') { |
if (data1[0]=='r') { |
data2=objcont[data1[1]].split(':'); |
data2=objcont[data1[1]].split(':'); |
inf.document.write('<b>'); |
url=data2[1]; |
|
ext=data2[2]; |
|
urlparts=url.split('.'); |
|
mime=urlparts[urlparts.length-1]; |
|
if (mime==undefined) { mime=''; } |
|
if (ext=='true') { mime=''; } |
|
if (mime!='') { |
|
inf.document.write |
|
('<br><a target="preview" align="right" href="'+url+ |
|
'"><img border=0 src="'+iconpath+mime+'.gif"></a> '); |
|
} |
|
inf.document.write('<b>'); |
if (data2[2]=='true') { inf.document.write('External '); } |
if (data2[2]=='true') { inf.document.write('External '); } |
if (data2[3]=='start') { |
if (data2[3]=='start') { |
inf.document.writeln('<b>Start</b>'); |
inf.document.writeln('<b>Start</b>'); |
Line 1357 function info(infostr) {
|
Line 1502 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 1436 function insertcondlink(cid,lnr) {
|
Line 1581 function insertcondlink(cid,lnr) {
|
joinres(nobj,tobj,0); |
joinres(nobj,tobj,0); |
} |
} |
|
|
|
|
|
|
|
|
|
// ------------------------------------------------------ Clears indexer window |
|
|
|
function idxclear() { |
|
idx.document.clear(); |
|
} |
|
|
|
// ------------------------------------------------------- Clears search window |
|
|
|
function srchclear() { |
|
srch.document.clear(); |
|
} |
|
|
|
// --------------------------------------------------------- Clears parm window |
|
|
|
function parmclear() { |
|
parm.document.clear(); |
|
} |
|
|
|
// ------------------------------------------------------ Closes indexer window |
|
|
|
function idxclose() { |
|
if (idx && !idx.closed) { |
|
idxflag=0; |
|
idx.close(); |
|
} |
|
} |
|
|
|
// ------------------------------------------------------- Closes search window |
|
|
|
function srchclose() { |
|
if (srch && !srch.closed) { |
|
srchflag=0; |
|
srch.close(); |
|
} |
|
} |
|
|
|
// ------------------------------------------------------- Closes search window |
|
|
|
function parmclose() { |
|
if (parm && !parm.closed) { |
|
parmflag=0; |
|
parm.close(); |
|
} |
|
} |
|
|
|
// -------------------------------------------------------- Open indexer window |
|
|
|
function idxopen(mode) { |
|
var options="scrollbars=1,resizable=1,menubar=0"; |
|
idxmode=mode; |
|
idxflag=1; |
|
idx=open("/res?catalogmode="+mode,"idxout",options); |
|
idx.focus(); |
|
} |
|
|
|
// --------------------------------------------------------- Open search window |
|
|
|
function srchopen(mode) { |
|
var options="scrollbars=1,resizable=1,menubar=0"; |
|
srchmode=mode; |
|
srchflag=1; |
|
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(mode) { |
|
if (!srch || srch.closed || srchmode!=mode) { |
|
srchopen(); |
|
} |
|
srch.focus(); |
|
} |
|
|
|
// -------------------------------------------------------- Do idx status check |
|
|
|
function idxcheck(mode) { |
|
if (!idx || idx.closed || idxmode!=mode) { |
|
idxopen(mode); |
|
} |
|
idx.focus(); |
|
} |
|
|
// ---------------------------------------------------- Handles "click to edit" |
// ---------------------------------------------------- Handles "click to edit" |
|
|
function handler(infostr) { |
function handler(infostr) { |
Line 1483 function handler(infostr) {
|
Line 1720 function handler(infostr) {
|
} |
} |
inf.document.writeln( |
inf.document.writeln( |
'opener.infoclear();opener.editmode=0;opener.draw(' |
'opener.infoclear();opener.editmode=0;opener.draw(' |
+');"><b>Change to above values</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]+'>'); |
|
|
Line 1523 function handler(infostr) {
|
Line 1760 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')) { |
inf.document.write('<tr><td>URL:</td><td colspan=2>' |
inf.document.write('<tr><td>URL:</td><td>' |
|
+'<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>' |
+'<tr><td colspan=2>' |
+'<a href="javascript:opener.idxcheck(\'interactive\')">Browse</a> ' |
|
+'<a href="javascript:opener' |
|
+'.srchcheck(\'interactive\')">Search</a></td></tr>'); |
|
if ((data2[3]!='start') && (data2[3]!='finish')) { |
|
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'); } |
Line 1545 function handler(infostr) {
|
Line 1785 function handler(infostr) {
|
'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'); } |
inf.document.write('> Optional</td></tr>'); |
inf.document.write('> Optional</td></tr>'); |
} else { |
} |
inf.document.write( |
|
'<tr><td><input type=hidden name=e value=false>' |
|
+'<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)+'+"':'" |
+'+self.document.forms.resinfo.elements.e.checked+'+"':'" |
+'+self.document.forms.resinfo.elements.e.checked+'+"':'" |
+'+self.document.forms.resinfo.elements.h.value+'+"':res'" |
+'+self.document.forms.resinfo.elements.h.value+'+"':res'" |
+';opener.infoclear();opener.editmode=0;opener.draw();">' |
+';opener.infoclear();opener.editmode=0;opener.draw();">' |
+'<b>Change to above values</b></a> ' |
+'<b>Save Changes</b></a> ' |
+' <a href="javascript:self.document.forms.resinfo.reset()">Reset</a>' |
+' <a href="javascript:self.document.forms.resinfo.reset()">Reset</a>' |
+'</td></tr></table>'); |
+'</td></tr></table>'); |
if ((data2[3]!='start') && (data2[3]!='finish')) { |
if ((data2[3]!='start') && (data2[3]!='finish')) { |
Line 1577 function handler(infostr) {
|
Line 1813 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 1597 function handler(infostr) {
|
Line 1838 function handler(infostr) {
|
} |
} |
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();">Done</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(); |
inf.focus(); |
inf.focus(); |
Line 1626 function empty(rid,k) {
|
Line 1867 function empty(rid,k) {
|
'opener.editmode=0;opener.notclear=0;opener.infoclear();opener.draw(' |
'opener.editmode=0;opener.notclear=0;opener.infoclear();opener.draw(' |
+');">Insert resource</a>'); |
+');">Insert resource</a>'); |
|
|
if ((mostrecent!=0) && (objcont[mostrecent]!='')) { |
if ((mostrecent!=0) && (objcont[mostrecent]!='') && |
|
(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');"+ |
Line 1666 function empty(rid,k) {
|
Line 1908 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();">Done</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(); |
inf.focus(); |
inf.focus(); |
Line 1707 function save() {
|
Line 1949 function save() {
|
} |
} |
parent.server.document.forms.storage.output.value+= |
parent.server.document.forms.storage.output.value+= |
'<&>tablemode<:>'+tablemode; |
'<&>tablemode<:>'+tablemode; |
|
|
|
for (k=0;k<objparms.length;k++) { |
|
if (objparms[k]) { |
|
parent.server.document.forms.storage.output.value+= |
|
'<&>objparms<:>'+k+'<:>'+objparms[k]; |
|
} |
|
} |
for (k=0;k<objcont.length;k++) { |
for (k=0;k<objcont.length;k++) { |
if (objcont[k]) { |
if (objcont[k]) { |
parent.server.document.forms.storage.output.value+= |
parent.server.document.forms.storage.output.value+= |
Line 1788 function tabledraw() {
|
Line 2036 function tabledraw() {
|
var ck; |
var ck; |
var cck; |
var cck; |
var condid; |
var condid; |
|
var url=''; |
|
var mime=''; |
|
var ext=''; |
|
var urlparts=new Array; |
var sortstr=sortobjs(); |
var sortstr=sortobjs(); |
insrestab(1,-1,-1,''); |
insrestab(1,-1,-1,''); |
if (sortstr!='') { |
if ((sortstr!='') && (sortstr!=undefined)) { |
objsorted=sortstr.split('&'); |
objsorted=sortstr.split('&'); |
for (k=0;k<objsorted.length;k++) { |
for (k=0;k<objsorted.length;k++) { |
i=(objsorted[k].split(':'))[0]; |
i=(objsorted[k].split(':'))[0]; |
Line 1806 function tabledraw() {
|
Line 2058 function tabledraw() {
|
} |
} |
data1=objcont[i].split(':'); |
data1=objcont[i].split(':'); |
ck=rescolor(data1[2],data1[3]); |
ck=rescolor(data1[2],data1[3]); |
parent.mapout.document.write('<tr><td bgcolor="'+ck |
parent.mapout.document.write('<tr><td bgcolor="'+ck+'">'); |
+'"><b><a href="javascript:if (parent.code.linkmode!=0) { ' |
url=data1[1]; |
|
ext=data1[2]; |
|
urlparts=url.split('.'); |
|
mime=urlparts[urlparts.length-1]; |
|
if (mime==undefined) { mime=''; } |
|
if ((mime!='') && (ext!='true')) { |
|
parent.mapout.document.write |
|
('<a target="preview" align="right" href="'+url+'.meta'+ |
|
'"><img src="'+iconpath+'meta.gif"></a><p>'+ |
|
'<a target="preview" align="right"href="'+url+ |
|
'"><img src="'+iconpath+mime+'.gif"></a><p>'); |
|
} |
|
parent.mapout.document.write( |
|
'<b><a href="javascript:if (parent.code.linkmode!=0) { ' |
+'parent.code.joinres(parent.code.linkmode,'+i+',0);' |
+'parent.code.joinres(parent.code.linkmode,'+i+',0);' |
+'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();' |
Line 1815 function tabledraw() {
|
Line 2080 function tabledraw() {
|
+'"><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">'); |
|
|
if (data1[3]=='start') { |
if (data1[3]=='start') { |
parent.mapout.document.writeln('<tr><td><b>Start</b></td></tr>'); |
parent.mapout.document.writeln('<tr><td><b>Start</b></td></tr>'); |
} |
} |
Line 1825 function tabledraw() {
|
Line 2091 function tabledraw() {
|
'<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>'); |
if ((data1[3]!='start') && (data1[3]!='finish')) { |
|
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'); } |
parent.mapout.document.write('></td></tr>' |
parent.mapout.document.write('></td></tr>'); |
+'<tr><td colspan=2><input type=radio name=y value=normal '+ |
if ((data1[3]!='start') && (data1[3]!='finish')) { |
|
parent.mapout.document.write( |
|
'<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'); } |
Line 1847 function tabledraw() {
|
Line 2114 function tabledraw() {
|
"'optional'"+'"'); |
"'optional'"+'"'); |
if (data1[3]=='optional') { parent.mapout.document.write(' checked'); } |
if (data1[3]=='optional') { parent.mapout.document.write(' checked'); } |
parent.mapout.document.write('> Optional</td></tr>'); |
parent.mapout.document.write('> Optional</td></tr>'); |
} else { |
} |
parent.mapout.document.write( |
|
'<tr><td><input type=hidden name=u value="">' |
|
+'<input type=hidden name=e value=false></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 |
Line 1861 function tabledraw() {
|
Line 2124 function tabledraw() {
|
+'+parent.mapout.document.forms.r'+i+'.elements.e.checked+'+"':'" |
+'+parent.mapout.document.forms.r'+i+'.elements.e.checked+'+"':'" |
+'+parent.mapout.document.forms.r'+i+'.elements.h.value+'+"':res'" |
+'+parent.mapout.document.forms.r'+i+'.elements.h.value+'+"':res'" |
+';parent.code.draw();">' |
+';parent.code.draw();">' |
+'<b>Change to above values</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')) { |
Line 1877 function tabledraw() {
|
Line 2140 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 1946 function insrestab(irow,be,af,typ) {
|
Line 2214 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 1955 function insrestab(irow,be,af,typ) {
|
Line 2224 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 1965 function insrestab(irow,be,af,typ) {
|
Line 2236 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 1983 function simpletabledraw() {
|
Line 2255 function simpletabledraw() {
|
var nr; |
var nr; |
var ck; |
var ck; |
var cck; |
var cck; |
|
var mime; |
|
var ext; |
|
var url; |
|
var urlparts=new Array; |
var condid; |
var condid; |
var sortstr=sortobjs(); |
var sortstr=sortobjs(); |
if (sortstr!='') { |
if ((sortstr!='') && (sortstr!=undefined)) { |
objsorted=sortstr.split('&'); |
objsorted=sortstr.split('&'); |
for (k=0;k<objsorted.length;k++) { |
for (k=0;k<objsorted.length;k++) { |
i=(objsorted[k].split(':'))[0]; |
i=(objsorted[k].split(':'))[0]; |
Line 2001 function simpletabledraw() {
|
Line 2277 function simpletabledraw() {
|
} |
} |
data1=objcont[i].split(':'); |
data1=objcont[i].split(':'); |
ck=rescolor(data1[2],data1[3]); |
ck=rescolor(data1[2],data1[3]); |
parent.mapout.document.write('<tr><td bgcolor="'+ck |
parent.mapout.document.write('<tr><td bgcolor="'+ck+'">'); |
+'"><b>'+k+'</b></td><td bgcolor="'+ck |
url=data1[1]; |
+'">'); |
ext=data1[2]; |
|
urlparts=url.split('.'); |
|
mime=urlparts[urlparts.length-1]; |
|
if (mime==undefined) { mime=''; } |
|
if ((mime!='') && (ext!='true')) { |
|
parent.mapout.document.write |
|
('<a target="preview" align="right" href="'+url+'.meta'+ |
|
'"><img src="'+iconpath+'meta.gif"></a><p>'+ |
|
'<a target="preview" align="right"href="'+url+ |
|
'"><img src="'+iconpath+mime+'.gif"></a><p>'); |
|
} |
|
parent.mapout.document.write('<b>'+k+'</b></td><td bgcolor="'+ck+'">'); |
data2=obj[i].split('&'); |
data2=obj[i].split('&'); |
parent.mapout.document.write('<table>'); |
parent.mapout.document.write('<table>'); |
|
|
if (data1[3]=='start') { |
if (data1[3]=='start') { |
parent.mapout.document.writeln('<tr><td><b>Start</b></td></tr>'); |
parent.mapout.document.writeln('<tr><td><b>Start</b></td></tr>'); |
} |
} |
Line 2083 function sortobjs() {
|
Line 2371 function sortobjs() {
|
for (k=1;k<objlinks.length;k++) { |
for (k=1;k<objlinks.length;k++) { |
wheelswitch(); |
wheelswitch(); |
message("Sorting Resources: "+funny); |
message("Sorting Resources: "+funny); |
if (objlinks[k]!='') { |
if ((objlinks[k]!=undefined) && (objlinks[k]!='')) { |
sortthis=1; |
sortthis=1; |
data1=objlinks[k].split(':'); |
data1=objlinks[k].split(':'); |
kj=-1; |
kj=-1; |
Line 2204 function condense() {
|
Line 2492 function condense() {
|
message("Condensing"); |
message("Condensing"); |
var j; |
var j; |
for (j=0;j<=maxrow;j++) { |
for (j=0;j<=maxrow;j++) { |
if (rowcont[j]!='') { |
if ((rowcont[j]!='') && (rowcont[j]!=undefined)) { |
data1=rowcont[j].split(':'); |
data1=rowcont[j].split(':'); |
rowcont[j]=''; |
rowcont[j]=''; |
for (k=0;k<data1.length;k++) { |
for (k=0;k<data1.length;k++) { |
if (obj[data1[k]].substring(0,2)!='e&') { |
if (obj[data1[k]].substring(0,2)!='e&') { |
if (rowcont[j]!='') { rowcont[j]+=':'; } |
if ((rowcont[j]!='') && (rowcont[j]!=undefined)) { |
|
rowcont[j]+=':'; |
|
} |
rowcont[j]+=data1[k]; |
rowcont[j]+=data1[k]; |
} |
} |
} |
} |
Line 2222 function condense() {
|
Line 2512 function condense() {
|
function load() { |
function load() { |
message("Loading"); |
message("Loading"); |
schedule('load'); |
schedule('load'); |
checkdef(); |
|
} |
} |
|
|
function finishload() { |
function finishload() { |
Line 2238 function finishload() {
|
Line 2527 function finishload() {
|
lastinfo=''; |
lastinfo=''; |
graphreset(); |
graphreset(); |
var inputstr=parent.server.document.forms.storage.output.value; |
var inputstr=parent.server.document.forms.storage.output.value; |
if (inputstr!='') { |
if ((inputstr!='') && (inputstr!=undefined)) { |
data1=inputstr.split('<&>'); |
data1=inputstr.split('<&>'); |
var k; |
var k; |
for (k=0;k<data1.length;k++) { |
for (k=0;k<data1.length;k++) { |
data2=data1[k].split('<:>'); |
data2=data1[k].split(':').join(':').split('<:>'); |
if (data2[0]=='graphdef') { graphdef=data2[1]; } |
if (data2[0]=='graphdef') { graphdef=data2[1]; } |
if (data2[0]=='maxcol') { maxcol=1*data2[1]; } |
if (data2[0]=='maxcol') { maxcol=1*data2[1]; } |
if (data2[0]=='maxrow') { maxrow=1*data2[1]; } |
if (data2[0]=='maxrow') { maxrow=1*data2[1]; } |
if (data2[0]=='obj') { obj[data2[1]]=data2[2]; } |
if (data2[0]=='obj') { obj[data2[1]]=data2[2]; } |
if (data2[0]=='objcont') { objcont[data2[1]]=data2[2]; } |
if (data2[0]=='objcont') { objcont[data2[1]]=data2[2]; } |
if (data2[0]=='objlinks') { objlinks[data2[1]]=data2[2]; } |
if (data2[0]=='objlinks') { objlinks[data2[1]]=data2[2]; } |
|
if (data2[0]=='objparms') { |
|
if (objparms[data2[1]]==undefined) { |
|
objparms[data2[1]]=data2[2]; |
|
} else { |
|
objparms[data2[1]]+=':'+data2[2]; |
|
} |
|
} |
if (data2[0]=='rowcont') { rowcont[data2[1]]=data2[2]; } |
if (data2[0]=='rowcont') { rowcont[data2[1]]=data2[2]; } |
if (data2[0]=='row') { row[data2[1]]=1*data2[2]; } |
if (data2[0]=='row') { row[data2[1]]=1*data2[2]; } |
if (data2[0]=='col') { col[data2[1]]=1*data2[2]; } |
if (data2[0]=='col') { col[data2[1]]=1*data2[2]; } |
Line 2264 function finishload() {
|
Line 2560 function finishload() {
|
} |
} |
} |
} |
|
|
|
// -------------------------------------------------------------- Parameter set |
|
|
|
function setparms(resid) { |
|
var options="scrollbars=1,resizable=1,menubar=0"; |
|
parmflag=1; |
|
data1=objcont[resid].split(':'); |
|
parm=open("/adm/ratparms?url="+data1[1]+"&parms="+objparms[resid]+ |
|
"&resid="+resid,"parmout",options); |
|
parm.focus(); |
|
} |
|
|
// -------------------------------------------------------------- Undo function |
// -------------------------------------------------------------- Undo function |
|
|
function undo() { |
function undo() { |
Line 2326 function wheelswitch() {
|
Line 2633 function wheelswitch() {
|
// --------------------------------------------- Checks if server frame defined |
// --------------------------------------------- Checks if server frame defined |
|
|
function checkdef() { |
function checkdef() { |
if (parent.server.document.forms.storage.output.value!=undefined) { |
if (parent.flag==1) { |
srvloaded(); |
srvloaded(); |
} |
} |
if ((finishdone==0) && (tim==0)) { setTimeout('checkdef()',100); } |
if ((finishdone==0) && (tim==0)) { setTimeout('checkdef()',100); } |
} |
} |
Line 2356 function schedule(action) {
|
Line 2663 function schedule(action) {
|
reqaction=action; |
reqaction=action; |
tim=0; |
tim=0; |
finishdone=0; |
finishdone=0; |
canceltim=setTimeout('tim=1;',20000) |
canceltim=setTimeout('tim=1;',20000); |
|
checkdef(); |
wait(); |
wait(); |
} |
} |
|
|
|
// ----------------------------------------------------- launch indexer browser |
|
|
|
function groupsearch() { |
|
alert('not yet implemented'); |
|
} |
|
|
|
function groupimport() { |
|
idxcheck('groupimport'); |
|
} |
|
|
// -------------------------------------------------------------- Store changes |
// -------------------------------------------------------------- Store changes |
|
|
function storechange() { |
function storechange() { |
var k; |
var k; |
|
parent.flag=0; |
parent.server.document.forms.storage.submit(); |
parent.server.document.forms.storage.submit(); |
schedule('save'); |
schedule('save'); |
} |
} |
Line 2412 function main() {
|
Line 2731 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(); |
|
} |
|
if (idx && !idx.closed) { |
|
srchclose(); |
|
} |
} |
} |
|
|
</script> |
</script> |
Line 2432 function leave() {
|
Line 2757 function leave() {
|
<a href="javascript:revert();">Revert</a> |
<a href="javascript:revert();">Revert</a> |
<a href="javascript:undo();">Undo</a> |
<a href="javascript:undo();">Undo</a> |
<a href="javascript:redo();">Redo</a> |
<a href="javascript:redo();">Redo</a> |
<a href="javascript:storechange();">Store</a> |
<a href="javascript:groupsearch();">Group Search</a> |
|
<a href="javascript:groupimport();">Group Import</a> |
|
<a href="javascript:storechange();">Save Map</a> |
</body> |
</body> |
</html> |
</html> |
|
|
|
|
|
|
|
|
|
|