version 1.83, 2003/01/15 23:59:26
|
version 1.92, 2003/04/04 19:35:04
|
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; |
|
|
// not used (yet) |
// not used (yet) |
// var w_Annotator; |
// var w_Annotator; |
Line 142 function windowcheck() {
|
Line 149 function windowcheck() {
|
extenddispclose(); |
extenddispclose(); |
} |
} |
|
|
|
function collapse() { |
|
if (autologout) { |
|
go('/adm/remote?action=collapse'); |
|
} |
|
} |
|
|
function logout () { |
function logout () { |
windowcheck(); |
windowcheck(); |
|
|
Line 157 function logout () {
|
Line 170 function logout () {
|
if (w_LONcatInfo_flag!=-1 && loncatinfo && !loncatinfo.closed) { |
if (w_LONcatInfo_flag!=-1 && loncatinfo && !loncatinfo.closed) { |
loncatinfo.close(); |
loncatinfo.close(); |
} |
} |
clientwindow.window.location.href="http://"+clienthost+"/adm/logout"; |
if (autologout) { |
|
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 224 function switchbutton(row,col,imgsrc,tex
|
Line 238 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 234 function clearbut(row,col) {
|
Line 252 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 265 function gopost(url,postdata) {
|
Line 287 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 279 function gocmd(url,cmd) {
|
Line 301 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 333 function extenddispclose() {
|
Line 355 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" '+ |
Line 382 function extenddisp() {
|
Line 407 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 516 function catalog_info() {
|
Line 542 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> |