version 1.108, 2003/10/11 20:53:03
|
version 1.120, 2007/04/24 23:26:15
|
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 293 function annotate() {
|
Line 324 function annotate() {
|
"<html><body onload='Javascript:document.goannotate.submit();'>" |
"<html><body onload='Javascript:document.goannotate.submit();'>" |
+"<form name='goannotate' target='Annotator' method='post' " |
+"<form name='goannotate' target='Annotator' method='post' " |
+"action='/adm/annotations'>" |
+"action='/adm/annotations'>" |
+"<input type='hidden' name='urlnew' value='"+currentURL+"'>" |
+"<input type='hidden' name='symbnew' value='"+currentSymb+"'>" |
+"</form></body></html>"); |
+"</form></body></html>"); |
annotator.document.close(); |
annotator.document.close(); |
} |
} |
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> |
<block condition="&EXT('browser.textremote')!=1"> |
<block condition="&EXT('request.browser.textremote')!=1"> |
<script type="text/javascript"> |
<script type="text/javascript"> |
//<!-- |
//<!-- |
function bigdisplay(dt,db,i) { |
function bigdisplay(dt,db,i) { |
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('browser.textremote')"> |
<block condition="&EXT('request.browser.textremote')"> |
<script type="text/javascript"> |
<script type="text/javascript"> |
//<!-- |
//<!-- |
function bigdisplay(dt,db,i) { |
function bigdisplay(dt,db,i) { |
extdisp.document.writeln(dt+'<br />'+db); |
extdisp.document.writeln(dt[i]+'<br />'+db[i]); |
} |
} |
|
|
function showdisplay(utext,ltext) { |
function showdisplay(utext,ltext) { |
Line 474 function showdisplay(utext,ltext) {
|
Line 508 function showdisplay(utext,ltext) {
|
dislocked=0; |
dislocked=0; |
} |
} |
if (active) { |
if (active) { |
this.document.topdisplay.value=utext; |
self.document.forms.disp.topdisplay.value=utext; |
this.document.botdisplay.value=ltext; |
self.document.forms.disp.botdisplay.value=ltext; |
} |
} |
} |
} |
//--> |
//--> |
Line 500 function showdisplay(utext,ltext) {
|
Line 534 function showdisplay(utext,ltext) {
|
</center> |
</center> |
|
|
<center> |
<center> |
<block condition="&EXT('browser.textremote')!=1"> |
<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 528 function showdisplay(utext,ltext) {
|
Line 562 function showdisplay(utext,ltext) {
|
</td></tr> |
</td></tr> |
</table> |
</table> |
</block> |
</block> |
<block condition="&EXT('browser.textremote')"> |
<block condition="&EXT('request.browser.textremote')"> |
<font size="1"> |
<font size="1"> |
<input type="text" name="topdisplay" size="10" value="LON-CAPA" /><br /> |
<form name="disp"> |
<input type="text" name="botdisplay" size="10" value="" /> |
<input type="text" name="topdisplay" size="14" value="LON-CAPA" /><br /> |
|
<input type="text" name="botdisplay" size="14" value="" /> |
|
</form> |
|
</font> |
</block> |
</block> |
|
|
</center> |
</center> |
Line 602 function showdisplay(utext,ltext) {
|
Line 639 function showdisplay(utext,ltext) {
|
<td><a name="link113" href="javascript:eval(hr[113]);" onmouseover="display(dt[113],db[113]);"><img width="43" height="20" border="0" name="b113" src="empty.gif" /></a></td> |
<td><a name="link113" href="javascript:eval(hr[113]);" onmouseover="display(dt[113],db[113]);"><img width="43" height="20" border="0" name="b113" src="empty.gif" /></a></td> |
</tr> |
</tr> |
|
|
|
<tr> |
|
<td><a name="link121" href="javascript:eval(hr[121]);" onmouseover="display(dt[121],db[121]);"><img width="43" height="20" border="0" name="b121" src="empty.gif" /></a></td> |
|
<td><a name="link122" href="javascript:eval(hr[122]);" onmouseover="display(dt[122],db[122]);"><img width="43" height="20" border="0" name="b122" src="empty.gif" /></a></td> |
|
<td><a name="link123" href="javascript:eval(hr[123]);" onmouseover="display(dt[123],db[123]);"><img width="43" height="20" border="0" name="b123" src="empty.gif" /></a></td></tr> |
|
|
</table> |
</table> |
</center> |
</center> |
|
|