Updates to theme related to ErrorPage to produce 'friendly' database messages under IE.

git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@3688 248e525c-4dfb-0310-94bc-949c084e9493
This commit is contained in:
hardya
2008-02-25 12:23:29 +00:00
parent 89cac93ca4
commit 7100b30c7f

View File

@@ -170,7 +170,8 @@ declare
l_clob clob;
l_length number := 1;
begin
c1:=c1||'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml1-transitional.dtd">'||chr(10)||
c1:=c1||'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"'||chr(10)||
'"http://www.w3.org/TR/html4/loose.dtd">'||chr(10)||
'<html lang="&BROWSER_LANGUAGE." xmlns:htmldb="http://htmldb.oracle.com">'||chr(10)||
'<head>'||chr(10)||
'<title>#TITLE#</title>'||chr(10)||
@@ -179,16 +180,16 @@ c1:=c1||'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
'</head>'||chr(10)||
'<body #ONLOAD#>#FORM_OPEN#'||chr(10)||
'<div id="rowHd">'||chr(10)||
'<div id="logo" class="hskpco';
'<div id="logo" class="hskpcol1">'||chr(10)||
'<a href="http';
c1:=c1||'l1">'||chr(10)||
'<a href="http://www.nationalgrid.com/"><img src="/i/ng_logo_group_medium.gif" alt="National Grid Metering"/></a>'||chr(10)||
c1:=c1||'://www.nationalgrid.com/"><img src="/i/ng_logo_group_medium.gif" alt="National Grid Metering" width="200" height="43"/></a>'||chr(10)||
'</div>'||chr(10)||
'<div id="navHousekeep" class="hskpcol2">'||chr(10)||
'<div class="margin5">'||chr(10)||
'<a href="this is the url for the holding page for the ICOMQ system" class="hskpnav" title="Return to the Metering Online Quotations Home Page" accesskey="1">Home</a>&nbsp;|&nbsp;<a href="&LOGOUT_URL." class=';
'<a href="this is the url for the holding page for the ICOMQ system" class="hskpnav" title="Return to the Metering Online Quotations Home Page" accesskey="1">Home</a>&nbsp;|&nbsp;<a href="&LOGOUT_URL." c';
c1:=c1||'"hskpnav" title="Log out of the system" accesskey="2">Logout</a>&nbsp;|&nbsp;<!--a href="/group/help" class="hskpnav">Help</a>&nbsp;|&nbsp;--><span>You are logged in as:&APP_USER.</span>'||chr(10)||
c1:=c1||'lass="hskpnav" title="Log out of the system" accesskey="2">Logout</a>&nbsp;|&nbsp;<!--a href="/group/help" class="hskpnav">Help</a>&nbsp;|&nbsp;--><span>You are logged in as:&APP_USER.</span>'||chr(10)||
'</div>'||chr(10)||
'</div>'||chr(10)||
'</div>'||chr(10)||
@@ -239,10 +240,10 @@ c3:=c3||'<div id="UKSubNav" class="reg">'||chr(10)||
'#REGION_POSITION_04#'||chr(10)||
'</div>'||chr(10)||
'<div id="colRight">'||chr(10)||
'<h1 class="podTitle"><img src="#WORKSPACE_IMAGES#exclaim.gif" alt=""/>Important Messages</h1>'||chr(10)||
'<d';
'<h1 class="podTitle"><img src="#WORKSPACE_IMAGES#exclaim.gif" alt="" width="23" height="23"/>Impo';
c3:=c3||'iv class="t4messages">#GLOBAL_NOTIFICATION##SUCCESS_MESSAGE##NOTIFICATION_MESSAGE#</div>'||chr(10)||
c3:=c3||'rtant Messages</h1>'||chr(10)||
'<div class="t4messages">#GLOBAL_NOTIFICATION##SUCCESS_MESSAGE##NOTIFICATION_MESSAGE#</div>'||chr(10)||
'</div>'||chr(10)||
'</div>'||chr(10)||
''||chr(10)||
@@ -1007,41 +1008,58 @@ c1:=c1||'r vElementList = null;'||chr(10)||
' var vAjaxResult = null;'||chr(10)||
' var vMyMsg = '''';'||chr(10)||
''||chr(10)||
'if (!document.getElementById)'||chr(10)||
' return;'||chr(10)||
''||chr(10)||
'if (!document.createElement)'||chr(10)||
' return;'||chr(10)||
''||chr(10)||
' vElementList = window.document.getElementsByTagName("div");'||chr(10)||
' for (i=0; i < vElementList.length; i++)'||chr(10)||
' for (i=0; ';
c1:=c1||'i < vElementList.length; i++)'||chr(10)||
' {'||chr(10)||
' vElement = vElementList[i];'||chr(10)||
' '||chr(10)||
' if (vElement';
c1:=c1||'.className == "ErrorPageMessage")'||chr(10)||
' if (vElement.className == "ErrorPageMessage")'||chr(10)||
' {'||chr(10)||
' vErrorStack = (vErrorStack ==null?"":vErrorStack+"<br/>")+vElement.innerHTML;'||chr(10)||
' vErrorStack = (vErrorStack ==null?"":vErrorStack)+vElement.innerHTML;'||chr(10)||
' vElement.innerHTML = '''';'||chr(10)||
' vOraErrorStack = vErrorStack.split("ORA-");'||chr(10)||
' for(var j=1; j < vOraErrorStack.length; j++) {'||chr(10)||
' vOraError = vOraErrorStack[j];'||chr(10)||
' vAjaxRequest = new htmldb_Get(null,&APP_ID.,''APPLICATION_PROCESS=''+p_err_process,0);'||chr(10)||
' vAjaxReque';
' vAjaxRequest = new htmldb_G';
c1:=c1||'st.add(p_err_item,vOraError);'||chr(10)||
c1:=c1||'et(null,&APP_ID.,''APPLICATION_PROCESS=''+p_err_process,0);'||chr(10)||
' vAjaxRequest.add(p_err_item,vOraError);'||chr(10)||
' vAjaxResult = vAjaxRequest.get();'||chr(10)||
' if (vAjaxResult) {'||chr(10)||
' vMyMsg = vMyMsg + vAjaxResult + ''<br>'' ;'||chr(10)||
' vMyMsg = vMyMsg + vAjaxResult;'||chr(10)||
' } else {'||chr(10)||
' vMyMsg = vMyMsg + ''ORA-''+vOraError.substring(0) + ''<br>'' ;'||chr(10)||
' vMyMsg = vMyMsg + vOraError.substring(0);'||chr(10)||
' }'||chr(10)||
' }'||chr(10)||
' document.getElementById(''ORA'').innerHTML = vMyMsg;'||chr(10)||
'if (document.getElementById && document.createElement) {'||chr(10)||
' var divA = document.getElementById(''ErrorOu';
c1:=c1||'tputDiv'');'||chr(10)||
' var oH = document.createElement(''h1'');'||chr(10)||
' oH.appendChild(document.createTextNode(''Validation failed because:''));'||chr(10)||
' var oP = document.createElement(''p'');'||chr(10)||
' oP.id = ''FriendlyError'';'||chr(10)||
' oP.appendChild(document.createTextNode(vMyMsg));'||chr(10)||
' // Insert the heading as the first child of the element'||chr(10)||
' divA.insertBefore(oP, divA.firstChild);'||chr(10)||
' divA.insertBefore(oH, divA.firstChild);';
c1:=c1||''||chr(10)||
' }'||chr(10)||
' }'||chr(10)||
' }'||chr(10)||
'}'||chr(10)||
'</script>'||chr(10)||
''||chr(10)||
'<body onload="MyErrorPage(''ORA_ERR_CODE'',''getErrorMsg'')" #ONLOAD#>#FORM';
c1:=c1||'_OPEN#'||chr(10)||
'<body onload="MyErrorPage(''ORA_ERR_CODE'',''getErrorMsg'')" #ONLOAD#>#FORM_OPEN#'||chr(10)||
''||chr(10)||
'';
@@ -1079,24 +1097,20 @@ c3:=c3||'<div id="UKSubNav" class="reg">'||chr(10)||
'<div id="colLeft">'||chr(10)||
'<div id="navTier" class="w180">#REGION_POSITION_08#</div>'||chr(10)||
'</div>'||chr(10)||
'<div id="colMid">'||chr(10)||
''||chr(10)||
'<center>'||chr(10)||
' <div id="colMid">'||chr(10)||
'<div id="ErrorOutputDiv">'||chr(10)||
'#BOX_BODY#'||chr(10)||
'</center>'||chr(10)||
''||chr(10)||
''||chr(10)||
'</div>'||chr(10)||
'</div>'||chr(10)||
''||chr(10)||
'<div id="colRight">'||chr(10)||
'<h1 class="podTitle"><img src="#WORKSPACE_IMAGES#exclaim.gif" alt=""/>Important Messages</h1>'||chr(10)||
'<div class="t4messages">#GLOBAL_NOTIFICATION#';
'<div class="t4messages">#GLOBAL_NO';
c3:=c3||'#SUCCESS_MESSAGE##NOTIFICATION_MESSAGE#</div>'||chr(10)||
c3:=c3||'TIFICATION##SUCCESS_MESSAGE##NOTIFICATION_MESSAGE#</div>'||chr(10)||
'</div>'||chr(10)||
'</div>'||chr(10)||
''||chr(10)||
''||chr(10)||
''||chr(10)||
'';
wwv_flow_api.create_template(
@@ -1604,16 +1618,16 @@ declare
l_clob3 clob;
l_length number := 1;
begin
t:=t||'<h1><a/ name="#REGION_STATIC_ID#">#TITLE#</h1>'||chr(10)||
t:=t||'<h1 class="regionheader">#TITLE#<a name="#REGION_STATIC_ID#"> </a></h1>'||chr(10)||
'<table class="t4FormRegion" id="#REGION_ID#" border="0" cellpadding="0" cellspacing="0" summary="">'||chr(10)||
'<tr><td class="t4RegionHeader"></td></tr>'||chr(10)||
'<tr>'||chr(10)||
'<td class="t4ButtonHolder">#CLOSE#&nbsp;#EXPAND##HELP##DELETE##EDIT##CHANGE##COPY##PREVIOUS##NEXT##CREATE##CREATE2#</td>'||chr(10)||
'</tr>'||chr(10)||
'<tr>'||chr(10)||
'<td class="t4RegionBody">#BODY#<img alt="" src="#IMAGE_PREFIX#theme';
'<td class="t4RegionBody">#BODY#<img alt=""';
t:=t||'s/theme_4/1px_trans.gif" style="display:block;" width="600" height="1" /></td>'||chr(10)||
t:=t||' src="#IMAGE_PREFIX#themes/theme_4/1px_trans.gif" style="display:block;" width="600" height="1" /></td>'||chr(10)||
'</tr>'||chr(10)||
'</table>';
@@ -2088,7 +2102,7 @@ declare
l_length number := 1;
begin
t:=t||'<h1>#TITLE#</h1>'||chr(10)||
'<table class="t4ReportsRegion" id="#REGION_ID#" border="0" cellpadding="0" cellspacing="0" summary="">'||chr(10)||
'<table class="t4ReportsRegion" id="#REGION_ID#" border="0" cellpadding="0" cellspacing="10" summary="">'||chr(10)||
'<tr><td class="t4RegionHeader"></td></tr>'||chr(10)||
'<tr>'||chr(10)||
'<td class="t4ButtonHolder">#CLOSE#&nbsp;#EXPAND##HELP##DELETE##EDIT##CHANGE##COPY##PREVIOUS##NEXT##CREATE##CREATE2#</td>'||chr(10)||
@@ -2109,7 +2123,6 @@ wwv_flow_api.create_plug_template (
p_theme_class_id => 9,
p_plug_heading_bgcolor => '#ffffff',
p_plug_font_size => '-1',
p_translate_this_template => 'N',
p_template_comment => 'Red Theme');
end;
null;
@@ -2934,21 +2947,21 @@ declare
l_clob8 clob;
l_length number := 1;
begin
t:=t||'<li><a name="#LIST_LABEL#" class="current" href="#LINK#"><img src="/i/ng_black.gif" alt="">#TEXT#</a></li>';
t:=t||'<li><a name="#LIST_LABEL#" class="current" href="#LINK#"><img src="/i/ng_black.gif" alt="" width="5" height="11"/>#TEXT#</a></li>';
t2:=t2||'<li><a name="#LIST_LABEL#" href="#LINK#"><img src="/i/ng_black.gif" alt="">#TEXT#</a></li>';
t2:=t2||'<li><a name="#LIST_LABEL#" href="#LINK#"><img src="/i/ng_black.gif" alt="" width="5" height="11"/>#TEXT#</a></li>';
t3:=t3||'<li><a name="#LIST_LABEL#" class="current" href="#LINK#"><img src="#WORKSPACE_IMAGES#black.gif" alt="">#TEXT#</a></li>';
t3:=t3||'<li><a name="#LIST_LABEL#" class="current" href="#LINK#"><img src="#WORKSPACE_IMAGES#black.gif" alt="" width="5" height="11"/>#TEXT#</a></li>';
t4:=t4||'<li><a name="#LIST_LABEL#" href="#LINK#"><img src="#WORKSPACE_IMAGES#black.gif" alt="">#TEXT#</a></li>';
t4:=t4||'<li><a name="#LIST_LABEL#" href="#LINK#"><img src="#WORKSPACE_IMAGES#black.gif" alt="" width="5" height="11"/>#TEXT#</a></li>';
t5:=t5||'<li><a name="#LIST_LABEL#" class="current" href="#LINK#"><img src="/i/ng_black.gif" alt="">#TEXT#</a></li>';
t5:=t5||'<li><a name="#LIST_LABEL#" class="current" href="#LINK#"><img src="/i/ng_black.gif" alt="" width="5" height="11" />#TEXT#</a></li>';
t6:=t6||'<li><a name="#LIST_LABEL#" href="#LINK#"><img src="/i/ng_black.gif" alt="">#TEXT#</a></li>';
t6:=t6||'<li><a name="#LIST_LABEL#" href="#LINK#"><img src="/i/ng_black.gif" alt="" width="5" height="11"/>#TEXT#</a></li>';
t7:=t7||'<li><a name="#LIST_LABEL#" class="current" href="#LINK#"><img src="#WORKSPACE_IMAGES#black.gif" alt="">#TEXT#</a></li>';
t7:=t7||'<li><a name="#LIST_LABEL#" class="current" href="#LINK#"><img src="#WORKSPACE_IMAGES#black.gif" alt="" width="5" height="11"/>#TEXT#</a></li>';
t8:=t8||'<li><a name="#LIST_LABEL#" href="#LINK#"><img src="#WORKSPACE_IMAGES#black.gif" alt="">#TEXT#</a></li>';
t8:=t8||'<li><a name="#LIST_LABEL#" href="#LINK#"><img src="#WORKSPACE_IMAGES#black.gif" alt="" width="5" height="11"/>#TEXT#</a></li>';
wwv_flow_api.create_list_template (
p_id=>24746820611526783 + wwv_flow_api.g_id_offset,