version 1.102, 2003/06/06 02:24:49
|
version 1.114, 2004/08/23 21:05:03
|
Line 38 Remote Control
|
Line 38 Remote Control
|
background="remotebg.gif" |
background="remotebg.gif" |
onUnload="collapse();" |
onUnload="collapse();" |
onLoad="activate();" |
onLoad="activate();" |
|
style="{background-repeat: no-repeat;}" |
> |
> |
<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 52 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 59 var currentSymb='';
|
Line 61 var currentSymb='';
|
var reloadSymb=''; |
var reloadSymb=''; |
var currentStale=1; |
var currentStale=1; |
var menucltim; |
var menucltim; |
|
|
var clockdelta=0; |
var clockdelta=0; |
|
|
var w_extdisp_flag=-1; |
var w_extdisp_flag=-1; |
Line 79 var w_bmquery_flag=-1;
|
Line 80 var w_bmquery_flag=-1;
|
var w_BookmarkPal_flag=-1; |
var w_BookmarkPal_flag=-1; |
var w_LONcatInfo_flag=-1; |
var w_LONcatInfo_flag=-1; |
var w_LONchat_flag=-1; |
var w_LONchat_flag=-1; |
|
var w_loncapanav_flag=-1; |
// 1 means currently open |
// 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 |
Line 101 for (var i=1;i<=3;i++) {
|
Line 103 for (var i=1;i<=3;i++) {
|
|
|
var clienthost=window.location.host; |
var clienthost=window.location.host; |
var clientwindow=opener; |
var clientwindow=opener; |
|
var navwindow; |
|
|
function syncclock(servertime) { |
function syncclock(servertime) { |
var clientclock=new Date; |
var clientclock=new Date; |
Line 148 function windowcheck() {
|
Line 151 function windowcheck() {
|
extenddispclose(); |
extenddispclose(); |
} |
} |
|
|
|
function navwindowcheck() { |
|
if (navwindow==null || navwindow.closed) { |
|
navwindow=window.open("http://"+clienthost+"/adm/navmaps#curloc", |
|
"loncapanav","height=600,width=400,scrollbars=1"); |
|
} |
|
} |
|
|
function collapse() { |
function collapse() { |
if (autologout) { |
if (autologout) { |
go('/adm/remote?action=collapse'); |
go('/adm/remote?action=collapse'); |
Line 192 function display(utext,ltext) {
|
Line 202 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 276 function go(url) {
|
Line 250 function go(url) {
|
if (url!='' && url!= null) { |
if (url!='' && url!= null) { |
currentURL = null; |
currentURL = null; |
currentSymb= null; |
currentSymb= null; |
|
this.document.server.target='loncapaclient'; |
this.document.server.action="http://"+clienthost+url; |
this.document.server.action="http://"+clienthost+url; |
this.document.server.postdata.value=''; |
this.document.server.postdata.value=''; |
this.document.server.command.value=''; |
this.document.server.command.value=''; |
Line 285 function go(url) {
|
Line 260 function go(url) {
|
} |
} |
} |
} |
|
|
function gopost(url,postdata) { |
function gonav(url) { |
|
if (w_loncapanav_flag != 1) { |
|
go(url); |
|
} else { |
|
navwindowcheck(); |
|
statuslocked=0; |
|
this.document['led'].src="http://"+clienthost+imgpath+"ledsend.gif"; |
|
if (url!='' && url!= null) { |
|
this.document.server.action="http://"+clienthost+url; |
|
this.document.server.target="loncapanav"; |
|
this.document.server.postdata.value=''; |
|
this.document.server.command.value=''; |
|
this.document.server.url.value=''; |
|
this.document.server.postsymb.value=''; |
|
this.document.server.submit(); |
|
} |
|
} |
|
} |
|
|
|
function gopost(url,postdata,makenewwin) { |
windowcheck(); |
windowcheck(); |
statuslocked=0; |
statuslocked=0; |
this.document['led'].src="http://"+clienthost+imgpath+"ledsend.gif"; |
this.document['led'].src="http://"+clienthost+imgpath+"ledsend.gif"; |
if (url!='') { |
if (url!='') { |
|
if (makenewwin) { |
|
var LONcomWin=window.open("http://"+clienthost+"/adm/rat/empty.html", |
|
'LONcom', |
|
"height=400,width=540,"+ |
|
"scrollbars=1,toolbar=0,status=0,resizable=1,location=0,menubar=0"); |
|
this.document.server.target='LONcom'; |
|
} else { |
|
this.document.server.target='loncapaclient'; |
|
} |
this.document.server.action="http://"+clienthost+url; |
this.document.server.action="http://"+clienthost+url; |
this.document.server.postdata.value=postdata; |
this.document.server.postdata.value=postdata; |
this.document.server.command.value=''; |
this.document.server.command.value=''; |
Line 304 function gocmd(url,cmd) {
|
Line 307 function gocmd(url,cmd) {
|
statuslocked=0; |
statuslocked=0; |
this.document['led'].src="http://"+clienthost+imgpath+"ledsend.gif"; |
this.document['led'].src="http://"+clienthost+imgpath+"ledsend.gif"; |
if (url!='') { |
if (url!='') { |
|
this.document.server.target='loncapaclient'; |
this.document.server.action="http://"+clienthost+url; |
this.document.server.action="http://"+clienthost+url; |
this.document.server.postdata.value=''; |
this.document.server.postdata.value=''; |
this.document.server.command.value=cmd; |
this.document.server.command.value=cmd; |
Line 381 function drawwindow() {
|
Line 385 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 406 function drawwindow() {
|
Line 444 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(''); |
<display> |
w_LONcatInfo_flag=1; |
return '<script type="text/javascript">w_loncapanav_flag=\''.('on' eq &EXT('user.environment.remotenavmap')).'\';</script>'; |
loncatinfo=window.open(clientwindow.window.location.pathname+'.meta',"LONcatInfo",'height=320,width=280,resizeable=yes,scrollbars=yes,location=no,menubar=no,toolbar=no'); |
</display> |
|
</block> |
|
<block condition="&EXT('request.browser.textremote')"> |
|
<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,resizeable=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 454 function chat_win() {
|
Line 534 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 480 function chat_win() {
|
Line 561 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> |