version 1.11, 2010/05/03 12:39:49
|
version 1.14, 2016/01/15 19:13:08
|
Line 1403 function draw () {
|
Line 1403 function draw () {
|
function infoclear() { |
function infoclear() { |
if (notclear!=1) { |
if (notclear!=1) { |
infcheck(); |
infcheck(); |
inf.document.clear(); |
inf.document.open(); |
inf.document.writeln |
inf.document.writeln |
('<html><body bgcolor="#FFFFFF"><table><tr><td>'+ |
('<html><body style="background-color:white; margin: 0"><table style="font-size: 90%;"><tr><td>'+ |
'<img src="/adm/lonIcons/lonlogos.gif" /></td>'); |
'<img src="/adm/lonIcons/lonlogos.gif" /></td>'); |
if (linkmode!=0) { |
if (linkmode!=0) { |
if (tablemode==0) { |
if (tablemode==0) { |
Line 1430 function infoclear() {
|
Line 1430 function infoclear() {
|
} |
} |
inf.document.writeln('</tr></table></body></html>'); |
inf.document.writeln('</tr></table></body></html>'); |
inf.document.close(); |
inf.document.close(); |
|
inf.opener = window; |
|
var infout = parent.document.getElementById('infout') |
|
infout.style.width = '500px'; |
|
infout.style.width = inf.document.body.firstChild.offsetWidth + 10 + 'px'; |
if (srchflag==1) { |
if (srchflag==1) { |
srchclose(); |
srchclose(); |
} |
} |
Line 1448 function infoclear() {
|
Line 1452 function infoclear() {
|
|
|
// ------------------------------------------------------------ Open inf window |
// ------------------------------------------------------------ Open inf window |
function infopen() { |
function infopen() { |
var options="scrollbars=1,resizable=1,menubar=0,width=400,height=300"; |
var iframe = parent.document.getElementById('infout'); |
inf=open("","infout",options); |
inf = iframe.contentWindow; |
} |
} |
|
|
// -------------------------------------------------------- Do inf status check |
// -------------------------------------------------------- Do inf status check |
function infcheck() { |
function infcheck() { |
if (inf.closed) { |
var iframe = parent.document.getElementById('infout'); |
|
if (iframe.style.display == 'none') { |
infopen(); |
infopen(); |
} |
} |
} |
} |
Line 1468 function info(infostr) {
|
Line 1473 function info(infostr) {
|
if ((editmode!=1) && (infostr!=lastinfo)) { |
if ((editmode!=1) && (infostr!=lastinfo)) { |
notclear=1; |
notclear=1; |
infcheck(); |
infcheck(); |
inf.document.clear(); |
inf.document.open(); |
inf.document.writeln( |
inf.document.writeln( |
'<html><body bgcolor="#FFFFFF">'+ |
'<html><body style="background-color:white; margin: 0">'+ |
'<table><tr><td width="32"><img src="'+raticons+'info.gif" /></td><td bgcolor="#AAFFAA">'); |
'<table style="font-size: 90%;"><tr><td width="32"><img src="'+raticons+'info.gif" /></td><td bgcolor="#AAFFAA">'); |
data1=infostr.split('&'); |
data1=infostr.split('&'); |
if (data1[0]=='c') { |
if (data1[0]=='c') { |
inf.document.write('<b>Condition ('); |
inf.document.write('<b>Condition ('); |
Line 1544 function info(infostr) {
|
Line 1549 function info(infostr) {
|
} |
} |
inf.document.writeln('</td></tr></table></body></html>'); |
inf.document.writeln('</td></tr></table></body></html>'); |
inf.document.close(); |
inf.document.close(); |
|
inf.opener = window; |
|
var infout = parent.document.getElementById('infout') |
|
infout.style.width = '500px'; |
|
infout.style.width = inf.document.body.firstChild.offsetWidth + 10 + 'px'; |
parent.top.focus(); |
parent.top.focus(); |
parent.mapout.focus(); |
parent.mapout.focus(); |
notclear=0; |
notclear=0; |
Line 1622 function insertcondlink(cid,lnr) {
|
Line 1631 function insertcondlink(cid,lnr) {
|
|
|
// ------------------------------------------------------ Clears indexer window |
// ------------------------------------------------------ Clears indexer window |
function idxclear() { |
function idxclear() { |
idx.document.clear(); |
idx.document.open(); |
|
idx.document.close(); |
} |
} |
|
|
// --------------------------------------------------------- Clears copy window |
// --------------------------------------------------------- Clears copy window |
function copydxclear() { |
function copydxclear() { |
copydx.document.clear(); |
copydx.document.open(); |
|
copydx.document.close(); |
} |
} |
// ------------------------------------------------------- Clears search window |
// ------------------------------------------------------- Clears search window |
function srchclear() { |
function srchclear() { |
srch.document.clear(); |
srch.document.open(); |
|
srch.document.close(); |
} |
} |
|
|
// --------------------------------------------------------- Clears parm window |
// --------------------------------------------------------- Clears parm window |
function parmclear() { |
function parmclear() { |
parm.document.clear(); |
parm.document.open(); |
|
parm.document.close(); |
} |
} |
|
|
// ------------------------------------------------------ Closes indexer window |
// ------------------------------------------------------ Closes indexer window |
Line 1687 function groupopen(url) {
|
Line 1700 function groupopen(url) {
|
idx=open("/adm/groupsort?inhibitmenu=yes&mode=rat&recover=1&readfile="+url,"idxout",options); |
idx=open("/adm/groupsort?inhibitmenu=yes&mode=rat&recover=1&readfile="+url,"idxout",options); |
idx.focus(); |
idx.focus(); |
} |
} |
// ------------------------------------------------------- Open bookmark window |
|
function bookmarkopen() { |
|
var options="scrollbars=1,resizable=1,menubar=0"; |
|
idxmode=mode; |
|
idxflag=1; |
|
idx=open("/adm/groupsort?inhibitmenu=yes&mode=rat&bookmarks=1","idxout",options); |
|
idx.focus(); |
|
} |
|
// ------------------------------------------------- Open browser to select map |
// ------------------------------------------------- Open browser to select map |
var editbrowser; |
var editbrowser; |
function openbrowser(formname,elementname,only,omit) { |
function openbrowser(formname,elementname,only,omit) { |
Line 1724 function copydxopen(mode) {
|
Line 1729 function copydxopen(mode) {
|
copydxmode=mode; |
copydxmode=mode; |
copydxflag=1; |
copydxflag=1; |
copydx=open("",'copydxout',options); |
copydx=open("",'copydxout',options); |
copydx.document.clear(''); |
copydx.document.open(''); |
copydx.document.writeln( |
copydx.document.writeln( |
'<html><body bgcolor="#FFFFFF"><h1>Copy from Map</h1>'+ |
'<html><body bgcolor="#FFFFFF"><h1>Copy from Map</h1>'+ |
'<form name="mapload"><input type="text" size="40" name="importmap">'+ |
'<form name="mapload"><input type="text" size="40" name="importmap">'+ |
Line 1782 function handler(infostr) {
|
Line 1787 function handler(infostr) {
|
editmode=1; |
editmode=1; |
notclear=1; |
notclear=1; |
infcheck(); |
infcheck(); |
inf.document.clear(); |
inf.document.open(); |
inf.document.writeln( |
inf.document.writeln( |
'<html><body bgcolor="#FFFFFF">'+ |
'<html><body style="background-color:white; margin: 0">'+ |
'<table><tr><td width="32"><img src="'+raticons+'edit.gif" /></td><td bgcolor="#AAFFAA">'); |
'<table style="font-size: 90%;"><tr><td width="32"><img src="'+raticons+'edit.gif" /></td><td bgcolor="#AAFFAA">'); |
data1=infostr.split('&'); |
data1=infostr.split('&'); |
if (data1[0]=='c') { |
if (data1[0]=='c') { |
inf.document.writeln('<b>Condition</b><hr />'); |
inf.document.writeln('<b>Condition</b><hr />'); |
Line 1941 function handler(infostr) {
|
Line 1946 function handler(infostr) {
|
+'opener.infoclear();">Cancel</a>'); |
+'opener.infoclear();">Cancel</a>'); |
inf.document.writeln('</form></td></tr></table></body></html>'); |
inf.document.writeln('</form></td></tr></table></body></html>'); |
inf.document.close(); |
inf.document.close(); |
|
inf.opener = window; |
|
var infout = parent.document.getElementById('infout') |
|
infout.style.width = '500px'; |
|
infout.style.width = inf.document.body.firstChild.offsetWidth + 10 + 'px'; |
inf.focus(); |
inf.focus(); |
} |
} |
|
|
Line 1954 function empty(rid,k) {
|
Line 1963 function empty(rid,k) {
|
notclear=1; |
notclear=1; |
linkmode=0; |
linkmode=0; |
infcheck(); |
infcheck(); |
inf.document.clear(); |
inf.document.open(); |
inf.document.writeln( |
inf.document.writeln( |
'<html><body bgcolor="#FFFFFF">'+ |
'<html><body style="background-color:white; margin: 0">'+ |
'<table><tr><td width="32"><img src="'+raticons+'edit.gif" /></td><td bgcolor="#AAFFAA">'+ |
'<table style="font-size: 90%;"><tr><td width="32"><img src="'+raticons+'edit.gif" /></td><td bgcolor="#AAFFAA">'+ |
'<b>Empty Field</b><hr />'); |
'<b>Empty Field</b><hr />'); |
|
|
inf.document.writeln('<br /><a href="javascript:opener.newresource('+ |
inf.document.writeln('<br /><a href="javascript:opener.newresource('+ |
Line 2010 function empty(rid,k) {
|
Line 2019 function empty(rid,k) {
|
+'opener.infoclear();">Cancel</a>'); |
+'opener.infoclear();">Cancel</a>'); |
inf.document.writeln('</td></tr></table></body></html>'); |
inf.document.writeln('</td></tr></table></body></html>'); |
inf.document.close(); |
inf.document.close(); |
|
inf.opener = window; |
|
var infout = parent.document.getElementById('infout') |
|
infout.style.width = '500px'; |
|
infout.style.width = inf.document.body.firstChild.offsetWidth + 10 + 'px'; |
inf.focus(); |
inf.focus(); |
} |
} |
|
|
Line 2833 function main() {
|
Line 2846 function main() {
|
|
|
// ---------------------------------------------------------- Close the window? |
// ---------------------------------------------------------- Close the window? |
function leave() { |
function leave() { |
if (!inf.closed) { |
|
inf.close(); |
|
} |
|
if (srch && !srch.closed) { |
if (srch && !srch.closed) { |
srchclose(); |
srchclose(); |
} |
} |