version 1.77, 2002/11/13 16:55:29
|
version 1.82, 2002/12/11 18:41:04
|
Line 243 function setstatus(tp,bt) {
|
Line 243 function setstatus(tp,bt) {
|
defdis(); |
defdis(); |
} |
} |
|
|
function is_editable_resource (url) { |
|
// figure out if this a specific resource version |
|
var Chunks = url.split('.'); |
|
var tmp = Chunks[Chunks.length-1]; |
|
if ((Chunks.length > 1) && (Math.floor(tmp) == tmp)) { |
|
return false; |
|
} |
|
// see if this is actually in resource space |
|
var SlashChunks=url.split('/'); |
|
if (SlashChunks[1]!='res') { return false; } |
|
return true; |
|
} |
|
|
|
function cstrgo(currenturl,defaulturl) { |
|
windowcheck(); |
|
var url; |
|
if ((currenturl == null) || |
|
(currenturl == '') || |
|
(! is_editable_resource(currenturl))) { |
|
url = defaulturl; |
|
} else { |
|
var SlashChunks=currenturl.split('/'); |
|
SlashChunks[1]='priv'; |
|
var i; |
|
for (i=2;i<SlashChunks.length;i++) { |
|
SlashChunks[i]=SlashChunks[i+1]; |
|
} |
|
SlashChunks.length--; |
|
url=SlashChunks.join('/'); |
|
} |
|
this.document['led'].src="ledsend.gif"; |
|
if (url != '') { |
|
clientwindow.window.location.href="http://"+clienthost+url; |
|
} |
|
} |
|
|
|
function go(url) { |
function go(url) { |
windowcheck(); |
windowcheck(); |
statuslocked=0; |
statuslocked=0; |
this.document['led'].src="ledsend.gif"; |
this.document['led'].src="http://"+clienthost+imgpath+"ledsend.gif"; |
if (url!='' && url!= null) { |
if (url!='' && url!= null) { |
currentURL = null; |
currentURL = null; |
currentSymb= null; |
currentSymb= null; |
Line 368 function extenddisp() {
|
Line 332 function extenddisp() {
|
go(''); |
go(''); |
w_extdisp_flag=1; |
w_extdisp_flag=1; |
extdisp=window.open("http://"+clienthost+"/adm/rat/empty.html", |
extdisp=window.open("http://"+clienthost+"/adm/rat/empty.html", |
"ExtDisp", "width=400,height=450"); |
"ExtDisp", "scrollbars=1,width=400,height=450"); |
extdisp.document.clear(); |
extdisp.document.clear(); |
extdisp.document.writeln( |
extdisp.document.writeln( |
'<html><body bgcolor="#666666" text="#DDDDDD" link="#666666" '+ |
'<html><body bgcolor="#666666" text="#DDDDDD" link="#EEEEEE" '+ |
'onUnload="opener.w_extdisp_flag=-1;">'+ |
'onUnload="opener.w_extdisp_flag=-1;">'+ |
'<h2>LON-CAPA Extended Display Remote Control</h2>'+ |
'<h2>LON-CAPA Extended Display Remote Control</h2>'+ |
'<script>var currentURL="'+currentURL+'";self.focus();</script>'+ |
'<script>var currentURL="'+currentURL+'";self.focus();</script>'+ |
Line 381 function extenddisp() {
|
Line 345 function extenddisp() {
|
if (typeof(ds[i])!='undefined') { |
if (typeof(ds[i])!='undefined') { |
if (ds[i]!='') { |
if (ds[i]!='') { |
extdisp.document.writeln( |
extdisp.document.writeln( |
'<tr><td><a href="javascript:opener.'+ |
'<tr><td align="center"><a href="javascript:opener.'+ |
hr[i]+';"><img border="0" src="'+ |
hr[i]+';">>>><img align="absmiddle" border="0" src="'+ |
this.document['b'+i].src+'" /></a><br />'+ |
this.document['b'+i].src+'" /><<<</a><br /> <br />'+ |
'<table hspace="0" border="0" cellspacing="1" cellpadding="0"><tr>'); |
'<table hspace="0" border="0" cellspacing="1" cellpadding="0"><tr>'); |
for (var j=0;j<=7;j++) { |
for (var j=0;j<=7;j++) { |
if (j<dt[i].length) { |
if (j<dt[i].length) { |
Line 435 function catalog_info() {
|
Line 399 function catalog_info() {
|
<tr><td> |
<tr><td> |
<a href="javascript:defdis();" |
<a href="javascript:defdis();" |
onMouseOver="defdis();" |
onMouseOver="defdis();" |
><img border="0" width="80" height="50" src="title.gif"></a> |
><img border="0" width="80" height="50" src="title.gif" /></a> |
</td><td> |
</td><td> |
<img border="0" width="50" height="50" name="led" src="ledoff.gif"> |
<img border="0" width="50" height="50" name="led" src="ledoff.gif" /> |
</td></tr> |
</td></tr> |
</table> |
</table> |
</center> |
</center> |
Line 456 function catalog_info() {
|
Line 420 function catalog_info() {
|
<td><a href="javascript:defdis();" onMouseOver="defdis();"><img border="0" name="i0" width="15" height="19" src="/adm/lonLCDfont/l.gif" /></a></td> |
<td><a href="javascript:defdis();" onMouseOver="defdis();"><img border="0" name="i0" width="15" height="19" src="/adm/lonLCDfont/l.gif" /></a></td> |
<td><a href="javascript:defdis();" onMouseOver="defdis();"><img border="0" name="i1" width="15" height="19" src="/adm/lonLCDfont/o.gif" /></a></td> |
<td><a href="javascript:defdis();" onMouseOver="defdis();"><img border="0" name="i1" width="15" height="19" src="/adm/lonLCDfont/o.gif" /></a></td> |
<td><a href="javascript:defdis();" onMouseOver="defdis();"><img border="0" name="i2" width="15" height="19" src="/adm/lonLCDfont/n.gif" /></a></td> |
<td><a href="javascript:defdis();" onMouseOver="defdis();"><img border="0" name="i2" width="15" height="19" src="/adm/lonLCDfont/n.gif" /></a></td> |
<td><a href="javascript:defdis();" onMouseOver="defdis();"><img border="0" name="i3" width="15" height="19" src="/adm/lonLCDfont/hyphen.gif"></a></td> |
<td><a href="javascript:defdis();" onMouseOver="defdis();"><img border="0" name="i3" width="15" height="19" src="/adm/lonLCDfont/hyphen.gif" /></a></td> |
<td><a href="javascript:defdis();" onMouseOver="defdis();"><img border="0" name="i4" width="15" height="19" src="/adm/lonLCDfont/c.gif" /></a></td> |
<td><a href="javascript:defdis();" onMouseOver="defdis();"><img border="0" name="i4" width="15" height="19" src="/adm/lonLCDfont/c.gif" /></a></td> |
<td><a href="javascript:defdis();" onMouseOver="defdis();"><img border="0" name="i5" width="15" height="19" src="/adm/lonLCDfont/a.gif" /></a></td> |
<td><a href="javascript:defdis();" onMouseOver="defdis();"><img border="0" name="i5" width="15" height="19" src="/adm/lonLCDfont/a.gif" /></a></td> |
<td><a href="javascript:defdis();" onMouseOver="defdis();"><img border="0" name="i6" width="15" height="19" src="/adm/lonLCDfont/p.gif" /></a></td> |
<td><a href="javascript:defdis();" onMouseOver="defdis();"><img border="0" name="i6" width="15" height="19" src="/adm/lonLCDfont/p.gif" /></a></td> |