recurrenceUI.xslt 73 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: ps
  5. (C) Copyright IBM Corp. 2005, 2016
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <xsl:stylesheet version="1.0"
  9. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  10. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  11. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  12. xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
  13. xmlns:dt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/templates/"
  14. xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
  15. xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
  16. xmlns:mt="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mt"
  17. xmlns:dc="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/confirm/1/"
  18. xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
  19. xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
  20. xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
  21. xmlns:out="dummy-uri"
  22. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  23. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  24. xmlns:rui="http://developer.cognos.com/schemas/xts/logicsheet/xslt/presentation/dialog/recurrenceUI/">
  25. <xsl:output method="xml" encoding="UTF-8" indent="no"/>
  26. <xsl:namespace-alias stylesheet-prefix="out" result-prefix="xsl"/>
  27. <xsl:template match="xsl:stylesheet" priority="1">
  28. <xsl:copy>
  29. <xsl:apply-templates select="@*|*|text()|processing-instruction()"/>
  30. <out:template name="rui-displayRecurrence">
  31. <out:param name="form-read-only"/>
  32. <out:param name="utml-form-name"/>
  33. <out:param name="interval"/>
  34. <out:param name="inWizard" select="'false'"/>
  35. <out:param name="agentStudio" select="false()"/>
  36. <out:param name="showTriggerTab"/>
  37. <out:param name="showUserCredentialLink"/>
  38. <out:variable name="active_checked" select="key('env-param','m_sp_active')"/>
  39. <!-- default the priority value to '3' if it is not set -->
  40. <out:variable name="priority_val">
  41. <out:choose>
  42. <out:when test="key('env-param', 'm_sp_priority')">
  43. <out:value-of select="key('env-param', 'm_sp_priority')"/>
  44. </out:when>
  45. <out:otherwise>3</out:otherwise>
  46. </out:choose>
  47. </out:variable>
  48. <script type="text/javascript">
  49. <xsl:attribute name="src">
  50. <xsl:value-of select="concat('{$webRoot}','/dojo16/dojo/dojo.js')"/>
  51. </xsl:attribute>
  52. </script>
  53. <script type="text/javascript">
  54. <xsl:attribute name="src">
  55. <xsl:value-of select="concat('{$webRoot}','/fragments/xdojo/core.js')"/>
  56. </xsl:attribute>
  57. </script>
  58. <script type="text/javascript">
  59. <xsl:attribute name="src">
  60. <xsl:value-of select="concat('{$gateway}', '/cogadmin/messages/applications/cogadmin/messages/cogadminuijsmsgs')"/>
  61. </xsl:attribute>
  62. </script>
  63. <script type="text/javascript">
  64. <xsl:attribute name="src">
  65. <xsl:value-of select="concat('{$webcontent}','/{$app}','/js/schedule.js')"/>
  66. </xsl:attribute>
  67. </script>
  68. <script>
  69. function isScheduleReadOnly() {
  70. return <out:value-of select="$form-read-only"/>;
  71. }
  72. </script>
  73. <img height="12" width="1" border="0" src="{concat('{$webcontent}', '/images/space.gif')}"/>
  74. <dp:box valign="top" width="100%">
  75. <dp:boxSection width="50%">
  76. <!-- There is a WO to add a "Schedule the <object>" checkbox when in the wizard. When making that change make sure the new -->
  77. <!-- checkbox does NOT show up in the Deployment wizard -->
  78. <out:if test="$inWizard = 'false'">
  79. <dp:choice>
  80. <dp:section1>
  81. <utml:input type="checkbox" name="m_sp_active" id="lbl_sp_active" value="true" utml:default-condition="$active_checked"/>
  82. </dp:section1>
  83. <dp:section2 for="lbl_sp_active"><xts:string id="IDS_PROP_SCHED_INACTIVE"/></dp:section2>
  84. </dp:choice>
  85. </out:if>
  86. </dp:boxSection>
  87. <dp:boxSection width="50%">
  88. <dp:input>
  89. <dp:section1>
  90. <label for="lbl_sp_priority"><xts:string id="IDS_PROP_PRIORITY"/></label>
  91. </dp:section1>
  92. <dp:section>
  93. <out:if test="not($hasSchedPriorityCapability)">
  94. <!-- if the user doesn't have capability to set priority, we should set it to default value 3 if it's not set and save it to CM. -->
  95. <utml:input type="hidden" name="m_sp_priority">
  96. <utml:value>
  97. <out:value-of select="$priority_val"/>
  98. </utml:value>
  99. </utml:input>
  100. </out:if>
  101. <utml:select name="m_sp_priority" id="lbl_sp_priority" style="width:100">
  102. <utml:read-only>
  103. <out:choose>
  104. <out:when test="$hasSchedPriorityCapability">false</out:when>
  105. <out:otherwise>true</out:otherwise>
  106. </out:choose>
  107. </utml:read-only>
  108. <!-- default the priority value to '3' if it is not set -->
  109. <utml:default-value>
  110. <out:value-of select="$priority_val"/>
  111. </utml:default-value>
  112. <utml:option value="1">
  113. 1
  114. </utml:option>
  115. <utml:option value="2">
  116. 2
  117. </utml:option>
  118. <utml:option value="3">
  119. 3
  120. </utml:option>
  121. <utml:option value="4">
  122. 4
  123. </utml:option>
  124. <utml:option value="5">
  125. 5
  126. </utml:option>
  127. </utml:select>
  128. </dp:section>
  129. </dp:input>
  130. </dp:boxSection>
  131. </dp:box>
  132. <img height="12" width="1" border="0" src="{concat('{$webcontent}', '/images/space.gif')}"/>
  133. <dp:choice title="IDS_PROP_FREQUENCY" noSpace="true">
  134. <out:choose>
  135. <out:when test="$form-read-only='false'">
  136. <utml:input type="hidden" name="m_sp_type">
  137. <utml:value>
  138. <out:value-of select="$interval"/>
  139. </utml:value>
  140. </utml:input>
  141. <utml:input type="hidden" name="type_saved">
  142. <utml:value>
  143. <out:value-of select="$interval"/>
  144. </utml:value>
  145. </utml:input>
  146. <dp:section1 type="hint"><xts:string id="IDS_PROP_SCHED_FREQUENCY_TITLE"/></dp:section1>
  147. <dp:section2/>
  148. <dp:section1>
  149. <img height="10" width="1" border="0" src="{concat('{$webcontent}', '/images/space.gif')}"/>
  150. </dp:section1>
  151. <dp:section2/>
  152. <dp:section1>
  153. <dp:field>
  154. <out:call-template name="rui-scheduleTabsTemplate">
  155. <out:with-param name="form-read-only" select="$form-read-only"/>
  156. <out:with-param name="utml-form-name" select="$utml-form-name"/>
  157. <out:with-param name="select" select="$interval"/>
  158. <out:with-param name="select_saved" select="key('env-param', 'type_saved')"/>
  159. <out:with-param name="showTriggerTab" select="$showTriggerTab"/>
  160. </out:call-template>
  161. </dp:field>
  162. </dp:section1>
  163. </out:when>
  164. <out:otherwise>
  165. <dp:section3>
  166. <out:choose>
  167. <out:when test="starts-with($interval,'daily')">
  168. <cp:label><xts:string id="IDS_SCHEDULE_DAILY"/></cp:label>
  169. </out:when>
  170. <out:when test="starts-with($interval,'weekly')">
  171. <cp:label><xts:string id="IDS_SCHEDULE_WEEKLY"/></cp:label>
  172. </out:when>
  173. <out:when test="starts-with($interval,'monthly')">
  174. <cp:label><xts:string id="IDS_SCHEDULE_MONTHLY"/></cp:label>
  175. </out:when>
  176. <out:when test="starts-with($interval,'yearly')">
  177. <cp:label><xts:string id="IDS_SCHEDULE_YEARLY"/></cp:label>
  178. </out:when>
  179. <out:when test="$interval='trigger'">
  180. <cp:label><xts:string id="IDS_SCHEDULE_TRIGGER"/></cp:label>
  181. </out:when>
  182. </out:choose>
  183. </dp:section3>
  184. </out:otherwise>
  185. </out:choose>
  186. </dp:choice>
  187. <dp:choice>
  188. <!-- if trigger tab, display hint text -->
  189. <out:if test="$form-read-only='false' and $interval='trigger' and $showTriggerTab != 'false'">
  190. <dp:section1 type="hint"><xts:string id="IDS_PROP_SCHED_TRIGGER_INTRODUCTION"/></dp:section1>
  191. </out:if>
  192. </dp:choice>
  193. <dp:choice>
  194. <dp:section3>
  195. <out:choose>
  196. <out:when test="starts-with($interval,'daily')">
  197. <out:call-template name="rui-DailyFrequencyDetails">
  198. <out:with-param name="form-read-only" select="$form-read-only"/>
  199. </out:call-template>
  200. </out:when>
  201. <out:when test="starts-with($interval,'monthly')">
  202. <out:call-template name="rui-MonthlyFrequencyDetails">
  203. <out:with-param name="form-read-only" select="$form-read-only"/>
  204. </out:call-template>
  205. </out:when>
  206. <out:when test="starts-with($interval,'yearly')">
  207. <out:call-template name="rui-YearlyFrequencyDetails">
  208. <out:with-param name="form-read-only" select="$form-read-only"/>
  209. </out:call-template>
  210. </out:when>
  211. <out:when test="$interval = 'trigger' and $showTriggerTab != 'false'">
  212. <out:call-template name="rui-TriggerFrequencyDetails">
  213. <out:with-param name="form-read-only" select="$form-read-only"/>
  214. </out:call-template>
  215. </out:when>
  216. <out:otherwise>
  217. <dp:choice>
  218. <dp:section1>
  219. <out:choose>
  220. <out:when test="starts-with($interval,'weekly')">
  221. <out:variable name="weekly_field_label"><xts:string id="IDS_PROP_SCHED_EVERY_WEEKS_LABEL"/></out:variable>
  222. <xts:string id="IDS_PROP_SCHED_EVERY_WEEKS">
  223. <xts:param name="control">
  224. <out:choose>
  225. <out:when test="$form-read-only = 'true'">
  226. <out:value-of select="key('env-param', 'm_sp_everyNweeks')"/>
  227. </out:when>
  228. <out:otherwise>
  229. <utml:input type="text" name="m_sp_everyNweeks" size="3" maxlength="3">
  230. <out:attribute name="aria-label"><out:value-of select="$weekly_field_label"/></out:attribute>
  231. </utml:input>
  232. </out:otherwise>
  233. </out:choose>
  234. </xts:param>
  235. </xts:string>
  236. </out:when>
  237. </out:choose>
  238. </dp:section1>
  239. <dp:section2/>
  240. <dp:section1>
  241. <!-- Weekly details -->
  242. <out:if test="starts-with($interval,'weekly')">
  243. <out:call-template name="rui-WeeklyFrequencyDetails">
  244. <out:with-param name="form-read-only" select="$form-read-only"/>
  245. </out:call-template>
  246. </out:if>
  247. </dp:section1>
  248. </dp:choice>
  249. </out:otherwise>
  250. </out:choose>
  251. </dp:section3>
  252. </dp:choice>
  253. <!-- Run schedule options section -->
  254. <dp:choice title="IDS_NEW_SCHEDULE_RUN_AS" noSpace="true">
  255. <dp:section1>
  256. <dp:list width="100%">
  257. <out:variable name="userHasChangedScheduleCredentials"><out:value-of select="/root/env/param[@name='m_schedule_owner_reset']='true'"/></out:variable>
  258. <dp:section>
  259. <out:choose>
  260. <out:when test="not($userHasChangedScheduleCredentials='true')">
  261. <dp:text valign="top" width="15%">
  262. <out:choose>
  263. <!-- current schedule does not have credentials -->
  264. <out:when test="$scheduleExists='true' and $scheduleCredentialsExist='false'">
  265. <xts:string id="IDS_NEW_SCHEDULE_CREDENTIALS_NOT_EXIST"/>
  266. </out:when>
  267. <!-- current user could not get details on existing credentials -->
  268. <out:when test="$scheduleCredentialDetailsUnavailable='true'">
  269. <xts:string id="IDS_NEW_SCHEDULE_CREDENTIALS_UNAVAILABLE"/>
  270. </out:when>
  271. <!-- typical case where schedule has credentials -->
  272. <out:when test="not($scheduleCredentialDefaultName='')">
  273. <span lang="{'{$contentLocale}'}"><out:value-of select="$scheduleCredentialDefaultName"/></span>
  274. </out:when>
  275. <!-- special case where schedule does not have credentials - (new schedule) -->
  276. <out:otherwise>
  277. <span lang="{'{$contentLocale}'}"><out:value-of select="$userCredentialDefaultName"/></span>
  278. </out:otherwise>
  279. </out:choose>
  280. </dp:text>
  281. <out:if test="$showUserCredentialLink = 'true'">
  282. <dp:link width="25%">
  283. <utml:a utml:op="maintain" utml:formName="pform" utml:hide-when-read-only="true" onclick="resetScheduleOwner();">
  284. <utml:target>
  285. <out:value-of select="key('env-param', 'm')"/>
  286. </utml:target>
  287. <xsl:text/><xts:string id="IDS_NEW_SCHEDULE_USE_MY_CREDENTIALS"/><xsl:text/>
  288. </utml:a>
  289. </dp:link>
  290. </out:if>
  291. </out:when>
  292. <out:otherwise>
  293. <dp:text valign="top" width="15%">
  294. <span lang="{'{$contentLocale}'}"><out:value-of select="$userCredentialDefaultName"/></span>
  295. </dp:text>
  296. </out:otherwise>
  297. </out:choose>
  298. </dp:section>
  299. </dp:list>
  300. </dp:section1>
  301. </dp:choice>
  302. </out:template>
  303. <out:template name="xtsString2Table">
  304. <out:param name="tableId"/>
  305. <out:param name="xtsString"/>
  306. <table role="presentation">
  307. <out:if test="$tableId">
  308. <out:attribute name="id"><out:value-of select="$tableId"/></out:attribute>
  309. </out:if>
  310. <tr>
  311. <out:for-each select="$xtsString/node()[not(self::script)]">
  312. <td class="formText">
  313. <out:choose>
  314. <out:when test="self::text()">
  315. <out:copy-of select="string(.)"/>
  316. </out:when>
  317. <out:otherwise>
  318. <out:copy-of select="."/>
  319. </out:otherwise>
  320. </out:choose>
  321. </td>
  322. </out:for-each>
  323. </tr>
  324. </table>
  325. <out:for-each select="$xtsString/script">
  326. <out:copy-of select="."/>
  327. </out:for-each>
  328. </out:template>
  329. <out:template name="rui-scheduleScript">
  330. <out:param name="interval" select="'weekly'"/>
  331. <!-- TODO: These are global localization. Migrate these to JS locale solution once ps exposes them accordingly -->
  332. <script language="javascript">
  333. var MSG_ERR_POSITIVE = "<xts:string id="IDS_ERR_POSITIVE" encode="javascript"/>";
  334. <out:variable name="triggerNameString"><xts:string id="IDS_PROP_SCHED_TRIGGER_NAME" encode="javascript"/></out:variable>
  335. <out:variable name="emptyTriggerMessage">
  336. <xts:string id="IDS_ERR_MANDATORY" encode="javascript">
  337. <xts:param name="field"><out:value-of select="$triggerNameString"/></xts:param>
  338. </xts:string>
  339. </out:variable>
  340. var MSG_EMPTY_TRIGGER_NAME = '<out:value-of select="$emptyTriggerMessage"/>';
  341. </script>
  342. <script language="javascript" src="{'{$webcontent}'}/portal/js/utilities.js"/>
  343. </out:template>
  344. <out:template name="rui-scheduleTabsTemplate">
  345. <out:param name="form-read-only"/>
  346. <out:param name="utml-form-name"/>
  347. <out:param name="select"/>
  348. <out:param name="select_saved"/>
  349. <out:param name="showTriggerTab"/>
  350. <table width="100%" border="0" cellpadding="0" cellspacing="3">
  351. <tr>
  352. <td valign="middle" width="100%" class="dialogHeaderText">
  353. <mt:tabs>
  354. <out:variable name="tabs">
  355. <out:if test="$hasSchedCapabilityByDay or starts-with($select,'daily')">
  356. <tab>
  357. <out:if test="starts-with($select,'daily')">
  358. <out:attribute name="selected">true</out:attribute>
  359. </out:if>
  360. <utml:a utml:op="submit" utml:formName="pform">
  361. <utml:href>switchTab('daily')</utml:href>
  362. <cp:label><xts:string id="IDS_SCHEDULE_DAILY"/></cp:label>
  363. </utml:a>
  364. </tab>
  365. </out:if>
  366. <out:if test="$hasSchedCapabilityByWeek or starts-with($select,'weekly')">
  367. <tab>
  368. <out:if test="starts-with($select,'weekly')">
  369. <out:attribute name="selected">true</out:attribute>
  370. </out:if>
  371. <utml:a utml:op="submit" utml:formName="pform">
  372. <utml:href>switchTab('weekly')</utml:href>
  373. <cp:label><xts:string id="IDS_SCHEDULE_WEEKLY"/></cp:label>
  374. </utml:a>
  375. </tab>
  376. </out:if>
  377. <out:if test="$hasSchedCapabilityByMonth or starts-with($select,'monthly')">
  378. <tab>
  379. <out:if test="starts-with($select,'monthly')">
  380. <out:attribute name="selected">true</out:attribute>
  381. </out:if>
  382. <utml:a utml:op="submit" utml:formName="pform">
  383. <utml:href>switchTab('monthly')</utml:href>
  384. <cp:label><xts:string id="IDS_SCHEDULE_MONTHLY"/></cp:label>
  385. </utml:a>
  386. </tab>
  387. </out:if>
  388. <out:if test="$hasSchedCapabilityByYear or starts-with($select,'yearly')">
  389. <tab>
  390. <out:if test="starts-with($select,'yearly')">
  391. <out:attribute name="selected">true</out:attribute>
  392. </out:if>
  393. <utml:a utml:op="submit" utml:formName="pform">
  394. <utml:href>switchTab('yearly')</utml:href>
  395. <cp:label><xts:string id="IDS_SCHEDULE_YEARLY"/></cp:label>
  396. </utml:a>
  397. </tab>
  398. </out:if>
  399. <out:if test="($hasSchedCapabilityByTrigger and $showTriggerTab != 'false') or ($select='trigger')">
  400. <tab>
  401. <out:if test="$select='trigger'">
  402. <out:attribute name="selected">true</out:attribute>
  403. </out:if>
  404. <utml:a utml:op="submit" utml:formName="pform">
  405. <utml:href>switchTab('trigger')</utml:href>
  406. <cp:label><xts:string id="IDS_SCHEDULE_TRIGGER"/></cp:label>
  407. </utml:a>
  408. </tab>
  409. </out:if>
  410. </out:variable>
  411. <out:call-template name="renderTabs">
  412. <out:with-param name="tabs" select="$tabs"/>
  413. <out:with-param name="schedule" select="true()"/>
  414. <out:with-param name="scroll" select="false()"/>
  415. </out:call-template>
  416. </mt:tabs>
  417. </td>
  418. </tr>
  419. </table>
  420. </out:template>
  421. <out:template name="rui-DailyFrequencyDetails">
  422. <out:param name="form-read-only"/>
  423. <utml:radio-group name="m_sp_dailyPeriod">
  424. <span style="position: absolute;margin-left: -9999px; margin-top: -9999px; " id="lbl_m_sp_dailyPeriod"><xts:string id="IDS_PROP_SCHED_BY_DAY_CHOICES"/></span>
  425. <dp:choice aria-labelledby="lbl_m_sp_dailyPeriod">
  426. <out:if test="$hasSchedCapabilityByMinute='true' or key('env-param','m_sp_dailyPeriod') = 'minute'">
  427. <dp:section1>
  428. <utml:input type="radio" value="minute" onclick="this.blur();this.focus();" onchange="changeDailyPeriod(this);">
  429. <out:attribute name="aria-label"><xts:string id="IDS_PROP_SCHED_REPEAT_MINUTES_LABEL"/></out:attribute>
  430. </utml:input>
  431. </dp:section1>
  432. <dp:section2>
  433. <out:variable name="minutes_field_label"><xts:string id="IDS_PROP_SCHED_EVERY_MINUTES_LABEL"/></out:variable>
  434. <xts:string id="IDS_PROP_SCHED_EVERY_MINUTES">
  435. <xts:param name="control">
  436. <out:choose>
  437. <out:when test="$form-read-only = 'true'">
  438. <out:value-of select="key('env-param', 'm_sp_everyNminutes')"/>
  439. </out:when>
  440. <out:otherwise>
  441. <utml:input type="text" name="m_sp_everyNminutes" size="3" maxlength="3">
  442. <out:attribute name="aria-label"><out:value-of select="$minutes_field_label"/></out:attribute>
  443. <out:if test="not(key('env-param','m_sp_dailyPeriod') = 'minute')">
  444. <out:attribute name="disabled">true</out:attribute>
  445. </out:if>
  446. </utml:input>
  447. </out:otherwise>
  448. </out:choose>
  449. </xts:param>
  450. </xts:string>
  451. </dp:section2>
  452. </out:if>
  453. <out:if test="$hasSchedCapabilityByHour='true' or key('env-param','m_sp_dailyPeriod') = 'hour'">
  454. <dp:section1>
  455. <utml:input type="radio" value="hour" onclick="this.blur();this.focus();" onchange="changeDailyPeriod(this);">
  456. <out:attribute name="aria-label"><xts:string id="IDS_PROP_SCHED_REPEAT_HOURS_LABEL"/></out:attribute>
  457. </utml:input>
  458. </dp:section1>
  459. <dp:section2>
  460. <out:variable name="hours_field_label"><xts:string id="IDS_PROP_SCHED_EVERY_HOURS_LABEL"/></out:variable>
  461. <xts:string id="IDS_PROP_SCHED_EVERY_HOURS">
  462. <xts:param name="control">
  463. <out:choose>
  464. <out:when test="$form-read-only = 'true'">
  465. <out:value-of select="key('env-param', 'm_sp_everyNhours')"/>
  466. </out:when>
  467. <out:otherwise>
  468. <utml:input type="text" name="m_sp_everyNhours" size="3" maxlength="3">
  469. <out:attribute name="aria-label"><out:value-of select="$hours_field_label"/></out:attribute>
  470. <out:if test="not(key('env-param','m_sp_dailyPeriod') = 'hour')">
  471. <out:attribute name="disabled">true</out:attribute>
  472. </out:if>
  473. </utml:input>
  474. </out:otherwise>
  475. </out:choose>
  476. </xts:param>
  477. </xts:string>
  478. </dp:section2>
  479. </out:if>
  480. <out:if test="$hasSchedCapabilityByDay='true' or key('env-param','m_sp_dailyPeriod') = 'day'">
  481. <dp:section1>
  482. <utml:input type="radio" value="day" onclick="this.blur();this.focus();" onchange="changeDailyPeriod(this);">
  483. <out:attribute name="aria-label"><xts:string id="IDS_PROP_SCHED_REPEAT_DAYS_LABEL"/></out:attribute>
  484. </utml:input>
  485. </dp:section1>
  486. <dp:section2>
  487. <out:variable name="days_field_label"><xts:string id="IDS_PROP_SCHED_EVERY_DAYS_LABEL"/></out:variable>
  488. <xts:string id="IDS_PROP_SCHED_EVERY_DAYS">
  489. <xts:param name="control">
  490. <out:choose>
  491. <out:when test="$form-read-only = 'true'">
  492. <out:value-of select="key('env-param', 'm_sp_everyNdays')"/>
  493. </out:when>
  494. <out:otherwise>
  495. <utml:input type="text" name="m_sp_everyNdays" size="3" maxlength="3">
  496. <out:attribute name="aria-label"><out:value-of select="$days_field_label"/></out:attribute>
  497. <out:if test="not(key('env-param','m_sp_dailyPeriod') = 'day')">
  498. <out:attribute name="disabled">true</out:attribute>
  499. </out:if>
  500. </utml:input>
  501. </out:otherwise>
  502. </out:choose>
  503. </xts:param>
  504. </xts:string>
  505. </dp:section2>
  506. </out:if>
  507. </dp:choice>
  508. <out:call-template name="rui-intraDailyFrequencyDetails">
  509. <out:with-param name="form-read-only" select="$form-read-only"/>
  510. <out:with-param name="isDaily" select="true()"/>
  511. </out:call-template>
  512. </utml:radio-group>
  513. </out:template>
  514. <out:template name="rui-WeeklyFrequencyDetails">
  515. <out:param name="form-read-only"/>
  516. <out:variable name="monday" select="key('env-param','m_sp_weeklyMonday')='true'"/>
  517. <out:variable name="tuesday" select="key('env-param','m_sp_weeklyTuesday')='true'"/>
  518. <out:variable name="wednesday" select="key('env-param','m_sp_weeklyWednesday')='true'"/>
  519. <out:variable name="thursday" select="key('env-param','m_sp_weeklyThursday')='true'"/>
  520. <out:variable name="friday" select="key('env-param','m_sp_weeklyFriday')='true'"/>
  521. <out:variable name="saturday" select="key('env-param','m_sp_weeklySaturday')='true'"/>
  522. <out:variable name="sunday" select="key('env-param','m_sp_weeklySunday')='true'"/>
  523. <dp:list>
  524. <dp:section>
  525. <!-- Monday -->
  526. <dp:field>
  527. <utml:input type="checkbox" name="m_sp_weeklyMonday" id="lbl_sp_weeklyMonday" value="true" utml:default-condition="$monday"/>
  528. </dp:field>
  529. <dp:text>
  530. <label for="lbl_sp_weeklyMonday"><xts:string id="IDS_PROP_SCHED_MONDAY"/></label>
  531. </dp:text>
  532. <!-- Tuesday -->
  533. <dp:field>
  534. <utml:input type="checkbox" name="m_sp_weeklyTuesday" id="lbl_sp_weeklyTuesday" value="true" utml:default-condition="$tuesday"/>
  535. </dp:field>
  536. <dp:text>
  537. <label for="lbl_sp_weeklyTuesday"><xts:string id="IDS_PROP_SCHED_TUESDAY"/></label>
  538. </dp:text>
  539. <!-- Wednesday -->
  540. <dp:field>
  541. <utml:input type="checkbox" name="m_sp_weeklyWednesday" id="lbl_sp_weeklyWednesday" value="true" utml:default-condition="$wednesday"/>
  542. </dp:field>
  543. <dp:text>
  544. <label for="lbl_sp_weeklyWednesday"><xts:string id="IDS_PROP_SCHED_WEDNESDAY"/></label>
  545. </dp:text>
  546. <!-- Thursday -->
  547. <dp:field>
  548. <utml:input type="checkbox" name="m_sp_weeklyThursday" id="lbl_sp_weeklyThursday" value="true" utml:default-condition="$thursday"/>
  549. </dp:field>
  550. <dp:text>
  551. <label for="lbl_sp_weeklyThursday"><xts:string id="IDS_PROP_SCHED_THURSDAY"/></label>
  552. </dp:text>
  553. </dp:section>
  554. <dp:section>
  555. <!-- Friday -->
  556. <dp:field>
  557. <utml:input type="checkbox" name="m_sp_weeklyFriday" id="lbl_sp_weeklyFriday" value="true" utml:default-condition="$friday"/>
  558. </dp:field>
  559. <dp:text>
  560. <label for="lbl_sp_weeklyFriday"><xts:string id="IDS_PROP_SCHED_FRIDAY"/></label>
  561. </dp:text>
  562. <!-- Saturday -->
  563. <dp:field>
  564. <utml:input type="checkbox" name="m_sp_weeklySaturday" id="lbl_sp_weeklySaturday" value="true" utml:default-condition="$saturday"/>
  565. </dp:field>
  566. <dp:text>
  567. <label for="lbl_sp_weeklySaturday"><xts:string id="IDS_PROP_SCHED_SATURDAY"/></label>
  568. </dp:text>
  569. <!-- Sunday -->
  570. <dp:field>
  571. <utml:input type="checkbox" name="m_sp_weeklySunday" id="lbl_sp_weeklySunday" value="true" utml:default-condition="$sunday"/>
  572. </dp:field>
  573. <dp:text>
  574. <label for="lbl_sp_weeklySunday"><xts:string id="IDS_PROP_SCHED_SUNDAY"/></label>
  575. </dp:text>
  576. </dp:section>
  577. </dp:list>
  578. <out:call-template name="rui-intraDailyFrequencyDetails">
  579. <out:with-param name="form-read-only" select="$form-read-only"/>
  580. </out:call-template>
  581. </out:template>
  582. <out:template name="rui-MonthlyFrequencyDetails">
  583. <out:param name="form-read-only"/>
  584. <!-- variable used inside a xts:string. Must in a seperate variable since we have xts:string nested inside an xtsLstring -->
  585. <out:variable name="day_control">
  586. <utml:select name="m_sp_monthlyRelativeDay" onchange="this.form.sub_type[0].checked = true; return true;">
  587. <out:if test="$form-read-only='false'">
  588. <out:attribute name="aria-label"><xts:string id="IDS_PROP_SCHED_DAY"/></out:attribute>
  589. </out:if>
  590. <out:if test="not(key('env-param','sub_type') = 'relative') and $form-read-only='false'">
  591. <out:attribute name="disabled">true</out:attribute>
  592. </out:if>
  593. <utml:option value="monday">
  594. <xts:string id="IDS_PROP_SCHED_MONDAY"/>
  595. </utml:option>
  596. <utml:option value="tuesday">
  597. <xts:string id="IDS_PROP_SCHED_TUESDAY"/>
  598. </utml:option>
  599. <utml:option value="wednesday">
  600. <xts:string id="IDS_PROP_SCHED_WEDNESDAY"/>
  601. </utml:option>
  602. <utml:option value="thursday">
  603. <xts:string id="IDS_PROP_SCHED_THURSDAY"/>
  604. </utml:option>
  605. <utml:option value="friday">
  606. <xts:string id="IDS_PROP_SCHED_FRIDAY"/>
  607. </utml:option>
  608. <utml:option value="saturday">
  609. <xts:string id="IDS_PROP_SCHED_SATURDAY"/>
  610. </utml:option>
  611. <utml:option value="sunday">
  612. <xts:string id="IDS_PROP_SCHED_SUNDAY"/>
  613. </utml:option>
  614. </utml:select>
  615. </out:variable>
  616. <!-- variable used inside a xts:string. Must in a seperate variable since we have xts:string nested inside an xtsLstring -->
  617. <out:variable name="number_control">
  618. <utml:select name="m_sp_monthlyRelativeWeek" onchange="this.form.sub_type[0].checked = true; return true;">
  619. <out:if test="$form-read-only='false'">
  620. <out:attribute name="aria-label"><xts:string id="IDS_PROP_SCHED_ORDER"/></out:attribute>
  621. </out:if>
  622. <out:if test="not(key('env-param','sub_type') = 'relative') and $form-read-only='false'">
  623. <out:attribute name="disabled">true</out:attribute>
  624. </out:if>
  625. <utml:option value="first">
  626. <xts:string id="IDS_PROP_SCHED_ORDER_FIRST"/>
  627. </utml:option>
  628. <utml:option value="second">
  629. <xts:string id="IDS_PROP_SCHED_ORDER_SECOND"/>
  630. </utml:option>
  631. <utml:option value="third">
  632. <xts:string id="IDS_PROP_SCHED_ORDER_THIRD"/>
  633. </utml:option>
  634. <utml:option value="fourth">
  635. <xts:string id="IDS_PROP_SCHED_ORDER_FOURTH"/>
  636. </utml:option>
  637. <utml:option value="last">
  638. <xts:string id="IDS_PROP_SCHED_ORDER_LAST"/>
  639. </utml:option>
  640. </utml:select>
  641. </out:variable>
  642. <utml:radio-group name="sub_type">
  643. <span style="position: absolute;margin-left: -9999px; margin-top: -9999px; " id="lbl_sub_type_radioGroup"><xts:string id="IDS_SCHEDULE_MONTHLY_LABEL"/></span>
  644. <dp:choice aria-labelledby="lbl_sub_type_radioGroup">
  645. <dp:section1>
  646. <utml:input type="radio" name="sub_type" id="ctrl_sub_type_relative" value="relative" onclick="setMonthlyAbsolute(false);" aria-labelledby="lbl_sub_type_relative"/>
  647. </dp:section1>
  648. <dp:section2 id="lbl_sub_type_relative">
  649. <out:variable name="lbl_m_sp_everyMonthsRel"><xts:string id="IDS_PROP_SCHED_RELATIVE_MONTHS"/></out:variable>
  650. <xts:string id="IDS_PROP_SCHED_EVERY_MONTHS_RELATIVE">
  651. <xts:param name="number_control">
  652. <out:copy-of select="$number_control"/>
  653. </xts:param>
  654. <xts:param name="day_control">
  655. <out:copy-of select="$day_control"/>
  656. </xts:param>
  657. <xts:param name="every_control">
  658. <out:choose>
  659. <out:when test="$form-read-only = 'true'">
  660. <out:value-of select="key('env-param', 'm_sp_everyNmonthsRel')"/>
  661. </out:when>
  662. <out:otherwise>
  663. <utml:input type="text" name="m_sp_everyNmonthsRel" size="3" maxlength="3">
  664. <out:attribute name="aria-label"><out:value-of select="$lbl_m_sp_everyMonthsRel"/></out:attribute>
  665. <out:if test="not(key('env-param','sub_type') = 'relative')">
  666. <out:attribute name="disabled">true</out:attribute>
  667. </out:if>
  668. </utml:input>
  669. </out:otherwise>
  670. </out:choose>
  671. </xts:param>
  672. </xts:string>
  673. </dp:section2>
  674. <dp:section1>
  675. <utml:input type="radio" name="sub_type" id="ctrl_sub_type_absolute" value="absolute" onclick="setMonthlyAbsolute(true);" aria-labelledby="lbl_sub_type_absolute"/>
  676. </dp:section1>
  677. <dp:section2 id="lbl_sub_type_absolute">
  678. <out:variable name="lbl_absoluteDay"><xts:string id="IDS_PROP_SCHED_DAY"/></out:variable>
  679. <out:variable name="lbl_everyNmonthsAbs"><xts:string id="IDS_PROP_SCHED_RELATIVE_MONTHS"/></out:variable>
  680. <xts:string id="IDS_PROP_SCHED_EVERY_MONTHS_ABSOLUTE">
  681. <xts:param name="day_control">
  682. <out:call-template name="rui-DayOptions">
  683. <out:with-param name="control_name">monthlyAbsoluteDay</out:with-param>
  684. <out:with-param name="xsl_default_day"><out:value-of select="key('env-param', 'm_sp_monthlyAbsoluteDay')"/></out:with-param>
  685. <out:with-param name="form-read-only" select="$form-read-only"/>
  686. <out:with-param name="isDisabled" select="not(key('env-param','sub_type') = 'absolute')"/>
  687. <out:with-param name="aria-label" select="$lbl_absoluteDay"/>
  688. </out:call-template>
  689. </xts:param>
  690. <xts:param name="every_control">
  691. <out:choose>
  692. <out:when test="$form-read-only = 'true'">
  693. <out:value-of select="key('env-param', 'm_sp_everyNmonthsAbs')"/>
  694. </out:when>
  695. <out:otherwise>
  696. <utml:input type="text" name="m_sp_everyNmonthsAbs" size="3" maxlength="3">
  697. <out:attribute name="aria-label"><out:value-of select="$lbl_everyNmonthsAbs"/></out:attribute>
  698. <out:if test="not(key('env-param','sub_type') = 'absolute')">
  699. <out:attribute name="disabled">true</out:attribute>
  700. </out:if>
  701. </utml:input>
  702. </out:otherwise>
  703. </out:choose>
  704. </xts:param>
  705. </xts:string>
  706. </dp:section2>
  707. </dp:choice>
  708. <out:call-template name="rui-intraDailyFrequencyDetails">
  709. <out:with-param name="form-read-only" select="$form-read-only"/>
  710. </out:call-template>
  711. </utml:radio-group>
  712. </out:template>
  713. <out:template name="rui-YearlyFrequencyDetails">
  714. <out:param name="form-read-only"/>
  715. <!-- variable used inside a xts:string. Must in a seperate variable since we have xts:string nested inside an xtsLstring -->
  716. <out:variable name="day_control">
  717. <utml:select name="m_sp_yearlyRelativeDay" onchange="this.form.sub_type[0].checked = true; return true;">
  718. <out:if test="$form-read-only='false'">
  719. <out:attribute name="aria-label"><xts:string id="IDS_PROP_SCHED_DAY"/></out:attribute>
  720. </out:if>
  721. <out:if test="not(key('env-param','sub_type') = 'relative') and $form-read-only='false'">
  722. <out:attribute name="disabled">true</out:attribute>
  723. </out:if>
  724. <utml:option value="monday">
  725. <xts:string id="IDS_PROP_SCHED_MONDAY"/>
  726. </utml:option>
  727. <utml:option value="tuesday">
  728. <xts:string id="IDS_PROP_SCHED_TUESDAY"/>
  729. </utml:option>
  730. <utml:option value="wednesday">
  731. <xts:string id="IDS_PROP_SCHED_WEDNESDAY"/>
  732. </utml:option>
  733. <utml:option value="thursday">
  734. <xts:string id="IDS_PROP_SCHED_THURSDAY"/>
  735. </utml:option>
  736. <utml:option value="friday">
  737. <xts:string id="IDS_PROP_SCHED_FRIDAY"/>
  738. </utml:option>
  739. <utml:option value="saturday">
  740. <xts:string id="IDS_PROP_SCHED_SATURDAY"/>
  741. </utml:option>
  742. <utml:option value="sunday">
  743. <xts:string id="IDS_PROP_SCHED_SUNDAY"/>
  744. </utml:option>
  745. </utml:select>
  746. </out:variable>
  747. <!-- variable used inside a xts:string. Must in a seperate variable since we have xts:string nested inside an xtsLstring -->
  748. <out:variable name="number_control">
  749. <utml:select name="m_sp_yearlyRelativeWeek" onchange="this.form.sub_type[0].checked = true; return true;">
  750. <out:if test="$form-read-only='false'">
  751. <out:attribute name="aria-label"><xts:string id="IDS_PROP_SCHED_ORDER"/></out:attribute>
  752. </out:if>
  753. <out:if test="not(key('env-param','sub_type') = 'relative') and $form-read-only='false'">
  754. <out:attribute name="disabled">true</out:attribute>
  755. </out:if>
  756. <utml:option value="first">
  757. <xts:string id="IDS_PROP_SCHED_ORDER_FIRST"/>
  758. </utml:option>
  759. <utml:option value="second">
  760. <xts:string id="IDS_PROP_SCHED_ORDER_SECOND"/>
  761. </utml:option>
  762. <utml:option value="third">
  763. <xts:string id="IDS_PROP_SCHED_ORDER_THIRD"/>
  764. </utml:option>
  765. <utml:option value="fourth">
  766. <xts:string id="IDS_PROP_SCHED_ORDER_FOURTH"/>
  767. </utml:option>
  768. <utml:option value="last">
  769. <xts:string id="IDS_PROP_SCHED_ORDER_LAST"/>
  770. </utml:option>
  771. </utml:select>
  772. </out:variable>
  773. <utml:radio-group name="sub_type">
  774. <dp:choice>
  775. <dp:section1>
  776. <utml:input type="radio" name="sub_type" value="relative" onclick="setYearlyAbsolute(false);" id="ctrl_lbl_sub_type_relative" aria-labelledby="lbl_sub_type_relative"/>
  777. </dp:section1>
  778. <dp:section2 id="lbl_sub_type_relative">
  779. <out:variable name="lbl_relativeMonth"><xts:string id="IDS_PROP_SCHED_MONTH"/></out:variable>
  780. <xts:string id="IDS_PROP_SCHED_EVERY_YEARS_RELATIVE">
  781. <xts:param name="number_control">
  782. <out:copy-of select="$number_control"/>
  783. </xts:param>
  784. <xts:param name="day_control">
  785. <out:copy-of select="$day_control"/>
  786. </xts:param>
  787. <xts:param name="month_control">
  788. <out:call-template name="rui-MonthOptions">
  789. <out:with-param name="form-read-only" select="$form-read-only"/>
  790. <out:with-param name="ctrl-name" select="'m_sp_yearlyRelativeMonth'"/>
  791. <out:with-param name="isDisabled" select="not(key('env-param','sub_type') = 'relative')"/>
  792. <out:with-param name="aria-label" select="$lbl_relativeMonth"/>
  793. </out:call-template>
  794. </xts:param>
  795. </xts:string>
  796. </dp:section2>
  797. <dp:section1>
  798. <utml:input type="radio" name="sub_type" value="absolute" onclick="setYearlyAbsolute(true);" id="ctrl_sub_type_absolute" aria-labelledby="lbl_sub_type_absolute"/>
  799. </dp:section1>
  800. <dp:section2 id="lbl_sub_type_absolute">
  801. <out:variable name="lbl_yearlyAbsoluteDay"><xts:string id="IDS_PROP_SCHED_DAY"/></out:variable>
  802. <out:variable name="lbl_absoluteMonth"><xts:string id="IDS_PROP_SCHED_MONTH"/></out:variable>
  803. <xts:string id="IDS_PROP_SCHED_EVERY_YEARS_ABSOLUTE">
  804. <xts:param name="day_control">
  805. <out:call-template name="rui-DayOptions">
  806. <out:with-param name="control_name">yearlyAbsoluteDay</out:with-param>
  807. <out:with-param name="xsl_default_day"><out:value-of select="key('env-param', 'm_sp_monthlyAbsoluteDay')"/></out:with-param>
  808. <out:with-param name="form-read-only" select="$form-read-only"/>
  809. <out:with-param name="isDisabled" select="not(key('env-param','sub_type') = 'absolute')"/>
  810. <out:with-param name="aria-label" select="$lbl_yearlyAbsoluteDay"/>
  811. </out:call-template>
  812. </xts:param>
  813. <xts:param name="month_control">
  814. <out:call-template name="rui-MonthOptions">
  815. <out:with-param name="form-read-only" select="$form-read-only"/>
  816. <out:with-param name="ctrl-name" select="'m_sp_yearlyAbsoluteMonth'"/>
  817. <out:with-param name="isDisabled" select="not(key('env-param','sub_type') = 'absolute')"/>
  818. <out:with-param name="aria-label" select="$lbl_absoluteMonth"/>
  819. </out:call-template>
  820. </xts:param>
  821. </xts:string>
  822. </dp:section2>
  823. </dp:choice>
  824. </utml:radio-group>
  825. <out:call-template name="rui-intraDailyFrequencyDetails">
  826. <out:with-param name="form-read-only" select="$form-read-only"/>
  827. </out:call-template>
  828. </out:template>
  829. <out:template name="rui-TriggerFrequencyDetails">
  830. <out:param name="form-read-only"/>
  831. <dp:input>
  832. <dp:section1 wrap="true"><label for="lbl_m_sp_triggerName"><xts:string id="IDS_OTHERRUN_EVENT_NAME"/></label></dp:section1>
  833. <dp:section2>
  834. <out:if test="$form-read-only='true'">
  835. <out:value-of select="key('env-param','m_sp_triggerName')"/>
  836. </out:if>
  837. <utml:input type="text" size="30" class="pInput" name="m_sp_triggerName" id="lbl_m_sp_triggerName"/>
  838. <utml:input type="hidden" name="m_triggerType">
  839. <utml:value><xsl:value-of select="'schedule'"/></utml:value>
  840. </utml:input>
  841. </dp:section2>
  842. </dp:input>
  843. </out:template>
  844. <out:template name="rui-MonthOptions">
  845. <out:param name="form-read-only"/>
  846. <out:param name="ctrl-name"/>
  847. <out:param name="isDisabled" select="false()"/>
  848. <out:param name="aria-label"/>
  849. <utml:select>
  850. <utml:name><out:value-of select="$ctrl-name"/></utml:name>
  851. <out:if test="$form-read-only != 'true'">
  852. <out:attribute name="aria-label"><out:value-of select="$aria-label"/></out:attribute>
  853. </out:if>
  854. <out:if test="$isDisabled and $form-read-only != 'true'">
  855. <out:attribute name="disabled">true</out:attribute>
  856. </out:if>
  857. <!-- Declare an option for each month -->
  858. <utml:option value="january">
  859. <xts:string id="IDS_PROP_SCHED_JANUARY"/>
  860. </utml:option>
  861. <utml:option value="february">
  862. <xts:string id="IDS_PROP_SCHED_FEBRUARY"/>
  863. </utml:option>
  864. <utml:option value="march">
  865. <xts:string id="IDS_PROP_SCHED_MARCH"/>
  866. </utml:option>
  867. <utml:option value="april">
  868. <xts:string id="IDS_PROP_SCHED_APRIL"/>
  869. </utml:option>
  870. <utml:option value="may">
  871. <xts:string id="IDS_PROP_SCHED_MAY"/>
  872. </utml:option>
  873. <utml:option value="june">
  874. <xts:string id="IDS_PROP_SCHED_JUNE"/>
  875. </utml:option>
  876. <utml:option value="july">
  877. <xts:string id="IDS_PROP_SCHED_JULY"/>
  878. </utml:option>
  879. <utml:option value="august">
  880. <xts:string id="IDS_PROP_SCHED_AUGUST"/>
  881. </utml:option>
  882. <utml:option value="september">
  883. <xts:string id="IDS_PROP_SCHED_SEPTEMBER"/>
  884. </utml:option>
  885. <utml:option value="october">
  886. <xts:string id="IDS_PROP_SCHED_OCTOBER"/>
  887. </utml:option>
  888. <utml:option value="november">
  889. <xts:string id="IDS_PROP_SCHED_NOVEMBER"/>
  890. </utml:option>
  891. <utml:option value="december">
  892. <xts:string id="IDS_PROP_SCHED_DECEMBER"/>
  893. </utml:option>
  894. </utml:select>
  895. </out:template>
  896. <out:template name="rui-DayOptions">
  897. <out:param name="control_name"/>
  898. <out:param name="xsl_default_day"/>
  899. <out:param name="form-read-only"/>
  900. <out:param name="isDisabled" select="false()"/>
  901. <out:param name="aria-label"/>
  902. <utml:select utml:prefix="m_sp_" onchange="this.form.sub_type[1].checked = true; return true;">
  903. <out:if test="$isDisabled and $form-read-only != 'true'">
  904. <out:attribute name="disabled">true</out:attribute>
  905. </out:if>
  906. <out:if test="$form-read-only != 'true'">
  907. <out:attribute name="aria-label"><out:value-of select="$aria-label"/></out:attribute>
  908. </out:if>
  909. <utml:name>
  910. <out:value-of select="$control_name"/>
  911. </utml:name>
  912. <utml:default-value>
  913. <out:value-of select="$xsl_default_day"/>
  914. </utml:default-value>
  915. <!-- Declare an option for each day -->
  916. <utml:option value="1">1</utml:option>
  917. <utml:option value="2">2</utml:option>
  918. <utml:option value="3">3</utml:option>
  919. <utml:option value="4">4</utml:option>
  920. <utml:option value="5">5</utml:option>
  921. <utml:option value="6">6</utml:option>
  922. <utml:option value="7">7</utml:option>
  923. <utml:option value="8">8</utml:option>
  924. <utml:option value="9">9</utml:option>
  925. <utml:option value="10">10</utml:option>
  926. <utml:option value="11">11</utml:option>
  927. <utml:option value="12">12</utml:option>
  928. <utml:option value="13">13</utml:option>
  929. <utml:option value="14">14</utml:option>
  930. <utml:option value="15">15</utml:option>
  931. <utml:option value="16">16</utml:option>
  932. <utml:option value="17">17</utml:option>
  933. <utml:option value="18">18</utml:option>
  934. <utml:option value="19">19</utml:option>
  935. <utml:option value="20">20</utml:option>
  936. <utml:option value="21">21</utml:option>
  937. <utml:option value="22">22</utml:option>
  938. <utml:option value="23">23</utml:option>
  939. <utml:option value="24">24</utml:option>
  940. <utml:option value="25">25</utml:option>
  941. <utml:option value="26">26</utml:option>
  942. <utml:option value="27">27</utml:option>
  943. <utml:option value="28">28</utml:option>
  944. <utml:option value="29">29</utml:option>
  945. <utml:option value="30">30</utml:option>
  946. <utml:option value="31">31</utml:option>
  947. </utml:select>
  948. </out:template>
  949. <out:template name="rui-intraDailyFrequencyDetails">
  950. <out:param name="form-read-only" select="'false'"/>
  951. <out:param name="isDaily" select="false()"/>
  952. <out:variable name="savedType">
  953. <out:choose>
  954. <out:when test="key('env-param','type_saved')">
  955. <out:value-of select="key('env-param','type_saved')"/>
  956. </out:when>
  957. <out:otherwise>
  958. <out:value-of select="key('env-param','m_sp_type')"/>
  959. </out:otherwise>
  960. </out:choose>
  961. </out:variable>
  962. <out:variable name="isSavedTab" select="starts-with($savedType,key('env-param','m_sp_type'))"/>
  963. <out:variable name="isIntraDay" select="contains($savedType,'WithIntradayRecurrence')"/>
  964. <out:variable name="canScheduleIntraDay" select="$hasSchedCapabilityByDay='true' and ($hasSchedCapabilityByHour='true' or $hasSchedCapabilityByMinute='true')"/>
  965. <out:if test="($isSavedTab and $isIntraDay) or $canScheduleIntraDay">
  966. <out:variable name="intervalUnit" select="/root/env/param[@name='m_sp_intradayRecurrenceIntervalUnit']"/>
  967. <out:variable name="minuteHour_control">
  968. <out:choose>
  969. <out:when test="$form-read-only='true'">
  970. <out:choose>
  971. <out:when test="$intervalUnit='M'">
  972. <xts:string id="IDS_PROP_SETTINGS_UNITS_MIN"/>
  973. </out:when>
  974. <out:otherwise>
  975. <xts:string id="IDS_PROP_SETTINGS_UNITS_HOUR"/>
  976. </out:otherwise>
  977. </out:choose>
  978. </out:when>
  979. <out:otherwise>
  980. <out:variable name="minuteHour_control_label"><xts:string id="IDS_PROP_SCHED_FREQ_INTERVAL_UNITS"/></out:variable>
  981. <utml:select name="m_sp_intradayRecurrenceIntervalUnit">
  982. <out:attribute name="aria-label"><out:value-of select="$minuteHour_control_label"/></out:attribute>
  983. <out:if test="$hasSchedCapabilityByMinute='true' or ($intervalUnit='M' and boolean($isSavedTab))">
  984. <utml:option value="M">
  985. <xts:string id="IDS_PROP_SETTINGS_UNITS_MIN"/>
  986. </utml:option>
  987. </out:if>
  988. <out:if test="$hasSchedCapabilityByHour='true' or ($intervalUnit='H' and $isSavedTab)">
  989. <utml:option value="H">
  990. <xts:string id="IDS_PROP_SETTINGS_UNITS_HOUR"/>
  991. </utml:option>
  992. </out:if>
  993. </utml:select>
  994. </out:otherwise>
  995. </out:choose>
  996. </out:variable>
  997. <out:if test="not($form-read-only='true') or boolean($isIntraDay)">
  998. <dp:choice title="IDS_PROP_DAILY_FREQUENCY" noSpace="true">
  999. <dp:section1>
  1000. <out:if test="not($form-read-only='true')">
  1001. <utml:input type="checkbox" name="df_intra" value="true" onclick="enableIntraDay(this.checked);">
  1002. <out:attribute name="aria-label"><xts:string id="IDS_PROP_ENABLE_DAILY_FREQUENCY_LABEL"/></out:attribute>
  1003. <out:if test="$isDaily and not(key('env-param','m_sp_dailyPeriod') = 'day')">
  1004. <out:attribute name="disabled"/>
  1005. </out:if>
  1006. </utml:input>
  1007. </out:if>
  1008. </dp:section1>
  1009. <dp:section2>
  1010. <label for="intradayRecurrenceStart_prmtTime_HOURS" style="position: absolute;margin-left: -9999px; margin-top: -9999px; "><xts:string id="IDS_PROP_SCHED_FREQ_RELATIVE_INTERVAL_START_HOURS" encode="html"/></label>
  1011. <label for="intradayRecurrenceStart_prmtTime_MINUTES" style="position: absolute;margin-left: -9999px; margin-top: -9999px; "><xts:string id="IDS_PROP_SCHED_FREQ_RELATIVE_INTERVAL_START_MINUTES" encode="html"/></label>
  1012. <label for="intradayRecurrenceStart_prmtTime_AMPM" style="position: absolute;margin-left: -9999px; margin-top: -9999px; "><xts:string id="IDS_PROP_SCHED_FREQ_RELATIVE_INTERVAL_START_AMPM" encode="html"/></label>
  1013. <label for="intradayRecurrenceEnd_prmtTime_HOURS" style="position: absolute;margin-left: -9999px; margin-top: -9999px; "><xts:string id="IDS_PROP_SCHED_FREQ_RELATIVE_INTERVAL_START_HOURS" encode="html"/></label>
  1014. <label for="intradayRecurrenceEnd_prmtTime_MINUTES" style="position: absolute;margin-left: -9999px; margin-top: -9999px; "><xts:string id="IDS_PROP_SCHED_FREQ_RELATIVE_INTERVAL_START_MINUTES" encode="html"/></label>
  1015. <label for="intradayRecurrenceEnd_prmtTime_AMPM" style="position: absolute;margin-left: -9999px; margin-top: -9999px; "><xts:string id="IDS_PROP_SCHED_FREQ_RELATIVE_INTERVAL_START_AMPM" encode="html"/></label>
  1016. <out:variable name="startTimeInverallabel"><xts:string id="IDS_PROP_DAILY_FREQUENCY_START_TIME" encode="javascript"/></out:variable>
  1017. <out:variable name="endTimeInverallabel"><xts:string id="IDS_PROP_DAILY_FREQUENCY_END_TIME" encode="javascript"/></out:variable>
  1018. <div role="group">
  1019. <out:attribute name="aria-label"><xts:string id="IDS_PROP_DAILY_FREQUENCY_ENTRY" encode="html"/></out:attribute>
  1020. <out:call-template name="xtsString2Table">
  1021. <out:with-param name="tableId" select="'intradayRecurrenceInterval'"/>
  1022. <out:with-param name="xtsString">
  1023. <out:variable name="number_control_label"><xts:string id="IDS_PROP_SCHED_FREQ_INTERVAL"/></out:variable>
  1024. <xts:string id="IDS_PROP_SCHED_FREQ_RELATIVE">
  1025. <xts:param name="number_control">
  1026. <out:choose>
  1027. <out:when test="$form-read-only = 'true'">
  1028. <out:value-of select="/root/env/param[@name='m_sp_intradayRecurrenceIntervalNum']"/>
  1029. </out:when>
  1030. <out:otherwise>
  1031. <utml:input type="text" size="3" maxlength="3" name="m_sp_intradayRecurrenceIntervalNum">
  1032. <out:attribute name="aria-label"><out:value-of select="$number_control_label"/></out:attribute>
  1033. <out:if test="($form-read-only = 'true')">
  1034. <out:attribute name="disabled"></out:attribute>
  1035. </out:if>
  1036. </utml:input>
  1037. </out:otherwise>
  1038. </out:choose>
  1039. </xts:param>
  1040. <xts:param name="minuteHour_control">
  1041. <out:copy-of select="$minuteHour_control"/>
  1042. </xts:param>
  1043. <xts:param name="startTime_control">
  1044. <out:choose>
  1045. <out:when test="$form-read-only = 'true'">
  1046. <out:variable name="xsl_start_date">
  1047. <out:value-of select="concat(string(key('env-param', 'p_sched_date1')), 'T', string(/root/env/param[@name='p_intradayRecurrenceStart']))"/>
  1048. </out:variable>
  1049. <out:variable name="xsl_UTC_start_date">
  1050. <out:value-of select="xtsext:formatDateToUTC( string( $xsl_start_date ), string( $timeZone ) )"/>
  1051. </out:variable>
  1052. <out:value-of select="xtsext:formatDateFromUTC(string($xsl_UTC_start_date), 'h:mm a', string($timeZone), string($contentLocale))"/>
  1053. </out:when>
  1054. <out:otherwise>
  1055. <dp:field>
  1056. <out:call-template name="getSelectTime">
  1057. <out:with-param name="promptLocale" select="$promptLocale"/>
  1058. <out:with-param name="promptFormName" select="'pform'"/>
  1059. <out:with-param name="promptRequired" select="'false'"/>
  1060. <out:with-param name="promptDefaultValue" select="key('env-param', 'p_intradayRecurrenceStart')"/>
  1061. <out:with-param name="promptParameter" select="'intradayRecurrenceStart'"/>
  1062. <out:with-param name="promptShowSeconds" select="'false'"/>
  1063. <out:with-param name="promptInline" select="'false'"/>
  1064. <out:with-param name="promptTimeZone" select="$timeZone"/>
  1065. <out:with-param name="promptHourFormat" select="'hh'"/>
  1066. <out:with-param name="promptMinuteFormat" select="'mm'"/>
  1067. <out:with-param name="promptSecondFormat" select="'ss'"/>
  1068. <out:with-param name="promptMode" select="@mode"/>
  1069. <out:with-param name="promptMultiSelect" select="'false'"/>
  1070. <out:with-param name="promptId" select="'intradayRecurrenceStart'"/>
  1071. <out:with-param name="suppressDisabled" select="'true'"/>
  1072. <out:with-param name="promptBrowserMode" select="$promptBrowserMode"/>
  1073. <out:with-param name="promptSelectUI" select="'editBox'"/>
  1074. <out:with-param name="promptTimeLabel" select="$startTimeInverallabel"/>
  1075. </out:call-template>
  1076. </dp:field>
  1077. </out:otherwise>
  1078. </out:choose>
  1079. </xts:param>
  1080. <xts:param name="endTime_control">
  1081. <out:choose>
  1082. <out:when test="$form-read-only = 'true'">
  1083. <out:variable name="xsl_end_date">
  1084. <out:value-of select="concat(string(key('env-param', 'p_sched_date1')), 'T', string(/root/env/param[@name='p_intradayRecurrenceEnd']))"/>
  1085. </out:variable>
  1086. <out:variable name="xsl_UTC_end_date">
  1087. <out:value-of select="xtsext:formatDateToUTC( string( $xsl_end_date ), string( $timeZone ) )"/>
  1088. </out:variable>
  1089. <out:value-of select="xtsext:formatDateFromUTC(string($xsl_UTC_end_date), 'h:mm a', string($timeZone), string($contentLocale))"/>
  1090. </out:when>
  1091. <out:otherwise>
  1092. <dp:field>
  1093. <out:call-template name="getSelectTime">
  1094. <out:with-param name="promptLocale" select="$promptLocale"/>
  1095. <out:with-param name="promptFormName" select="'pform'"/>
  1096. <out:with-param name="promptRequired" select="'false'"/>
  1097. <out:with-param name="promptDefaultValue" select="key('env-param', 'p_intradayRecurrenceEnd')"/>
  1098. <out:with-param name="promptParameter" select="'intradayRecurrenceEnd'"/>
  1099. <out:with-param name="promptShowSeconds" select="'false'"/>
  1100. <out:with-param name="promptInline" select="'false'"/>
  1101. <out:with-param name="promptTimeZone" select="$timeZone"/>
  1102. <out:with-param name="promptHourFormat" select="'hh'"/>
  1103. <out:with-param name="promptMinuteFormat" select="'mm'"/>
  1104. <out:with-param name="promptSecondFormat" select="'ss'"/>
  1105. <out:with-param name="promptMode" select="@mode"/>
  1106. <out:with-param name="promptMultiSelect" select="'false'"/>
  1107. <out:with-param name="promptId" select="'intradayRecurrenceEnd'"/>
  1108. <out:with-param name="suppressDisabled" select="'true'"/>
  1109. <out:with-param name="promptBrowserMode" select="$promptBrowserMode"/>
  1110. <out:with-param name="promptSelectUI" select="'editBox'"/>
  1111. <out:with-param name="promptTimeLabel" select="$endTimeInverallabel"/>
  1112. </out:call-template>
  1113. </dp:field>
  1114. </out:otherwise>
  1115. </out:choose>
  1116. </xts:param>
  1117. </xts:string>
  1118. </out:with-param>
  1119. </out:call-template>
  1120. </div>
  1121. </dp:section2>
  1122. </dp:choice>
  1123. </out:if>
  1124. </out:if>
  1125. </out:template>
  1126. </xsl:copy>
  1127. </xsl:template>
  1128. <!--
  1129. ===============================================================================================
  1130. rui:recurrenceUI - render the schedule section.
  1131. ===============================================================================================
  1132. -->
  1133. <xsl:template match="rui:recurrenceUI">
  1134. <out:variable name="showTriggerTab">
  1135. <out:choose>
  1136. <out:when test="$savedTriggerType = 'authoredReport' or ((key('system-param', 'enable-trigger-support')='false' or key('system-param', 'enable-trigger-tab')='false') and (not(key('env-param','m_sp_type') = 'trigger')))">
  1137. <out:value-of select="'false'"/>
  1138. </out:when>
  1139. <out:otherwise><out:value-of select="'true'"/></out:otherwise>
  1140. </out:choose>
  1141. </out:variable>
  1142. <out:variable name="showUserCredentialLink">
  1143. <out:choose>
  1144. <!-- the credential for the schedule is already set to the current user OR there are no credentials on the schedule (for example, a new schedule) -->
  1145. <out:when test="(($scheduleCredentialSearchPathProperty = $userCredentialSearchPathProperty) and $scheduleCredentialSearchPathProperty != 'unavailable') or ($scheduleCredentialSearchPathProperty = 'unavailable' and $scheduleExists='false')">
  1146. <out:value-of select="'false'"/>
  1147. </out:when>
  1148. <out:otherwise><out:value-of select="'true'"/></out:otherwise>
  1149. </out:choose>
  1150. </out:variable>
  1151. <out:variable name="interval">
  1152. <out:choose>
  1153. <out:when test="not(key('env-param','m_sp_type')='trigger' and $showTriggerTab='false')">
  1154. <out:value-of select="key('env-param','m_sp_type')"/>
  1155. </out:when>
  1156. <out:otherwise><out:value-of select="'weekly'"/></out:otherwise>
  1157. </out:choose>
  1158. </out:variable>
  1159. <out:call-template name="rui-scheduleScript">
  1160. <out:with-param name="interval" select="$interval"/>
  1161. </out:call-template>
  1162. <utml:input type="hidden" name="changed_m_scheduleCredentials">
  1163. <out:choose>
  1164. <out:when test="key('env-param','m_schedule_owner_reset')='true'">
  1165. <out:attribute name="value">1</out:attribute>
  1166. </out:when>
  1167. <out:otherwise>
  1168. <out:attribute name="value">0</out:attribute>
  1169. </out:otherwise>
  1170. </out:choose>
  1171. </utml:input>
  1172. <utml:input type="hidden" name="switch_frequency" utml:update="false" value="false"/>
  1173. <script language="javascript">
  1174. function getScheduleInterval() {
  1175. return '<out:value-of select="$interval"/>';
  1176. }
  1177. function getScheduleInterval() {
  1178. return '<out:value-of select="$interval"/>';
  1179. }
  1180. function isIntraDailyFreq() {
  1181. return <out:value-of select="key('env-param','df_intra')='true'"/>
  1182. }
  1183. </script>
  1184. <div id="scheduleDiv">
  1185. <!-- Render the page -->
  1186. <xsl:choose>
  1187. <xsl:when test="@agentStudio='true'">
  1188. <lyt:layout style="1">
  1189. <xsl:if test="@showTitle='true'">
  1190. <xsl:attribute name="title">IDS_PROP_SCHED_RECURRENCE</xsl:attribute>
  1191. <xsl:attribute name="border">yes</xsl:attribute>
  1192. </xsl:if>
  1193. <lyt:section>
  1194. <xsl:call-template name="rui-recurrenceUI">
  1195. <xsl:with-param name="agentStudio" select="true()"/>
  1196. </xsl:call-template>
  1197. </lyt:section>
  1198. </lyt:layout>
  1199. <lyt:layout style="1">
  1200. <lyt:section>
  1201. <dp:group>
  1202. <dp:groupItem valign="top">
  1203. <xsl:call-template name="rui-startDate"/>
  1204. </dp:groupItem>
  1205. <dp:groupItem><img height="0" width="100" border="0"><xsl:attribute name="src"><xsl:value-of select="'{$webcontent}'"/>/images/space.gif</xsl:attribute></img></dp:groupItem>
  1206. <dp:groupItem>
  1207. <xsl:call-template name="rui-endDate"/>
  1208. </dp:groupItem>
  1209. </dp:group>
  1210. </lyt:section>
  1211. </lyt:layout>
  1212. </xsl:when>
  1213. <xsl:otherwise>
  1214. <lyt:layout style="2">
  1215. <xsl:if test="@showTitle='true'">
  1216. <xsl:attribute name="title">IDS_PROP_SCHED_RECURRENCE</xsl:attribute>
  1217. <xsl:attribute name="border">yes</xsl:attribute>
  1218. </xsl:if>
  1219. <lyt:section>
  1220. <xsl:call-template name="rui-recurrenceUI"/>
  1221. </lyt:section>
  1222. <lyt:section>
  1223. <lyt:layout style="1">
  1224. <lyt:section>
  1225. <xsl:call-template name="rui-startDate"/>
  1226. </lyt:section>
  1227. <lyt:section/>
  1228. <lyt:section>
  1229. <xsl:call-template name="rui-endDate"/>
  1230. </lyt:section>
  1231. </lyt:layout>
  1232. </lyt:section>
  1233. </lyt:layout>
  1234. </xsl:otherwise>
  1235. </xsl:choose>
  1236. </div>
  1237. </xsl:template>
  1238. <xsl:template name="rui-recurrenceUI">
  1239. <xsl:param name="agentStudio" select="false()"/>
  1240. <out:variable name="runnableType">
  1241. <out:choose>
  1242. <out:when test="key('env-param', 'm_new_class')='contentTask'"><xts:string id="IDS_CONTENT_TASK"/></out:when>
  1243. <out:when test="key('env-param', 'm_new_class')='metricsMaintenanceTask'"><xts:string id="IDS_OBJ_METRICSMAINTENANCETASK_LC"/></out:when>
  1244. <out:when test="key('env-param', 'm_new_class')='metricsFileImportTask'"><xts:string id="IDS_OBJ_METRICSFILEIMPORTTASK_FROMFILES_LC"/></out:when>
  1245. <out:otherwise><xts:string id="IDS_OBJ_JOBDEFINITION_LC"/></out:otherwise>
  1246. </out:choose>
  1247. </out:variable>
  1248. <out:call-template name="rui-displayRecurrence">
  1249. <out:with-param name="form-read-only" select="$form-read-only"/>
  1250. <out:with-param name="utml-form-name" select="$utml-form-name"/>
  1251. <out:with-param name="interval" select="$interval"/>
  1252. <out:with-param name="inWizard">
  1253. <xsl:choose>
  1254. <xsl:when test="@inWizard='true'">true</xsl:when>
  1255. <xsl:otherwise>false</xsl:otherwise>
  1256. </xsl:choose>
  1257. </out:with-param>
  1258. <out:with-param name="agentStudio" select="{$agentStudio}"/>
  1259. <out:with-param name="showTriggerTab" select="$showTriggerTab"/>
  1260. <out:with-param name="showUserCredentialLink" select="$showUserCredentialLink"/>
  1261. </out:call-template>
  1262. </xsl:template>
  1263. <xsl:template name="rui-startDate">
  1264. <dp:list title="IDS_PROP_SCHED_STARTING">
  1265. <label for="txtDatedateFrom" style="position: absolute;margin-left: -9999px; margin-top: -9999px; "><xts:string id="IDS_PROP_SCHED_STARTDATE"/></label>
  1266. <label for="timeFrom_prmtTime_HOURS" style="position: absolute;margin-left: -9999px; margin-top: -9999px; "><xts:string id="IDS_PROP_SCHED_FREQ_RELATIVE_INTERVAL_START_HOURS" encode="html"/></label>
  1267. <label for="timeFrom_prmtTime_MINUTES" style="position: absolute;margin-left: -9999px; margin-top: -9999px; "><xts:string id="IDS_PROP_SCHED_FREQ_RELATIVE_INTERVAL_START_MINUTES" encode="html"/></label>
  1268. <label for="timeFrom_prmtTime_AMPM" style="position: absolute;margin-left: -9999px; margin-top: -9999px; "><xts:string id="IDS_PROP_SCHED_FREQ_RELATIVE_INTERVAL_START_AMPM" encode="html"/></label>
  1269. <label for="myYeardateFrom" style="position: absolute;margin-left: -9999px; margin-top: -9999px; "><xts:string id="IDS_PROP_SCHED_FREQ_RELATIVE_INTERVAL_START_DATE_YEAR" encode="html"/></label>
  1270. <label for="myYeardateTo" style="position: absolute;margin-left: -9999px; margin-top: -9999px; "><xts:string id="IDS_PROP_SCHED_FREQ_RELATIVE_INTERVAL_END_DATE_YEAR" encode="html"/></label>
  1271. <out:variable name="dialogLabel"><xts:string id="DS_PROP_SCHED_FREQ_RELATIVE_INTERVAL_START_DATE_DIALOG"/></out:variable>
  1272. <out:variable name="startTimeInverallabel"><xts:string id="IDS_PROP_DAILY_SCHED_START_TIME" encode="javascript"/></out:variable>
  1273. <out:choose>
  1274. <out:when test=" $form-read-only = 'false' ">
  1275. <dp:section>
  1276. <dp:field width="200">
  1277. <out:call-template name="getSelectDate">
  1278. <out:with-param name="promptLocale" select="$promptLocale"/>
  1279. <out:with-param name="promptTimeZone" select="$timeZone"/>
  1280. <out:with-param name="promptFormName" select="'pform'"/>
  1281. <out:with-param name="promptRequired" select="'false'"/>
  1282. <out:with-param name="promptStartOfWeek" select="'Sunday'"/>
  1283. <out:with-param name="promptCalendar" select="'Gregorian'"/>
  1284. <out:with-param name="promptParameter" select="'sched_date1'"/>
  1285. <out:with-param name="promptSelectDateUI" select="'editBox'"/>
  1286. <out:with-param name="promptInputOrder" select="'YMD'"/>
  1287. <out:with-param name="promptDefaultDate" select="key('env-param', 'p_sched_date1')"/>
  1288. <out:with-param name="promptDateTime" select="'false'"/>
  1289. <out:with-param name="promptMultiSelect" select="'false'"/>
  1290. <out:with-param name="promptId" select="'dateFrom'"/>
  1291. <out:with-param name="suppressDisabled" select="'true'"/>
  1292. <out:with-param name="promptBrowserMode" select="$promptBrowserMode"/>
  1293. <out:with-param name="promptSelectUI" select="'editBox'"/>
  1294. <out:with-param name="popupLabel" select="$dialogLabel"/>
  1295. </out:call-template>
  1296. </dp:field>
  1297. </dp:section>
  1298. <dp:section>
  1299. <dp:field width="200">
  1300. <out:call-template name="getSelectTime">
  1301. <out:with-param name="promptLocale" select="$promptLocale"/>
  1302. <out:with-param name="promptFormName" select="'pform'"/>
  1303. <out:with-param name="promptRequired" select="'false'"/>
  1304. <out:with-param name="promptDefaultValue" select="key('env-param', 'p_sched_time1')"/>
  1305. <out:with-param name="promptParameter" select="'sched_time1'"/>
  1306. <out:with-param name="promptShowSeconds" select="'false'"/>
  1307. <out:with-param name="promptInline" select="'false'"/>
  1308. <out:with-param name="promptTimeZone" select="$timeZone"/>
  1309. <out:with-param name="promptHourFormat" select="'hh'"/>
  1310. <out:with-param name="promptMinuteFormat" select="'mm'"/>
  1311. <out:with-param name="promptSecondFormat" select="'ss'"/>
  1312. <out:with-param name="promptMode" select="@mode"/>
  1313. <out:with-param name="promptMultiSelect" select="'false'"/>
  1314. <out:with-param name="promptId" select="'timeFrom'"/>
  1315. <out:with-param name="suppressDisabled" select="'true'"/>
  1316. <out:with-param name="promptBrowserMode" select="$promptBrowserMode"/>
  1317. <out:with-param name="promptSelectUI" select="'editBox'"/>
  1318. <out:with-param name="promptTimeLabel" select="$startTimeInverallabel"/>
  1319. </out:call-template>
  1320. </dp:field>
  1321. </dp:section>
  1322. </out:when>
  1323. <out:otherwise>
  1324. <out:variable name="xsl_start_date">
  1325. <out:value-of select="concat(string(key('env-param', 'p_sched_date1')), 'T', substring-before(string(key('env-param', 'p_sched_time1')), '.'))"/>
  1326. </out:variable>
  1327. <out:variable name="xsl_UTC_start_date">
  1328. <out:value-of select="xtsext:formatDateToUTC( string( $xsl_start_date ), string( $timeZone ) )"/>
  1329. </out:variable>
  1330. <dp:section>
  1331. <out:value-of select="xtsext:formatDateFromUTC(string($xsl_UTC_start_date), number('2'), number('3'), string($timeZone), string($contentLocale))"/>
  1332. </dp:section>
  1333. <utml:input name="p_sched_date1" type="hidden">
  1334. <utml:value>
  1335. <out:value-of select="key('env-param', 'p_sched_date1')"/>
  1336. </utml:value>
  1337. </utml:input>
  1338. <utml:input name="p_sched_time1" type="hidden">
  1339. <utml:value>
  1340. <out:value-of select="key('env-param', 'p_sched_time1')"/>
  1341. </utml:value>
  1342. </utml:input>
  1343. </out:otherwise>
  1344. </out:choose>
  1345. </dp:list>
  1346. </xsl:template>
  1347. <xsl:template name="rui-endDate">
  1348. <utml:radio-group name="m_sp_endType">
  1349. <dp:choice title="IDS_PROP_SCHED_UNTIL" id="lbl_m_sp_endType">
  1350. <dp:section1>
  1351. <utml:input type="radio" name="m_sp_endType" id="lbl_sp_noEnd" value="indefinite"/>
  1352. </dp:section1>
  1353. <dp:section2 for="lbl_sp_noEnd">
  1354. <xts:string id="IDS_PROP_SCHED_NO_END_DATE"/>
  1355. </dp:section2>
  1356. <dp:section1>
  1357. <utml:input type="radio" name="m_sp_endType" id="lbl_sp_endBy" value="onDate"/>
  1358. </dp:section1>
  1359. <dp:section2 for="lbl_sp_endBy">
  1360. <xts:string id="IDS_PROP_SCHED_END_BY"/>
  1361. </dp:section2>
  1362. <dp:section3>
  1363. <dp:list>
  1364. <label for="txtDatedateTo" style="position: absolute;margin-left: -9999px; margin-top: -9999px; "><xts:string id="IDS_PROP_SCHED_ENDDATE"/></label>
  1365. <label for="timeTo_prmtTime_HOURS" style="position: absolute;margin-left: -9999px; margin-top: -9999px; "><xts:string id="IDS_PROP_SCHED_FREQ_RELATIVE_INTERVAL_START_HOURS" encode="html"/></label>
  1366. <label for="timeTo_prmtTime_MINUTES" style="position: absolute;margin-left: -9999px; margin-top: -9999px; "><xts:string id="IDS_PROP_SCHED_FREQ_RELATIVE_INTERVAL_START_MINUTES" encode="html"/></label>
  1367. <label for="timeTo_prmtTime_AMPM" style="position: absolute;margin-left: -9999px; margin-top: -9999px; "><xts:string id="IDS_PROP_SCHED_FREQ_RELATIVE_INTERVAL_START_AMPM" encode="html"/></label>
  1368. <out:variable name="startTimeInverallabel"><xts:string id="IDS_PROP_DAILY_SCHED_END_TIME" encode="javascript"/></out:variable>
  1369. <out:variable name="dialogLabel"><xts:string id="DS_PROP_SCHED_FREQ_RELATIVE_INTERVAL_END_DATE_DIALOG"/></out:variable>
  1370. <out:choose>
  1371. <out:when test=" $form-read-only = 'false' ">
  1372. <dp:section>
  1373. <dp:field width="200">
  1374. <out:call-template name="getSelectDate">
  1375. <out:with-param name="promptLocale" select="$promptLocale"/>
  1376. <out:with-param name="promptTimeZone" select="$timeZone"/>
  1377. <out:with-param name="promptFormName" select="'pform'"/>
  1378. <out:with-param name="promptRequired" select="'false'"/>
  1379. <out:with-param name="promptStartOfWeek" select="'Sunday'"/>
  1380. <out:with-param name="promptCalendar" select="'Gregorian'"/>
  1381. <out:with-param name="promptParameter" select="'sched_date2'"/>
  1382. <out:with-param name="promptSelectDateUI" select="'editBox'"/>
  1383. <out:with-param name="promptInputOrder" select="'YMD'"/>
  1384. <out:with-param name="promptDefaultDate" select="key('env-param', 'p_sched_date2')"/>
  1385. <out:with-param name="promptDateTime" select="'false'"/>
  1386. <out:with-param name="promptMultiSelect" select="'false'"/>
  1387. <out:with-param name="promptId" select="'dateTo'"/>
  1388. <out:with-param name="promptBrowserMode" select="$promptBrowserMode"/>
  1389. <out:with-param name="suppressDisabled" select="'true'"/>
  1390. <out:with-param name="promptSelectUI" select="'editBox'"/>
  1391. <out:with-param name="popupLabel" select="$dialogLabel"/>
  1392. </out:call-template>
  1393. </dp:field>
  1394. </dp:section>
  1395. <dp:section>
  1396. <dp:field width="200">
  1397. <out:call-template name="getSelectTime">
  1398. <out:with-param name="promptLocale" select="$promptLocale"/>
  1399. <out:with-param name="promptFormName" select="'pform'"/>
  1400. <out:with-param name="promptRequired" select="'false'"/>
  1401. <out:with-param name="promptDefaultValue" select="key('env-param', 'p_sched_time2')"/>
  1402. <out:with-param name="promptParameter" select="'sched_time2'"/>
  1403. <out:with-param name="promptShowSeconds" select="'false'"/>
  1404. <out:with-param name="promptInline" select="'false'"/>
  1405. <out:with-param name="promptTimeZone" select="$timeZone"/>
  1406. <out:with-param name="promptHourFormat" select="'hh'"/>
  1407. <out:with-param name="promptMinuteFormat" select="'mm'"/>
  1408. <out:with-param name="promptSecondFormat" select="'ss'"/>
  1409. <out:with-param name="promptMode" select="@mode"/>
  1410. <out:with-param name="promptMultiSelect" select="'false'"/>
  1411. <out:with-param name="promptId" select="'timeTo'"/>
  1412. <out:with-param name="suppressDisabled" select="'true'"/>
  1413. <out:with-param name="promptBrowserMode" select="$promptBrowserMode"/>
  1414. <out:with-param name="promptSelectUI" select="'editBox'"/>
  1415. <out:with-param name="promptTimeLabel" select="$startTimeInverallabel"/>
  1416. </out:call-template>
  1417. </dp:field>
  1418. </dp:section>
  1419. </out:when>
  1420. <out:otherwise>
  1421. <out:variable name="xsl_end_date">
  1422. <out:value-of select="concat(string(key('env-param', 'p_sched_date2')), 'T', substring-before(string(key('env-param', 'p_sched_time2')), '.'))"/>
  1423. </out:variable>
  1424. <out:variable name="xsl_UTC_end_date">
  1425. <out:value-of select="xtsext:formatDateToUTC( string( $xsl_end_date ), string( $timeZone ) )"/>
  1426. </out:variable>
  1427. <dp:section>
  1428. <out:value-of select="xtsext:formatDateFromUTC(string($xsl_UTC_end_date), number('2'), number('3'), string($timeZone), string($contentLocale))"/>
  1429. </dp:section>
  1430. <utml:input name="p_sched_date2" type="hidden">
  1431. <utml:value>
  1432. <out:value-of select="key('env-param', 'p_sched_date2')"/>
  1433. </utml:value>
  1434. </utml:input>
  1435. <utml:input name="p_sched_time2" type="hidden">
  1436. <utml:value>
  1437. <out:value-of select="key('env-param', 'p_sched_time2')"/>
  1438. </utml:value>
  1439. </utml:input>
  1440. </out:otherwise>
  1441. </out:choose>
  1442. </dp:list>
  1443. </dp:section3>
  1444. </dp:choice>
  1445. </utml:radio-group>
  1446. </xsl:template>
  1447. <xsl:template match="rui:promptControls">
  1448. <out:variable name="skin" select="key('user-param', 'skin')"/>
  1449. <out:include href="p_include.xsl"/>
  1450. <out:variable name="promptLocale" select="$productLocale"/>
  1451. <out:variable name="promptFormName" select="{@form}"/>
  1452. <out:variable name="promptBrowserMode">
  1453. <out:choose>
  1454. <out:when test="$browser = 'ie' ">IE5</out:when>
  1455. <out:when test="$browser = 'moz' ">NS6</out:when>
  1456. <out:when test="$browser = 'safari' ">safari</out:when>
  1457. <out:otherwise>NS4</out:otherwise>
  1458. </out:choose>
  1459. </out:variable>
  1460. </xsl:template>
  1461. <xsl:template match="rui:promptControlsScript">
  1462. <out:call-template name="getPromptCommonIncludes">
  1463. <out:with-param name="promptBrowserMode" select="$promptBrowserMode"/>
  1464. </out:call-template>
  1465. <out:call-template name="getselectDateTimeIncludes">
  1466. <out:with-param name="promptLocale" select="$promptLocale"/>
  1467. <out:with-param name="promptContentLocale" select="$contentLocale"/>
  1468. <out:with-param name="promptBrowserMode" select="$promptBrowserMode"/>
  1469. </out:call-template>
  1470. </xsl:template>
  1471. <xsl:template match="rui:footer">
  1472. <dp:footer>
  1473. <out:variable name="dateCheck">
  1474. <xsl:choose>
  1475. <xsl:when test="@isTriggerCheck and @isTriggerCheck!=''">
  1476. <out:if test="not({@isTriggerCheck})">
  1477. <out:text>checkDateControlChanged();</out:text>
  1478. </out:if>
  1479. </xsl:when>
  1480. <xsl:otherwise><out:text>checkDateControlChanged();</out:text></xsl:otherwise>
  1481. </xsl:choose>
  1482. </out:variable>
  1483. <out:choose>
  1484. <out:when test=" $form-read-only = 'false' ">
  1485. <df:button df:id="IDS_OK" df:style="href" df:href="javascript:onClickOK();"/>
  1486. <out:choose>
  1487. <out:when test="key('env-param', 'ps_nav_stack') and not(key('env-param', 'ps_nav_stack') = '') ">
  1488. <df:button df:id="IDS_CANCEL" df:style="stack-down" onclick="{'{$dateCheck}'} {'{$dc-confirm-cancel}'}"/>
  1489. </out:when>
  1490. <out:otherwise>
  1491. <df:button df:id="IDS_CANCEL" df:style="back-url" onclick="{'{$dateCheck}'} {'{$dc-confirm-cancel}'}"/>
  1492. </out:otherwise>
  1493. </out:choose>
  1494. </out:when>
  1495. <out:otherwise>
  1496. <out:choose>
  1497. <out:when test="key('env-param', 'ps_nav_stack') and not(key('env-param', 'ps_nav_stack') = '') ">
  1498. <df:button df:id="IDS_CLOSE" df:style="stack-down"/>
  1499. </out:when>
  1500. <out:otherwise>
  1501. <df:button df:id="IDS_CLOSE" df:style="back-url"/>
  1502. </out:otherwise>
  1503. </out:choose>
  1504. </out:otherwise>
  1505. </out:choose>
  1506. </dp:footer>
  1507. </xsl:template>
  1508. <!-- Engine transform - this just ensures that everything not undeerstood by this logicheet gets copied over -->
  1509. <xsl:template match="*|@*|text()|processing-instruction()">
  1510. <xsl:copy>
  1511. <xsl:apply-templates select="*|@*|text()|processing-instruction()"/>
  1512. </xsl:copy>
  1513. </xsl:template>
  1514. </xsl:stylesheet>