version 1.106, 2003/08/15 21:40:47
|
version 1.110, 2003/10/13 00:22:00
|
Line 41 Remote Control
|
Line 41 Remote Control
|
> |
> |
<LONCAPA_INTERNAL_LONHTTPD_PORT /> |
<LONCAPA_INTERNAL_LONHTTPD_PORT /> |
<script type="text/javascript"> |
<script type="text/javascript"> |
<!-- |
//<!-- |
var statustop = ''; |
var statustop = ''; |
var statusbot = ''; |
var statusbot = ''; |
var active = 0; |
var active = 0; |
Line 51 var statuslocked = 0;
|
Line 51 var statuslocked = 0;
|
if (lonhttpdport == null) { |
if (lonhttpdport == null) { |
var lonhttpdport='8080'; |
var lonhttpdport='8080'; |
} |
} |
|
|
var imgpath=':'+lonhttpdport+'/res/adm/pages/'; |
var imgpath=':'+lonhttpdport+'/res/adm/pages/'; |
var fontpath=':'+lonhttpdport+'/adm/lonLCDfont/'; |
var fontpath=':'+lonhttpdport+'/adm/lonLCDfont/'; |
var currentURL=''; |
var currentURL=''; |
Line 192 function display(utext,ltext) {
|
Line 193 function display(utext,ltext) {
|
showdisplay(utext,ltext); |
showdisplay(utext,ltext); |
} |
} |
|
|
function showdisplay(utext,ltext) { |
|
var i; var ch; |
|
dislocked=1; |
|
if (utext == null) { utext = '';} |
|
if (ltext == null) { ltext = '';} |
|
if (typeof(utext)!="string") { utext=''; } |
|
if (typeof(ltext)!="string") { ltext=''; } |
|
if ((utext=='') && (ltext=='')) { |
|
utext=statustop; |
|
ltext=statusbot; |
|
dislocked=0; |
|
} |
|
if (active) { |
|
for (i=0;i<=7;i++) { |
|
if (i<utext.length) { |
|
ch=utext.charAt(i); |
|
if (ch==' ') { ch='space'; } |
|
if (ch=='-') { ch='hyphen'; } |
|
if (ch==':') { ch='colon'; } |
|
if (ch=='/') { ch='slash'; } |
|
} else { ch='space'; } |
|
this.document['i'+i].src="http://"+clienthost+fontpath+ch+'.gif'; |
|
} |
|
for (i=0;i<=7;i++) { |
|
if (i<ltext.length) { |
|
ch=ltext.charAt(i); |
|
if (ch==' ') { ch='space'; } |
|
if (ch=='-') { ch='hyphen'; } |
|
if (ch==':') { ch='colon'; } |
|
if (ch=='/') { ch='slash'; } |
|
} else { ch='space'; } |
|
this.document['j'+i].src="http://"+clienthost+fontpath+ch+'.gif'; |
|
} |
|
} |
|
} |
|
|
|
function defdis() { |
function defdis() { |
this.window.focus(); |
this.window.focus(); |
display(); |
display(); |
Line 389 function drawwindow() {
|
Line 354 function drawwindow() {
|
extdisp.document.writeln( |
extdisp.document.writeln( |
'<tr><td align="center"><a href="javascript:opener.'+ |
'<tr><td align="center"><a href="javascript:opener.'+ |
hr[i]+';">>>><img align="absmiddle" border="0" src="'+ |
hr[i]+';">>>><img align="absmiddle" border="0" src="'+ |
this.document['b'+i].src+'" /><<<</a><br /> <br />'+ |
this.document['b'+i].src+'" /><<<</a><br /> <br />'); |
'<table hspace="0" border="0" cellspacing="1" cellpadding="0"><tr>'); |
bigdisplay(dt,db,i); |
|
extdisp.document.writeln('</td><td>'+ds[i]+'</td></tr>'); |
|
} |
|
} |
|
} |
|
extdisp.document.writeln('</table></body></html>'); |
|
extdisp.document.close(); |
|
} |
|
|
|
function edit_bookmarks() { |
|
go(''); |
|
w_BookmarkPal_flag=1; |
|
bookmarkpal=window.open("http://"+clienthost+"/adm/bookmarks", |
|
"BookmarkPal", "width=400,height=505,scrollbars=0"); |
|
} |
|
|
|
function catalog_info() { |
|
go(''); |
|
w_LONcatInfo_flag=1; |
|
loncatinfo=window.open(clientwindow.window.location.pathname+'.meta',"cat",'height=320,width=280,resizable=yes,scrollbars=yes,location=no,menubar=no,toolbar=no'); |
|
} |
|
|
|
function chat_win() { |
|
go(''); |
|
w_LONchat_flag=1; |
|
lonchat=window.open('/res/adm/pages/chatroom.html',"LONchat",'height=320,width=280,resizable=yes,location=no,menubar=no,toolbar=no'); |
|
} |
|
// --> |
|
</script> |
|
<block condition="&EXT('request.browser.textremote')!=1"> |
|
<script type="text/javascript"> |
|
//<!-- |
|
function bigdisplay(dt,db,i) { |
|
extdisp.document.writeln( |
|
'<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) { |
ch=dt[i].charAt(j); |
ch=dt[i].charAt(j); |
Line 414 function drawwindow() {
|
Line 413 function drawwindow() {
|
extdisp.document.writeln('<td><img border="0" src="http://' |
extdisp.document.writeln('<td><img border="0" src="http://' |
+clienthost+fontpath+ch+'.gif" /></td>'); |
+clienthost+fontpath+ch+'.gif" /></td>'); |
} |
} |
extdisp.document.writeln( |
extdisp.document.writeln('</tr></table>'); |
'</tr></table></td><td>'+ds[i]+'</td></tr>'); |
|
} |
|
} |
|
} |
|
extdisp.document.writeln('</table></body></html>'); |
|
extdisp.document.close(); |
|
} |
} |
|
|
function edit_bookmarks() { |
function showdisplay(utext,ltext) { |
go(''); |
var i; var ch; |
w_BookmarkPal_flag=1; |
dislocked=1; |
bookmarkpal=window.open("http://"+clienthost+"/adm/bookmarks", |
if (utext == null) { utext = '';} |
"BookmarkPal", "width=400,height=505,scrollbars=0"); |
if (ltext == null) { ltext = '';} |
|
if (typeof(utext)!="string") { utext=''; } |
|
if (typeof(ltext)!="string") { ltext=''; } |
|
if ((utext=='') && (ltext=='')) { |
|
utext=statustop; |
|
ltext=statusbot; |
|
dislocked=0; |
|
} |
|
if (active) { |
|
for (i=0;i<=7;i++) { |
|
if (i<utext.length) { |
|
ch=utext.charAt(i); |
|
if (ch==' ') { ch='space'; } |
|
if (ch=='-') { ch='hyphen'; } |
|
if (ch==':') { ch='colon'; } |
|
if (ch=='/') { ch='slash'; } |
|
} else { ch='space'; } |
|
this.document['i'+i].src="http://"+clienthost+fontpath+ch+'.gif'; |
|
} |
|
for (i=0;i<=7;i++) { |
|
if (i<ltext.length) { |
|
ch=ltext.charAt(i); |
|
if (ch==' ') { ch='space'; } |
|
if (ch=='-') { ch='hyphen'; } |
|
if (ch==':') { ch='colon'; } |
|
if (ch=='/') { ch='slash'; } |
|
} else { ch='space'; } |
|
this.document['j'+i].src="http://"+clienthost+fontpath+ch+'.gif'; |
|
} |
|
} |
} |
} |
|
//--> |
function catalog_info() { |
</script> |
go(''); |
</block> |
w_LONcatInfo_flag=1; |
<block condition="&EXT('request.browser.textremote')"> |
loncatinfo=window.open(clientwindow.window.location.pathname+'.meta',"cat",'height=320,width=280,resizable=yes,scrollbars=yes,location=no,menubar=no,toolbar=no'); |
<script type="text/javascript"> |
|
//<!-- |
|
function bigdisplay(dt,db,i) { |
|
extdisp.document.writeln(dt[i]+'<br />'+db[i]); |
} |
} |
|
|
function chat_win() { |
function showdisplay(utext,ltext) { |
go(''); |
var i; var ch; |
w_LONchat_flag=1; |
dislocked=1; |
lonchat=window.open('/res/adm/pages/chatroom.html',"LONchat",'height=320,width=280,resizable=yes,location=no,menubar=no,toolbar=no'); |
if (utext == null) { utext = '';} |
|
if (ltext == null) { ltext = '';} |
|
if (typeof(utext)!="string") { utext=''; } |
|
if (typeof(ltext)!="string") { ltext=''; } |
|
if ((utext=='') && (ltext=='')) { |
|
utext=statustop; |
|
ltext=statusbot; |
|
dislocked=0; |
|
} |
|
if (active) { |
|
self.document.forms.disp.topdisplay.value=utext; |
|
self.document.forms.disp.botdisplay.value=ltext; |
|
} |
} |
} |
// --> |
//--> |
</script> |
</script> |
|
</block> |
<center> |
<center> |
<table hspace="0" border="0" cellspacing="0" cellpadding="0"> |
<table hspace="0" border="0" cellspacing="0" cellpadding="0"> |
<tr><td> |
<tr><td> |
Line 462 function chat_win() {
|
Line 500 function chat_win() {
|
</center> |
</center> |
|
|
<center> |
<center> |
|
<block condition="&EXT('request.browser.textremote')!=1"> |
<table hspace="1" border="0" cellspacing="0" cellpadding="1"> |
<table hspace="1" border="0" cellspacing="0" cellpadding="1"> |
<tr><td bgcolor="#666666"> |
<tr><td bgcolor="#666666"> |
<table hspace="0" border="0" cellspacing="1" cellpadding="0"> |
<table hspace="0" border="0" cellspacing="1" cellpadding="0"> |
Line 488 function chat_win() {
|
Line 527 function chat_win() {
|
</table> |
</table> |
</td></tr> |
</td></tr> |
</table> |
</table> |
|
</block> |
|
<block condition="&EXT('request.browser.textremote')"> |
|
<font size="1"> |
|
<form name="disp"> |
|
<input type="text" name="topdisplay" size="14" value="LON-CAPA" /><br /> |
|
<input type="text" name="botdisplay" size="14" value="" /> |
|
</form> |
|
</font> |
|
</block> |
|
|
</center> |
</center> |
|
|
<center> |
<center> |