condStylesPickTextRange.xts 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. <xts:morphlet resolverBase="prompting" xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/QSRVUITextPL.xml,messages/portal.xml,messages/portalRL.xml" requiredCapability="canUseQueryStudio, canUseQueryStudioAdvancedMode">
  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:block id="format" type="exec" mode="output" processor="XSLT" mimeType="text/html">
  13. <!-- get the debug logic sheet -->
  14. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  15. <!-- get the new theme stuff -->
  16. <xts:logicsheet path="logicsheets/portal.xsl"/>
  17. <xts:logicsheet path="qs/logicsheets/dialogs.xsl"/>
  18. <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
  19. <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
  20. <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
  21. <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
  22. <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
  23. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  24. <!-- apply the form logic -->
  25. <xts:logicsheet path="logicsheets/formlogic.xslt"/>
  26. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 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:qsdlg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/qs/dialog/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" exclude-result-prefixes="xsl xts lyt pf dp df cp cf dbg qsdlg xtsext">
  27. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
  28. <!-- Default variables (like skin) and prompt variables -->
  29. <qsdlg:variables/>
  30. <qsdlg:promptVariables/>
  31. <xsl:include href="p_include.xsl"/>
  32. <!-- add any theme variables -->
  33. <df:variables/>
  34. <pf:variables/>
  35. <!-- start the output -->
  36. <xsl:template match="/root">
  37. <xsl:variable name="xxType" select="/root/env/param[@name='xxType']"/>
  38. <!--Get HTML output for the HEAD section -->
  39. <dp:page>
  40. <dp:script>
  41. <xsl:call-template name="getPromptCommonIncludes"/>
  42. <xsl:choose>
  43. <xsl:when test="$xxType=1">
  44. <xsl:call-template name="getselectDateIncludes">
  45. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  46. <xsl:with-param name="promptContentLocale" select="$contentLocale"/>
  47. </xsl:call-template>
  48. </xsl:when>
  49. <xsl:when test="$xxType=2">
  50. <xsl:call-template name="getselectTimeIncludes">
  51. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  52. <xsl:with-param name="promptContentLocale" select="$contentLocale"/>
  53. </xsl:call-template>
  54. </xsl:when>
  55. <xsl:when test="$xxType=3">
  56. <xsl:call-template name="getselectDateTimeIncludes">
  57. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  58. <xsl:with-param name="promptContentLocale" select="$contentLocale"/>
  59. </xsl:call-template>
  60. </xsl:when>
  61. <xsl:when test="$xxType=4">
  62. <xsl:call-template name="getintervalFieldIncludes">
  63. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  64. <xsl:with-param name="promptContentLocale" select="$contentLocale"/>
  65. </xsl:call-template>
  66. </xsl:when>
  67. <xsl:when test="$xxType=5">
  68. <xsl:call-template name="getselectValueIncludes">
  69. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  70. <xsl:with-param name="promptContentLocale" select="$contentLocale"/>
  71. </xsl:call-template>
  72. </xsl:when>
  73. </xsl:choose>
  74. <script type="text/javascript">
  75. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/layout.js</xsl:attribute>
  76. <xsl:text/>//<xsl:text/>
  77. </script>
  78. <script type="text/javascript">
  79. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/dialogs/filterDialog.js</xsl:attribute>
  80. <xsl:text/>//<xsl:text/>
  81. </script>
  82. <script type="text/javascript">
  83. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/classes/CDialogManager.js</xsl:attribute>
  84. <xsl:text/>//<xsl:text/>
  85. </script>
  86. <script type="text/javascript">
  87. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/classes/CWindowManager.js</xsl:attribute>
  88. <xsl:text/>//<xsl:text/>
  89. </script>
  90. <script type="text/javascript">&lt;!--
  91. var goDialogManager = new CDialogManager();
  92. var cf = getConfigFrame();
  93. var onlyPrompt;
  94. var complexFilterType = "picklist";
  95. function cancelDialog()
  96. {
  97. getConfigFrame().hideCModal();
  98. }
  99. function execute()
  100. {
  101. var fct = getConfigFrame().dlgGlobalGetParm("csCALLBACK");
  102. // buildFilterExpression sets the 'onlyPrompt' value.
  103. var param = new Array();
  104. param[param.length] = document.getElementById('r_from').value;
  105. param[param.length] = document.getElementById('r_to').value;
  106. if (typeof fct == "function") {
  107. fct(param);
  108. }
  109. getConfigFrame().hideCModal();
  110. }
  111. function init()
  112. {
  113. document.body.className = 'body_dialog_modal';
  114. document.getElementById('r_from').value = "<xsl:value-of select="xtsext:javascriptencode(string(/root/env/param[@name='xxFrom']))"/>";
  115. document.getElementById('r_to').value = "<xsl:value-of select="xtsext:javascriptencode(string(/root/env/param[@name='xxTo']))"/>";
  116. }
  117. //--&gt;</script>
  118. </dp:script>
  119. <form class="body_dialog_modal" style="margin:0px" name="f" method="POST" onsubmit="execute();return false;">
  120. <table border="0" cellspacing="0" cellpadding="0" height="100%" width="100%">
  121. <tr>
  122. <td width="100%" height="100%" valign="top" style="overflow:auto;">
  123. <!-- layout -->
  124. <lyt:layout style="1" border="no">
  125. <lyt:section>
  126. <dp:input>
  127. <dp:section1><xts:string id="COND_STYLE_FROM"/></dp:section1>
  128. <dp:section2>
  129. <input id="r_from" name="r_from" type="text" value="" style="width:150px;"/>
  130. </dp:section2>
  131. </dp:input>
  132. <dp:input>
  133. <dp:section1><xts:string id="COND_STYLE_TO"/></dp:section1>
  134. <dp:section2>
  135. <input id="r_to" name="r_to" type="text" value="" style="width:150px;"/>
  136. </dp:section2>
  137. </dp:input>
  138. </lyt:section>
  139. </lyt:layout>
  140. </td>
  141. </tr>
  142. </table>
  143. </form>
  144. </dp:page>
  145. </xsl:template>
  146. </xsl:stylesheet>
  147. </xts:block>
  148. </xts:morphlet>