errorDialog.xts 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: AGS
  5. (C) Copyright IBM Corp. 2005, 2008
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <xts:morphlet version="1.0" xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/AGS.xml,messages/portal.xml,messages/portalRL.xml" requiredCapability="canUseEventStudio">
  9. <xts:block id="page" type="exec" mode="output" processor="XSLT" mimeType="text/html">
  10. <!-- get the debug logic sheet -->
  11. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  12. <!-- get the new theme stuff -->
  13. <xts:logicsheet path="logicsheets/portal.xsl"/>
  14. <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
  15. <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
  16. <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
  17. <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
  18. <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
  19. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  20. <!-- apply the form logic -->
  21. <xts:logicsheet path="logicsheets/formlogic.xslt"/>
  22. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xts="http://developer.cognos.com/schemas/xts/" xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/" xmlns:pf="http://developer.cognos.com/schemas/xts/pf" xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/" xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/" xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/" xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/" xmlns:dbg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/debug/" xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" exclude-result-prefixes="xsl xts lyt pf dp df cp cf dbg xtsext">
  23. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
  24. <!-- add any theme variables -->
  25. <df:variables/>
  26. <pf:variables/>
  27. <!-- start the output -->
  28. <xsl:template match="/root">
  29. <xsl:text disable-output-escaping='yes'>&lt;!DOCTYPE html></xsl:text><dp:page>
  30. <link href="{$skin_root}/ags/ags.css" type="text/css" rel="stylesheet"/>
  31. <link href="{$skin_root}/ags/crn.css" type="text/css" rel="stylesheet"/>
  32. <dp:script>
  33. <meta name="Copyright" content="Copyright (C) 2008 Cognos Incorporated. All Rights Reserved."/>
  34. <meta name="Trademark" content="Cognos and the Cognos logo are trademarks of Cognos Incorporated."/>
  35. <script type="text/javascript" src="../ags/layout.js">//</script>
  36. <script type="text/javascript" src="../ags/util.js">//</script>
  37. <script type="text/javascript">
  38. function init()
  39. {
  40. var cf = getConfigFrame ? getConfigFrame() : null;
  41. if (cf &amp;&amp; cf.doOpenPopUpToSize)
  42. {
  43. var errorSection = document.getElementById("errorSection");
  44. var errHt = cf.cfgGet('errAreaHt');
  45. var errorDiv = document.getElementById("errDiv");
  46. if(null != errorDiv) {
  47. errorDiv.style.height = errHt;
  48. }
  49. if (cf.pageErrors.length > 0)
  50. {
  51. var errorTable = document.createElement("table");
  52. var errorTbody = document.createElement("tbody");
  53. for (var i = 0; i &lt; cf.pageErrors.length; i++)
  54. {
  55. var errorTr = document.createElement("tr");
  56. var errorTd = document.createElement("td");
  57. var errMsg = decode(cf.pageErrors[i]) ;
  58. errorTd.appendChild( document.createTextNode(errMsg));
  59. errorTd.className = "formText";
  60. errorTr.appendChild(errorTd);
  61. errorTbody.appendChild(errorTr);
  62. }
  63. errorTable.appendChild(errorTbody);
  64. errorSection.appendChild(errorTable);
  65. }
  66. // make it light for the browser
  67. cf.pageErrors = new Array();
  68. }
  69. cf.cfgSet("agentHasChanged", true);
  70. }
  71. </script>
  72. </dp:script>
  73. <utml:form name="pform" method="post" action="{$gateway}">
  74. <dp:header help="false">
  75. <!-- header titles -->
  76. <dp:title><xts:string id="AGS_ERR_WINDOW_TITLE"/></dp:title>
  77. <!-- close link for the header -->
  78. <dp:close>
  79. <a href="#" onclick="getConfigFrame().doClosePopUp()">
  80. <dp:closeMarker/>
  81. </a>
  82. </dp:close>
  83. <!-- description (hint text) -->
  84. <dp:description/>
  85. </dp:header>
  86. <!-- layout -->
  87. <lyt:layout style="1" border="no">
  88. <lyt:section>
  89. <dp:box valign="top">
  90. <dp:boxSection hgap="20">
  91. <img width="32" height="32" align="top" hspace="10">
  92. <xsl:attribute name="src">
  93. <xsl:value-of select="$webcontent"/>/<xsl:value-of select="$app"/>/images/msg_error.gif</xsl:attribute>
  94. </img>
  95. </dp:boxSection>
  96. <dp:boxSection>
  97. <div id="errDiv" style="width:500px; height:180px; overflow:auto; border: 1px solid black;">
  98. <table style="width:100%; height:100%;">
  99. <tr>
  100. <td id="errorSection" style="width:100%; height:100%;" class="formText"/>
  101. </tr>
  102. </table>
  103. </div>
  104. </dp:boxSection>
  105. </dp:box>
  106. </lyt:section>
  107. </lyt:layout>
  108. <dp:footer>
  109. <df:button df:id="IDS_OK" df:style="href" df:href="#" onclick="getConfigFrame().doClosePopUp();"/>
  110. </dp:footer>
  111. </utml:form>
  112. </dp:page>
  113. </xsl:template>
  114. </xsl:stylesheet>
  115. </xts:block>
  116. </xts:morphlet>