reportTemplate.xts 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. BI and PM: qs
  5. (C) Copyright IBM Corp. 2001, 2017
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <!--
  9. Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
  10. Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
  11. -->
  12. <xts:morphlet version="1.0" xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/QSRVUITextPL.xml,messages/portal.xml,messages/portalRL.xml" requiredCapability="canUseQueryStudio">
  13. <xts:block id="page" type="exec" mode="output" processor="XSLT" mimeType="text/html">
  14. <!-- get the debug logic sheet -->
  15. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  16. <!-- get the new theme stuff -->
  17. <xts:logicsheet path="logicsheets/portal.xsl"/>
  18. <xts:logicsheet path="qs/logicsheets/dialogIncludes.xsl"/>
  19. <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
  20. <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
  21. <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
  22. <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
  23. <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
  24. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  25. <!-- apply the form logic -->
  26. <xts:logicsheet path="logicsheets/formlogic.xslt"/>
  27. <xsl:stylesheet version="1.0"
  28. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  29. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  30. xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
  31. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  32. xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
  33. xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
  34. xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
  35. xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
  36. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  37. xmlns:dbg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/debug/"
  38. xmlns:qsdialog="http://developer.cognos.com/schemas/xts/logicsheets/xslt/qs/dialog/"
  39. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" exclude-result-prefixes="xsl xts lyt pf dp df cp cf dbg qsdialog xtsext">
  40. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
  41. <!-- add any theme variables -->
  42. <df:variables/>
  43. <pf:variables/>
  44. <!-- start the output -->
  45. <xsl:template match="/root">
  46. <!--Get HTML output for the HEAD section -->
  47. <dp:page>
  48. <dp:script>
  49. <script type="text/javascript">
  50. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/layout.js</xsl:attribute>
  51. <xsl:text/>//<xsl:text/>
  52. </script>
  53. <script type="text/javascript">
  54. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/classes/CTemplateDialog.js</xsl:attribute>
  55. <xsl:text/>//<xsl:text/>
  56. </script>
  57. <qsdialog:headerIncludes dlgSize="290" featureName="Template" setupParameters="env"/>
  58. </dp:script>
  59. <form style="margin:0px" name="f" method="POST" onsubmit="return false;">
  60. <table border="0" cellspacing="0" cellpadding="0" height="100%" width="100%">
  61. <tr>
  62. <td width="100%" height="0%">
  63. <!-- dialog header -->
  64. <dp:header help="false">
  65. <!-- header titles -->
  66. <dp:title>
  67. <xts:string id="REPORT_TEMPLATE_TITLE"/>
  68. </dp:title>
  69. <!-- close link for the header -->
  70. <dp:close>
  71. <a href="javascript:getConfigFrame().hideDialogFrame()">
  72. <dp:closeMarker/>
  73. </a>
  74. </dp:close>
  75. <!-- description (hint text) -->
  76. <dp:description>
  77. <xts:string id="REPORT_TEMPLATE_DESCRIPTION"/>
  78. </dp:description>
  79. </dp:header>
  80. </td>
  81. </tr>
  82. <tr>
  83. <td width="100%" height="100%" valign="top">
  84. <!-- layout -->
  85. <lyt:layout style="1" border="no">
  86. <lyt:section>
  87. <dp:choice>
  88. <dp:section1>
  89. <input type="radio" name="templateMode" value="false" checked="checked"/>
  90. </dp:section1>
  91. <dp:section2>
  92. <xts:string id="REPORT_TEMPLATE_NO_TEMPLATE"/>
  93. </dp:section2>
  94. <dp:section1>
  95. <input type="radio" name="templateMode" value="true"/>
  96. </dp:section1>
  97. <dp:section2>
  98. <xts:string id="REPORT_TEMPLATE_APPLY_TEMPLATE"/>
  99. </dp:section2>
  100. <dp:choice>
  101. <dp:section1/>
  102. <dp:section2>
  103. <div id="loadingContainer" style="vertical-align:top;">
  104. <img id="loadingIcon"/>&#160;
  105. </div>
  106. <div id="pathContainer" style="display:none">
  107. <!-- Path to the container where we want to place this new entry. Leave this empty if the user does not have write access. -->
  108. <input type="hidden" name="templateSearchPath" value="" style="width: 400px;" onfocus="document.f.templateMode[1].checked=true;"/>
  109. <span id="path"/>
  110. <span id="pathContents"> </span>
  111. &#160;
  112. <a href="javascript:void oTemplateDialog.selectTmpl();" onmouseover="window.status='';return true;" onmouseout="window.status='';return true;">
  113. <xts:string id="REPORT_TEMPLATE_SELECT"/>
  114. </a>
  115. </div>
  116. </dp:section2>
  117. <dp:section1/>
  118. <dp:section2>
  119. <br/>
  120. <input type="checkbox" name="resetStyles" value=""/>
  121. <xts:string id="REPORT_TEMPLATE_RESET_STYLES"/>
  122. </dp:section2>
  123. </dp:choice>
  124. </dp:choice>
  125. </lyt:section>
  126. </lyt:layout>
  127. </td>
  128. </tr>
  129. <tr>
  130. <td width="100%" height="100%">
  131. <qsdialog:defaultButtons/>
  132. </td>
  133. </tr>
  134. <!-- <dbg:dumpxml select="/"/> -->
  135. </table>
  136. </form>
  137. <script type="text/javascript">&lt;!--
  138. // If we're coming back from the portal OK page, set the TemplateDialog search path to the returned value
  139. var sSearchPath="<xsl:text/><xsl:value-of select="xtsext:javascriptencode(string(/root/env/param[@name='so.searchPath']))"/><xsl:text/>";
  140. // The search path must be passed into the report template class
  141. var oTemplateDialog = new CTemplateDialog("reportTemplate.xts", sSearchPath);
  142. function execute()
  143. {
  144. oTemplateDialog.execute();
  145. }
  146. //--&gt;</script>
  147. </dp:page>
  148. </xsl:template>
  149. </xsl:stylesheet>
  150. </xts:block>
  151. <!--
  152. ===============================================================================================
  153. debug
  154. ===============================================================================================
  155. -->
  156. <xts:block id="debug" dependency="page" condition=".[ /root/session/param[@name='debug'] = '1' ]" type="exec" mode="output" processor="XSLT" mandatory="false" mimeType="text/html">
  157. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  158. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dbg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/debug/" exclude-result-prefixes="dbg">
  159. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
  160. <xsl:template match="/">
  161. <dbg:dumpxml select="/root"/>
  162. </xsl:template>
  163. </xsl:stylesheet>
  164. </xts:block>
  165. </xts:morphlet>