filterDateTimeRange.xts 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588
  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="header, env, http, cookies, bus: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, bus:biBusHeader, cm:queryResponse">
  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="substring-before(./use, 'T')" disable-output-escaping="yes"/></param>
  52. <param name="xxFromTime"><xsl:value-of select="substring-after(./use, 'T')" disable-output-escaping="yes"/></param>
  53. </xsl:for-each>
  54. </xsl:if>
  55. <xsl:if test="/root/env/param[@name='xxToParamName']=./name">
  56. <xsl:for-each select="./value/item/end">
  57. <param name="xxToDate"><xsl:value-of select="substring-before(./use, 'T')" disable-output-escaping="yes"/></param>
  58. <param name="xxToTime"><xsl:value-of select="substring-after(./use, 'T')" disable-output-escaping="yes"/></param>
  59. </xsl:for-each>
  60. </xsl:if>
  61. <xsl:if test="/root/env/param[@name='xxToParamName']=./name">
  62. <xsl:for-each select="./value/item/use">
  63. <param name="xxFromDate"><xsl:value-of select="substring-before(./use, 'T')" disable-output-escaping="yes"/></param>
  64. <param name="xxFromTime"><xsl:value-of select="substring-after(./use, 'T')" disable-output-escaping="yes"/></param>
  65. <param name="xxToDate"><xsl:value-of select="substring-before(./use, 'T')" disable-output-escaping="yes"/></param>
  66. <param name="xxToTime"><xsl:value-of select="substring-after(./use, 'T')" disable-output-escaping="yes"/></param>
  67. </xsl:for-each>
  68. </xsl:if>
  69. </xsl:for-each>
  70. </xts:append>
  71. </xts:sequence>
  72. </xsl:template>
  73. </xsl:stylesheet>
  74. </xts:block>
  75. <xts:block id="getLocalPrompts" mode="interpret" processor="XSLT" type="exec" dependency="queryCM" condition=".[not(/root/env/param[@name='xxRetrievePrompt'])]" mandatory="false" nodelist="header, env, http, cookies, bus:biBusHeader">
  76. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  77. <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">
  78. <xsl:output method="xml" version="1.0" encoding="UTF-8"/>
  79. <xsl:template match="/root">
  80. <xts:sequence>
  81. <xts:append select="/root/env">
  82. <xsl:for-each select="/root/env/param[@name='xxFromParamName']">
  83. <param name="xxFromParamName"><xsl:value-of select="." disable-output-escaping="yes"/></param>
  84. </xsl:for-each>
  85. <xsl:for-each select="/root/env/param[@name='xxToParamName']">
  86. <param name="xxToParamName"><xsl:value-of select="." disable-output-escaping="yes"/></param>
  87. </xsl:for-each>
  88. </xts:append>
  89. </xts:sequence>
  90. </xsl:template>
  91. </xsl:stylesheet>
  92. </xts:block>
  93. <xts:block id="appendLocalPrompts" mode="interpret" processor="XSLT" type="exec" dependency="getLocalPrompts" condition=".[not(/root/env/param[@name='xxRetrievePrompt'])]" mandatory="false" nodelist="header, env, http, cookies, bus:biBusHeader">
  94. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  95. <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">
  96. <xsl:output method="xml" version="1.0" encoding="UTF-8"/>
  97. <xsl:template match="/root">
  98. <xts:sequence>
  99. <xts:append select="/root/env">
  100. <xsl:for-each select="/root/env/param[@name='xxFromParamName']/selectChoices">
  101. <xsl:choose>
  102. <xsl:when test="./selectBoundRange/start">
  103. <xsl:choose>
  104. <xsl:when test="contains(./selectBoundRange/start/@useValue, 'T')">
  105. <param name="xxFromDate"><xsl:value-of select="substring-before(./selectBoundRange/start/@useValue, 'T')"/></param>
  106. <param name="xxFromTime"><xsl:value-of select="substring-after(./selectBoundRange/start/@useValue, 'T')"/></param>
  107. </xsl:when>
  108. <xsl:otherwise>
  109. <param name="xxFromDate"><xsl:value-of select="substring-before(./selectBoundRange/start/@useValue, ' ')"/></param>
  110. <param name="xxFromTime"><xsl:value-of select="substring-after(./selectBoundRange/start/@useValue, ' ')"/></param>
  111. </xsl:otherwise>
  112. </xsl:choose>
  113. </xsl:when>
  114. <xsl:when test="./selectUnboundedEndRange/start">
  115. <param name="xxFromDate"><xsl:value-of select="substring-before(./selectUnboundedEndRange/start/@useValue, 'T')"/></param>
  116. <param name="xxFromTime"><xsl:value-of select="substring-after(./selectUnboundedEndRange/start/@useValue, 'T')"/></param>
  117. </xsl:when>
  118. <xsl:when test="./selectOption">
  119. <param name="xxFromDate"><xsl:value-of select="substring-before(./selectOption/@useValue, 'T')"/></param>
  120. <param name="xxFromTime"><xsl:value-of select="substring-after(./selectOption/@useValue, 'T')"/></param>
  121. </xsl:when>
  122. </xsl:choose>
  123. </xsl:for-each>
  124. <xsl:for-each select="/root/env/param[@name='xxToParamName']/selectChoices">
  125. <xsl:choose>
  126. <xsl:when test="./selectBoundRange/end">
  127. <xsl:choose>
  128. <xsl:when test="contains(./selectBoundRange/end/@useValue, 'T')">
  129. <param name="xxToDate"><xsl:value-of select="substring-before(./selectBoundRange/end/@useValue, 'T')"/></param>
  130. <param name="xxToTime"><xsl:value-of select="substring-after(./selectBoundRange/end/@useValue, 'T')"/></param>
  131. </xsl:when>
  132. <xsl:otherwise>
  133. <param name="xxToDate"><xsl:value-of select="substring-before(./selectBoundRange/end/@useValue, ' ')"/></param>
  134. <param name="xxToTime"><xsl:value-of select="substring-after(./selectBoundRange/end/@useValue, ' ')"/></param>
  135. </xsl:otherwise>
  136. </xsl:choose>
  137. </xsl:when>
  138. <xsl:when test="./selectUnboundedStartRange/end">
  139. <param name="xxToDate"><xsl:value-of select="substring-before(./selectUnboundedStartRange/end/@useValue, 'T')"/></param>
  140. <param name="xxToTime"><xsl:value-of select="substring-after(./selectUnboundedStartRange/end/@useValue, 'T')"/></param>
  141. </xsl:when>
  142. <xsl:when test="./selectOption">
  143. <param name="xxToDate"><xsl:value-of select="substring-before(./selectOption/@useValue, 'T')"/></param>
  144. <param name="xxToTime"><xsl:value-of select="substring-after(./selectOption/@useValue, 'T')"/></param>
  145. </xsl:when>
  146. </xsl:choose>
  147. </xsl:for-each>
  148. </xts:append>
  149. </xts:sequence>
  150. </xsl:template>
  151. </xsl:stylesheet>
  152. </xts:block>
  153. <xts:block id="page" type="exec" mode="output" processor="XSLT" mimeType="text/html" dependency="appendDocument appendLocalPrompts" nodelist="env, debug, http, command, system, session, user, actions, tabs, configProps, credential, cookies, setCookies, accountOptions, newSession, gatewayURI, cm:queryResponse, objectClass">
  154. <!-- get the debug logic sheet -->
  155. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  156. <!-- get the new theme stuff -->
  157. <xts:logicsheet path="qs/logicsheets/filter_theme.xsl"/>
  158. <xts:logicsheet path="logicsheets/portal.xsl"/>
  159. <xts:logicsheet path="qs/logicsheets/dialogs.xsl"/>
  160. <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
  161. <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
  162. <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
  163. <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
  164. <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
  165. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  166. <!-- apply the form logic -->
  167. <xts:logicsheet path="logicsheets/formlogic.xslt"/>
  168. <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:qsdlg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/qs/dialog/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" exclude-result-prefixes="filterdlg xsl xts lyt pf dp df cp cf dbg qsdlg xtsext">
  169. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
  170. <!-- Default variables (like skin) and prompt variables -->
  171. <qsdlg:variables/>
  172. <qsdlg:promptVariables/>
  173. <xsl:variable name="AMPMLocation" select="xtsext:getAMPMLocation(string($promptLocale))"/>
  174. <!-- Prompt Control XSL include -->
  175. <xsl:include href="p_include.xsl"/>
  176. <!-- add any theme variables -->
  177. <df:variables/>
  178. <pf:variables/>
  179. <!-- start the output -->
  180. <xsl:template match="/root">
  181. <!--Get HTML output for the HEAD section -->
  182. <dp:page>
  183. <dp:script>
  184. <xsl:call-template name="getPromptCommonIncludes"/>
  185. <xsl:call-template name="getselectDateTimeIncludes">
  186. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  187. <xsl:with-param name="promptContentLocale" select="$contentLocale"/>
  188. </xsl:call-template>
  189. <xsl:call-template name="gettextBoxIncludes">
  190. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  191. <xsl:with-param name="promptContentLocale" select="$contentLocale"/>
  192. </xsl:call-template>
  193. <link href="{$qsdlgskin}/qs/QSRVDialog.css" type="text/css" rel="stylesheet"/>
  194. <script type="text/javascript">
  195. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/layout.js</xsl:attribute>
  196. <xsl:text/>//<xsl:text/>
  197. </script>
  198. <script type="text/javascript">
  199. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/dialogs/filterDialog.js</xsl:attribute>
  200. <xsl:text/>//<xsl:text/>
  201. </script>
  202. <script type="text/javascript">
  203. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/rv/cvConstants.js</xsl:attribute>
  204. <xsl:text/>//<xsl:text/>
  205. </script>
  206. <script type="text/javascript">
  207. <xsl:attribute name="src">
  208. <xsl:value-of select="$webRoot"/>/rv/common.js
  209. </xsl:attribute><xsl:text/>//<xsl:text/>
  210. </script>
  211. <script type="text/javascript">
  212. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/rv/cvui.js</xsl:attribute>
  213. <xsl:text/>//<xsl:text/>
  214. </script>
  215. <script type="text/javascript">
  216. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/common/framework/notification/CObserver.js</xsl:attribute>
  217. <xsl:text/>//<xsl:text/>
  218. </script>
  219. <script type="text/javascript">
  220. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/classes/CDialogManager.js</xsl:attribute>
  221. <xsl:text/>//<xsl:text/>
  222. </script>
  223. <script type="text/javascript">
  224. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/classes/CWindowManager.js</xsl:attribute>
  225. <xsl:text/>//<xsl:text/>
  226. </script>
  227. <script type="text/javascript">&lt;!--
  228. var goDialogManager = new CDialogManager();
  229. var cf = getConfigFrame();
  230. var onlyPrompt = false;
  231. var complexFilterType = "selectDateTime";
  232. var substVarValueFrom = null;
  233. var substVarValueTo = null;
  234. var advClosedSize = 495;
  235. var advOpenedSize = 550;
  236. function execute() { filterDateTimeRange_execute(); }
  237. function buildFilterExpression() { return filterDateTimeRange_buildFilterExpression(); }
  238. <filterdlg:update_value_field/>
  239. function init()
  240. {
  241. var oOptions = {};
  242. <xsl:if test="/root/env/param[@name='xxFromParamName' or @name='xxToParamName' or @name='xxPromptParam']">
  243. oOptions.bPrompt = true;
  244. </xsl:if>
  245. <xsl:if test="/root/env/param[@name='xxSubstVar']='true'">
  246. oOptions.bUseAdv = true;
  247. </xsl:if>
  248. filterDateTimeRange_init(oOptions);
  249. <xsl:if test="/root/env/param[@name='xxSubstVar']='true'">
  250. <filterdlg:subst_var_button/>
  251. </xsl:if>
  252. }
  253. //--&gt;</script>
  254. </dp:script>
  255. <form style="margin:0px" name="f" method="POST" onsubmit="execute();return false;">
  256. <table border="0" cellspacing="0" cellpadding="0" height="100%" width="100%">
  257. <tr>
  258. <td width="100%" height="0%">
  259. <!-- dialog header -->
  260. <dp:header help="false">
  261. <!-- header titles -->
  262. <dp:title>
  263. <xts:string id="FILTER_TITLE"/>
  264. </dp:title>
  265. <!-- close link for the header -->
  266. <dp:close>
  267. <a href="javascript:this.cancelDialog()">
  268. <dp:closeMarker/>
  269. </a>
  270. </dp:close>
  271. <!-- description (hint text) -->
  272. <dp:description>
  273. <xts:string id="FILTER_DATETIME_DESCRIPTION"/>
  274. </dp:description>
  275. </dp:header>
  276. </td>
  277. </tr>
  278. <tr>
  279. <td width="100%" height="100%" valign="top">
  280. <!-- layout -->
  281. <lyt:layout style="2" border="no">
  282. <lyt:section>
  283. <dp:input>
  284. <dp:section1>
  285. <xts:string id="FILTER_ON"/>
  286. </dp:section1>
  287. <dp:section2>
  288. <xsl:attribute name="id">colName</xsl:attribute>
  289. </dp:section2>
  290. </dp:input>
  291. </lyt:section>
  292. <lyt:section>
  293. <qsdlg:promptBox/>
  294. </lyt:section>
  295. </lyt:layout>
  296. <lyt:layout style="1" border="no" joinSection="true">
  297. <lyt:section>
  298. <qsdlg:filterDateRangeSelect selectedOption="filterDateRange"/>
  299. </lyt:section>
  300. </lyt:layout>
  301. <lyt:layout style="1" border="no" joinSection="true">
  302. <lyt:section>
  303. <qsdlg:conditionBox/>
  304. </lyt:section>
  305. </lyt:layout>
  306. <lyt:layout style="2" border="yes" title="FILTER_FROM_WITHOUT_COLON" joinSection="true">
  307. <lyt:section>
  308. <dp:choice>
  309. <dp:section1 type="label">
  310. <xts:string id="FILTER_DATE"/>
  311. </dp:section1>
  312. <dp:section2>
  313. <table>
  314. <tr>
  315. <td>
  316. <input type="radio" name="fromValue">
  317. <xsl:if test="/root/env/param[@name='xxFromDate']">
  318. <xsl:attribute name="checked">true</xsl:attribute>
  319. </xsl:if>
  320. </input>
  321. </td>
  322. <td>
  323. <!-- Render a select date prompt-->
  324. <xsl:variable name="date1">
  325. <xsl:choose>
  326. <xsl:when test="/root/env/param[@name='xxFromDate']">
  327. <xsl:value-of select="/root/env/param[@name='xxFromDate']"/>
  328. </xsl:when>
  329. <xsl:otherwise>none</xsl:otherwise>
  330. </xsl:choose>
  331. </xsl:variable>
  332. <xsl:call-template name="getSelectDate">
  333. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  334. <xsl:with-param name="promptFormName" select="$promptFormName"/>
  335. <xsl:with-param name="promptRequired" select="'false'"/>
  336. <xsl:with-param name="promptStartOfWeek" select="'Sunday'"/>
  337. <xsl:with-param name="promptCalendar" select="'Gregorian'"/>
  338. <xsl:with-param name="promptParameter" select="'parameter1'"/>
  339. <xsl:with-param name="promptInputOrder" select="'YMD'"/>
  340. <xsl:with-param name="promptDefaultDate" select="$date1"/>
  341. <xsl:with-param name="promptDateTime" select="'false'"/>
  342. <xsl:with-param name="promptMultiSelect" select="'false'"/>
  343. <xsl:with-param name="promptId" select="'dateFrom'"/>
  344. <xsl:with-param name="suppressDisabled" select="'true'"/>
  345. <xsl:with-param name="promptSelectUI" select="'editBox'"/>
  346. </xsl:call-template>
  347. </td>
  348. </tr>
  349. </table>
  350. </dp:section2>
  351. <xsl:if test="/root/env/param[@name='xxSubstVar']='true'">
  352. <dp:section3>
  353. <table>
  354. <tr>
  355. <td>
  356. <input type="radio" name="fromValue"/>
  357. </td>
  358. <td id="textBoxString" valign="bottom">
  359. <xsl:call-template name="getTextBox">
  360. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  361. <xsl:with-param name="promptFormName" select="$promptFormName"/>
  362. <xsl:with-param name="promptRequired" select="'false'"/>
  363. <xsl:with-param name="promptId" select="'stringValueFrom'"/>
  364. <xsl:with-param name="promptHideText" select="'false'"/>
  365. <xsl:with-param name="promptMultiLine" select="'false'"/>
  366. <xsl:with-param name="promptParameter" select="'stringParam1'"/>
  367. <xsl:with-param name="promptReadOnly" select="'true'"/>
  368. </xsl:call-template>
  369. </td>
  370. <td id="buttonContainer1"/>
  371. </tr>
  372. </table>
  373. </dp:section3>
  374. </xsl:if>
  375. <dp:section3>
  376. <table>
  377. <tr>
  378. <td>
  379. <input type="radio" name="fromValue">
  380. <xsl:if test="not(/root/env/param[@name='xxFromDate'])">
  381. <xsl:attribute name="checked">true</xsl:attribute>
  382. </xsl:if>
  383. </input>
  384. </td>
  385. <td class="formText">
  386. <img width="10">
  387. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/common/images/spacer.gif</xsl:attribute>
  388. </img>
  389. <xts:string id="FILTER_DATE_EARLIEST"/>
  390. </td>
  391. </tr>
  392. </table>
  393. </dp:section3>
  394. </dp:choice>
  395. </lyt:section>
  396. <lyt:section>
  397. <dp:choice>
  398. <dp:section1 type="label">
  399. <xts:string id="FILTER_TIME"/>
  400. </dp:section1>
  401. <dp:section2>
  402. <xsl:variable name="time">
  403. <xsl:choose>
  404. <xsl:when test="/root/env/param[@name='xxFromTime']">
  405. <xsl:value-of select="/root/env/param[@name='xxFromTime']"/>
  406. </xsl:when>
  407. <xsl:otherwise>00:00:00.000</xsl:otherwise>
  408. </xsl:choose>
  409. </xsl:variable>
  410. <xsl:call-template name="getSelectTime">
  411. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  412. <xsl:with-param name="promptFormName" select="$promptFormName"/>
  413. <xsl:with-param name="promptRequired" select="'false'"/>
  414. <xsl:with-param name="promptDefaultValue" select="$time"/>
  415. <xsl:with-param name="promptParameter" select="'parameterTime1'"/>
  416. <xsl:with-param name="promptDisplay" select="1"/>
  417. <xsl:with-param name="promptInline" select="'false'"/>
  418. <xsl:with-param name="promptHourFormat" select="'hh'"/>
  419. <xsl:with-param name="promptMinuteFormat" select="'mm'"/>
  420. <xsl:with-param name="promptSecondFormat" select="'ss'"/>
  421. <xsl:with-param name="promptMode" select="@mode"/>
  422. <xsl:with-param name="promptMultiSelect" select="'false'"/>
  423. <xsl:with-param name="promptId" select="'timeFrom'"/>
  424. <xsl:with-param name="suppressDisabled" select="'true'"/>
  425. <xsl:with-param name="promptSelectUI" select="'editBox'"/>
  426. </xsl:call-template>
  427. </dp:section2>
  428. </dp:choice>
  429. </lyt:section>
  430. </lyt:layout>
  431. <lyt:layout style="2" border="yes" title="FILTER_TO_WITHOUT_COLON" joinSection="true">
  432. <lyt:section>
  433. <dp:choice>
  434. <dp:section1 type="label">
  435. <xts:string id="FILTER_DATE"/>
  436. </dp:section1>
  437. <dp:section2>
  438. <table>
  439. <tr>
  440. <td>
  441. <input type="radio" name="toValue">
  442. <xsl:if test="/root/env/param[@name='xxToDate']">
  443. <xsl:attribute name="checked">true</xsl:attribute>
  444. </xsl:if>
  445. </input>
  446. </td>
  447. <td>
  448. <xsl:variable name="date2">
  449. <xsl:choose>
  450. <xsl:when test="/root/env/param[@name='xxToDate']">
  451. <xsl:value-of select="/root/env/param[@name='xxToDate']"/>
  452. </xsl:when>
  453. <xsl:otherwise>none</xsl:otherwise>
  454. </xsl:choose>
  455. </xsl:variable>
  456. <xsl:call-template name="getSelectDate">
  457. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  458. <xsl:with-param name="promptFormName" select="$promptFormName"/>
  459. <xsl:with-param name="promptRequired" select="'false'"/>
  460. <xsl:with-param name="promptStartOfWeek" select="'Sunday'"/>
  461. <xsl:with-param name="promptCalendar" select="'Gregorian'"/>
  462. <xsl:with-param name="promptParameter" select="'parameter2'"/>
  463. <xsl:with-param name="promptSelectDateUI" select="'editBox'"/>
  464. <xsl:with-param name="promptInputOrder" select="'YMD'"/>
  465. <xsl:with-param name="promptDefaultDate" select="$date2"/>
  466. <xsl:with-param name="promptDateTime" select="'false'"/>
  467. <xsl:with-param name="promptMultiSelect" select="'false'"/>
  468. <xsl:with-param name="promptId" select="'dateTo'"/>
  469. <xsl:with-param name="suppressDisabled" select="'true'"/>
  470. <xsl:with-param name="promptSelectUI" select="'editBox'"/>
  471. </xsl:call-template>
  472. </td>
  473. </tr>
  474. </table>
  475. </dp:section2>
  476. <xsl:if test="/root/env/param[@name='xxSubstVar']='true'">
  477. <dp:section3>
  478. <table>
  479. <tr>
  480. <td>
  481. <input type="radio" name="toValue"/>
  482. </td>
  483. <td valign="bottom">
  484. <xsl:call-template name="getTextBox">
  485. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  486. <xsl:with-param name="promptFormName" select="$promptFormName"/>
  487. <xsl:with-param name="promptRequired" select="'false'"/>
  488. <xsl:with-param name="promptId" select="'stringValueTo'"/>
  489. <xsl:with-param name="promptHideText" select="'false'"/>
  490. <xsl:with-param name="promptMultiLine" select="'false'"/>
  491. <xsl:with-param name="promptParameter" select="'stringParam2'"/>
  492. <xsl:with-param name="promptReadOnly" select="'true'"/>
  493. </xsl:call-template>
  494. </td>
  495. <td id="buttonContainer2"/>
  496. </tr>
  497. </table>
  498. </dp:section3>
  499. </xsl:if>
  500. <dp:section3>
  501. <table>
  502. <tr>
  503. <td>
  504. <input type="radio" name="toValue">
  505. <xsl:if test="not(/root/env/param[@name='xxToDate'])">
  506. <xsl:attribute name="checked">true</xsl:attribute>
  507. </xsl:if>
  508. </input>
  509. </td>
  510. <td class="formText">
  511. <img width="10">
  512. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/common/images/spacer.gif</xsl:attribute>
  513. </img>
  514. <xts:string id="FILTER_DATE_LATEST"/>
  515. </td>
  516. </tr>
  517. </table>
  518. </dp:section3>
  519. </dp:choice>
  520. </lyt:section>
  521. <lyt:section>
  522. <dp:choice>
  523. <dp:section1 type="label">
  524. <xts:string id="FILTER_TIME"/>
  525. </dp:section1>
  526. <dp:section2>
  527. <xsl:variable name="time">
  528. <xsl:choose>
  529. <xsl:when test="/root/env/param[@name='xxToTime']">
  530. <xsl:value-of select="/root/env/param[@name='xxToTime']"/>
  531. </xsl:when>
  532. <xsl:otherwise>23:59:59.999</xsl:otherwise>
  533. </xsl:choose>
  534. </xsl:variable>
  535. <xsl:call-template name="getSelectTime">
  536. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  537. <xsl:with-param name="promptFormName" select="$promptFormName"/>
  538. <xsl:with-param name="promptRequired" select="'false'"/>
  539. <xsl:with-param name="promptDefaultValue" select="$time"/>
  540. <xsl:with-param name="promptParameter" select="'parameterTime2'"/>
  541. <xsl:with-param name="promptDisplay" select="1"/>
  542. <xsl:with-param name="promptInline" select="'false'"/>
  543. <xsl:with-param name="promptHourFormat" select="'hh'"/>
  544. <xsl:with-param name="promptMinuteFormat" select="'mm'"/>
  545. <xsl:with-param name="promptSecondFormat" select="'ss'"/>
  546. <xsl:with-param name="promptMode" select="@mode"/>
  547. <xsl:with-param name="promptMultiSelect" select="'false'"/>
  548. <xsl:with-param name="promptId" select="'timeTo'"/>
  549. <xsl:with-param name="suppressDisabled" select="'true'"/>
  550. <xsl:with-param name="promptSelectUI" select="'editBox'"/>
  551. </xsl:call-template>
  552. </dp:section2>
  553. </dp:choice>
  554. </lyt:section>
  555. </lyt:layout>
  556. <lyt:layout style="1" border="no" joinSection="true">
  557. <lyt:section>
  558. <qsdlg:nullOptions/>
  559. <qsdlg:filterBasedOnDSBox/>
  560. </lyt:section>
  561. </lyt:layout>
  562. </td>
  563. </tr>
  564. <tr>
  565. <td width="100%" height="0%">
  566. <!-- Use default buttons [ OK = execute() and CANCEL = hideDialogFrame() ] -->
  567. <qsdlg:defaultButtons/>
  568. </td>
  569. </tr>
  570. <!-- <dbg:dumpxml select="/"/> -->
  571. </table>
  572. </form>
  573. </dp:page>
  574. </xsl:template>
  575. </xsl:stylesheet>
  576. </xts:block>
  577. </xts:morphlet>