condStylesPickList.xts 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573
  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. <link rel="stylesheet" type="text/css" href="{$qsdlgskin}/qs/QSRVDialog.css" />
  75. <script type="text/javascript">
  76. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/layout.js</xsl:attribute>
  77. <xsl:text/>//<xsl:text/>
  78. </script>
  79. <script type="text/javascript">
  80. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/dialogs/filterDialog.js</xsl:attribute>
  81. <xsl:text/>//<xsl:text/>
  82. </script>
  83. <script type="text/javascript">
  84. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/classes/CDialogManager.js</xsl:attribute>
  85. <xsl:text/>//<xsl:text/>
  86. </script>
  87. <script type="text/javascript">
  88. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/classes/CWindowManager.js</xsl:attribute>
  89. <xsl:text/>//<xsl:text/>
  90. </script>
  91. <script type="text/javascript">&lt;!--
  92. var goDialogManager = new CDialogManager();
  93. var cf = getConfigFrame();
  94. var onlyPrompt;
  95. var complexFilterType = "picklist";
  96. var requestTracking = "";
  97. var sCancelIndicator = "<xts:string id="CANCELING_INDICATOR" encode="javascript"/>";
  98. function cancelDialog()
  99. {
  100. if(requestTracking == "")
  101. {
  102. getConfigFrame().hideCModal();
  103. }
  104. else
  105. {
  106. showCancellingIndicator();
  107. var urlParams = "b_action=xts.run&amp;m=portal/om-request.xts&amp;ui.action=cancel";
  108. urlParams += "&amp;m_tracking=" + encodeURIComponent(requestTracking);
  109. // reset the request tracking since the conversation is complete
  110. requestTracking = "";
  111. cf.sendDispatcherRequest(urlParams, cancelResponse);
  112. }
  113. }
  114. function cancelResponse(response)
  115. {
  116. getConfigFrame().hideCModal();
  117. }
  118. function execute()
  119. {
  120. var cf = getConfigFrame();
  121. var fct = cf.dlgGlobalGetParm("csCALLBACK");
  122. var param = "";
  123. <xsl:choose>
  124. <xsl:when test="$xxType=1">
  125. if(pickerControldatePicker.isValid()) {
  126. param = pickerControldatePicker.sGetValue();
  127. }
  128. </xsl:when>
  129. <xsl:when test="$xxType=2">
  130. if(timePickertimePicker.isValid()) {
  131. param += " " + timePickertimePicker.sGetValue();
  132. }
  133. </xsl:when>
  134. <xsl:when test="$xxType=3">
  135. if(pickerControldatePicker.isValid()) {
  136. param = pickerControldatePicker.sGetValue();
  137. }
  138. if(!timePickertimePicker.m_bDisabled &amp;&amp; timePickertimePicker.isValid()) {
  139. param += " " + timePickertimePicker.sGetValue();
  140. }
  141. //param = new Array(param, pickerControldatePicker.sGetFormatValue() + " " + timePickertimePicker.sGetFormatValue());
  142. </xsl:when>
  143. <xsl:when test="$xxType=4">
  144. param = intervalControlintervalPicker.sGetValue();
  145. </xsl:when>
  146. <xsl:when test="$xxType=5">
  147. param = buildValues();
  148. </xsl:when>
  149. </xsl:choose>
  150. if (typeof fct == "function") {
  151. fct(param <xsl:if test="$xxType=5">,getNullOption()</xsl:if>);
  152. }
  153. getConfigFrame().hideCModal();
  154. }
  155. function buildValues()
  156. {
  157. if (someCheckedSomeUnchecked())
  158. {
  159. var a = new Array();
  160. for (i = 0; i &lt; checkBoxListpList.m_oForm.length; i++)
  161. {
  162. if ( checkBoxListpList.m_oForm[i].checked )
  163. {
  164. var value = checkBoxListpList.m_oForm[i].value;
  165. var text = cf.getDisplayValueForOption(checkBoxListpList.m_oForm[i]);
  166. a[a.length] = new cf.CFilterValue(value,text);
  167. }
  168. }
  169. return a;
  170. }
  171. return null;
  172. }
  173. function someCheckedSomeUnchecked()
  174. {
  175. return ((checkBoxListpList.m_iSelectedCount &gt; 0) &amp;&amp; (checkBoxListpList.m_iItemCount &gt; checkBoxListpList.m_iSelectedCount));
  176. }
  177. function init()
  178. {
  179. document.body.className = 'body_dialog_modal';
  180. <xsl:if test="$xxType=5">
  181. initNullOptions();
  182. sendRequestForList();
  183. </xsl:if>
  184. <xsl:if test="$xxType=3 and /root/env/param[@name='xxTime']=''">
  185. if (timePickertimePicker &amp;&amp; typeof timePickertimePicker.toggleDisable == 'function') {
  186. timePickertimePicker.toggleDisable(false);
  187. }
  188. if (document.f.chkAnyValuetimePicker) {
  189. document.f.chkAnyValuetimePicker.checked = false;
  190. }
  191. </xsl:if>
  192. }
  193. function invokeSearchDlg(sNullOption)
  194. {
  195. var cf = getConfigFrame();
  196. cf.dlgSetParm("m", "/" + cf.qs_dir + "/condStylesSearch.xts");
  197. <!--
  198. // we disable the Null Option ui for conditional styles.
  199. // it will interfere with Xtab's styling solution
  200. cf.dlgGlobalSetParm('xxIsNullAllowed', true);
  201. cf.dlgGlobalSetParm('xxNullOption', sNullOption);
  202. -->
  203. cf.showModal("<xts:string id="COND_STYLE_PICKER_SEARCH_TITLE" encode="javascript"/>", "<xts:string id="CLOSE" encode="javascript"/>",575, 425);
  204. }
  205. function invokeTypeDlg(sNullOption)
  206. {
  207. var cf = getConfigFrame();
  208. cf.dlgSetParm("m", "/" + cf.qs_dir + "/condStylesEditBox.xts");
  209. <!--
  210. // we disable the Null Option ui for conditional styles.
  211. // it will interfere with Xtab's styling solution
  212. cf.dlgGlobalSetParm('xxIsNullAllowed', true);
  213. cf.dlgGlobalSetParm('xxNullOption', sNullOption);
  214. -->
  215. cf.showModal("<xts:string id="COND_STYLE_PICKER_TYPE_TITLE" encode="javascript"/>", "<xts:string id="CLOSE" encode="javascript"/>", 525, 325);
  216. }
  217. function sendRequestForList()
  218. {
  219. showLoading();
  220. var url = "m=/" + cf.qs_dir + "/filterPickListRequest.xts&amp;b_action=xts.run";
  221. if (cf.dlgGlobalGetParm('xxFullColExpression'))
  222. url += "&amp;xxFullColExpression=" + encodeURIComponent(cf.dlgGlobalGetParm('xxFullColExpression'));
  223. if (cf.dlgGlobalGetParm('xxModelName'))
  224. url += "&amp;xxModelName=" + encodeURIComponent(cf.dlgGlobalGetParm('xxModelName'));
  225. if (cf.dlgGlobalGetParm('xxColid'))
  226. url += "&amp;xxColid=" + encodeURIComponent(cf.dlgGlobalGetParm('xxColid'));
  227. if (cf.dlgGlobalGetParm('xxLevelNumber'))
  228. url += "&amp;xxLevelNumber=" + encodeURIComponent(cf.dlgGlobalGetParm('xxLevelNumber'));
  229. if (cf.dlgGlobalGetParm('xxExprLocale'))
  230. url += "&amp;xxExprLocale=" + encodeURIComponent(cf.dlgGlobalGetParm('xxExprLocale'));
  231. if (cf.dlgGlobalGetParm('xxExecutionParameters'))
  232. url += "&amp;xxExecutionParameters=" + encodeURIComponent(cf.dlgGlobalGetParm('xxExecutionParameters'));
  233. for (var i = 0; i &lt; cf.dlgGlobalSize('xxPromptValues'); i++) {
  234. url += "&amp;xxPromptValues=" + encodeURIComponent(cf.dlgGlobalGetParmAt('xxPromptValues', i));
  235. }
  236. url += "&amp;xxListSeparator=" + encodeURIComponent(goDialogManager.getMiniQueryManager().getListSeparator());
  237. for (var i = 0; i &lt; cf.dlgGlobalSize('xxOtherColIds'); i++)
  238. url += "&amp;xxOtherCols=" + cf.dlgGlobalConstructPairParm(url, encodeURIComponent(cf.dlgGlobalGetParmAt('xxOtherColIds', i)), encodeURIComponent(cf.dlgGlobalGetParmAt('xxOtherColExps', i)));
  239. if (cf.cafContextId != "")
  240. url += "&amp;ui.cafcontextid=" + cf.cafContextId;
  241. if (typeof cf.routingServerGroup != "undefined") {
  242. url += "&amp;ui.routingServerGroup=" + encodeURIComponent(cf.routingServerGroup);
  243. }
  244. url += "&amp;xxIsCondStyle=true";
  245. url += "&amp;textBoxControl=checkBoxListpList";
  246. cf.sendDispatcherRequest(url, processResponse);
  247. }
  248. function sendWaitRequest(url)
  249. {
  250. cf.sendDispatcherRequest(url, processResponse);
  251. }
  252. function processResponse(response)
  253. {
  254. hideLoading();
  255. if (!cf.checkResponse(response, document, "condStyles", init))
  256. {
  257. return;
  258. }
  259. eval(response);
  260. if(typeof status != "undefined" &amp;&amp; status == "working" &amp;&amp; typeof tracking != "undefined" &amp;&amp;tracking != "")
  261. {
  262. showLoading();
  263. requestTracking = tracking;
  264. var url = "m=/" + cf.qs_dir + "/filterPickListRequest.xts&amp;b_action=xts.run&amp;ui.action=wait&amp;m_tracking=";
  265. url += tracking;
  266. if (cf.cafContextId != "")
  267. url += "&amp;ui.cafcontextid=" + cf.cafContextId;
  268. setTimeout("sendWaitRequest('" + url + "');", 100);
  269. }
  270. else
  271. {
  272. // reset the request tracking since the conversation is complete
  273. requestTracking = "";
  274. var allCheckBoxes = document.f.p_pickList;
  275. if (typeof allCheckBoxes != "undefined")
  276. {
  277. var numFound = 0;
  278. for (var i = 0; i &lt; allCheckBoxes.length; i++)
  279. {
  280. for (var j = 0; j &lt; cf.dlgGlobalSize("xxPickList"); j++)
  281. {
  282. var useValue = fd_getUseValue(cf.dlgGlobalGetParmAt("xxPickList", j));
  283. if (allCheckBoxes[i].value.toUpperCase() == useValue.toUpperCase())
  284. {
  285. allCheckBoxes[i].checked = true;
  286. checkBoxListpList.updateSelected(true);
  287. checkBoxListpList.checkData();
  288. numFound++;
  289. break;
  290. }
  291. }
  292. if (numFound == cf.dlgGlobalSize("xxPickList")) {
  293. break;
  294. }
  295. }
  296. }
  297. cf.dlgGlobalRemoveParm("xxPickListIsLoaded");
  298. }
  299. }
  300. function showCancellingIndicator()
  301. {
  302. var theDiv = document.getElementById("loadingDiv");
  303. if(theDiv)
  304. {
  305. var oldSpanText = theDiv.getElementsByTagName("SPAN");
  306. if(oldSpanText.length > 0)
  307. {
  308. var newSpanText = document.createElement("SPAN");
  309. newSpanText.appendChild(document.createTextNode(sCancelIndicator));
  310. theDiv.replaceChild(newSpanText, oldSpanText[0]);
  311. }
  312. }
  313. }
  314. function showLoading()
  315. {
  316. var theParent = document.getElementById("selectListpList");
  317. var newDiv = document.createElement("DIV");
  318. newDiv.id = "loadingDiv";
  319. newDiv.className = "clsCheckBox";
  320. var loadingIcon = document.createElement("IMG");
  321. loadingIcon.align = "middle";
  322. loadingIcon.src = cf.TREE_LOADING;
  323. newDiv.appendChild(loadingIcon);
  324. var newSpanText = document.createElement("SPAN");
  325. newSpanText.appendChild(document.createTextNode(PMT_TRE_TREE_LOADING));
  326. newSpanText.style.paddingLeft = "4px";
  327. newDiv.appendChild(newSpanText);
  328. newDiv.style.verticalAlign = "middle";
  329. newDiv.style.padding = "2px";
  330. theParent.appendChild(newDiv);
  331. }
  332. function hideLoading()
  333. {
  334. var theDiv = document.getElementById("loadingDiv");
  335. theDiv.parentNode.removeChild(theDiv);
  336. }
  337. function refreshContent()
  338. {
  339. if (typeof pickerControldatePicker == "object")
  340. {
  341. //redraw the dialog
  342. pickerControldatePicker.m_oDatePickerDialog.refreshDate(pickerControldatePicker.m_oDatePickerDialog.m_oParentControl.m_dDate);
  343. //repaint date control
  344. pickerControldatePicker.m_oDatePickerDialog.m_oParentControl.drawDate();
  345. //update the parent control and check the date
  346. pickerControldatePicker.m_oDatePickerDialog.m_oParentControl.checkDate(pickerControldatePicker.m_oDatePickerDialog.m_oParentControl.m_oEditBox);
  347. }
  348. }
  349. //--&gt;</script>
  350. </dp:script>
  351. <form class="body_dialog_modal" style="margin:0px" name="f" method="POST" onsubmit="execute();return false;">
  352. <table border="0" cellspacing="0" cellpadding="0" height="100%" width="100%">
  353. <xsl:if test="$xxType=5">
  354. <tr>
  355. <td width="100%" height="0%">
  356. <table border="0" width="100%" cellspacing="0" cellpadding="0" style="padding-left:5px;">
  357. <tr>
  358. <td width="10" valign="middle">
  359. <img width="10">
  360. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/common/images/spacer.gif</xsl:attribute>
  361. </img>
  362. </td>
  363. <td align="right" valign="top">
  364. <table border="0" cellpadding="0" cellspacing="0"><tr>
  365. <td valign="top" nowrap="nowrap" class="dialogHeaderLink" align="right"><xsl:text/></td>
  366. <xsl:if test="/root/env/param[@name='xxIsSearchAllowed'] != 'false'">
  367. <td valign="top" nowrap="nowrap" class="dialogHeaderLink" align="right">
  368. <a href="javascript:invokeSearchDlg(getNullOption())">
  369. <xts:string id="FILTER_SEARCH_FOR_VALUES"/>
  370. </a>
  371. </td>
  372. </xsl:if>
  373. <xsl:if test="not(contains(' level hierarchy ',concat(' ',/root/env/param[@name='xxDataType'],' ')))">
  374. <td valign="top" nowrap="nowrap" class="dialogHeaderLink" align="right">
  375. <a href="javascript:invokeTypeDlg(getNullOption())">
  376. <xts:string id="FILTER_TYPE_IN_VALUES"/>
  377. </a>
  378. </td>
  379. </xsl:if>
  380. </tr></table>
  381. </td></tr>
  382. </table>
  383. </td>
  384. </tr>
  385. </xsl:if>
  386. <tr>
  387. <td width="100%" height="100%" valign="top" style="overflow:auto;">
  388. <!-- layout -->
  389. <lyt:layout style="1" border="no">
  390. <lyt:section>
  391. <xsl:choose>
  392. <xsl:when test="$xxType=1">
  393. <dp:input>
  394. <dp:section1></dp:section1>
  395. <dp:section2>
  396. <xsl:variable name="date1">
  397. <xsl:choose>
  398. <xsl:when test="/root/env/param[@name='xxDate']">
  399. <xsl:value-of select="/root/env/param[@name='xxDate']"/>
  400. </xsl:when>
  401. </xsl:choose>
  402. </xsl:variable>
  403. <xsl:call-template name="getSelectDate">
  404. <xsl:with-param name="promptId" select="'datePicker'"/>
  405. <xsl:with-param name="promptDefaultDate" select="$date1"/>
  406. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  407. <xsl:with-param name="promptFormName" select="$promptFormName"/>
  408. <xsl:with-param name="promptRequired" select="'true'"/>
  409. <xsl:with-param name="promptHideAdornments" select="'true'"/>
  410. </xsl:call-template>
  411. </dp:section2>
  412. </dp:input>
  413. </xsl:when>
  414. <xsl:when test="$xxType=2">
  415. <dp:input>
  416. <dp:section1><xts:string id="FILTER_TIME"/></dp:section1>
  417. <dp:section2>
  418. <xsl:variable name="time1">
  419. <xsl:choose>
  420. <xsl:when test="/root/env/param[@name='xxTime']">
  421. <xsl:value-of select="/root/env/param[@name='xxTime']"/>
  422. </xsl:when>
  423. <xsl:otherwise>00:00:00.000</xsl:otherwise>
  424. </xsl:choose>
  425. </xsl:variable>
  426. <xsl:call-template name="getSelectTime">
  427. <xsl:with-param name="promptId" select="'timePicker'"/>
  428. <xsl:with-param name="promptDefaultValue" select="$time1"/>
  429. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  430. <xsl:with-param name="promptFormName" select="$promptFormName"/>
  431. <xsl:with-param name="promptRequired" select="'false'"/>
  432. <xsl:with-param name="promptSelectUI" select="'editBox'"/>
  433. </xsl:call-template>
  434. </dp:section2>
  435. </dp:input>
  436. </xsl:when>
  437. <xsl:when test="$xxType=3">
  438. <dp:input>
  439. <dp:section1></dp:section1>
  440. <dp:section2>
  441. <xsl:variable name="date1">
  442. <xsl:choose>
  443. <xsl:when test="/root/env/param[@name='xxDate']">
  444. <xsl:value-of select="/root/env/param[@name='xxDate']"/>
  445. </xsl:when>
  446. </xsl:choose>
  447. </xsl:variable>
  448. <xsl:call-template name="getSelectDate">
  449. <xsl:with-param name="promptId" select="'datePicker'"/>
  450. <xsl:with-param name="promptDefaultDate" select="$date1"/>
  451. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  452. <xsl:with-param name="promptFormName" select="$promptFormName"/>
  453. <xsl:with-param name="promptRequired" select="'true'"/>
  454. <xsl:with-param name="promptHideAdornments" select="'true'"/>
  455. </xsl:call-template>
  456. </dp:section2>
  457. </dp:input>
  458. <dp:input>
  459. <dp:section1><xts:string id="FILTER_TIME"/></dp:section1>
  460. <dp:section2>
  461. <xsl:variable name="time1">
  462. <xsl:choose>
  463. <xsl:when test="/root/env/param[@name='xxTime']">
  464. <xsl:value-of select="/root/env/param[@name='xxTime']"/>
  465. </xsl:when>
  466. </xsl:choose>
  467. </xsl:variable>
  468. <xsl:call-template name="getSelectTime">
  469. <xsl:with-param name="promptId" select="'timePicker'"/>
  470. <xsl:with-param name="promptDefaultValue" select="$time1"/>
  471. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  472. <xsl:with-param name="promptFormName" select="$promptFormName"/>
  473. <xsl:with-param name="promptRequired" select="'false'"/>
  474. <xsl:with-param name="promptSelectUI" select="'editBox'"/>
  475. </xsl:call-template>
  476. </dp:section2>
  477. </dp:input>
  478. </xsl:when>
  479. <xsl:when test="$xxType=4">
  480. <dp:input>
  481. <dp:section1></dp:section1>
  482. <dp:section2>
  483. <xsl:variable name="interval1">
  484. <xsl:choose>
  485. <xsl:when test="/root/env/param[@name='xxInterval']">
  486. <xsl:value-of select="/root/env/param[@name='xxInterval']"/>
  487. </xsl:when>
  488. </xsl:choose>
  489. </xsl:variable>
  490. <xsl:call-template name="getSelectInterval">
  491. <xsl:with-param name="promptId" select="'intervalPicker'"/>
  492. <xsl:with-param name="promptDefaultValue" select="$interval1"/>
  493. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  494. <xsl:with-param name="promptFormName" select="$promptFormName"/>
  495. <xsl:with-param name="promptRequired" select="'false'"/>
  496. <xsl:with-param name="suppressDisabled" select="'true'"/>
  497. <xsl:with-param name="promptShowSeconds" select="'true'"/>
  498. <xsl:with-param name="promptParameter" select="'parameter1'"/>
  499. </xsl:call-template>
  500. </dp:section2>
  501. </dp:input>
  502. </xsl:when>
  503. <xsl:when test="$xxType=5">
  504. <dp:input>
  505. <dp:section1>
  506. <xts:string id="COND_STYLE_PICKLIST_SELECTION_LABEL"/>
  507. </dp:section1>
  508. <dp:section2>
  509. <xsl:variable name="showParentDetails">
  510. <xsl:choose>
  511. <xsl:when test="number(/root/env/param[@name='xxLevelNumber']) &gt; 0">true</xsl:when>
  512. <xsl:otherwise>false</xsl:otherwise>
  513. </xsl:choose>
  514. </xsl:variable>
  515. <xsl:call-template name="getSelectValue">
  516. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  517. <xsl:with-param name="promptFormName" select="$promptFormName"/>
  518. <xsl:with-param name="promptRequired" select="'false'"/>
  519. <xsl:with-param name="promptMultiSelect" select="'true'"/>
  520. <xsl:with-param name="promptSelectUI" select="'checkboxGroup'"/>
  521. <xsl:with-param name="promptAutoSubmit" select="'false'"/>
  522. <xsl:with-param name="promptParameter" select="'pickList'"/>
  523. <xsl:with-param name="promptId" select="'pList'"/>
  524. <xsl:with-param name="promptStyle" select="'height:165px;'"/>
  525. <xsl:with-param name="promptShowParentDetails" select="$showParentDetails"/>
  526. </xsl:call-template>
  527. </dp:section2>
  528. </dp:input>
  529. <qsdlg:nullOptions/>
  530. </xsl:when>
  531. </xsl:choose>
  532. </lyt:section>
  533. </lyt:layout>
  534. </td>
  535. </tr>
  536. </table>
  537. </form>
  538. </dp:page>
  539. </xsl:template>
  540. </xsl:stylesheet>
  541. </xts:block>
  542. </xts:morphlet>