');
+ '');
data1=infostr.split('&');
if (data1[0]=='c') {
inf.document.write('Condition (');
@@ -1176,9 +1446,28 @@ function info(infostr) {
} else {
if (data1[0]=='r') {
data2=objcont[data1[1]].split(':');
- inf.document.write('');
+ url=data2[1];
+ ext=data2[2];
+ urlparts=url.split('.');
+ mime=urlparts[urlparts.length-1];
+ if (typeof(mime)=="undefined") { mime=''; }
+ if (ext=='true') { mime=''; }
+ if (mime!='') {
+ inf.document.write
+ (' ');
+ }
+ inf.document.write('');
if (data2[2]=='true') { inf.document.write('External '); }
- inf.document.write('Resource');
+ if (data2[3]=='start') {
+ inf.document.writeln('Start ');
+ } else {
+ if (data2[3]=='finish') {
+ inf.document.writeln('Finish ');
+ } else {
+ inf.document.writeln('Resource ');
+ }
+ }
if (data2[3]=='mandatory') {
inf.document.write(' (Mandatory)');
}
@@ -1206,7 +1495,7 @@ function info(infostr) {
}
inf.document.writeln('
');
inf.document.close();
- parent.focus();
+ parent.top.focus();
parent.mapout.focus();
notclear=0;
lastinfo=infostr;
@@ -1214,7 +1503,6 @@ function info(infostr) {
}
// ------------------------------------------------ "Escapes" out special chars
-
function escape(instring) {
var outstring='';
var thischar;
@@ -1222,7 +1510,7 @@ function escape(instring) {
for (k=0;k'+
- '');
+ '');
data1=infostr.split('&');
if (data1[0]=='c') {
inf.document.writeln('Condition ');
@@ -1307,7 +1695,7 @@ function handler(infostr) {
}
inf.document.writeln(
'opener.infoclear();opener.editmode=0;opener.draw('
- +');">Change to above values '
+ +');">Save Changes '
+' Reset '
+' ');
@@ -1319,6 +1707,11 @@ function handler(infostr) {
'Delete Link ');
+
+ inf.document.writeln('Insert Resource Into Link ');
} else {
if (data1[0]=='r') {
if (linkmode!=0) {
@@ -1329,18 +1722,31 @@ function handler(infostr) {
inf.document.writeln('Linked Resources ');
draw();
} else {
- inf.document.writeln('Resource ');
data2=objcont[data1[1]].split(':');
+ if (data2[3]=='start') {
+ inf.document.writeln('Start ');
+ } else {
+ if (data2[3]=='finish') {
+ inf.document.writeln('Finish ');
+ } else {
+ inf.document.writeln('Resource ');
+ }
+ }
inf.document.write(
- '');
+ insrestab(rrow[data2[1]],i,nr,data1[3]);
+
}
}
}
-// ---------------------------------- Sort objects to straighten graph or table
+// ----------------------------------------------------- Insert Resource Output
+function insrestab(irow,be,af,typ) {
+ parent.mapout.document.writeln(' '+
+ ' ');
+}
+// ---------------------------------------- Draw simple table instead of graph
+function simpletabledraw() {
+ var objsorted=new Array();
+ var robjs=new Array();
+ var iobjs=new Array();
+ var k;
+ var i;
+ var j;
+ var nr;
+ var ck;
+ var cck;
+ var mime;
+ var ext;
+ var url;
+ var urlparts=new Array;
+ var condid;
+ var sortstr=sortobjs();
+ if ((sortstr!='') && (typeof(sortstr)!="undefined")) {
+ objsorted=sortstr.split('&');
+ for (k=0;k');
+ url=data1[1];
+ ext=data1[2];
+ urlparts=url.split('.');
+ mime=urlparts[urlparts.length-1];
+ if (typeof(mime)=="undefined") { mime=''; }
+ if ((mime!='') && (ext!='true')) {
+ parent.mapout.document.write
+ (''+
+ '
');
+ }
+ parent.mapout.document.write(''+k+'
');
+ data2=obj[i].split('&');
+ parent.mapout.document.write('');
+
+ if (data1[3]=='start') {
+ parent.mapout.document.writeln('Start ');
+ }
+ if (data1[3]=='finish') {
+ parent.mapout.document.writeln('Finish ');
+ }
+ parent.mapout.document.write(
+ 'Title: '+data1[0]+' ');
+ parent.mapout.document.write(
+ 'URL: '+data1[1]+' '
+ +'');
+ for (j=2;j1) {
+ if (data3[1]==nr) {
+ cck='#AAAAAA';
+ if (data3[2]!=0) {
+ cck=condcolor((objcont[data3[2]].split(':'))[1]);
+ condid=data3[2];
+ } else {
+ condid='-';
+ }
+ parent.mapout.document.writeln(
+ 'Next ');
+ parent.mapout.document.writeln(' ');
+ }
+ }
+ }
+ for (j=2;j1) {
+ if ((data3[1]!=nr) && (data3[1]!=0)) {
+ cck='#AAAAAA';
+ if (data3[2]!=0) {
+ cck=condcolor((objcont[data3[2]].split(':'))[1]);
+ condid=data3[2];
+ } else {
+ condid='-';
+ }
+ parent.mapout.document.writeln(
+ 'To: '+robjs[data3[1]]+' ');
+ parent.mapout.document.writeln(' ');
+ }
+ }
+ }
+ parent.mapout.document.writeln('
');
+ }
+ } else {
+ parent.mapout.document.writeln(' No Resources ');
+ }
+}
+
+// ---------------------------------- Sort objects to straighten graph or table
function sortobjs() {
- message("Sorting Resources");
+ message("Sorting Resources: "+funny);
var k;
var ij;
var dol;
@@ -1679,7 +2335,9 @@ function sortobjs() {
}
if (objsort.length==0) { return ''; }
for (k=1;kallcolmax) { allcolmax=thiscolmax; }
thiscolmax=1;
}
kj=rowcont.length-1;
- obj[thisnewobj]='b&'+kj+'&'+thiscolmax+':0:0:0';
+ obj[thisnewobj]='b&'+kj+'&'+thiscolmax+':0:0:0';
+ if (thiscolmax>allcolmax) { allcolmax=thiscolmax; }
}
for (k=0;k');
var k;
for (k=0;k');
+ data2=data1[k].split(':').join(':').split('<:>');
if (data2[0]=='graphdef') { graphdef=data2[1]; }
if (data2[0]=='maxcol') { maxcol=1*data2[1]; }
if (data2[0]=='maxrow') { maxrow=1*data2[1]; }
if (data2[0]=='obj') { obj[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]=='objparms') {
+ if (typeof(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]=='row') { row[data2[1]]=1*data2[2]; }
if (data2[0]=='col') { col[data2[1]]=1*data2[2]; }
+ if (data2[0]=='mode') { mode=data2[1]; }
if (data2[0]=='tablemode') { tablemode=1*data2[1]; }
+ if (data2[0]=='zscale') { zscale=1*data2[1]; }
}
}
+ if (graphdef=='yes') {
+ for (k=1;k<=maxrow;k++) {
+ if (typeof(rowcont[k])=="undefined") { rowcont[k]=''; }
+ }
+ }
}
-// -------------------------------------------------------------- Undo function
+// -------------------------------------------------------------- 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
function undo() {
if (undopointer>1) {
undopointer--;
parent.server.document.forms.storage.output.value
=undostack[undopointer];
- load();
+ finishload();
undopointer--;
draw();
stored=0;
@@ -1850,13 +2548,12 @@ function undo() {
}
// -------------------------------------------------------------- Redo function
-
function redo() {
if (undopointer
-
-Toggle Display Mode
-Condense
-Straighten
-Revert
-Undo
-Redo
-Store
+
+
+
-
-
-
-
-