version 1.13.10.2, 2012/12/16 16:34:23
|
version 1.14, 2016/01/15 19:13:08
|
Line 1405 function infoclear() {
|
Line 1405 function infoclear() {
|
infcheck(); |
infcheck(); |
inf.document.open(); |
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 1470 function info(infostr) {
|
Line 1475 function info(infostr) {
|
infcheck(); |
infcheck(); |
inf.document.open(); |
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 1780 function handler(infostr) {
|
Line 1789 function handler(infostr) {
|
infcheck(); |
infcheck(); |
inf.document.open(); |
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 1937 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 1952 function empty(rid,k) {
|
Line 1965 function empty(rid,k) {
|
infcheck(); |
infcheck(); |
inf.document.open(); |
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 2006 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 2829 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(); |
} |
} |