calcDateTimeMaxMin.xts 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571
  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. <!--
  13. Used for date time max / min
  14. -->
  15. <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">
  16. <xts:block id="page" type="exec" mode="output" processor="XSLT" mimeType="text/html">
  17. <!-- get the debug logic sheet -->
  18. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  19. <!-- get the new theme stuff -->
  20. <!-- apply the following logicsheets in order -->
  21. <xts:logicsheet path="qs/logicsheets/calc_theme.xsl"/>
  22. <xts:logicsheet path="logicsheets/portal.xsl"/>
  23. <xts:logicsheet path="qs/logicsheets/dialogs.xsl"/>
  24. <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
  25. <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
  26. <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
  27. <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
  28. <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
  29. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  30. <!-- apply the form logic -->
  31. <xts:logicsheet path="logicsheets/formlogic.xslt"/>
  32. <xsl:stylesheet version="1.0"
  33. xmlns:clcdlg="test_calculationDlg"
  34. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  35. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  36. xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
  37. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  38. xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
  39. xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
  40. xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
  41. xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
  42. xmlns:dbg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/debug/"
  43. xmlns:qsdlg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/qs/dialog/"
  44. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  45. exclude-result-prefixes="clcdlg xsl xts lyt pf dp df cp cf dbg qsdlg xtsext">
  46. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
  47. <!-- Default variables (like skin) and prompt variables -->
  48. <qsdlg:variables/>
  49. <qsdlg:promptVariables/>
  50. <!-- Prompt Control XSL include -->
  51. <xsl:include href="p_include.xsl"/>
  52. <!-- add any theme variables -->
  53. <df:variables/>
  54. <pf:variables/>
  55. <!-- start the output -->
  56. <xsl:template match="/root">
  57. <dp:page>
  58. <dp:script>
  59. <xsl:call-template name="getPromptCommonIncludes"/>
  60. <xsl:call-template name="getselectDateIncludes">
  61. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  62. <xsl:with-param name="promptContentLocale" select="$contentLocale"/>
  63. </xsl:call-template>
  64. <xsl:call-template name="getselectTimeIncludes">
  65. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  66. <xsl:with-param name="promptContentLocale" select="$contentLocale"/>
  67. </xsl:call-template>
  68. <xsl:call-template name="getintervalFieldIncludes">
  69. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  70. <xsl:with-param name="promptContentLocale" select="$contentLocale"/>
  71. </xsl:call-template>
  72. <xsl:call-template name="gettextBoxIncludes">
  73. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  74. <xsl:with-param name="promptContentLocale" select="$contentLocale"/>
  75. </xsl:call-template>
  76. <link href="{$qsdlgskin}/qs/QSRVDialog.css" type="text/css" rel="stylesheet"/>
  77. <script type="text/javascript">
  78. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/layout.js</xsl:attribute>
  79. <xsl:text/>//<xsl:text/>
  80. </script>
  81. <script type="text/javascript">
  82. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/rv/cvConstants.js</xsl:attribute>
  83. <xsl:text/>//<xsl:text/>
  84. </script>
  85. <script type="text/javascript">
  86. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/rv/common.js</xsl:attribute>
  87. <xsl:text/>//<xsl:text/>
  88. </script>
  89. <script type="text/javascript">
  90. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/rv/cvui.js</xsl:attribute>
  91. <xsl:text/>//<xsl:text/>
  92. </script>
  93. <script type="text/javascript">
  94. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/common/framework/notification/CObserver.js</xsl:attribute>
  95. <xsl:text/>//<xsl:text/>
  96. </script>
  97. <script type="text/javascript">
  98. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/classes/CDialogManager.js</xsl:attribute>
  99. <xsl:text/>//<xsl:text/>
  100. </script>
  101. <script type="text/javascript">&lt;!--
  102. var goDialogManager = new CDialogManager();
  103. <clcdlg:jvs/>
  104. var expression = new Array();
  105. var calcParentIds = new Array();
  106. cf = getConfigFrame();
  107. var calcType = cf.dlgGlobalGetParm('xxCalcType');
  108. var substVarValue = null;
  109. function execute()
  110. {
  111. var before_col_id = cf.dlgGlobalGetParm('xxInsBeforeColid');
  112. var calcOp = document.f.calcList.options[document.f.calcList.selectedIndex].value;
  113. var calcExpr = "";
  114. var cType = 52;
  115. var constantVal = "";
  116. if (!document.f.inputValueRadio || (document.f.inputValueRadio[0].checked || (document.f.inputValueRadio[1].checked &amp;&amp; substVarValue == null)))
  117. {
  118. if (calcType == 'date' || calcType == 'datetime')
  119. {
  120. if(document.f.datetimeCheck.checked)
  121. {
  122. if(pickerControldateTop.isValid())
  123. constantVal += pickerControldateTop.sGetValue();
  124. else return;
  125. }
  126. else
  127. constantVal += pickerControldateTop.sGetValue();
  128. }
  129. if (calcType == 'datetime')
  130. constantVal += " ";
  131. if (calcType == 'time' || calcType == 'datetime')
  132. {
  133. if(document.f.datetimeCheck.checked)
  134. {
  135. if(timePickertimeTop.isValid())
  136. constantVal += timePickertimeTop.sGetValue();
  137. else return;
  138. }
  139. else
  140. constantVal += timePickertimeTop.sGetValue();
  141. }
  142. if (calcType == 'interval')
  143. {
  144. if(document.f.datetimeCheck.checked)
  145. {
  146. if(intervalControlintervalTo.isValid())
  147. constantVal += intervalControlintervalTo.sGetValue();
  148. else return;
  149. }
  150. else
  151. constantVal += intervalControlintervalTo.sGetValue();
  152. }
  153. }
  154. else
  155. constantVal = substVarValue;
  156. if (document.f.calcList.options[document.f.calcList.selectedIndex].value == "max")
  157. calcExpr = minmax("&gt;", constantVal);
  158. else
  159. calcExpr = minmax("&lt;", constantVal);
  160. if (calcType == "date")
  161. {
  162. calcOp += "Date";
  163. cType = 50;
  164. }
  165. else if (calcType == "time")
  166. {
  167. calcOp += "Time";
  168. cType = 51;
  169. }
  170. else if (calcType == "interval")
  171. {
  172. calcOp += "Interval";
  173. cType = 53;
  174. }
  175. else
  176. calcOp += "DateTime";
  177. if (!calcExpr)
  178. return;
  179. var selCount = expression.length;
  180. for (var counter = 0; counter &lt; selCount; counter++)
  181. calcExpr = stringReplace (calcExpr, "\\^\\^\\^" + counter + "\\^\\^\\^", expression[counter]);
  182. var calcName = getCalcName();
  183. getConfigFrame().addCalcColumn(before_col_id, calcExpr, calcExpr, calcName, "none", calcOp, "none", "none", cType, 2, "none", -1, "none", calcParentIds);
  184. }
  185. function generateName(withQuotes)
  186. {
  187. var calcName = "";
  188. var ii;
  189. var selCount = expression.length;
  190. if (calcType == "interval")
  191. {
  192. if (document.f.calcList.options[document.f.calcList.selectedIndex].value == "max")
  193. calcName = "<xts:string id="CALCULATION_MAX_EQUATION" encode="javascript"/>";
  194. else
  195. calcName = "<xts:string id="CALCULATION_MIN_EQUATION" encode="javascript"/>";
  196. }
  197. else
  198. {
  199. if (document.f.calcList.options[document.f.calcList.selectedIndex].value == "max")
  200. calcName = "<xts:string id="CALCULATION_LATEST_EQUATION" encode="javascript"/>";
  201. else
  202. calcName = "<xts:string id="CALCULATION_EARLIEST_EQUATION" encode="javascript"/>";
  203. }
  204. for (ii = 0; ii &lt; (selCount - 1); ii++)
  205. {
  206. if (selCount > 1)
  207. calcName = stringReplace (calcName, "\\^0", document.f.repSel.options[ii].text + "<xts:string id="CALCULATION_AVG_MAX_MIN_SEPARATOR" encode="javascript"/>^0");
  208. }
  209. if (document.f.datetimeCheck.checked)
  210. {
  211. var calcNum = "";
  212. if (!document.f.inputValueRadio || (document.f.inputValueRadio[0].checked || (document.f.inputValueRadio[1].checked &amp;&amp; substVarValue == null)))
  213. {
  214. if (calcType == 'date' || calcType == 'datetime')
  215. calcNum += pickerControldateTop.sGetFormatValue();
  216. if (calcType == 'datetime')
  217. calcNum += " ";
  218. if (calcType == 'time' || calcType == 'datetime')
  219. calcNum += timePickertimeTop.sGetFormatValue();
  220. if (calcType == 'interval')
  221. calcNum += intervalControlintervalTo.sGetFormatValue();
  222. }
  223. else
  224. calcNum = textBoxstringValue.m_oForm.value;
  225. calcName = stringReplace (calcName, "\\^0", document.f.repSel.options[document.f.repSel.options.length - 1].text + "<xts:string id="CALCULATION_AVG_MAX_MIN_SEPARATOR" encode="javascript"/>" + calcNum);
  226. }
  227. else
  228. calcName = stringReplace (calcName, "\\^0", document.f.repSel.options[document.f.repSel.options.length - 1].text);
  229. return calcName;
  230. }
  231. function minmax(op, constantVal)
  232. {
  233. var prevExpr = "^^^0^^^"; // at least one expression
  234. var ii, calcExpr;
  235. var selCount = expression.length;
  236. for (ii=1; ii &lt; selCount; ii++)
  237. {
  238. calcExpr = 'if ((^^^' + ii + '^^^) ' + op + ' (' + prevExpr + ')) then (^^^' + ii + '^^^) else (' + prevExpr + ')';
  239. prevExpr = calcExpr;
  240. }
  241. if (document.f.datetimeCheck.checked)
  242. calcExpr = 'if ((' + constantVal + ') ' + op + ' (' + prevExpr + ')) then (' + constantVal + ') else (' + prevExpr + ')';
  243. return calcExpr;
  244. }
  245. <xsl:if test="/root/env/param[@name='xxSubstVar']='true'">
  246. function datetimeGotFocus()
  247. {
  248. document.f.inputValueRadio[0].checked = true;
  249. }
  250. </xsl:if>
  251. function init()
  252. {
  253. attachMouseEvents();
  254. for (var i = 0; i &lt; cf.dlgGlobalSize('xxColInfo'); i++)
  255. {
  256. var colInfo = cf.dlgGlobalGetParmAt('xxColInfo', i);
  257. expression[i] = colInfo[1];
  258. document.f.repSel.options[document.f.repSel.options.length] = new Option(colInfo[0], colInfo[1]);
  259. }
  260. for (var i = 0; i &lt; cf.dlgGlobalSize('xxCalcParentIds'); i++)
  261. {
  262. var id = cf.dlgGlobalGetParmAt('xxCalcParentIds', i);
  263. calcParentIds[i] = id[0];
  264. }
  265. var validCalcs = new Array();
  266. for (var i = 0; i &lt; cf.dlgGlobalSize('xxValidCalcItem'); i++)
  267. validCalcs[validCalcs.length] = cf.dlgGlobalGetParmAt('xxValidCalcItem', i);
  268. populateCalculationList(calcType, validCalcs);
  269. // select calculation
  270. document.f.calcList.selectedIndex = cf.dlgGlobalGetParm('xxCalcTypeIdx');
  271. getConfigFrame().cfgSet("CALCULATION_REFRESH", false);
  272. // check date/time checkbox if only one column selected
  273. document.f.datetimeCheck.checked = (cf.dlgGlobalSize('xxColInfo') == 1 ? true : false);
  274. setInterval(loadHint, 100);
  275. setGlobals(calcType, false);
  276. addInsert();
  277. if (cf.dlgGlobalSize('xxColInfo') == 1)
  278. document.f.datetimeCheck.setAttribute("disabled","true");
  279. var oIntervalTo = [document.f.intervalDaysintervalTo, document.f.intervalHoursintervalTo, document.f.intervalMinutesintervalTo, document.f.intervalSecondsintervalTo];
  280. if (oIntervalTo.length > 0)
  281. {
  282. if (oIntervalTo[0])
  283. {
  284. oIntervalTo[0].value = "<xts:string id="FILTER_INTERVAL_DEFAULT_VALUE" encode="javascript"/>";
  285. oIntervalTo[0].onclick = toGotFocus;
  286. oIntervalTo[0].onkeypress = toGotFocus;
  287. oIntervalTo[0].onpaste = toGotFocus;
  288. oIntervalTo[0].onblur = toGotFocus;
  289. }
  290. if (oIntervalTo[1])
  291. {
  292. oIntervalTo[1].value = "<xts:string id="FILTER_INTERVAL_DEFAULT_VALUE" encode="javascript"/>";
  293. oIntervalTo[1].onclick = toGotFocus;
  294. oIntervalTo[1].onkeypress = toGotFocus;
  295. oIntervalTo[1].onpaste = toGotFocus;
  296. oIntervalTo[1].onblur = toGotFocus;
  297. }
  298. if (oIntervalTo[2])
  299. {
  300. oIntervalTo[2].value = "<xts:string id="FILTER_INTERVAL_DEFAULT_VALUE" encode="javascript"/>";
  301. oIntervalTo[2].onclick = toGotFocus;
  302. oIntervalTo[2].onkeypress = toGotFocus;
  303. oIntervalTo[2].onpaste = toGotFocus;
  304. oIntervalTo[2].onblur = toGotFocus;
  305. }
  306. if (oIntervalTo[3])
  307. {
  308. oIntervalTo[3].value = "<xts:string id="FILTER_INTERVAL_DEFAULT_VALUE" encode="javascript"/>";
  309. oIntervalTo[3].onclick = toGotFocus;
  310. oIntervalTo[3].onkeypress = toGotFocus;
  311. oIntervalTo[3].onpaste = toGotFocus;
  312. oIntervalTo[3].onblur = toGotFocus;
  313. }
  314. }
  315. <xsl:if test="/root/env/param[@name='xxSubstVar']='true'">
  316. //choose date and time radio button on focus
  317. var oDateTop = document.getElementById('dateEditBoxdateTop');
  318. var oTimeTop = document.getElementById('timeEditBoxtimeTop');
  319. if (oDateTop)
  320. {
  321. oDateTop.onclick = datetimeGotFocus;
  322. oDateTop.onkeypress = datetimeGotFocus;
  323. oDateTop.onpaste = datetimeGotFocus;
  324. }
  325. if (oTimeTop)
  326. {
  327. oTimeTop.onclick = datetimeGotFocus;
  328. oTimeTop.onkeypress = datetimeGotFocus;
  329. oTimeTop.onpaste = datetimeGotFocus;
  330. }
  331. if (document.dateTopimgPicker)
  332. document.dateTopimgPicker.onmousedown = datetimeGotFocus;
  333. <clcdlg:subst_var/>
  334. </xsl:if>
  335. checkOverflowOnSelect(document.f.repSel);
  336. }
  337. function toGotFocus()
  338. {
  339. document.f.datetimeCheck.checked=true;
  340. }
  341. function redrawHint()
  342. {
  343. setTimeout(loadHint, 10);
  344. }
  345. //--&gt;</script>
  346. </dp:script>
  347. <form style="margin:0px" name="f" method="POST" onsubmit="execute();return false;">
  348. <table border="0" cellspacing="0" cellpadding="0" height="100%" width="100%">
  349. <tr>
  350. <td width="100%" height="0%">
  351. <!-- dialog header -->
  352. <clcdlg:basic_header/>
  353. </td>
  354. </tr>
  355. <tr>
  356. <td width="100%" height="100%" valign="top">
  357. <lyt:layout style="2" border="no">
  358. <lyt:section>
  359. <clcdlg:calculations/>
  360. <dp:input>
  361. <dp:section1>
  362. <xts:string id="CALCULATION_SEL_REP_ITEMS"/>
  363. </dp:section1>
  364. <dp:section2>
  365. <select name="repSel" size="7" style="width:260"/>
  366. </dp:section2>
  367. </dp:input>
  368. </lyt:section>
  369. <lyt:section>
  370. <clcdlg:calc_hint/>
  371. </lyt:section>
  372. </lyt:layout>
  373. <lyt:layout style="2">
  374. <lyt:section>
  375. <table>
  376. <xsl:if test="/root/env/param[@name='xxSubstVar']='true'">
  377. <tr>
  378. <td>
  379. <input type="checkbox" name="datetimeCheck" onClick="javascript:onSelOperation();"/>
  380. </td>
  381. <td class="formLabel">
  382. <xts:string id="CALCULATION_VALUE"/>
  383. </td>
  384. </tr>
  385. </xsl:if>
  386. <tr>
  387. <td valign="middle" nowrap="nowrap">
  388. <xsl:if test="not(/root/env/param[@name='xxSubstVar']='true')">
  389. <input type="checkbox" name="datetimeCheck" onClick="javascript:onSelOperation();"/>
  390. </xsl:if>
  391. </td>
  392. <td>
  393. <table>
  394. <tr>
  395. <xsl:if test="/root/env/param[@name='xxSubstVar']='true'">
  396. <td>
  397. <input type="radio" name="inputValueRadio" checked="true"/>
  398. </td>
  399. </xsl:if>
  400. <td>
  401. <table>
  402. <xsl:if test="/root/env/param[@name='xxCalcType']='date' or /root/env/param[@name='xxCalcType']='datetime'">
  403. <tr>
  404. <td class="formText" nowrap="nowrap" valign="middle">
  405. <xts:string id="CALCULATION_DATE"/>
  406. </td>
  407. <td>
  408. <!-- Render a select date prompt-->
  409. <xsl:call-template name="getSelectDate">
  410. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  411. <xsl:with-param name="promptFormName" select="$promptFormName"/>
  412. <xsl:with-param name="promptRequired" select="'false'"/>
  413. <xsl:with-param name="promptStartOfWeek" select="'Sunday'"/>
  414. <xsl:with-param name="promptCalendar" select="'Gregorian'"/>
  415. <xsl:with-param name="promptParameter" select="'dateparameter1'"/>
  416. <xsl:with-param name="promptInputOrder" select="'YMD'"/>
  417. <xsl:with-param name="promptDefaultDate" select="'none'"/>
  418. <xsl:with-param name="promptDateTime" select="'false'"/>
  419. <xsl:with-param name="promptMultiSelect" select="'false'"/>
  420. <xsl:with-param name="promptId" select="'dateTop'"/>
  421. <xsl:with-param name="suppressDisabled" select="'true'"/>
  422. <xsl:with-param name="promptSelectUI" select="'editBox'"/>
  423. </xsl:call-template>
  424. </td>
  425. </tr>
  426. </xsl:if>
  427. <xsl:if test="/root/env/param[@name='xxCalcType']='time' or /root/env/param[@name='xxCalcType']='datetime'">
  428. <tr>
  429. <td class="formText" nowrap="nowrap" valign="middle">
  430. <xts:string id="CALCULATION_TIME"/>
  431. </td>
  432. <td>
  433. <xsl:call-template name="getSelectTime">
  434. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  435. <xsl:with-param name="promptFormName" select="$promptFormName"/>
  436. <xsl:with-param name="promptRequired" select="'false'"/>
  437. <xsl:with-param name="promptDefaultValue" select="'00:00:00.000'"/>
  438. <xsl:with-param name="promptParameter" select="'timeparameter1'"/>
  439. <xsl:with-param name="promptDisplay" select="1"/>
  440. <xsl:with-param name="promptInline" select="'false'"/>
  441. <xsl:with-param name="promptHourFormat" select="'hh'"/>
  442. <xsl:with-param name="promptMinuteFormat" select="'mm'"/>
  443. <xsl:with-param name="promptSecondFormat" select="'ss'"/>
  444. <xsl:with-param name="promptMultiSelect" select="'false'"/>
  445. <xsl:with-param name="promptId" select="'timeTop'"/>
  446. <xsl:with-param name="suppressDisabled" select="'true'"/>
  447. <xsl:with-param name="promptSelectUI" select="'editBox'"/>
  448. </xsl:call-template>
  449. </td>
  450. </tr>
  451. </xsl:if>
  452. <xsl:if test="/root/env/param[@name='xxCalcType']='interval'">
  453. <tr>
  454. <td class="formText" nowrap="nowrap" valign="middle">
  455. <xts:string id="CALCULATION_INTERVAL"/>
  456. </td>
  457. <td>
  458. <xsl:call-template name="getSelectInterval">
  459. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  460. <xsl:with-param name="promptFormName" select="$promptFormName"/>
  461. <xsl:with-param name="promptRequired" select="'false'"/>
  462. <xsl:with-param name="promptDefaultValue" select="''"/>
  463. <xsl:with-param name="suppressDisabled" select="'true'"/>
  464. <xsl:with-param name="promptShowSeconds" select="'true'"/>
  465. <xsl:with-param name="promptId" select="'intervalTo'"/>
  466. <xsl:with-param name="promptParameter" select="'intervalparameter1'"/>
  467. </xsl:call-template>
  468. </td>
  469. </tr>
  470. </xsl:if>
  471. </table>
  472. </td>
  473. </tr>
  474. </table>
  475. </td>
  476. </tr>
  477. <xsl:if test="/root/env/param[@name='xxSubstVar']='true'">
  478. <tr>
  479. <td>
  480. <!-- Empty formatting cell -->
  481. </td>
  482. <td>
  483. <table>
  484. <tr>
  485. <td>
  486. <input type="radio" name="inputValueRadio"/>
  487. </td>
  488. <td valign="bottom">
  489. <xsl:call-template name="getTextBox">
  490. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  491. <xsl:with-param name="promptFormName" select="$promptFormName"/>
  492. <xsl:with-param name="promptRequired" select="'false'"/>
  493. <xsl:with-param name="promptId" select="'stringValue'"/>
  494. <xsl:with-param name="promptHideText" select="'false'"/>
  495. <xsl:with-param name="promptMultiLine" select="'false'"/>
  496. <xsl:with-param name="promptParameter" select="'stringParam1'"/>
  497. <xsl:with-param name="promptReadOnly" select="'true'"/>
  498. </xsl:call-template>
  499. </td>
  500. <td id="buttonContainer"/>
  501. </tr>
  502. </table>
  503. </td>
  504. </tr>
  505. </xsl:if>
  506. </table>
  507. </lyt:section>
  508. </lyt:layout>
  509. </td>
  510. </tr>
  511. <tr>
  512. <td width="100%" height="0%">
  513. <!-- Use default buttons [ OK = execute() and CANCEL = hideDialogFrame() ] -->
  514. <clcdlg:buttons/>
  515. </td>
  516. </tr>
  517. <!-- <dbg:dumpxml select="/"/> -->
  518. </table>
  519. </form>
  520. </dp:page>
  521. </xsl:template>
  522. </xsl:stylesheet>
  523. </xts:block>
  524. </xts:morphlet>