version 1.86, 2003/02/13 20:35:39
|
version 1.94, 2003/04/11 15:28:23
|
Line 36 Remote Control
|
Line 36 Remote Control
|
|
|
<body bgcolor="#BBBBBB" |
<body bgcolor="#BBBBBB" |
background="remotebg.gif" |
background="remotebg.gif" |
onUnload="logout();" |
onUnload="collapse();" |
onLoad="activate();" |
onLoad="activate();" |
> |
> |
<font size="1"> |
<font size="1"> |
|
<LONCAPA_INTERNAL_LONHTTPD_PORT /> |
<script type="text/javascript"> |
<script type="text/javascript"> |
<!-- |
<!-- |
var statustop = ''; |
var statustop = ''; |
Line 48 var active = 0;
|
Line 49 var active = 0;
|
var dislocked = 1; |
var dislocked = 1; |
var statuslocked = 0; |
var statuslocked = 0; |
|
|
var imgpath=':8080/res/adm/pages/'; |
if (lonhttpdport == null) { |
var fontpath=':8080/adm/lonLCDfont/'; |
var lonhttpdport='8080'; |
|
} |
|
var imgpath=':'+lonhttpdport+'/res/adm/pages/'; |
|
var fontpath=':'+lonhttpdport+'/adm/lonLCDfont/'; |
var currentURL=''; |
var currentURL=''; |
var reloadURL=''; |
var reloadURL=''; |
var currentSymb=''; |
var currentSymb=''; |
Line 60 var menucltim;
|
Line 64 var menucltim;
|
var clockdelta=0; |
var clockdelta=0; |
|
|
var w_extdisp_flag=-1; |
var w_extdisp_flag=-1; |
var extdisp; |
var extdisp=null; |
|
|
var autologout=1; |
var autologout=1; |
|
|
Line 75 var w_Annotator_flag=-1;
|
Line 79 var w_Annotator_flag=-1;
|
var w_bmquery_flag=-1; |
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; |
// 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 145 function windowcheck() {
|
Line 150 function windowcheck() {
|
extenddispclose(); |
extenddispclose(); |
} |
} |
|
|
|
function collapse() { |
|
if (autologout) { |
|
go('/adm/remote?action=collapse'); |
|
} |
|
} |
|
|
function logout () { |
function logout () { |
windowcheck(); |
windowcheck(); |
|
|
Line 160 function logout () {
|
Line 171 function logout () {
|
if (w_LONcatInfo_flag!=-1 && loncatinfo && !loncatinfo.closed) { |
if (w_LONcatInfo_flag!=-1 && loncatinfo && !loncatinfo.closed) { |
loncatinfo.close(); |
loncatinfo.close(); |
} |
} |
|
if (w_LONchat_flag!=-1 && lonchat && !lonchat.closed) { |
|
lonchat.close(); |
|
} |
if (autologout) { |
if (autologout) { |
clientwindow.window.location.href="http://"+clienthost+"/adm/logout"; |
clientwindow.window.location.href="http://"+clienthost+"/adm/logout"; |
} |
} |
Line 277 function gopost(url,postdata) {
|
Line 291 function gopost(url,postdata) {
|
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.symb.value=''; |
this.document.server.postsymb.value=''; |
this.document.server.submit(); |
this.document.server.submit(); |
} |
} |
} |
} |
Line 291 function gocmd(url,cmd) {
|
Line 305 function gocmd(url,cmd) {
|
this.document.server.postdata.value=''; |
this.document.server.postdata.value=''; |
this.document.server.command.value=cmd; |
this.document.server.command.value=cmd; |
this.document.server.url.value=currentURL; |
this.document.server.url.value=currentURL; |
this.document.server.symb.value=currentSymb; |
this.document.server.postsymb.value=currentSymb; |
this.document.server.submit(); |
this.document.server.submit(); |
} |
} |
} |
} |
Line 345 function extenddispclose() {
|
Line 359 function extenddispclose() {
|
function extenddisp() { |
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/loading.html", |
"ExtDisp", "scrollbars=1,width=400,height=450"); |
"ExtDisp", "scrollbars=1,width=400,height=450"); |
|
} |
|
|
|
function drawwindow() { |
extdisp.document.clear(); |
extdisp.document.clear(); |
extdisp.document.writeln( |
extdisp.document.writeln( |
'<html><body bgcolor="#666666" text="#DDDDDD" link="#EEEEEE" '+ |
'<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 type="text/javascript">var currentURL="'+currentURL+'";self.focus();</s'+'cript>'+ |
'<table border="2"><tr><th>Select Functionality from Below</th>'+ |
'<table border="2"><tr><th>Select Functionality from Below</th>'+ |
'<th>Description</th></tr>'); |
'<th>Description</th></tr>'); |
for (var i=0; i<=ds.length; i++) { |
for (var i=0; i<=ds.length; i++) { |
Line 394 function extenddisp() {
|
Line 411 function extenddisp() {
|
extdisp.document.writeln('</table></body></html>'); |
extdisp.document.writeln('</table></body></html>'); |
extdisp.document.close(); |
extdisp.document.close(); |
} |
} |
|
|
function edit_bookmarks() { |
function edit_bookmarks() { |
go(''); |
go(''); |
w_BookmarkPal_flag=1; |
w_BookmarkPal_flag=1; |
Line 404 function edit_bookmarks() {
|
Line 422 function edit_bookmarks() {
|
function catalog_info() { |
function catalog_info() { |
go(''); |
go(''); |
w_LONcatInfo_flag=1; |
w_LONcatInfo_flag=1; |
loncatinfo=window.open(clientwindow.window.location.pathname+'.meta',"LONcatInfo"); |
loncatinfo=window.open(clientwindow.window.location.pathname+'.meta',"LONcatInfo",'height=320,width=280,resizeable=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,resizeable=yes,location=no,menubar=no,toolbar=no'); |
} |
} |
// --> |
// --> |
</script> |
</script> |
Line 528 function catalog_info() {
|
Line 552 function catalog_info() {
|
<input type="hidden" name="postdata" value="none" /> |
<input type="hidden" name="postdata" value="none" /> |
<input type="hidden" name="command" value="none" /> |
<input type="hidden" name="command" value="none" /> |
<input type="hidden" name="url" value="none" /> |
<input type="hidden" name="url" value="none" /> |
<input type="hidden" name="symb" value="none" /> |
<input type="hidden" name="postsymb" value="none" /> |
</form> |
</form> |
</font> |
</font> |
</body> |
</body> |