version 1.110, 2003/10/13 00:22:00
|
version 1.118, 2005/08/11 13:35:52
|
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"> |
Line 60 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 80 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 102 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 149 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 241 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 250 function go(url) {
|
Line 260 function go(url) {
|
} |
} |
} |
} |
|
|
|
function gonav(url) { |
|
if (w_loncapanav_flag == 1) { |
|
navwindowcheck(); |
|
statuslocked=0; |
|
this.document.server.target="loncapanav"; |
|
} else { |
|
this.document.server.target="loncapaclient"; |
|
} |
|
this.document['led'].src="http://"+clienthost+imgpath+"ledsend.gif"; |
|
if (url!='' && url!= null) { |
|
this.document.server.action="http://"+clienthost+url; |
|
this.document.server.postdata.value=currentURL; |
|
this.document.server.command.value=''; |
|
this.document.server.url.value=''; |
|
this.document.server.postsymb.value=currentSymb; |
|
this.document.server.submit(); |
|
} |
|
} |
|
|
function gopost(url,postdata,makenewwin) { |
function gopost(url,postdata,makenewwin) { |
windowcheck(); |
windowcheck(); |
statuslocked=0; |
statuslocked=0; |
Line 258 function gopost(url,postdata,makenewwin)
|
Line 287 function gopost(url,postdata,makenewwin)
|
if (makenewwin) { |
if (makenewwin) { |
var LONcomWin=window.open("http://"+clienthost+"/adm/rat/empty.html", |
var LONcomWin=window.open("http://"+clienthost+"/adm/rat/empty.html", |
'LONcom', |
'LONcom', |
"height=400,width=540,"+ |
"height=600,width=600,"+ |
"scrollbars=1,toolbar=0,status=0,resizable=1,location=0,menubar=0"); |
"scrollbars=1,toolbar=0,status=0,resizable=1,location=0,menubar=0"); |
this.document.server.target='LONcom'; |
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; |
Line 268 function gopost(url,postdata,makenewwin)
|
Line 299 function gopost(url,postdata,makenewwin)
|
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(); |
this.document.server.target='loncapaclient'; |
|
} |
} |
} |
} |
|
|
Line 277 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 374 function edit_bookmarks() {
|
Line 405 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',"cat",'height=320,width=280,resizable=yes,scrollbars=yes,location=no,menubar=no,toolbar=no'); |
loncatinfo=window.open(clientwindow.window.location.pathname+'.meta',"cat",'height=420,width=480,resizable=yes,scrollbars=yes,location=no,menubar=no,toolbar=no'); |
} |
} |
|
|
function chat_win() { |
function chat_win() { |
go(''); |
go(''); |
w_LONchat_flag=1; |
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'); |
lonchat=window.open('/res/adm/pages/chatroom.html',"LONchat",'height=420,width=480,resizable=yes,location=no,menubar=no,toolbar=no'); |
} |
} |
// --> |
// --> |
</script> |
</script> |
Line 453 function showdisplay(utext,ltext) {
|
Line 484 function showdisplay(utext,ltext) {
|
} |
} |
//--> |
//--> |
</script> |
</script> |
|
<display> |
|
return '<script type="text/javascript">w_loncapanav_flag=\''.('on' eq &EXT('user.environment.remotenavmap')).'\';</script>'; |
|
</display> |
</block> |
</block> |
<block condition="&EXT('request.browser.textremote')"> |
<block condition="&EXT('request.browser.textremote')"> |
<script type="text/javascript"> |
<script type="text/javascript"> |