Click to EditClick to insert resources, columns and rows
'
+ '
Click to EditClick in a light gray area '
+ +'to insert resources, columns and rows
'
);
+ }
}
inf.document.writeln('
');
inf.document.close();
- parent.focus();
+ if (srchflag==1) {
+ srchclose();
+ }
+ if (idxflag==1) {
+ idxclose();
+ }
+ if (parmflag==1) {
+ parmclose();
+ }
+ parent.top.focus();
parent.mapout.focus();
notclear=1;
lastinfo='';
}
}
-// --------------------------------------------------- Prints out resource info
+// ------------------------------------------------------------ Open inf window
+function infopen() {
+ var options="scrollbars=1,resizable=1,menubar=0,width=400,height=300";
+ inf=open("","infout",options);
+}
+// -------------------------------------------------------- Do inf status check
+function infcheck() {
+ if (inf.closed) {
+ infopen();
+ }
+}
+
+// --------------------------------------------------- Prints out resource info
function info(infostr) {
+ var mime='';
+ var ext;
+ var urlparts=new Array;
+ var url='';
if ((editmode!=1) && (infostr!=lastinfo)) {
notclear=1;
- var options="scrollbars=1,resizable=1,menubar=0,width=400,height=300";
- var inf=open("","infout",options);
+ infcheck();
inf.document.clear();
inf.document.writeln(
''+
- '
');
+ '
');
data1=infostr.split('&');
if (data1[0]=='c') {
inf.document.write('Condition (');
@@ -1176,9 +1452,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 +1501,7 @@ function info(infostr) {
}
inf.document.writeln('
');
inf.document.close();
- parent.focus();
+ parent.top.focus();
parent.mapout.focus();
notclear=0;
lastinfo=infostr;
@@ -1214,7 +1509,6 @@ function info(infostr) {
}
// ------------------------------------------------ "Escapes" out special chars
-
function escape(instring) {
var outstring='';
var thischar;
@@ -1222,7 +1516,7 @@ function escape(instring) {
for (k=0;k
Group Copy from Map
'+
+ '');
+
+ copydx.document.writeln('');
+ copydx.focus();
+}
+
+// --------------------------------------------------------- Open search window
+function srchopen(mode) {
+ var options="scrollbars=1,resizable=1,menubar=0";
+ srchmode=mode;
+ srchflag=1;
+ srch=open("/adm/searchcat?launch=1&mode=rat&catalogmode="+mode,"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(mode);
+ }
+ srch.focus();
+}
+
+// -------------------------------------------------------- Do idx status check
+function idxcheck(mode) {
+ if (!idx || idx.closed || idxmode!=mode) {
+ idxopen(mode);
+ }
+ idx.focus();
+}
+
+// -------------------------------------------------------- Do idx status check
+function copydxcheck(mode) {
+ if (!copydx || copydx.closed || copydxmode!=mode) {
+ copydxopen(mode);
+ }
+ copydx.focus();
+}
+
+// ---------------------------------------------------- Handles "click to edit"
function handler(infostr) {
var k;
editmode=1;
notclear=1;
- var options="scrollbars=1,resizable=1,menubar=0,width=400,height=300";
- var inf=open("","infout",options);
+ infcheck();
inf.document.clear();
inf.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