version 1.37, 2001/06/26 20:42:18
|
version 1.39, 2001/06/29 21:57:46
|
Line 15 March/April 01 Scott Harrison
|
Line 15 March/April 01 Scott Harrison
|
04/20 Gerd Kortemeyer |
04/20 Gerd Kortemeyer |
04/30 Scott Harrison |
04/30 Scott Harrison |
05/31 Scott Harrison |
05/31 Scott Harrison |
06/11,06/25 Gerd Kortemeyer |
06/11,06/25,06/27,06/28,06/29 Gerd Kortemeyer |
--> |
--> |
|
|
|
|
Line 93 var parm;
|
Line 93 var parm;
|
var parmflag=-1; // 1 means currently open |
var parmflag=-1; // 1 means currently open |
// 0 means closed (but has been open) |
// 0 means closed (but has been open) |
// -1 means never yet opened/defined |
// -1 means never yet opened/defined |
|
|
|
var iconpath='/adm/lonIcons/'; |
|
|
function testfunction() { |
function testfunction() { |
inf.document.forms.resinfo.elements.t.value="ABC"; |
inf.document.forms.resinfo.elements.t.value="ABC"; |
Line 937 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 mimetype; |
|
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!='') && (what!=undefined)) { |
if ((what!='') && (what!=undefined)) { |
if ((obj1!='') && (obj1!=undefined)) { |
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]; |
|
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!='') { |
|
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 1340 function infcheck() {
|
Line 1370 function infcheck() {
|
// --------------------------------------------------- Prints out resource info |
// --------------------------------------------------- Prints out resource info |
|
|
function info(infostr) { |
function info(infostr) { |
|
var mime=''; |
|
var urlparts=new Array; |
|
var url=''; |
if ((editmode!=1) && (infostr!=lastinfo)) { |
if ((editmode!=1) && (infostr!=lastinfo)) { |
notclear=1; |
notclear=1; |
infcheck(); |
infcheck(); |
Line 1370 function info(infostr) {
|
Line 1403 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]; |
|
urlparts=url.split('.'); |
|
mime=urlparts[urlparts.length-1]; |
|
if (mime==undefined) { 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 1626 function handler(infostr) {
|
Line 1668 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 1669 function handler(infostr) {
|
Line 1711 function handler(infostr) {
|
'<form name=resinfo><table><tr><td>Title:</td><td colspan=2>' |
'<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 colspan=2>' |
+'<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'); |
Line 1677 function handler(infostr) {
|
Line 1718 function handler(infostr) {
|
inf.document.write('></td><td align=right>' |
inf.document.write('></td><td align=right>' |
+'<a href="javascript:opener.idxcheck(\'interactive\')">Browse</a> ' |
+'<a href="javascript:opener.idxcheck(\'interactive\')">Browse</a> ' |
+'<a href="javascript:opener' |
+'<a href="javascript:opener' |
+'.srchcheck(\'interactive\')">Search</a></td></tr>' |
+'.srchcheck(\'interactive\')">Search</a></td></tr>'); |
+'<tr><td colspan=3>' |
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 1691 function handler(infostr) {
|
Line 1733 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=3><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] |
Line 1704 function handler(infostr) {
|
Line 1742 function handler(infostr) {
|
+'+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 1748 function handler(infostr) {
|
Line 1786 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 1818 function empty(rid,k) {
|
Line 1856 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 1946 function tabledraw() {
|
Line 1984 function tabledraw() {
|
var ck; |
var ck; |
var cck; |
var cck; |
var condid; |
var condid; |
|
var url=''; |
|
var mime=''; |
|
var urlparts=new Array; |
var sortstr=sortobjs(); |
var sortstr=sortobjs(); |
insrestab(1,-1,-1,''); |
insrestab(1,-1,-1,''); |
if ((sortstr!='') && (sortstr!=undefined)) { |
if ((sortstr!='') && (sortstr!=undefined)) { |
Line 1964 function tabledraw() {
|
Line 2005 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]; |
|
urlparts=url.split('.'); |
|
mime=urlparts[urlparts.length-1]; |
|
if (mime==undefined) { mime=''; } |
|
if (mime!='') { |
|
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 1973 function tabledraw() {
|
Line 2026 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 1983 function tabledraw() {
|
Line 2037 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 2005 function tabledraw() {
|
Line 2060 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 2019 function tabledraw() {
|
Line 2070 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 2168 function simpletabledraw() {
|
Line 2219 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]; |
+'">'); |
urlparts=url.split('.'); |
|
mime=urlparts[urlparts.length-1]; |
|
if (mime==undefined) { mime=''; } |
|
if (mime!='') { |
|
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 2638 function leave() {
|
Line 2700 function leave() {
|
<a href="javascript:redo();">Redo</a> |
<a href="javascript:redo();">Redo</a> |
<a href="javascript:groupsearch();">Group Search</a> |
<a href="javascript:groupsearch();">Group Search</a> |
<a href="javascript:groupimport();">Group Import</a> |
<a href="javascript:groupimport();">Group Import</a> |
<a href="javascript:storechange();">Store</a> |
<a href="javascript:storechange();">Save Map</a> |
</body> |
</body> |
</html> |
</html> |