filterDateRange.xts 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489
  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 resolverBase="prompting" 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="queryCM" mode="interpret" processor="XSLT" type="exec" condition=".[/root/env/param[@name='xxRetrievePrompt']='true']" mandatory="false" nodelist="env, header, http, cookies, biBusHeader">
  14. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  15. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:cm="http://developer.cognos.com/schemas/bibus/3/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt">
  16. <xsl:template match="/">
  17. <xts:sequence>
  18. <xts:append>
  19. <xts:request asText="true" href="bus://dispatcher" protocol="BUS" responseEnvelope="false" soapAction="http://www.ibm.com/xmlns/prod/cognos/contentManagerService/201404/">
  20. <SOAP-ENV:Envelope xmlns:bus="http://developer.cognos.com/schemas/bibus/3/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  21. <SOAP-ENV:Header>
  22. <xsl:copy-of select="/root/header/bus:biBusHeader"/>
  23. </SOAP-ENV:Header>
  24. <SOAP-ENV:Body>
  25. <cm:query xmlns:cm="http://developer.cognos.com/schemas/bibus/3/">
  26. <search>
  27. <xsl:value-of select="xtsext:urldecode(string(/root/env/param[@name='xxSearchPath']))"/>
  28. </search>
  29. <properties xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cm:propEnum[1]">
  30. <item xsi:type="">parameters</item>
  31. </properties>
  32. </cm:query>
  33. </SOAP-ENV:Body>
  34. </SOAP-ENV:Envelope>
  35. </xts:request>
  36. </xts:append>
  37. </xts:sequence>
  38. </xsl:template>
  39. </xsl:stylesheet>
  40. </xts:block>
  41. <xts:block id="appendDocument" mode="interpret" processor="XSLT" type="exec" dependency="queryCM" condition=".[/root/env/param[@name='xxRetrievePrompt']='true']" mandatory="false" nodelist="header, env, http, cookies, biBusHeader">
  42. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  43. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/" xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/" xmlns:cm="http://developer.cognos.com/schemas/cm/1/" xmlns:SOAP-ENV="http://www.w3.org/2001/09/soap-envelope" xmlns:bus="http://developer.cognos.com/schemas/bibus/3/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt">
  44. <xsl:output method="xml" version="1.0" encoding="UTF-8"/>
  45. <xsl:template match="/root">
  46. <xts:sequence>
  47. <xts:append select="/root/env">
  48. <xsl:for-each select="/root/cm:queryResponse/queryResult/item/parameters/value/item" xmlns:cm="http://developer.cognos.com/schemas/bibus/3/">
  49. <xsl:if test="/root/env/param[@name='xxFromParamName']=./name">
  50. <xsl:for-each select="./value/item/start">
  51. <param name="xxFromDate"><xsl:value-of select="./use" disable-output-escaping="yes"/></param>
  52. </xsl:for-each>
  53. </xsl:if>
  54. <xsl:if test="/root/env/param[@name='xxToParamName']=./name">
  55. <xsl:for-each select="./value/item/end">
  56. <param name="xxToDate"><xsl:value-of select="./use" disable-output-escaping="yes"/></param>
  57. </xsl:for-each>
  58. </xsl:if>
  59. <xsl:if test="/root/env/param[@name='xxToParamName']=./name">
  60. <xsl:for-each select="./value/item/use">
  61. <param name="xxFromDate"><xsl:value-of select="./use" disable-output-escaping="yes"/></param>
  62. <param name="xxToDate"><xsl:value-of select="./use" disable-output-escaping="yes"/></param>
  63. </xsl:for-each>
  64. </xsl:if>
  65. </xsl:for-each>
  66. </xts:append>
  67. </xts:sequence>
  68. </xsl:template>
  69. </xsl:stylesheet>
  70. </xts:block>
  71. <xts:block id="getLocalPrompts" mode="interpret" processor="XSLT" type="exec" dependency="queryCM" condition=".[not(/root/env/param[@name='xxRetrievePrompt'])]" mandatory="false">
  72. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  73. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/" xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/" xmlns:cm="http://developer.cognos.com/schemas/cm/1/" xmlns:SOAP-ENV="http://www.w3.org/2001/09/soap-envelope" xmlns:bus="http://developer.cognos.com/schemas/bibus/3/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt">
  74. <xsl:output method="xml" version="1.0" encoding="UTF-8"/>
  75. <xsl:template match="/root">
  76. <xts:sequence>
  77. <xts:append select="/root/env">
  78. <xsl:for-each select="/root/env/param[@name='xxFromParamName']">
  79. <param name="xxFromParamName"><xsl:value-of select="." disable-output-escaping="yes"/></param>
  80. </xsl:for-each>
  81. <xsl:for-each select="/root/env/param[@name='xxToParamName']">
  82. <param name="xxToParamName"><xsl:value-of select="." disable-output-escaping="yes"/></param>
  83. </xsl:for-each>
  84. </xts:append>
  85. </xts:sequence>
  86. </xsl:template>
  87. </xsl:stylesheet>
  88. </xts:block>
  89. <xts:block id="appendLocalPrompts" mode="interpret" processor="XSLT" type="exec" dependency="getLocalPrompts" condition=".[not(/root/env/param[@name='xxRetrievePrompt'])]" mandatory="false">
  90. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  91. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/" xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/" xmlns:cm="http://developer.cognos.com/schemas/cm/1/" xmlns:SOAP-ENV="http://www.w3.org/2001/09/soap-envelope" xmlns:bus="http://developer.cognos.com/schemas/bibus/3/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt">
  92. <xsl:output method="xml" version="1.0" encoding="UTF-8"/>
  93. <xsl:template match="/root">
  94. <xts:sequence>
  95. <xts:append select="/root/env">
  96. <xsl:for-each select="/root/env/param[@name='xxFromParamName']/selectChoices">
  97. <xsl:choose>
  98. <xsl:when test="./selectBoundRange/start">
  99. <param name="xxFromDate"><xsl:value-of select="./selectBoundRange/start/@useValue"/></param>
  100. </xsl:when>
  101. <xsl:when test="./selectUnboundedEndRange/start">
  102. <param name="xxFromDate"><xsl:value-of select="./selectUnboundedEndRange/start/@useValue"/></param>
  103. </xsl:when>
  104. <xsl:when test="./selectOption">
  105. <param name="xxFromDate"><xsl:value-of select="./selectOption/@useValue"/></param>
  106. </xsl:when>
  107. </xsl:choose>
  108. </xsl:for-each>
  109. <xsl:for-each select="/root/env/param[@name='xxToParamName']/selectChoices">
  110. <xsl:choose>
  111. <xsl:when test="./selectBoundRange/end">
  112. <param name="xxToDate"><xsl:value-of select="./selectBoundRange/end/@useValue"/></param>
  113. </xsl:when>
  114. <xsl:when test="./selectUnboundedStartRange/end">
  115. <param name="xxToDate"><xsl:value-of select="./selectUnboundedStartRange/end/@useValue"/></param>
  116. </xsl:when>
  117. <xsl:when test="./selectOption">
  118. <param name="xxToDate"><xsl:value-of select="./selectOption/@useValue"/></param>
  119. </xsl:when>
  120. </xsl:choose>
  121. </xsl:for-each>
  122. </xts:append>
  123. </xts:sequence>
  124. </xsl:template>
  125. </xsl:stylesheet>
  126. </xts:block>
  127. <xts:block id="page" type="exec" mode="output" processor="XSLT" mimeType="text/html" dependency="appendDocument appendLocalPrompts">
  128. <!-- get the debug logic sheet -->
  129. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  130. <!-- get the new theme stuff -->
  131. <xts:logicsheet path="qs/logicsheets/filter_theme.xsl"/>
  132. <xts:logicsheet path="logicsheets/portal.xsl"/>
  133. <xts:logicsheet path="qs/logicsheets/dialogs.xsl"/>
  134. <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
  135. <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
  136. <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
  137. <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
  138. <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
  139. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  140. <!-- apply the form logic -->
  141. <xts:logicsheet path="logicsheets/formlogic.xslt"/>
  142. <xsl:stylesheet version="1.0" xmlns:filterdlg="test_filterDlg" 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:xtsext="xalan://com.cognos.xts.ext.XTSExt" xmlns:qsdlg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/qs/dialog/" exclude-result-prefixes="filterdlg xsl xts lyt pf dp df cp cf dbg xtsext qsdlg">
  143. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
  144. <!-- Default variables (like skin) and prompt variables -->
  145. <qsdlg:variables/>
  146. <qsdlg:promptVariables/>
  147. <!-- Prompt Control XSL include -->
  148. <xsl:include href="p_include.xsl"/>
  149. <!-- add any theme variables -->
  150. <df:variables/>
  151. <pf:variables/>
  152. <!-- start the output -->
  153. <xsl:template match="/root">
  154. <!--Get HTML output for the HEAD section -->
  155. <dp:page>
  156. <dp:script>
  157. <xsl:call-template name="getPromptCommonIncludes"/>
  158. <xsl:call-template name="getselectDateIncludes">
  159. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  160. <xsl:with-param name="promptContentLocale" select="$contentLocale"/>
  161. </xsl:call-template>
  162. <xsl:call-template name="gettextBoxIncludes">
  163. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  164. <xsl:with-param name="promptContentLocale" select="$contentLocale"/>
  165. </xsl:call-template>
  166. <link href="{$qsdlgskin}/qs/QSRVDialog.css" type="text/css" rel="stylesheet"/>
  167. <script type="text/javascript">
  168. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/layout.js</xsl:attribute>
  169. <xsl:text/>//<xsl:text/>
  170. </script>
  171. <script type="text/javascript">
  172. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/dialogs/filterDialog.js</xsl:attribute>
  173. <xsl:text/>//<xsl:text/>
  174. </script>
  175. <script type="text/javascript">
  176. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/rv/cvConstants.js</xsl:attribute>
  177. <xsl:text/>//<xsl:text/>
  178. </script>
  179. <script type="text/javascript">
  180. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/rv/common.js</xsl:attribute>
  181. <xsl:text/>//<xsl:text/>
  182. </script>
  183. <script type="text/javascript">
  184. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/rv/cvui.js</xsl:attribute>
  185. <xsl:text/>//<xsl:text/>
  186. </script>
  187. <script type="text/javascript">
  188. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/common/framework/notification/CObserver.js</xsl:attribute>
  189. <xsl:text/>//<xsl:text/>
  190. </script>
  191. <script type="text/javascript">
  192. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/classes/CDialogManager.js</xsl:attribute>
  193. <xsl:text/>//<xsl:text/>
  194. </script>
  195. <script type="text/javascript">
  196. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/classes/CWindowManager.js</xsl:attribute>
  197. <xsl:text/>//<xsl:text/>
  198. </script>
  199. <script type="text/javascript">&lt;!--
  200. var goDialogManager = new CDialogManager();
  201. var cf = getConfigFrame();
  202. var onlyPrompt = false;
  203. var complexFilterType = "selectDate";
  204. var substVarValueFrom = null;
  205. var substVarValueTo = null;
  206. function execute() { filterDateRange_execute(); }
  207. <filterdlg:update_value_field/>
  208. function init()
  209. {
  210. var oOptions = {};
  211. <xsl:if test="/root/env/param[@name='xxFromParamName' or @name='xxToParamName']">
  212. oOptions.bPrompt = true;
  213. </xsl:if>
  214. <xsl:if test="/root/env/param[@name='xxSubstVar']='true'">
  215. oOptions.bUseAdv = true;
  216. </xsl:if>
  217. filterDateRange_init(oOptions);
  218. <xsl:if test="/root/env/param[@name='xxSubstVar']='true'">
  219. <filterdlg:subst_var_button/>
  220. </xsl:if>
  221. }
  222. //--&gt;</script>
  223. </dp:script>
  224. <form style="margin:0px" name="f" method="POST" onsubmit="execute();return false;">
  225. <table border="0" cellspacing="0" cellpadding="0" height="100%" width="100%">
  226. <tr>
  227. <td width="100%" height="0%">
  228. <!-- dialog header -->
  229. <dp:header help="false">
  230. <!-- header titles -->
  231. <dp:title>
  232. <xts:string id="FILTER_TITLE"/>
  233. </dp:title>
  234. <!-- close link for the header -->
  235. <dp:close>
  236. <a href="javascript:this.cancelDialog()">
  237. <dp:closeMarker/>
  238. </a>
  239. </dp:close>
  240. <!-- description (hint text) -->
  241. <dp:description>
  242. <xts:string id="FILTER_DATE_DESCRIPTION"/>
  243. </dp:description>
  244. </dp:header>
  245. </td>
  246. </tr>
  247. <tr>
  248. <td width="100%" height="100%" valign="top">
  249. <!-- layout -->
  250. <lyt:layout style="2" border="no">
  251. <lyt:section>
  252. <dp:input>
  253. <dp:section1>
  254. <xts:string id="FILTER_ON"/>
  255. </dp:section1>
  256. <dp:section2>
  257. <xsl:attribute name="id">colName</xsl:attribute>
  258. </dp:section2>
  259. </dp:input>
  260. </lyt:section>
  261. <lyt:section>
  262. <qsdlg:promptBox/>
  263. </lyt:section>
  264. </lyt:layout>
  265. <lyt:layout style="1" border="no" joinSection="true">
  266. <lyt:section>
  267. <qsdlg:filterDateRangeSelect selectedOption="filterDateRange"/>
  268. </lyt:section>
  269. </lyt:layout>
  270. <lyt:layout style="1" border="no" joinSection="true">
  271. <lyt:section>
  272. <qsdlg:conditionBox/>
  273. </lyt:section>
  274. </lyt:layout>
  275. <lyt:layout style="1" border="yes" title="FILTER_FROM_WITHOUT_COLON" joinSection="true">
  276. <lyt:section>
  277. <dp:choice>
  278. <dp:section1 type="label">
  279. <xts:string id="FILTER_DATE"/>
  280. </dp:section1>
  281. <dp:section2>
  282. <table>
  283. <tr>
  284. <td>
  285. <input type="radio" name="fromValue">
  286. <xsl:if test="/root/env/param[@name='xxFromDate']">
  287. <xsl:attribute name="checked">true</xsl:attribute>
  288. </xsl:if>
  289. </input>
  290. </td>
  291. <td>
  292. <!-- Render a select date prompt-->
  293. <xsl:variable name="date1">
  294. <xsl:choose>
  295. <xsl:when test="/root/env/param[@name='xxFromDate']">
  296. <xsl:value-of select="/root/env/param[@name='xxFromDate']"/>
  297. </xsl:when>
  298. <xsl:otherwise>none</xsl:otherwise>
  299. </xsl:choose>
  300. </xsl:variable>
  301. <xsl:call-template name="getSelectDate">
  302. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  303. <xsl:with-param name="promptFormName" select="$promptFormName"/>
  304. <xsl:with-param name="promptRequired" select="'false'"/>
  305. <xsl:with-param name="promptStartOfWeek" select="'Sunday'"/>
  306. <xsl:with-param name="promptCalendar" select="'Gregorian'"/>
  307. <xsl:with-param name="promptParameter" select="'parameter1'"/>
  308. <xsl:with-param name="promptInputOrder" select="'YMD'"/>
  309. <xsl:with-param name="promptDefaultDate" select="$date1"/>
  310. <xsl:with-param name="promptDateTime" select="'false'"/>
  311. <xsl:with-param name="promptMultiSelect" select="'false'"/>
  312. <xsl:with-param name="promptId" select="'dateFrom'"/>
  313. <xsl:with-param name="suppressDisabled" select="'true'"/>
  314. <xsl:with-param name="promptSelectUI" select="'editBox'"/>
  315. </xsl:call-template>
  316. </td>
  317. </tr>
  318. </table>
  319. </dp:section2>
  320. <xsl:if test="/root/env/param[@name='xxSubstVar']='true'">
  321. <dp:section3>
  322. <table>
  323. <tr>
  324. <td>
  325. <input type="radio" name="fromValue"/>
  326. </td>
  327. <td id="textBoxString" valign="bottom">
  328. <xsl:call-template name="getTextBox">
  329. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  330. <xsl:with-param name="promptFormName" select="$promptFormName"/>
  331. <xsl:with-param name="promptRequired" select="'false'"/>
  332. <xsl:with-param name="promptId" select="'stringValueFrom'"/>
  333. <xsl:with-param name="promptHideText" select="'false'"/>
  334. <xsl:with-param name="promptMultiLine" select="'false'"/>
  335. <xsl:with-param name="promptParameter" select="'stringParam1'"/>
  336. <xsl:with-param name="promptReadOnly" select="'true'"/>
  337. </xsl:call-template>
  338. </td>
  339. <td id="buttonContainer1"/>
  340. </tr>
  341. </table>
  342. </dp:section3>
  343. </xsl:if>
  344. <dp:section3>
  345. <table>
  346. <tr>
  347. <td>
  348. <input type="radio" name="fromValue">
  349. <xsl:if test="not(/root/env/param[@name='xxFromDate'])">
  350. <xsl:attribute name="checked">true</xsl:attribute>
  351. </xsl:if>
  352. </input>
  353. </td>
  354. <td class="formText">
  355. <img width="10">
  356. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/common/images/spacer.gif</xsl:attribute>
  357. </img>
  358. <xts:string id="FILTER_DATE_EARLIEST"/>
  359. </td>
  360. </tr>
  361. </table>
  362. </dp:section3>
  363. </dp:choice>
  364. </lyt:section>
  365. </lyt:layout>
  366. <lyt:layout style="1" border="yes" title="FILTER_TO_WITHOUT_COLON" joinSection="true">
  367. <lyt:section>
  368. <dp:choice>
  369. <dp:section1 type="label">
  370. <xts:string id="FILTER_DATE"/>
  371. </dp:section1>
  372. <dp:section2>
  373. <table>
  374. <tr>
  375. <td>
  376. <input type="radio" name="toValue">
  377. <xsl:if test="/root/env/param[@name='xxToDate']">
  378. <xsl:attribute name="checked">true</xsl:attribute>
  379. </xsl:if>
  380. </input>
  381. </td>
  382. <td>
  383. <xsl:variable name="date2">
  384. <xsl:choose>
  385. <xsl:when test="/root/env/param[@name='xxToDate']">
  386. <xsl:value-of select="/root/env/param[@name='xxToDate']"/>
  387. </xsl:when>
  388. <xsl:otherwise>none</xsl:otherwise>
  389. </xsl:choose>
  390. </xsl:variable>
  391. <xsl:call-template name="getSelectDate">
  392. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  393. <xsl:with-param name="promptFormName" select="$promptFormName"/>
  394. <xsl:with-param name="promptRequired" select="'false'"/>
  395. <xsl:with-param name="promptStartOfWeek" select="'Sunday'"/>
  396. <xsl:with-param name="promptCalendar" select="'Gregorian'"/>
  397. <xsl:with-param name="promptParameter" select="'parameter2'"/>
  398. <xsl:with-param name="promptInputOrder" select="'YMD'"/>
  399. <xsl:with-param name="promptDefaultDate" select="$date2"/>
  400. <xsl:with-param name="promptDateTime" select="'false'"/>
  401. <xsl:with-param name="promptMultiSelect" select="'false'"/>
  402. <xsl:with-param name="promptId" select="'dateTo'"/>
  403. <xsl:with-param name="suppressDisabled" select="'true'"/>
  404. <xsl:with-param name="promptSelectUI" select="'editBox'"/>
  405. </xsl:call-template>
  406. </td>
  407. </tr>
  408. </table>
  409. </dp:section2>
  410. <xsl:if test="/root/env/param[@name='xxSubstVar']='true'">
  411. <dp:section3>
  412. <table>
  413. <tr>
  414. <td>
  415. <input type="radio" name="toValue"/>
  416. </td>
  417. <td valign="bottom">
  418. <xsl:call-template name="getTextBox">
  419. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  420. <xsl:with-param name="promptFormName" select="$promptFormName"/>
  421. <xsl:with-param name="promptRequired" select="'false'"/>
  422. <xsl:with-param name="promptId" select="'stringValueTo'"/>
  423. <xsl:with-param name="promptHideText" select="'false'"/>
  424. <xsl:with-param name="promptMultiLine" select="'false'"/>
  425. <xsl:with-param name="promptParameter" select="'stringParam2'"/>
  426. <xsl:with-param name="promptReadOnly" select="'true'"/>
  427. </xsl:call-template>
  428. </td>
  429. <td id="buttonContainer2"/>
  430. </tr>
  431. </table>
  432. </dp:section3>
  433. </xsl:if>
  434. <dp:section3>
  435. <table>
  436. <tr>
  437. <td>
  438. <input type="radio" name="toValue">
  439. <xsl:if test="not(/root/env/param[@name='xxToDate'])">
  440. <xsl:attribute name="checked">true</xsl:attribute>
  441. </xsl:if>
  442. </input>
  443. </td>
  444. <td class="formText">
  445. <img width="10">
  446. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/common/images/spacer.gif"</xsl:attribute>
  447. </img>
  448. <xts:string id="FILTER_DATE_LATEST"/>
  449. </td>
  450. </tr>
  451. </table>
  452. </dp:section3>
  453. </dp:choice>
  454. </lyt:section>
  455. </lyt:layout>
  456. <lyt:layout style="1" joinSection="true">
  457. <lyt:section>
  458. <qsdlg:nullOptions/>
  459. <qsdlg:filterBasedOnDSBox/>
  460. </lyt:section>
  461. </lyt:layout>
  462. </td>
  463. </tr>
  464. <tr>
  465. <td width="100%" height="0%">
  466. <!-- Use default buttons [ OK = execute() and CANCEL = hideDialogFrame() ] -->
  467. <qsdlg:defaultButtons/>
  468. </td>
  469. </tr>
  470. <!-- <dbg:dumpxml select="/"/> -->
  471. </table>
  472. </form>
  473. </dp:page>
  474. </xsl:template>
  475. </xsl:stylesheet>
  476. </xts:block>
  477. </xts:morphlet>