version 1.98, 2003/05/23 16:37:30
|
version 1.109, 2003/10/12 22:02:44
|
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 59 var currentSymb='';
|
Line 60 var currentSymb='';
|
var reloadSymb=''; |
var reloadSymb=''; |
var currentStale=1; |
var currentStale=1; |
var menucltim; |
var menucltim; |
var noclient=0; |
|
|
|
var clockdelta=0; |
var clockdelta=0; |
|
|
Line 139 function advanceclock() {
|
Line 139 function advanceclock() {
|
} |
} |
|
|
function windowcheck() { |
function windowcheck() { |
if (noclient || (clientwindow==null || clientwindow.closed)) { |
if (clientwindow==null || clientwindow.closed) { |
clientwindow=window.open("http://"+clienthost+"/",'', |
clientwindow=window.open("http://"+clienthost+"/",'', |
"height=400,width=440,"+ |
"height=400,width=440,"+ |
"scrollbars=1,toolbar=1,status=1,resizable=1,location=1,"+ |
"scrollbars=1,toolbar=1,status=1,resizable=1,location=1,menubar=1,"+ |
"left=190,top=15,screenX=190,screenY=15"); |
"left=190,top=15,screenX=190,screenY=15"); |
|
clientwindow.name='loncapaclient'; |
} |
} |
clientwindow.name='loncapaclient'; |
|
clientwindow.menuwindow=self; |
|
noclient=0; |
|
extenddispclose(); |
extenddispclose(); |
} |
} |
|
|
Line 176 function logout () {
|
Line 174 function logout () {
|
lonchat.close(); |
lonchat.close(); |
} |
} |
if (autologout) { |
if (autologout) { |
clientwindow.window.location.href="http://"+clienthost+"/adm/logout"; |
go("/adm/logout"); |
} |
} |
} |
} |
|
|
Line 195 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 277 function go(url) {
|
Line 239 function go(url) {
|
statuslocked=0; |
statuslocked=0; |
this.document['led'].src="http://"+clienthost+imgpath+"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; |
clientwindow.window.location.href="http://"+clienthost+url; |
this.document.server.action="http://"+clienthost+url; |
noclient=0; |
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) { |
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'; |
|
} |
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=''; |
this.document.server.url.value=''; |
this.document.server.url.value=''; |
this.document.server.postsymb.value=''; |
this.document.server.postsymb.value=''; |
this.document.server.submit(); |
this.document.server.submit(); |
noclient=0; |
this.document.server.target='loncapaclient'; |
} |
} |
} |
} |
|
|
Line 310 function gocmd(url,cmd) {
|
Line 283 function gocmd(url,cmd) {
|
this.document.server.url.value=currentURL; |
this.document.server.url.value=currentURL; |
this.document.server.postsymb.value=currentSymb; |
this.document.server.postsymb.value=currentSymb; |
this.document.server.submit(); |
this.document.server.submit(); |
noclient=0; |
|
} |
} |
} |
} |
|
|
Line 382 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 407 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',"LONcatInfo",'height=320,width=280,resizeable=yes,scrollbars=yes,location=no,menubar=no,toolbar=no'); |
<script type="text/javascript"> |
|
//<!-- |
|
function bigdisplay(dt,db,i) { |
|
extdisp.document.writeln(dt+'<br />'+db); |
} |
} |
|
|
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 455 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 481 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> |