--- loncom/html/res/adm/pages/menu.html 2002/10/25 14:04:42 1.72 +++ loncom/html/res/adm/pages/menu.html 2002/12/09 17:08:19 1.81 @@ -4,7 +4,7 @@ The LearningOnline Network with CAPA Remote Control // -// $Id: menu.html,v 1.72 2002/10/25 14:04:42 www Exp $ +// $Id: menu.html,v 1.81 2002/12/09 17:08:19 www Exp $ // // Copyright Michigan State University Board of Trustees // @@ -47,8 +47,8 @@ var active = 0; var dislocked = 1; var statuslocked = 0; -var imgpath='/res/adm/pages/'; -var fontpath='/adm/lonLCDfont/'; +var imgpath=':8080/res/adm/pages/'; +var fontpath=':8080/adm/lonLCDfont/'; var currentURL=''; var reloadURL=''; var currentSymb=''; @@ -58,6 +58,9 @@ var menucltim; var clockdelta=0; +var w_extdisp_flag=-1; +var extdisp; + // not used (yet) // var w_Annotator; // var w_bmquery; @@ -77,6 +80,7 @@ var w_LONcatInfo_flag=-1; var hr = new Array; var db = new Array; var dt = new Array; +var ds = new Array; for (var i=1;i<=3;i++) { for (var j=1;j<=10;j++) { @@ -84,6 +88,7 @@ for (var i=1;i<=3;i++) { hr[index]=''; db[index]=''; dt[index]=''; + ds[index]=''; } } @@ -134,6 +139,7 @@ function windowcheck() { } clientwindow.name='loncapaclient'; clientwindow.menuwindow=self; + extenddispclose(); } function logout () { @@ -191,7 +197,7 @@ function showdisplay(utext,ltext) { if (ch==':') { ch='colon'; } if (ch=='/') { ch='slash'; } } else { ch='space'; } - this.document['i'+i].src=fontpath+ch+'.gif'; + this.document['i'+i].src="http://"+clienthost+fontpath+ch+'.gif'; } for (i=0;i<=7;i++) { if (i 1) && (Math.floor(tmp) == tmp)) { - return false; - } -// see if this is actually in resource space - var SlashChunks=url.split('/'); - if (SlashChunks[1]!='res') { return false; } - return true; -} - -function cstrgo(currenturl,defaulturl) { - windowcheck(); - var url; - if ((currenturl == null) || - (currenturl == '') || - (! is_editable_resource(currenturl))) { - url = defaulturl; - } else { - var SlashChunks=currenturl.split('/'); - SlashChunks[1]='priv'; - var i; - for (i=2;i0) { + if (extdisp!=null && !extdisp.closed) { + extdisp.close(); + } + w_extdisp_flag=-1; + } +} + +function extenddisp() { + go(''); + w_extdisp_flag=1; + extdisp=window.open("http://"+clienthost+"/adm/rat/empty.html", + "ExtDisp", "width=400,height=450"); + extdisp.document.clear(); + extdisp.document.writeln( + ''+ + 'LON-CAPA Extended Display Remote Control'+ + ''+ + 'Select Functionality from Below'+ + 'Description'); + for (var i=0; i<=ds.length; i++) { + if (typeof(ds[i])!='undefined') { + if (ds[i]!='') { + extdisp.document.writeln( + '>>><<< '+ + ''); + for (var j=0;j<=7;j++) { + if (j'); + } + extdisp.document.writeln(''); + for (var j=0;j<=7;j++) { + if (j'); + } + extdisp.document.writeln( + ''+ds[i]+''); + } + } + } + extdisp.document.writeln(''); + extdisp.document.close(); +} function edit_bookmarks() { go(''); w_BookmarkPal_flag=1; @@ -366,17 +399,17 @@ function catalog_info() { +> - + - +> @@ -387,7 +420,7 @@ function catalog_info() { - + @@ -477,12 +510,6 @@ function catalog_info() { - - - -