version 1.84, 2003/01/29 15:22:06
|
version 1.95, 2003/04/12 15:58:43
|
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();" |
> |
> |
<font size="1"> |
<font size="1"> |
|
<LONCAPA_INTERNAL_LONHTTPD_PORT /> |
<script type="text/javascript"> |
<script type="text/javascript"> |
<!-- |
<!-- |
var statustop = ''; |
var statustop = ''; |
Line 47 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 59 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 74 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 144 function windowcheck() {
|
Line 150 function windowcheck() {
|
extenddispclose(); |
extenddispclose(); |
} |
} |
|
|
|
function collapse() { |
|
if (autologout) { |
|
go('/adm/remote?action=collapse'); |
|
} |
|
} |
|
|
function logout () { |
function logout () { |
windowcheck(); |
windowcheck(); |
|
|
Line 159 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"; |
} |
} |
} |
} |
|
|
function activate () { |
function activate () { |
opener.menuloaded=1; |
setTimeout('opener.menuloaded=1;',1000); |
setTimeout('active=1;',2000); |
setTimeout('active=1;',500); |
advanceclock(); |
advanceclock(); |
} |
} |
|
|
Line 227 function switchbutton(row,col,imgsrc,tex
|
Line 242 function switchbutton(row,col,imgsrc,tex
|
dt[idx]=texttop; |
dt[idx]=texttop; |
db[idx]=textbot; |
db[idx]=textbot; |
ds[idx]=desc; |
ds[idx]=desc; |
eval('this.document.links.link'+idx+'.title="'+desc+'"'); |
for (var k=0;k<document.links.length;k++) { |
|
if (document.links[k].name=='link'+idx) { |
|
document.links[k].title=desc; |
|
} |
|
} |
} |
} |
|
|
function clearbut(row,col) { |
function clearbut(row,col) { |
Line 237 function clearbut(row,col) {
|
Line 256 function clearbut(row,col) {
|
dt[idx]=''; |
dt[idx]=''; |
db[idx]=''; |
db[idx]=''; |
ds[idx]=''; |
ds[idx]=''; |
eval('this.document.links.link'+idx+'.title=""'); |
for (var k=0;k<document.links.length;k++) { |
|
if (document.links[k].name=='link'+idx) { |
|
document.links[k].title=''; |
|
} |
|
} |
} |
} |
|
|
function setstatus(tp,bt) { |
function setstatus(tp,bt) { |
Line 268 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 282 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 336 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 385 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 395 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,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,resizeable=yes,location=no,menubar=no,toolbar=no'); |
} |
} |
// --> |
// --> |
</script> |
</script> |
Line 519 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> |
<script> |
|
activate(); |
|
</script> |
|
</font> |
</font> |
</body> |
</body> |
</html> |
</html> |