');
+ 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+' | ');
+ insrestab(rrow[data2[1]],i,nr,data1[3]);
+
}
- alert("Table mode not yet implemented");
+ }
}
-// ------------------------------------------- Sort objects to straighten graph
+// ----------------------------------------------------- Insert Resource Output
+function insrestab(irow,be,af,typ) {
+ parent.mapout.document.writeln(' | '+
+ ' |
');
+}
-function graphopt() {
+// ---------------------------------------- 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: "+funny);
var k;
var ij;
+ var dol;
+ var dtl;
var kj;
+ var sortthis=0;
var objsort=new Array();
- var objsorted=new Array();
- condense();
- graphreset();
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;
@@ -1615,13 +2548,12 @@ function undo() {
}
// -------------------------------------------------------------- Redo function
-
function redo() {
if (undopointer
-
-Toggle Display Mode
-Condense
-Straighten
-Revert
-Undo
-Redo
-Store
+
+
+
-
-
-
-
-