version 1.50, 2002/03/06 20:30:07
|
version 1.53, 2002/05/14 21:09:14
|
Line 124 var parmflag=-1; // 1 means currently op
|
Line 124 var parmflag=-1; // 1 means currently op
|
// -1 means never yet opened/defined |
// -1 means never yet opened/defined |
|
|
var iconpath='/adm/lonIcons/'; |
var iconpath='/adm/lonIcons/'; |
|
var raticons='/adm/rat/'; |
|
|
function testfunction() { |
function testfunction() { |
inf.document.forms.resinfo.elements.t.value="ABC"; |
inf.document.forms.resinfo.elements.t.value="ABC"; |
Line 970 function drawcell (rtype,ctype,what,cm,o
|
Line 971 function drawcell (rtype,ctype,what,cm,o
|
} |
} |
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="resource.gif">'); |
+' src="'+raticons+'resource.gif">'); |
if ((mime!='') && (ext!='true')) { |
if ((mime!='') && (ext!='true')) { |
parent.mapout.document.write |
parent.mapout.document.write |
('<br><img border=0 src="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 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 src="'+iconpath+mime+'.gif">'+ |
'<img border=0 src="right.gif">'); |
'<img border=0 src="'+raticons+'right.gif">'); |
} else { |
} else { |
parent.mapout.document.write |
parent.mapout.document.write |
('<br><img border=0 src="middle.gif">'); |
('<br><img border=0 src="'+raticons+'middle.gif">'); |
} |
} |
parent.mapout.document.write |
parent.mapout.document.write |
('<br><img border=0 src="bottom.gif">'); |
('<br><img border=0 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="condition.gif">'); |
+' src="'+raticons+'condition.gif">'); |
} else { |
} else { |
if (what=='rs:') { |
if (what=='rs:') { |
mime=''; |
mime=''; |
Line 1003 function drawcell (rtype,ctype,what,cm,o
|
Line 1004 function drawcell (rtype,ctype,what,cm,o
|
} |
} |
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="start.gif">'); |
+' src="'+raticons+'start.gif">'); |
if ((mime!='') && (ext!='true')) { |
if ((mime!='') && (ext!='true')) { |
parent.mapout.document.write |
parent.mapout.document.write |
('<br><img border=0 src="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 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 src="'+iconpath+mime+'.gif">'+ |
'<img border=0 src="right.gif">'); |
'<img border=0 src="'+raticons+'right.gif">'); |
} else { |
} else { |
parent.mapout.document.write |
parent.mapout.document.write |
('<br><img border=0 src="middle.gif">'); |
('<br><img border=0 src="'+raticons+'middle.gif">'); |
} |
} |
parent.mapout.document.write |
parent.mapout.document.write |
('<br><img border=0 src="bottom.gif">'); |
('<br><img border=0 src="'+raticons+'bottom.gif">'); |
|
|
} else { |
} else { |
if (what=='rf:') { |
if (what=='rf:') { |
Line 1032 function drawcell (rtype,ctype,what,cm,o
|
Line 1033 function drawcell (rtype,ctype,what,cm,o
|
} |
} |
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="finish.gif">'); |
+' src="'+raticons+'finish.gif">'); |
if ((mime!='') && (ext!='true')) { |
if ((mime!='') && (ext!='true')) { |
parent.mapout.document.write |
parent.mapout.document.write |
('<br><img border=0 src="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 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 src="'+iconpath+mime+'.gif">'+ |
'<img border=0 src="right.gif">'); |
'<img border=0 src="'+raticons+'right.gif">'); |
} else { |
} else { |
parent.mapout.document.write |
parent.mapout.document.write |
('<br><img border=0 src="middle.gif">'); |
('<br><img border=0 src="'+raticons+'middle.gif">'); |
} |
} |
parent.mapout.document.write |
parent.mapout.document.write |
('<br><img border=0 src="bottom.gif">'); |
('<br><img border=0 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="'+rtype+'.'+ctype+'.'+what+'.gif">'); |
+' src="'+raticons+rtype+'.'+ctype+'.'+what+'.gif">'); |
} |
} |
} |
} |
} |
} |
Line 1070 function drawcell (rtype,ctype,what,cm,o
|
Line 1071 function drawcell (rtype,ctype,what,cm,o
|
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="'+rtype+'.'+ctype+'.empty.gif"></a>'); |
+' src="'+raticons+rtype+'.'+ctype+'.empty.gif"></a>'); |
} |
} |
parent.mapout.document.write('</td>'); |
parent.mapout.document.write('</td>'); |
} |
} |
Line 1421 function info(infostr) {
|
Line 1422 function info(infostr) {
|
inf.document.clear(); |
inf.document.clear(); |
inf.document.writeln( |
inf.document.writeln( |
'<html><body bgcolor="#FFFFFF">'+ |
'<html><body bgcolor="#FFFFFF">'+ |
'<table><tr><td width=32><img src="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 1509 function escape(instring) {
|
Line 1510 function escape(instring) {
|
for (k=0;k<instring.length;k++) { |
for (k=0;k<instring.length;k++) { |
thischar=instring.charAt(k); |
thischar=instring.charAt(k); |
if (thischar==':') { thischar=':'; } |
if (thischar==':') { thischar=':'; } |
if (thischar=='"') { thischar='"'; } |
if (thischar=='"') { thischar='"'; }// " |
if (thischar=="'") { thischar='''; } |
if (thischar=="'") { thischar='''; } |
if (thischar==',') { thischar=','; } |
if (thischar==',') { thischar=','; } |
outstring+=thischar; |
outstring+=thischar; |
} |
} |
return outstring; |
return outstring; |
} |
} |
// There must be a way to get rid of the odd number of "s |
|
|
|
// -------------------------------------------------- Insert resource into link |
// -------------------------------------------------- Insert resource into link |
function insertreslink(infostr) { |
function insertreslink(infostr) { |
Line 1658 function handler(infostr) {
|
Line 1658 function handler(infostr) {
|
inf.document.clear(); |
inf.document.clear(); |
inf.document.writeln( |
inf.document.writeln( |
'<html><body bgcolor="#FFFFFF">'+ |
'<html><body bgcolor="#FFFFFF">'+ |
'<table><tr><td width=32><img src="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>'); |
Line 1830 function empty(rid,k) {
|
Line 1830 function empty(rid,k) {
|
inf.document.clear(); |
inf.document.clear(); |
inf.document.writeln( |
inf.document.writeln( |
'<html><body bgcolor="#FFFFFF">'+ |
'<html><body bgcolor="#FFFFFF">'+ |
'<table><tr><td width=32><img src="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('+ |
Line 2359 function sortobjs() {
|
Line 2359 function sortobjs() {
|
data2=objsort[j].split(':'); |
data2=objsort[j].split(':'); |
dol=data1.length; |
dol=data1.length; |
dtl=data2.length; |
dtl=data2.length; |
if (dol+dtl<200) { |
if (dol+dtl<1000) { |
for (kj=1;kj<dol;kj++) { |
for (kj=1;kj<dol;kj++) { |
if (data1[kj]==data2[0]) { |
if (data1[kj]==data2[0]) { |
for (ij=1;ij<dtl;ij++) { |
for (ij=1;ij<dtl;ij++) { |
Line 2707 function leave() {
|
Line 2707 function leave() {
|
<td bgcolor="#ffffcc"><a href="javascript:redo();"><b>R</b>edo</a> </td> |
<td bgcolor="#ffffcc"><a href="javascript:redo();"><b>R</b>edo</a> </td> |
<td bgcolor="#ffffcc"><a href="javascript:groupsearch();"><b>G</b>roup search</a> </td> |
<td bgcolor="#ffffcc"><a href="javascript:groupsearch();"><b>G</b>roup search</a> </td> |
<td bgcolor="#ffffcc"><a href="javascript:groupimport();"><b>G</b>roup import</a> </td> |
<td bgcolor="#ffffcc"><a href="javascript:groupimport();"><b>G</b>roup import</a> </td> |
<td bgcolor="#ffcccc"><a href="javascript:storechange();"><b>S</b>ave map</a> </td> |
<td bgcolor="#ffffcc"><a href="javascript:graphdef='no';save();storechange();"><b>S</b>ave map</a> </td> |
|
<td bgcolor="#ccffcc"><a href="javascript:storechange();"><b>S</b>ave map and layout</a> </td> |
</tr></table> |
</tr></table> |
</td></tr></table> |
</td></tr></table> |
<script> |
<script> |