version 1.102, 2003/06/06 02:24:49
|
version 1.107, 2003/10/11 14:06:01
|
Line 51 var statuslocked = 0;
|
Line 51 var statuslocked = 0;
|
if (lonhttpdport == null) { |
if (lonhttpdport == null) { |
var lonhttpdport='8080'; |
var lonhttpdport='8080'; |
} |
} |
|
|
var imgpath=':'+lonhttpdport+'/res/adm/pages/'; |
var imgpath=':'+lonhttpdport+'/res/adm/pages/'; |
var fontpath=':'+lonhttpdport+'/adm/lonLCDfont/'; |
var fontpath=':'+lonhttpdport+'/adm/lonLCDfont/'; |
var currentURL=''; |
var currentURL=''; |
Line 192 function display(utext,ltext) {
|
Line 193 function display(utext,ltext) {
|
showdisplay(utext,ltext); |
showdisplay(utext,ltext); |
} |
} |
|
|
function showdisplay(utext,ltext) { |
|
var i; var ch; |
|
dislocked=1; |
|
if (utext == null) { utext = '';} |
|
if (ltext == null) { ltext = '';} |
|
if (typeof(utext)!="string") { utext=''; } |
|
if (typeof(ltext)!="string") { ltext=''; } |
|
if ((utext=='') && (ltext=='')) { |
|
utext=statustop; |
|
ltext=statusbot; |
|
dislocked=0; |
|
} |
|
if (active) { |
|
for (i=0;i<=7;i++) { |
|
if (i<utext.length) { |
|
ch=utext.charAt(i); |
|
if (ch==' ') { ch='space'; } |
|
if (ch=='-') { ch='hyphen'; } |
|
if (ch==':') { ch='colon'; } |
|
if (ch=='/') { ch='slash'; } |
|
} else { ch='space'; } |
|
this.document['i'+i].src="http://"+clienthost+fontpath+ch+'.gif'; |
|
} |
|
for (i=0;i<=7;i++) { |
|
if (i<ltext.length) { |
|
ch=ltext.charAt(i); |
|
if (ch==' ') { ch='space'; } |
|
if (ch=='-') { ch='hyphen'; } |
|
if (ch==':') { ch='colon'; } |
|
if (ch=='/') { ch='slash'; } |
|
} else { ch='space'; } |
|
this.document['j'+i].src="http://"+clienthost+fontpath+ch+'.gif'; |
|
} |
|
} |
|
} |
|
|
|
function defdis() { |
function defdis() { |
this.window.focus(); |
this.window.focus(); |
display(); |
display(); |
Line 285 function go(url) {
|
Line 250 function go(url) {
|
} |
} |
} |
} |
|
|
function gopost(url,postdata) { |
function gopost(url,postdata,makenewwin) { |
windowcheck(); |
windowcheck(); |
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!='') { |
|
if (makenewwin) { |
|
var LONcomWin=window.open("http://"+clienthost+"/adm/rat/empty.html", |
|
'LONcom', |
|
"height=400,width=540,"+ |
|
"scrollbars=1,toolbar=0,status=0,resizable=1,location=0,menubar=0"); |
|
this.document.server.target='LONcom'; |
|
} |
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; |
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'; |
} |
} |
} |
} |
|
|
Line 381 function drawwindow() {
|
Line 354 function drawwindow() {
|
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 />'); |
'<table hspace="0" border="0" cellspacing="1" cellpadding="0"><tr>'); |
bigdisplay(dt,db,i); |
|
extdisp.document.writeln('</td><td>'+ds[i]+'</td></tr>'); |
|
} |
|
} |
|
} |
|
extdisp.document.writeln('</table></body></html>'); |
|
extdisp.document.close(); |
|
} |
|
|
|
function edit_bookmarks() { |
|
go(''); |
|
w_BookmarkPal_flag=1; |
|
bookmarkpal=window.open("http://"+clienthost+"/adm/bookmarks", |
|
"BookmarkPal", "width=400,height=505,scrollbars=0"); |
|
} |
|
|
|
function catalog_info() { |
|
go(''); |
|
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'); |
|
} |
|
|
|
function chat_win() { |
|
go(''); |
|
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'); |
|
} |
|
// --> |
|
</script> |
|
<block condition="&EXT('browser.textremote')!=1"> |
|
<script type="text/javascript"> |
|
|
|
function bigdisplay(dt,db,i) { |
|
extdisp.document.writeln( |
|
'<table hspace="0" border="0" cellspacing="1" cellpadding="0"><tr>'); |
for (var j=0;j<=7;j++) { |
for (var j=0;j<=7;j++) { |
if (j<dt[i].length) { |
if (j<dt[i].length) { |
ch=dt[i].charAt(j); |
ch=dt[i].charAt(j); |
Line 406 function drawwindow() {
|
Line 413 function drawwindow() {
|
extdisp.document.writeln('<td><img border="0" src="http://' |
extdisp.document.writeln('<td><img border="0" src="http://' |
+clienthost+fontpath+ch+'.gif" /></td>'); |
+clienthost+fontpath+ch+'.gif" /></td>'); |
} |
} |
extdisp.document.writeln( |
extdisp.document.writeln('</tr></table>'); |
'</tr></table></td><td>'+ds[i]+'</td></tr>'); |
|
} |
|
} |
|
} |
|
extdisp.document.writeln('</table></body></html>'); |
|
extdisp.document.close(); |
|
} |
} |
|
|
function edit_bookmarks() { |
function showdisplay(utext,ltext) { |
go(''); |
var i; var ch; |
w_BookmarkPal_flag=1; |
dislocked=1; |
bookmarkpal=window.open("http://"+clienthost+"/adm/bookmarks", |
if (utext == null) { utext = '';} |
"BookmarkPal", "width=400,height=505,scrollbars=0"); |
if (ltext == null) { ltext = '';} |
|
if (typeof(utext)!="string") { utext=''; } |
|
if (typeof(ltext)!="string") { ltext=''; } |
|
if ((utext=='') && (ltext=='')) { |
|
utext=statustop; |
|
ltext=statusbot; |
|
dislocked=0; |
|
} |
|
if (active) { |
|
for (i=0;i<=7;i++) { |
|
if (i<utext.length) { |
|
ch=utext.charAt(i); |
|
if (ch==' ') { ch='space'; } |
|
if (ch=='-') { ch='hyphen'; } |
|
if (ch==':') { ch='colon'; } |
|
if (ch=='/') { ch='slash'; } |
|
} else { ch='space'; } |
|
this.document['i'+i].src="http://"+clienthost+fontpath+ch+'.gif'; |
|
} |
|
for (i=0;i<=7;i++) { |
|
if (i<ltext.length) { |
|
ch=ltext.charAt(i); |
|
if (ch==' ') { ch='space'; } |
|
if (ch=='-') { ch='hyphen'; } |
|
if (ch==':') { ch='colon'; } |
|
if (ch=='/') { ch='slash'; } |
|
} else { ch='space'; } |
|
this.document['j'+i].src="http://"+clienthost+fontpath+ch+'.gif'; |
|
} |
|
} |
} |
} |
|
</script> |
function catalog_info() { |
</block> |
go(''); |
<block condition="&EXT('browser.textremote')"> |
w_LONcatInfo_flag=1; |
<script type="text/javascript"> |
loncatinfo=window.open(clientwindow.window.location.pathname+'.meta',"LONcatInfo",'height=320,width=280,resizeable=yes,scrollbars=yes,location=no,menubar=no,toolbar=no'); |
function bigdisplay(dt,db,i) { |
|
extdisp.document.writeln(dt+'<br />'+db); |
} |
} |
|
|
function chat_win() { |
function showdisplay(utext,ltext) { |
go(''); |
var i; var ch; |
w_LONchat_flag=1; |
dislocked=1; |
lonchat=window.open('/res/adm/pages/chatroom.html',"LONchat",'height=320,width=280,resizeable=yes,location=no,menubar=no,toolbar=no'); |
if (utext == null) { utext = '';} |
|
if (ltext == null) { ltext = '';} |
|
if (typeof(utext)!="string") { utext=''; } |
|
if (typeof(ltext)!="string") { ltext=''; } |
|
if ((utext=='') && (ltext=='')) { |
|
utext=statustop; |
|
ltext=statusbot; |
|
dislocked=0; |
|
} |
|
if (active) { |
|
this.document.topdisplay.value=utext; |
|
this.document.botdisplay.value=ltext; |
|
} |
} |
} |
// --> |
|
</script> |
</script> |
|
</block> |
<center> |
<center> |
<table hspace="0" border="0" cellspacing="0" cellpadding="0"> |
<table hspace="0" border="0" cellspacing="0" cellpadding="0"> |
<tr><td> |
<tr><td> |
Line 454 function chat_win() {
|
Line 497 function chat_win() {
|
</center> |
</center> |
|
|
<center> |
<center> |
|
<block condition="&EXT('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 480 function chat_win() {
|
Line 524 function chat_win() {
|
</table> |
</table> |
</td></tr> |
</td></tr> |
</table> |
</table> |
|
</block> |
|
<block condition="&EXT('browser.textremote')"> |
|
<font size="1"> |
|
<input type="text" name="topdisplay" size="10" value="LON-CAPA" /><br /> |
|
<input type="text" name="botdisplay" size="10" value="" /> |
|
</block> |
|
|
</center> |
</center> |
|
|
<center> |
<center> |