maError.xts 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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, 2010
  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) 2015 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">
  37. function init()
  38. {
  39. var cf = getConfigFrame ? getConfigFrame() : null;
  40. if (cf &amp;&amp; cf.doOpenPopUpToSize)
  41. {
  42. cf.doOpenPopUpToSize(400, 350);
  43. var errorSection = document.getElementById("errorSection");
  44. var errorMessage = "";
  45. var errorTable = document.createElement("table");
  46. var errorTbody = document.createElement("tbody");
  47. for (var i = 0; i &lt; cf.metadataErrors.length; i++)
  48. {
  49. var errorTr = document.createElement("tr");
  50. var errorTd = document.createElement("td");
  51. errorTd.appendChild(document.createTextNode(cf.metadataErrors[i]));
  52. errorTd.className = "formText";
  53. errorTr.appendChild(errorTd);
  54. errorTbody.appendChild(errorTr);
  55. }
  56. errorTable.appendChild(errorTbody);
  57. errorSection.appendChild(errorTable);
  58. }
  59. cf.cfgSet("agentHasChanged", true);
  60. }
  61. </script>
  62. </dp:script>
  63. <utml:form name="pform" method="post" action="{$gateway}">
  64. <dp:header help="false">
  65. <!-- header titles -->
  66. <dp:title>
  67. <xts:string id="METADATA_NOT_AVAILABLE"/>
  68. </dp:title>
  69. <!-- close link for the header -->
  70. <dp:close>
  71. <a href="#" onclick="getConfigFrame().doClosePopUp()">
  72. <dp:closeMarker/>
  73. </a>
  74. </dp:close>
  75. <!-- description (hint text) -->
  76. <dp:description/>
  77. </dp:header>
  78. <!-- layout -->
  79. <lyt:layout style="1" border="no">
  80. <lyt:section>
  81. <dp:box valign="top">
  82. <dp:boxSection hgap="20">
  83. <img width="32" height="32" align="top" hspace="10">
  84. <xsl:attribute name="src">
  85. <xsl:value-of select="$webcontent"/>/<xsl:value-of select="$app"/>/images/msg_error.gif</xsl:attribute>
  86. </img>
  87. </dp:boxSection>
  88. <dp:boxSection>
  89. <div style="width:500px; height:180px; overflow:auto; border: 1px solid black;">
  90. <table style="width:100%; height:100%;">
  91. <tr>
  92. <td id="errorSection" style="width:100%; height:100%;" class="formText"/>
  93. </tr>
  94. </table>
  95. </div>
  96. </dp:boxSection>
  97. </dp:box>
  98. </lyt:section>
  99. </lyt:layout>
  100. <dp:footer>
  101. <df:button df:id="IDS_OK" df:style="href" df:href="#" onclick="getConfigFrame().doClosePopUp();"/>
  102. </dp:footer>
  103. </utml:form>
  104. </dp:page>
  105. </xsl:template>
  106. </xsl:stylesheet>
  107. </xts:block>
  108. </xts:morphlet>