version 1.110, 2003/10/13 00:22:00
|
version 1.127, 2009/04/23 17:28:55
|
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 /> |
|
<script type="text/javascript"> |
<script type="text/javascript"> |
//<!-- |
//<!-- |
var statustop = ''; |
var statustop = ''; |
Line 48 var active = 0;
|
Line 48 var active = 0;
|
var dislocked = 1; |
var dislocked = 1; |
var statuslocked = 0; |
var statuslocked = 0; |
|
|
if (lonhttpdport == null) { |
var imgpath='/res/adm/pages/'; |
var lonhttpdport='8080'; |
var fontpath='/adm/lonLCDfont/'; |
} |
|
|
|
var imgpath=':'+lonhttpdport+'/res/adm/pages/'; |
|
var fontpath=':'+lonhttpdport+'/adm/lonLCDfont/'; |
|
var currentURL=''; |
var currentURL=''; |
var reloadURL=''; |
var reloadURL=''; |
var currentSymb=''; |
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 75 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 100 for (var i=1;i<=3;i++) {
|
Line 96 for (var i=1;i<=3;i++) {
|
} |
} |
} |
} |
|
|
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 140 function advanceclock() {
|
Line 136 function advanceclock() {
|
|
|
function windowcheck() { |
function windowcheck() { |
if (clientwindow==null || clientwindow.closed) { |
if (clientwindow==null || clientwindow.closed) { |
clientwindow=window.open("http://"+clienthost+"/",'', |
clientwindow=window.open("/",'', |
"height=400,width=440,"+ |
"height=400,width=440,"+ |
"scrollbars=1,toolbar=1,status=1,resizable=1,location=1,menubar=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"); |
Line 149 function windowcheck() {
|
Line 145 function windowcheck() {
|
extenddispclose(); |
extenddispclose(); |
} |
} |
|
|
|
function navwindowcheck() { |
|
if (navwindow==null || navwindow.closed) { |
|
navwindow=window.open("/adm/navmaps#curloc", |
|
"loncapanav","height=600,width=400,scrollbars=1"); |
|
} |
|
} |
|
|
function collapse() { |
function collapse() { |
if (autologout) { |
if (autologout) { |
go('/adm/remote?action=collapse'); |
windowcheck(); |
|
clientwindow.location='/adm/remote?action=collapse'; |
} |
} |
} |
} |
|
|
Line 200 function defdis() {
|
Line 204 function defdis() {
|
|
|
function switchbutton(row,col,imgsrc,texttop,textbot,action,desc) { |
function switchbutton(row,col,imgsrc,texttop,textbot,action,desc) { |
var idx=10*row+col; |
var idx=10*row+col; |
this.document['b'+idx].src="http://"+clienthost+imgpath+imgsrc; |
this.document['b'+idx].src=imgpath+imgsrc; |
hr[idx]=action; |
hr[idx]=action; |
dt[idx]=texttop; |
dt[idx]=texttop; |
db[idx]=textbot; |
db[idx]=textbot; |
Line 214 function switchbutton(row,col,imgsrc,tex
|
Line 218 function switchbutton(row,col,imgsrc,tex
|
|
|
function clearbut(row,col) { |
function clearbut(row,col) { |
var idx=10*row+col; |
var idx=10*row+col; |
this.document['b'+idx].src="http://"+clienthost+imgpath+'empty.gif'; |
this.document['b'+idx].src=imgpath+'empty.gif'; |
hr[idx]='javascript:defdis();'; |
hr[idx]='javascript:defdis();'; |
dt[idx]=''; |
dt[idx]=''; |
db[idx]=''; |
db[idx]=''; |
Line 227 function clearbut(row,col) {
|
Line 231 function clearbut(row,col) {
|
} |
} |
|
|
function setstatus(tp,bt) { |
function setstatus(tp,bt) { |
this.document['led'].src="http://"+clienthost+imgpath+"ledblink.gif"; |
this.document['led'].src=imgpath+"ledblink.gif"; |
statustop=tp; |
statustop=tp; |
statusbot=bt; |
statusbot=bt; |
statuslocked=1; |
statuslocked=1; |
Line 237 function setstatus(tp,bt) {
|
Line 241 function setstatus(tp,bt) {
|
function go(url) { |
function go(url) { |
windowcheck(); |
windowcheck(); |
statuslocked=0; |
statuslocked=0; |
this.document['led'].src="http://"+clienthost+imgpath+"ledsend.gif"; |
this.document['led'].src=imgpath+"ledsend.gif"; |
if (url!='' && url!= null) { |
if (url!='' && url!= null) { |
currentURL = null; |
currentURL = null; |
currentSymb= null; |
currentSymb= null; |
this.document.server.action="http://"+clienthost+url; |
this.document.server.target='loncapaclient'; |
|
this.document.server.action=url; |
this.document.server.postdata.value=''; |
this.document.server.postdata.value=''; |
this.document.server.command.value=''; |
this.document.server.command.value=''; |
this.document.server.url.value=''; |
this.document.server.url.value=''; |
Line 250 function go(url) {
|
Line 255 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=imgpath+"ledsend.gif"; |
|
if (url!='' && url!= null) { |
|
this.document.server.action=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; |
this.document['led'].src="http://"+clienthost+imgpath+"ledsend.gif"; |
this.document['led'].src=imgpath+"ledsend.gif"; |
if (url!='') { |
if (url!='') { |
if (makenewwin) { |
if (makenewwin) { |
var LONcomWin=window.open("http://"+clienthost+"/adm/rat/empty.html", |
var LONcomWin=window.open("/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=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(); |
this.document.server.target='loncapaclient'; |
|
} |
} |
} |
} |
|
|
function gocmd(url,cmd) { |
function gocmd(url,cmd) { |
windowcheck(); |
windowcheck(); |
statuslocked=0; |
statuslocked=0; |
this.document['led'].src="http://"+clienthost+imgpath+"ledsend.gif"; |
this.document['led'].src=imgpath+"ledsend.gif"; |
if (url!='') { |
if (url!='') { |
this.document.server.action="http://"+clienthost+url; |
this.document.server.target='loncapaclient'; |
|
this.document.server.action=url; |
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; |
Line 293 function annotate() {
|
Line 319 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 310 function set_bookmark() {
|
Line 336 function set_bookmark() {
|
w_bmquery_flag=1; |
w_bmquery_flag=1; |
bmquery=window.open('','bmquery','width=365,height=165,scrollbars=0'); |
bmquery=window.open('','bmquery','width=365,height=165,scrollbars=0'); |
bmquery.document.write( |
bmquery.document.write( |
"<html><body bgcolor='bbbbbb'><center><form method='post'" |
'<html><body bgcolor="#BBBBBB"><center><form method="post"' |
+" name='newlink' action='/adm/bookmarks' target='bmquery' " |
+' name="newlink" action="/adm/bookmarks" target="bmquery" ' |
+">\n <table width=340 height=150 " |
+'>'+"\n"+' <table width="340" height="150" ' |
+"bgcolor='ffffff' align=center><tr><td>Link Name:<br><input " |
+'bgcolor="#FFFFFF" align="center"><tr><td>Link Name:<br /><input ' |
+"type='text' name='title' size=45 value='"+clienttitle+"'>" |
+'type="text" name="title" size="45" value="'+clienttitle+'">' |
+"<br>Address:<br><input type='text' name='address' size='45' " |
+'<br />Address:<br /><input type="text" name="address" size="45" ' |
+"value='"+clienthref+"'><br><center><input type='submit' " |
+'value="'+clienthref+'" /><br /><center><input type="submit" ' |
+"value='Save'> <input type='button' value='Close (no save)' " |
+'value="Save" /> <input type="button" value="Close" ' |
+"onclick='javascript:window.close();'></center></td>" |
+'onclick="javascript:window.close();" /><\/center><\/td>' |
+"</tr></table></form></center></body></html>"); |
+'<\/tr><\/table><\/form><\/center><\/body><\/html>'); |
bmquery.document.close(); |
bmquery.document.close(); |
} |
} |
|
|
Line 335 function extenddispclose() {
|
Line 361 function extenddispclose() {
|
function extenddisp() { |
function extenddisp() { |
go(''); |
go(''); |
w_extdisp_flag=1; |
w_extdisp_flag=1; |
extdisp=window.open("http://"+clienthost+"/adm/rat/loading.html", |
extdisp=window.open("/adm/rat/loading.html", |
"ExtDisp", "scrollbars=1,width=400,height=450"); |
"ExtDisp", "scrollbars=1,width=400,height=450"); |
} |
} |
|
|
Line 344 function drawwindow() {
|
Line 370 function drawwindow() {
|
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 type="text/javascript">var currentURL="'+currentURL+'";self.focus();</s'+'cript>'+ |
'<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++) { |
if (typeof(ds[i])!='undefined') { |
if (typeof(ds[i])!='undefined') { |
if (ds[i]!='') { |
if (ds[i]!='') { |
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 />'); |
bigdisplay(dt,db,i); |
bigdisplay(dt,db,i); |
extdisp.document.writeln('</td><td>'+ds[i]+'</td></tr>'); |
extdisp.document.writeln('<\/td><td>'+ds[i]+'<\/td><\/tr>'); |
} |
} |
} |
} |
} |
} |
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; |
bookmarkpal=window.open("http://"+clienthost+"/adm/bookmarks", |
bookmarkpal=window.open("/adm/bookmarks", |
"BookmarkPal", "width=400,height=505,scrollbars=0"); |
"BookmarkPal", "width=400,height=505,scrollbars=0"); |
} |
} |
|
|
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('request.browser.textremote')!=1"> |
<block condition="&EXT('request.browser.textremote')!=1"> |
<script type="text/javascript"> |
<script type="text/javascript"> |
Line 398 function bigdisplay(dt,db,i) {
|
Line 424 function bigdisplay(dt,db,i) {
|
if (ch==':') { ch='colon'; } |
if (ch==':') { ch='colon'; } |
if (ch=='/') { ch='slash'; } |
if (ch=='/') { ch='slash'; } |
} else { ch='space'; } |
} else { ch='space'; } |
extdisp.document.writeln('<td><img border="0" src="http://' |
extdisp.document.writeln('<td><img border="0" src="' |
+clienthost+fontpath+ch+'.gif" /></td>'); |
+fontpath+ch+'.gif" /><\/td>'); |
} |
} |
extdisp.document.writeln('</tr><tr>'); |
extdisp.document.writeln('<\/tr><tr>'); |
for (var j=0;j<=7;j++) { |
for (var j=0;j<=7;j++) { |
if (j<db[i].length) { |
if (j<db[i].length) { |
ch=db[i].charAt(j); |
ch=db[i].charAt(j); |
Line 410 function bigdisplay(dt,db,i) {
|
Line 436 function bigdisplay(dt,db,i) {
|
if (ch==':') { ch='colon'; } |
if (ch==':') { ch='colon'; } |
if (ch=='/') { ch='slash'; } |
if (ch=='/') { ch='slash'; } |
} else { ch='space'; } |
} else { ch='space'; } |
extdisp.document.writeln('<td><img border="0" src="http://' |
extdisp.document.writeln('<td><img border="0" src="' |
+clienthost+fontpath+ch+'.gif" /></td>'); |
+fontpath+ch+'.gif" /><\/td>'); |
} |
} |
extdisp.document.writeln('</tr></table>'); |
extdisp.document.writeln('<\/tr><\/table>'); |
} |
} |
|
|
function showdisplay(utext,ltext) { |
function showdisplay(utext,ltext) { |
Line 437 function showdisplay(utext,ltext) {
|
Line 463 function showdisplay(utext,ltext) {
|
if (ch==':') { ch='colon'; } |
if (ch==':') { ch='colon'; } |
if (ch=='/') { ch='slash'; } |
if (ch=='/') { ch='slash'; } |
} else { ch='space'; } |
} else { ch='space'; } |
this.document['i'+i].src="http://"+clienthost+fontpath+ch+'.gif'; |
this.document['i'+i].src=fontpath+ch+'.gif'; |
} |
} |
for (i=0;i<=7;i++) { |
for (i=0;i<=7;i++) { |
if (i<ltext.length) { |
if (i<ltext.length) { |
Line 447 function showdisplay(utext,ltext) {
|
Line 473 function showdisplay(utext,ltext) {
|
if (ch==':') { ch='colon'; } |
if (ch==':') { ch='colon'; } |
if (ch=='/') { ch='slash'; } |
if (ch=='/') { ch='slash'; } |
} else { ch='space'; } |
} else { ch='space'; } |
this.document['j'+i].src="http://"+clienthost+fontpath+ch+'.gif'; |
this.document['j'+i].src=fontpath+ch+'.gif'; |
} |
} |
} |
} |
} |
} |
//--> |
//--> |
</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"> |
Line 605 function showdisplay(utext,ltext) {
|
Line 634 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> |
|
|
|
<tr> |
|
<td><a name="link131" href="javascript:eval(hr[131]);" onmouseover="display(dt[131],db[131]);"><img width="43" height="20" border="0" name="b131" src="empty.gif" /></a></td> |
|
<td><a name="link132" href="javascript:eval(hr[132]);" onmouseover="display(dt[132],db[132]);"><img width="43" height="20" border="0" name="b132" src="empty.gif" /></a></td> |
|
<td><a name="link133" href="javascript:eval(hr[133]);" onmouseover="display(dt[133],db[133]);"><img width="43" height="20" border="0" name="b133" src="empty.gif" /></a></td></tr> |
|
|
</table> |
</table> |
</center> |
</center> |
|
|