1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: ps
- (C) Copyright IBM Corp. 2005, 2016
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
- xmlns:dt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/templates/"
- xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
- xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
- xmlns:mt="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mt"
- xmlns:dc="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/confirm/1/"
- xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
- xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
- xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
- xmlns:out="dummy-uri"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:rui="http://developer.cognos.com/schemas/xts/logicsheet/xslt/presentation/dialog/recurrenceUI/">
-
- <xsl:output method="xml" encoding="UTF-8" indent="no"/>
- <xsl:namespace-alias stylesheet-prefix="out" result-prefix="xsl"/>
- <xsl:template match="xsl:stylesheet" priority="1">
-
- <xsl:copy>
- <xsl:apply-templates select="@*|*|text()|processing-instruction()"/>
- <out:template name="rui-displayRecurrence">
- <out:param name="form-read-only"/>
- <out:param name="utml-form-name"/>
- <out:param name="interval"/>
- <out:param name="inWizard" select="'false'"/>
- <out:param name="agentStudio" select="false()"/>
- <out:param name="showTriggerTab"/>
- <out:param name="showUserCredentialLink"/>
- <out:variable name="active_checked" select="key('env-param','m_sp_active')"/>
- <!-- default the priority value to '3' if it is not set -->
- <out:variable name="priority_val">
- <out:choose>
- <out:when test="key('env-param', 'm_sp_priority')">
- <out:value-of select="key('env-param', 'm_sp_priority')"/>
- </out:when>
- <out:otherwise>3</out:otherwise>
- </out:choose>
- </out:variable>
-
- <script type="text/javascript">
- <xsl:attribute name="src">
- <xsl:value-of select="concat('{$webRoot}','/dojo16/dojo/dojo.js')"/>
- </xsl:attribute>
- </script>
- <script type="text/javascript">
- <xsl:attribute name="src">
- <xsl:value-of select="concat('{$webRoot}','/fragments/xdojo/core.js')"/>
- </xsl:attribute>
- </script>
- <script type="text/javascript">
- <xsl:attribute name="src">
- <xsl:value-of select="concat('{$gateway}', '/cogadmin/messages/applications/cogadmin/messages/cogadminuijsmsgs')"/>
- </xsl:attribute>
- </script>
- <script type="text/javascript">
- <xsl:attribute name="src">
- <xsl:value-of select="concat('{$webcontent}','/{$app}','/js/schedule.js')"/>
- </xsl:attribute>
- </script>
- <script>
- function isScheduleReadOnly() {
- return <out:value-of select="$form-read-only"/>;
- }
- </script>
- <img height="12" width="1" border="0" src="{concat('{$webcontent}', '/images/space.gif')}"/>
- <dp:box valign="top" width="100%">
- <dp:boxSection width="50%">
- <!-- There is a WO to add a "Schedule the <object>" checkbox when in the wizard. When making that change make sure the new -->
- <!-- checkbox does NOT show up in the Deployment wizard -->
- <out:if test="$inWizard = 'false'">
- <dp:choice>
- <dp:section1>
- <utml:input type="checkbox" name="m_sp_active" id="lbl_sp_active" value="true" utml:default-condition="$active_checked"/>
- </dp:section1>
- <dp:section2 for="lbl_sp_active"><xts:string id="IDS_PROP_SCHED_INACTIVE"/></dp:section2>
- </dp:choice>
- </out:if>
- </dp:boxSection>
- <dp:boxSection width="50%">
- <dp:input>
- <dp:section1>
- <label for="lbl_sp_priority"><xts:string id="IDS_PROP_PRIORITY"/></label>
- </dp:section1>
- <dp:section>
- <out:if test="not($hasSchedPriorityCapability)">
- <!-- 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. -->
- <utml:input type="hidden" name="m_sp_priority">
- <utml:value>
- <out:value-of select="$priority_val"/>
- </utml:value>
- </utml:input>
- </out:if>
- <utml:select name="m_sp_priority" id="lbl_sp_priority" style="width:100">
- <utml:read-only>
- <out:choose>
- <out:when test="$hasSchedPriorityCapability">false</out:when>
- <out:otherwise>true</out:otherwise>
- </out:choose>
- </utml:read-only>
- <!-- default the priority value to '3' if it is not set -->
- <utml:default-value>
- <out:value-of select="$priority_val"/>
- </utml:default-value>
- <utml:option value="1">
- 1
- </utml:option>
- <utml:option value="2">
- 2
- </utml:option>
- <utml:option value="3">
- 3
- </utml:option>
- <utml:option value="4">
- 4
- </utml:option>
- <utml:option value="5">
- 5
- </utml:option>
- </utml:select>
- </dp:section>
- </dp:input>
- </dp:boxSection>
- </dp:box>
-
- <img height="12" width="1" border="0" src="{concat('{$webcontent}', '/images/space.gif')}"/>
- <dp:choice title="IDS_PROP_FREQUENCY" noSpace="true">
- <out:choose>
- <out:when test="$form-read-only='false'">
- <utml:input type="hidden" name="m_sp_type">
- <utml:value>
- <out:value-of select="$interval"/>
- </utml:value>
- </utml:input>
- <utml:input type="hidden" name="type_saved">
- <utml:value>
- <out:value-of select="$interval"/>
- </utml:value>
- </utml:input>
- <dp:section1 type="hint"><xts:string id="IDS_PROP_SCHED_FREQUENCY_TITLE"/></dp:section1>
- <dp:section2/>
- <dp:section1>
- <img height="10" width="1" border="0" src="{concat('{$webcontent}', '/images/space.gif')}"/>
- </dp:section1>
- <dp:section2/>
- <dp:section1>
- <dp:field>
- <out:call-template name="rui-scheduleTabsTemplate">
- <out:with-param name="form-read-only" select="$form-read-only"/>
- <out:with-param name="utml-form-name" select="$utml-form-name"/>
- <out:with-param name="select" select="$interval"/>
- <out:with-param name="select_saved" select="key('env-param', 'type_saved')"/>
- <out:with-param name="showTriggerTab" select="$showTriggerTab"/>
- </out:call-template>
- </dp:field>
- </dp:section1>
- </out:when>
- <out:otherwise>
- <dp:section3>
- <out:choose>
- <out:when test="starts-with($interval,'daily')">
- <cp:label><xts:string id="IDS_SCHEDULE_DAILY"/></cp:label>
- </out:when>
- <out:when test="starts-with($interval,'weekly')">
- <cp:label><xts:string id="IDS_SCHEDULE_WEEKLY"/></cp:label>
- </out:when>
- <out:when test="starts-with($interval,'monthly')">
- <cp:label><xts:string id="IDS_SCHEDULE_MONTHLY"/></cp:label>
- </out:when>
- <out:when test="starts-with($interval,'yearly')">
- <cp:label><xts:string id="IDS_SCHEDULE_YEARLY"/></cp:label>
- </out:when>
- <out:when test="$interval='trigger'">
- <cp:label><xts:string id="IDS_SCHEDULE_TRIGGER"/></cp:label>
- </out:when>
- </out:choose>
- </dp:section3>
- </out:otherwise>
- </out:choose>
- </dp:choice>
- <dp:choice>
- <!-- if trigger tab, display hint text -->
- <out:if test="$form-read-only='false' and $interval='trigger' and $showTriggerTab != 'false'">
- <dp:section1 type="hint"><xts:string id="IDS_PROP_SCHED_TRIGGER_INTRODUCTION"/></dp:section1>
- </out:if>
- </dp:choice>
- <dp:choice>
- <dp:section3>
- <out:choose>
- <out:when test="starts-with($interval,'daily')">
- <out:call-template name="rui-DailyFrequencyDetails">
- <out:with-param name="form-read-only" select="$form-read-only"/>
- </out:call-template>
- </out:when>
- <out:when test="starts-with($interval,'monthly')">
- <out:call-template name="rui-MonthlyFrequencyDetails">
- <out:with-param name="form-read-only" select="$form-read-only"/>
- </out:call-template>
- </out:when>
- <out:when test="starts-with($interval,'yearly')">
- <out:call-template name="rui-YearlyFrequencyDetails">
- <out:with-param name="form-read-only" select="$form-read-only"/>
- </out:call-template>
- </out:when>
- <out:when test="$interval = 'trigger' and $showTriggerTab != 'false'">
- <out:call-template name="rui-TriggerFrequencyDetails">
- <out:with-param name="form-read-only" select="$form-read-only"/>
- </out:call-template>
- </out:when>
- <out:otherwise>
- <dp:choice>
- <dp:section1>
- <out:choose>
- <out:when test="starts-with($interval,'weekly')">
- <out:variable name="weekly_field_label"><xts:string id="IDS_PROP_SCHED_EVERY_WEEKS_LABEL"/></out:variable>
- <xts:string id="IDS_PROP_SCHED_EVERY_WEEKS">
- <xts:param name="control">
- <out:choose>
- <out:when test="$form-read-only = 'true'">
- <out:value-of select="key('env-param', 'm_sp_everyNweeks')"/>
- </out:when>
- <out:otherwise>
- <utml:input type="text" name="m_sp_everyNweeks" size="3" maxlength="3">
- <out:attribute name="aria-label"><out:value-of select="$weekly_field_label"/></out:attribute>
- </utml:input>
- </out:otherwise>
- </out:choose>
- </xts:param>
- </xts:string>
- </out:when>
- </out:choose>
- </dp:section1>
- <dp:section2/>
- <dp:section1>
- <!-- Weekly details -->
- <out:if test="starts-with($interval,'weekly')">
- <out:call-template name="rui-WeeklyFrequencyDetails">
- <out:with-param name="form-read-only" select="$form-read-only"/>
- </out:call-template>
- </out:if>
- </dp:section1>
- </dp:choice>
- </out:otherwise>
- </out:choose>
- </dp:section3>
- </dp:choice>
- <!-- Run schedule options section -->
- <dp:choice title="IDS_NEW_SCHEDULE_RUN_AS" noSpace="true">
- <dp:section1>
- <dp:list width="100%">
- <out:variable name="userHasChangedScheduleCredentials"><out:value-of select="/root/env/param[@name='m_schedule_owner_reset']='true'"/></out:variable>
- <dp:section>
- <out:choose>
- <out:when test="not($userHasChangedScheduleCredentials='true')">
- <dp:text valign="top" width="15%">
- <out:choose>
- <!-- current schedule does not have credentials -->
- <out:when test="$scheduleExists='true' and $scheduleCredentialsExist='false'">
- <xts:string id="IDS_NEW_SCHEDULE_CREDENTIALS_NOT_EXIST"/>
- </out:when>
- <!-- current user could not get details on existing credentials -->
- <out:when test="$scheduleCredentialDetailsUnavailable='true'">
- <xts:string id="IDS_NEW_SCHEDULE_CREDENTIALS_UNAVAILABLE"/>
- </out:when>
- <!-- typical case where schedule has credentials -->
- <out:when test="not($scheduleCredentialDefaultName='')">
- <span lang="{'{$contentLocale}'}"><out:value-of select="$scheduleCredentialDefaultName"/></span>
- </out:when>
- <!-- special case where schedule does not have credentials - (new schedule) -->
- <out:otherwise>
- <span lang="{'{$contentLocale}'}"><out:value-of select="$userCredentialDefaultName"/></span>
- </out:otherwise>
- </out:choose>
- </dp:text>
- <out:if test="$showUserCredentialLink = 'true'">
- <dp:link width="25%">
- <utml:a utml:op="maintain" utml:formName="pform" utml:hide-when-read-only="true" onclick="resetScheduleOwner();">
- <utml:target>
- <out:value-of select="key('env-param', 'm')"/>
- </utml:target>
- <xsl:text/><xts:string id="IDS_NEW_SCHEDULE_USE_MY_CREDENTIALS"/><xsl:text/>
- </utml:a>
- </dp:link>
- </out:if>
- </out:when>
- <out:otherwise>
- <dp:text valign="top" width="15%">
- <span lang="{'{$contentLocale}'}"><out:value-of select="$userCredentialDefaultName"/></span>
- </dp:text>
- </out:otherwise>
- </out:choose>
- </dp:section>
- </dp:list>
- </dp:section1>
- </dp:choice>
- </out:template>
-
- <out:template name="xtsString2Table">
- <out:param name="tableId"/>
- <out:param name="xtsString"/>
- <table role="presentation">
- <out:if test="$tableId">
- <out:attribute name="id"><out:value-of select="$tableId"/></out:attribute>
- </out:if>
- <tr>
- <out:for-each select="$xtsString/node()[not(self::script)]">
- <td class="formText">
- <out:choose>
- <out:when test="self::text()">
- <out:copy-of select="string(.)"/>
- </out:when>
- <out:otherwise>
- <out:copy-of select="."/>
- </out:otherwise>
- </out:choose>
- </td>
- </out:for-each>
- </tr>
- </table>
- <out:for-each select="$xtsString/script">
- <out:copy-of select="."/>
- </out:for-each>
- </out:template>
- <out:template name="rui-scheduleScript">
- <out:param name="interval" select="'weekly'"/>
- <!-- TODO: These are global localization. Migrate these to JS locale solution once ps exposes them accordingly -->
- <script language="javascript">
- var MSG_ERR_POSITIVE = "<xts:string id="IDS_ERR_POSITIVE" encode="javascript"/>";
- <out:variable name="triggerNameString"><xts:string id="IDS_PROP_SCHED_TRIGGER_NAME" encode="javascript"/></out:variable>
- <out:variable name="emptyTriggerMessage">
- <xts:string id="IDS_ERR_MANDATORY" encode="javascript">
- <xts:param name="field"><out:value-of select="$triggerNameString"/></xts:param>
- </xts:string>
- </out:variable>
- var MSG_EMPTY_TRIGGER_NAME = '<out:value-of select="$emptyTriggerMessage"/>';
- </script>
- <script language="javascript" src="{'{$webcontent}'}/portal/js/utilities.js"/>
- </out:template>
- <out:template name="rui-scheduleTabsTemplate">
- <out:param name="form-read-only"/>
- <out:param name="utml-form-name"/>
- <out:param name="select"/>
- <out:param name="select_saved"/>
- <out:param name="showTriggerTab"/>
- <table width="100%" border="0" cellpadding="0" cellspacing="3">
- <tr>
- <td valign="middle" width="100%" class="dialogHeaderText">
- <mt:tabs>
- <out:variable name="tabs">
- <out:if test="$hasSchedCapabilityByDay or starts-with($select,'daily')">
- <tab>
- <out:if test="starts-with($select,'daily')">
- <out:attribute name="selected">true</out:attribute>
- </out:if>
- <utml:a utml:op="submit" utml:formName="pform">
- <utml:href>switchTab('daily')</utml:href>
- <cp:label><xts:string id="IDS_SCHEDULE_DAILY"/></cp:label>
- </utml:a>
- </tab>
- </out:if>
- <out:if test="$hasSchedCapabilityByWeek or starts-with($select,'weekly')">
- <tab>
- <out:if test="starts-with($select,'weekly')">
- <out:attribute name="selected">true</out:attribute>
- </out:if>
- <utml:a utml:op="submit" utml:formName="pform">
- <utml:href>switchTab('weekly')</utml:href>
- <cp:label><xts:string id="IDS_SCHEDULE_WEEKLY"/></cp:label>
- </utml:a>
- </tab>
- </out:if>
- <out:if test="$hasSchedCapabilityByMonth or starts-with($select,'monthly')">
- <tab>
- <out:if test="starts-with($select,'monthly')">
- <out:attribute name="selected">true</out:attribute>
- </out:if>
- <utml:a utml:op="submit" utml:formName="pform">
- <utml:href>switchTab('monthly')</utml:href>
- <cp:label><xts:string id="IDS_SCHEDULE_MONTHLY"/></cp:label>
- </utml:a>
- </tab>
- </out:if>
- <out:if test="$hasSchedCapabilityByYear or starts-with($select,'yearly')">
- <tab>
- <out:if test="starts-with($select,'yearly')">
- <out:attribute name="selected">true</out:attribute>
- </out:if>
- <utml:a utml:op="submit" utml:formName="pform">
- <utml:href>switchTab('yearly')</utml:href>
- <cp:label><xts:string id="IDS_SCHEDULE_YEARLY"/></cp:label>
- </utml:a>
- </tab>
- </out:if>
- <out:if test="($hasSchedCapabilityByTrigger and $showTriggerTab != 'false') or ($select='trigger')">
- <tab>
- <out:if test="$select='trigger'">
- <out:attribute name="selected">true</out:attribute>
- </out:if>
- <utml:a utml:op="submit" utml:formName="pform">
- <utml:href>switchTab('trigger')</utml:href>
- <cp:label><xts:string id="IDS_SCHEDULE_TRIGGER"/></cp:label>
- </utml:a>
- </tab>
- </out:if>
- </out:variable>
- <out:call-template name="renderTabs">
- <out:with-param name="tabs" select="$tabs"/>
- <out:with-param name="schedule" select="true()"/>
- <out:with-param name="scroll" select="false()"/>
- </out:call-template>
- </mt:tabs>
- </td>
- </tr>
- </table>
- </out:template>
- <out:template name="rui-DailyFrequencyDetails">
- <out:param name="form-read-only"/>
- <utml:radio-group name="m_sp_dailyPeriod">
- <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>
- <dp:choice aria-labelledby="lbl_m_sp_dailyPeriod">
- <out:if test="$hasSchedCapabilityByMinute='true' or key('env-param','m_sp_dailyPeriod') = 'minute'">
- <dp:section1>
- <utml:input type="radio" value="minute" onclick="this.blur();this.focus();" onchange="changeDailyPeriod(this);">
- <out:attribute name="aria-label"><xts:string id="IDS_PROP_SCHED_REPEAT_MINUTES_LABEL"/></out:attribute>
- </utml:input>
- </dp:section1>
- <dp:section2>
- <out:variable name="minutes_field_label"><xts:string id="IDS_PROP_SCHED_EVERY_MINUTES_LABEL"/></out:variable>
- <xts:string id="IDS_PROP_SCHED_EVERY_MINUTES">
- <xts:param name="control">
- <out:choose>
- <out:when test="$form-read-only = 'true'">
- <out:value-of select="key('env-param', 'm_sp_everyNminutes')"/>
- </out:when>
- <out:otherwise>
- <utml:input type="text" name="m_sp_everyNminutes" size="3" maxlength="3">
- <out:attribute name="aria-label"><out:value-of select="$minutes_field_label"/></out:attribute>
- <out:if test="not(key('env-param','m_sp_dailyPeriod') = 'minute')">
- <out:attribute name="disabled">true</out:attribute>
- </out:if>
- </utml:input>
- </out:otherwise>
- </out:choose>
- </xts:param>
- </xts:string>
- </dp:section2>
- </out:if>
- <out:if test="$hasSchedCapabilityByHour='true' or key('env-param','m_sp_dailyPeriod') = 'hour'">
- <dp:section1>
- <utml:input type="radio" value="hour" onclick="this.blur();this.focus();" onchange="changeDailyPeriod(this);">
- <out:attribute name="aria-label"><xts:string id="IDS_PROP_SCHED_REPEAT_HOURS_LABEL"/></out:attribute>
- </utml:input>
- </dp:section1>
- <dp:section2>
- <out:variable name="hours_field_label"><xts:string id="IDS_PROP_SCHED_EVERY_HOURS_LABEL"/></out:variable>
- <xts:string id="IDS_PROP_SCHED_EVERY_HOURS">
- <xts:param name="control">
- <out:choose>
- <out:when test="$form-read-only = 'true'">
- <out:value-of select="key('env-param', 'm_sp_everyNhours')"/>
- </out:when>
- <out:otherwise>
- <utml:input type="text" name="m_sp_everyNhours" size="3" maxlength="3">
- <out:attribute name="aria-label"><out:value-of select="$hours_field_label"/></out:attribute>
- <out:if test="not(key('env-param','m_sp_dailyPeriod') = 'hour')">
- <out:attribute name="disabled">true</out:attribute>
- </out:if>
- </utml:input>
- </out:otherwise>
- </out:choose>
- </xts:param>
- </xts:string>
- </dp:section2>
- </out:if>
- <out:if test="$hasSchedCapabilityByDay='true' or key('env-param','m_sp_dailyPeriod') = 'day'">
- <dp:section1>
- <utml:input type="radio" value="day" onclick="this.blur();this.focus();" onchange="changeDailyPeriod(this);">
- <out:attribute name="aria-label"><xts:string id="IDS_PROP_SCHED_REPEAT_DAYS_LABEL"/></out:attribute>
- </utml:input>
- </dp:section1>
- <dp:section2>
- <out:variable name="days_field_label"><xts:string id="IDS_PROP_SCHED_EVERY_DAYS_LABEL"/></out:variable>
- <xts:string id="IDS_PROP_SCHED_EVERY_DAYS">
- <xts:param name="control">
- <out:choose>
- <out:when test="$form-read-only = 'true'">
- <out:value-of select="key('env-param', 'm_sp_everyNdays')"/>
- </out:when>
- <out:otherwise>
- <utml:input type="text" name="m_sp_everyNdays" size="3" maxlength="3">
- <out:attribute name="aria-label"><out:value-of select="$days_field_label"/></out:attribute>
- <out:if test="not(key('env-param','m_sp_dailyPeriod') = 'day')">
- <out:attribute name="disabled">true</out:attribute>
- </out:if>
- </utml:input>
- </out:otherwise>
- </out:choose>
- </xts:param>
- </xts:string>
- </dp:section2>
- </out:if>
- </dp:choice>
- <out:call-template name="rui-intraDailyFrequencyDetails">
- <out:with-param name="form-read-only" select="$form-read-only"/>
- <out:with-param name="isDaily" select="true()"/>
- </out:call-template>
- </utml:radio-group>
- </out:template>
-
- <out:template name="rui-WeeklyFrequencyDetails">
- <out:param name="form-read-only"/>
- <out:variable name="monday" select="key('env-param','m_sp_weeklyMonday')='true'"/>
- <out:variable name="tuesday" select="key('env-param','m_sp_weeklyTuesday')='true'"/>
- <out:variable name="wednesday" select="key('env-param','m_sp_weeklyWednesday')='true'"/>
- <out:variable name="thursday" select="key('env-param','m_sp_weeklyThursday')='true'"/>
- <out:variable name="friday" select="key('env-param','m_sp_weeklyFriday')='true'"/>
- <out:variable name="saturday" select="key('env-param','m_sp_weeklySaturday')='true'"/>
- <out:variable name="sunday" select="key('env-param','m_sp_weeklySunday')='true'"/>
- <dp:list>
- <dp:section>
- <!-- Monday -->
- <dp:field>
- <utml:input type="checkbox" name="m_sp_weeklyMonday" id="lbl_sp_weeklyMonday" value="true" utml:default-condition="$monday"/>
- </dp:field>
- <dp:text>
- <label for="lbl_sp_weeklyMonday"><xts:string id="IDS_PROP_SCHED_MONDAY"/></label>
- </dp:text>
- <!-- Tuesday -->
- <dp:field>
- <utml:input type="checkbox" name="m_sp_weeklyTuesday" id="lbl_sp_weeklyTuesday" value="true" utml:default-condition="$tuesday"/>
- </dp:field>
- <dp:text>
- <label for="lbl_sp_weeklyTuesday"><xts:string id="IDS_PROP_SCHED_TUESDAY"/></label>
- </dp:text>
- <!-- Wednesday -->
- <dp:field>
- <utml:input type="checkbox" name="m_sp_weeklyWednesday" id="lbl_sp_weeklyWednesday" value="true" utml:default-condition="$wednesday"/>
- </dp:field>
- <dp:text>
- <label for="lbl_sp_weeklyWednesday"><xts:string id="IDS_PROP_SCHED_WEDNESDAY"/></label>
- </dp:text>
- <!-- Thursday -->
- <dp:field>
- <utml:input type="checkbox" name="m_sp_weeklyThursday" id="lbl_sp_weeklyThursday" value="true" utml:default-condition="$thursday"/>
- </dp:field>
- <dp:text>
- <label for="lbl_sp_weeklyThursday"><xts:string id="IDS_PROP_SCHED_THURSDAY"/></label>
- </dp:text>
- </dp:section>
- <dp:section>
- <!-- Friday -->
- <dp:field>
- <utml:input type="checkbox" name="m_sp_weeklyFriday" id="lbl_sp_weeklyFriday" value="true" utml:default-condition="$friday"/>
- </dp:field>
- <dp:text>
- <label for="lbl_sp_weeklyFriday"><xts:string id="IDS_PROP_SCHED_FRIDAY"/></label>
- </dp:text>
- <!-- Saturday -->
- <dp:field>
- <utml:input type="checkbox" name="m_sp_weeklySaturday" id="lbl_sp_weeklySaturday" value="true" utml:default-condition="$saturday"/>
- </dp:field>
- <dp:text>
- <label for="lbl_sp_weeklySaturday"><xts:string id="IDS_PROP_SCHED_SATURDAY"/></label>
- </dp:text>
- <!-- Sunday -->
- <dp:field>
- <utml:input type="checkbox" name="m_sp_weeklySunday" id="lbl_sp_weeklySunday" value="true" utml:default-condition="$sunday"/>
- </dp:field>
- <dp:text>
- <label for="lbl_sp_weeklySunday"><xts:string id="IDS_PROP_SCHED_SUNDAY"/></label>
- </dp:text>
- </dp:section>
- </dp:list>
- <out:call-template name="rui-intraDailyFrequencyDetails">
- <out:with-param name="form-read-only" select="$form-read-only"/>
- </out:call-template>
- </out:template>
- <out:template name="rui-MonthlyFrequencyDetails">
- <out:param name="form-read-only"/>
-
- <!-- variable used inside a xts:string. Must in a seperate variable since we have xts:string nested inside an xtsLstring -->
- <out:variable name="day_control">
- <utml:select name="m_sp_monthlyRelativeDay" onchange="this.form.sub_type[0].checked = true; return true;">
- <out:if test="$form-read-only='false'">
- <out:attribute name="aria-label"><xts:string id="IDS_PROP_SCHED_DAY"/></out:attribute>
- </out:if>
- <out:if test="not(key('env-param','sub_type') = 'relative') and $form-read-only='false'">
- <out:attribute name="disabled">true</out:attribute>
- </out:if>
- <utml:option value="monday">
- <xts:string id="IDS_PROP_SCHED_MONDAY"/>
- </utml:option>
- <utml:option value="tuesday">
- <xts:string id="IDS_PROP_SCHED_TUESDAY"/>
- </utml:option>
- <utml:option value="wednesday">
- <xts:string id="IDS_PROP_SCHED_WEDNESDAY"/>
- </utml:option>
- <utml:option value="thursday">
- <xts:string id="IDS_PROP_SCHED_THURSDAY"/>
- </utml:option>
- <utml:option value="friday">
- <xts:string id="IDS_PROP_SCHED_FRIDAY"/>
- </utml:option>
- <utml:option value="saturday">
- <xts:string id="IDS_PROP_SCHED_SATURDAY"/>
- </utml:option>
- <utml:option value="sunday">
- <xts:string id="IDS_PROP_SCHED_SUNDAY"/>
- </utml:option>
- </utml:select>
- </out:variable>
- <!-- variable used inside a xts:string. Must in a seperate variable since we have xts:string nested inside an xtsLstring -->
- <out:variable name="number_control">
- <utml:select name="m_sp_monthlyRelativeWeek" onchange="this.form.sub_type[0].checked = true; return true;">
- <out:if test="$form-read-only='false'">
- <out:attribute name="aria-label"><xts:string id="IDS_PROP_SCHED_ORDER"/></out:attribute>
- </out:if>
- <out:if test="not(key('env-param','sub_type') = 'relative') and $form-read-only='false'">
- <out:attribute name="disabled">true</out:attribute>
- </out:if>
- <utml:option value="first">
- <xts:string id="IDS_PROP_SCHED_ORDER_FIRST"/>
- </utml:option>
- <utml:option value="second">
- <xts:string id="IDS_PROP_SCHED_ORDER_SECOND"/>
- </utml:option>
- <utml:option value="third">
- <xts:string id="IDS_PROP_SCHED_ORDER_THIRD"/>
- </utml:option>
- <utml:option value="fourth">
- <xts:string id="IDS_PROP_SCHED_ORDER_FOURTH"/>
- </utml:option>
- <utml:option value="last">
- <xts:string id="IDS_PROP_SCHED_ORDER_LAST"/>
- </utml:option>
- </utml:select>
- </out:variable>
- <utml:radio-group name="sub_type">
- <span style="position: absolute;margin-left: -9999px; margin-top: -9999px; " id="lbl_sub_type_radioGroup"><xts:string id="IDS_SCHEDULE_MONTHLY_LABEL"/></span>
- <dp:choice aria-labelledby="lbl_sub_type_radioGroup">
- <dp:section1>
- <utml:input type="radio" name="sub_type" id="ctrl_sub_type_relative" value="relative" onclick="setMonthlyAbsolute(false);" aria-labelledby="lbl_sub_type_relative"/>
- </dp:section1>
- <dp:section2 id="lbl_sub_type_relative">
- <out:variable name="lbl_m_sp_everyMonthsRel"><xts:string id="IDS_PROP_SCHED_RELATIVE_MONTHS"/></out:variable>
- <xts:string id="IDS_PROP_SCHED_EVERY_MONTHS_RELATIVE">
- <xts:param name="number_control">
- <out:copy-of select="$number_control"/>
- </xts:param>
- <xts:param name="day_control">
- <out:copy-of select="$day_control"/>
- </xts:param>
- <xts:param name="every_control">
- <out:choose>
- <out:when test="$form-read-only = 'true'">
- <out:value-of select="key('env-param', 'm_sp_everyNmonthsRel')"/>
- </out:when>
- <out:otherwise>
- <utml:input type="text" name="m_sp_everyNmonthsRel" size="3" maxlength="3">
- <out:attribute name="aria-label"><out:value-of select="$lbl_m_sp_everyMonthsRel"/></out:attribute>
- <out:if test="not(key('env-param','sub_type') = 'relative')">
- <out:attribute name="disabled">true</out:attribute>
- </out:if>
- </utml:input>
- </out:otherwise>
- </out:choose>
- </xts:param>
- </xts:string>
- </dp:section2>
- <dp:section1>
- <utml:input type="radio" name="sub_type" id="ctrl_sub_type_absolute" value="absolute" onclick="setMonthlyAbsolute(true);" aria-labelledby="lbl_sub_type_absolute"/>
- </dp:section1>
- <dp:section2 id="lbl_sub_type_absolute">
- <out:variable name="lbl_absoluteDay"><xts:string id="IDS_PROP_SCHED_DAY"/></out:variable>
- <out:variable name="lbl_everyNmonthsAbs"><xts:string id="IDS_PROP_SCHED_RELATIVE_MONTHS"/></out:variable>
- <xts:string id="IDS_PROP_SCHED_EVERY_MONTHS_ABSOLUTE">
- <xts:param name="day_control">
- <out:call-template name="rui-DayOptions">
- <out:with-param name="control_name">monthlyAbsoluteDay</out:with-param>
- <out:with-param name="xsl_default_day"><out:value-of select="key('env-param', 'm_sp_monthlyAbsoluteDay')"/></out:with-param>
- <out:with-param name="form-read-only" select="$form-read-only"/>
- <out:with-param name="isDisabled" select="not(key('env-param','sub_type') = 'absolute')"/>
- <out:with-param name="aria-label" select="$lbl_absoluteDay"/>
- </out:call-template>
- </xts:param>
- <xts:param name="every_control">
- <out:choose>
- <out:when test="$form-read-only = 'true'">
- <out:value-of select="key('env-param', 'm_sp_everyNmonthsAbs')"/>
- </out:when>
- <out:otherwise>
- <utml:input type="text" name="m_sp_everyNmonthsAbs" size="3" maxlength="3">
- <out:attribute name="aria-label"><out:value-of select="$lbl_everyNmonthsAbs"/></out:attribute>
- <out:if test="not(key('env-param','sub_type') = 'absolute')">
- <out:attribute name="disabled">true</out:attribute>
- </out:if>
- </utml:input>
- </out:otherwise>
- </out:choose>
- </xts:param>
- </xts:string>
- </dp:section2>
- </dp:choice>
- <out:call-template name="rui-intraDailyFrequencyDetails">
- <out:with-param name="form-read-only" select="$form-read-only"/>
- </out:call-template>
- </utml:radio-group>
- </out:template>
- <out:template name="rui-YearlyFrequencyDetails">
- <out:param name="form-read-only"/>
-
- <!-- variable used inside a xts:string. Must in a seperate variable since we have xts:string nested inside an xtsLstring -->
- <out:variable name="day_control">
- <utml:select name="m_sp_yearlyRelativeDay" onchange="this.form.sub_type[0].checked = true; return true;">
- <out:if test="$form-read-only='false'">
- <out:attribute name="aria-label"><xts:string id="IDS_PROP_SCHED_DAY"/></out:attribute>
- </out:if>
- <out:if test="not(key('env-param','sub_type') = 'relative') and $form-read-only='false'">
- <out:attribute name="disabled">true</out:attribute>
- </out:if>
- <utml:option value="monday">
- <xts:string id="IDS_PROP_SCHED_MONDAY"/>
- </utml:option>
- <utml:option value="tuesday">
- <xts:string id="IDS_PROP_SCHED_TUESDAY"/>
- </utml:option>
- <utml:option value="wednesday">
- <xts:string id="IDS_PROP_SCHED_WEDNESDAY"/>
- </utml:option>
- <utml:option value="thursday">
- <xts:string id="IDS_PROP_SCHED_THURSDAY"/>
- </utml:option>
- <utml:option value="friday">
- <xts:string id="IDS_PROP_SCHED_FRIDAY"/>
- </utml:option>
- <utml:option value="saturday">
- <xts:string id="IDS_PROP_SCHED_SATURDAY"/>
- </utml:option>
- <utml:option value="sunday">
- <xts:string id="IDS_PROP_SCHED_SUNDAY"/>
- </utml:option>
- </utml:select>
- </out:variable>
- <!-- variable used inside a xts:string. Must in a seperate variable since we have xts:string nested inside an xtsLstring -->
- <out:variable name="number_control">
- <utml:select name="m_sp_yearlyRelativeWeek" onchange="this.form.sub_type[0].checked = true; return true;">
- <out:if test="$form-read-only='false'">
- <out:attribute name="aria-label"><xts:string id="IDS_PROP_SCHED_ORDER"/></out:attribute>
- </out:if>
- <out:if test="not(key('env-param','sub_type') = 'relative') and $form-read-only='false'">
- <out:attribute name="disabled">true</out:attribute>
- </out:if>
- <utml:option value="first">
- <xts:string id="IDS_PROP_SCHED_ORDER_FIRST"/>
- </utml:option>
- <utml:option value="second">
- <xts:string id="IDS_PROP_SCHED_ORDER_SECOND"/>
- </utml:option>
- <utml:option value="third">
- <xts:string id="IDS_PROP_SCHED_ORDER_THIRD"/>
- </utml:option>
- <utml:option value="fourth">
- <xts:string id="IDS_PROP_SCHED_ORDER_FOURTH"/>
- </utml:option>
- <utml:option value="last">
- <xts:string id="IDS_PROP_SCHED_ORDER_LAST"/>
- </utml:option>
- </utml:select>
- </out:variable>
- <utml:radio-group name="sub_type">
- <dp:choice>
- <dp:section1>
- <utml:input type="radio" name="sub_type" value="relative" onclick="setYearlyAbsolute(false);" id="ctrl_lbl_sub_type_relative" aria-labelledby="lbl_sub_type_relative"/>
- </dp:section1>
- <dp:section2 id="lbl_sub_type_relative">
- <out:variable name="lbl_relativeMonth"><xts:string id="IDS_PROP_SCHED_MONTH"/></out:variable>
- <xts:string id="IDS_PROP_SCHED_EVERY_YEARS_RELATIVE">
- <xts:param name="number_control">
- <out:copy-of select="$number_control"/>
- </xts:param>
- <xts:param name="day_control">
- <out:copy-of select="$day_control"/>
- </xts:param>
- <xts:param name="month_control">
- <out:call-template name="rui-MonthOptions">
- <out:with-param name="form-read-only" select="$form-read-only"/>
- <out:with-param name="ctrl-name" select="'m_sp_yearlyRelativeMonth'"/>
- <out:with-param name="isDisabled" select="not(key('env-param','sub_type') = 'relative')"/>
- <out:with-param name="aria-label" select="$lbl_relativeMonth"/>
- </out:call-template>
- </xts:param>
- </xts:string>
- </dp:section2>
- <dp:section1>
- <utml:input type="radio" name="sub_type" value="absolute" onclick="setYearlyAbsolute(true);" id="ctrl_sub_type_absolute" aria-labelledby="lbl_sub_type_absolute"/>
- </dp:section1>
- <dp:section2 id="lbl_sub_type_absolute">
- <out:variable name="lbl_yearlyAbsoluteDay"><xts:string id="IDS_PROP_SCHED_DAY"/></out:variable>
- <out:variable name="lbl_absoluteMonth"><xts:string id="IDS_PROP_SCHED_MONTH"/></out:variable>
- <xts:string id="IDS_PROP_SCHED_EVERY_YEARS_ABSOLUTE">
- <xts:param name="day_control">
- <out:call-template name="rui-DayOptions">
- <out:with-param name="control_name">yearlyAbsoluteDay</out:with-param>
- <out:with-param name="xsl_default_day"><out:value-of select="key('env-param', 'm_sp_monthlyAbsoluteDay')"/></out:with-param>
- <out:with-param name="form-read-only" select="$form-read-only"/>
- <out:with-param name="isDisabled" select="not(key('env-param','sub_type') = 'absolute')"/>
- <out:with-param name="aria-label" select="$lbl_yearlyAbsoluteDay"/>
- </out:call-template>
- </xts:param>
- <xts:param name="month_control">
- <out:call-template name="rui-MonthOptions">
- <out:with-param name="form-read-only" select="$form-read-only"/>
- <out:with-param name="ctrl-name" select="'m_sp_yearlyAbsoluteMonth'"/>
- <out:with-param name="isDisabled" select="not(key('env-param','sub_type') = 'absolute')"/>
- <out:with-param name="aria-label" select="$lbl_absoluteMonth"/>
- </out:call-template>
- </xts:param>
- </xts:string>
- </dp:section2>
- </dp:choice>
- </utml:radio-group>
- <out:call-template name="rui-intraDailyFrequencyDetails">
- <out:with-param name="form-read-only" select="$form-read-only"/>
- </out:call-template>
- </out:template>
- <out:template name="rui-TriggerFrequencyDetails">
- <out:param name="form-read-only"/>
- <dp:input>
- <dp:section1 wrap="true"><label for="lbl_m_sp_triggerName"><xts:string id="IDS_OTHERRUN_EVENT_NAME"/></label></dp:section1>
- <dp:section2>
- <out:if test="$form-read-only='true'">
- <out:value-of select="key('env-param','m_sp_triggerName')"/>
- </out:if>
- <utml:input type="text" size="30" class="pInput" name="m_sp_triggerName" id="lbl_m_sp_triggerName"/>
- <utml:input type="hidden" name="m_triggerType">
- <utml:value><xsl:value-of select="'schedule'"/></utml:value>
- </utml:input>
- </dp:section2>
- </dp:input>
- </out:template>
- <out:template name="rui-MonthOptions">
- <out:param name="form-read-only"/>
- <out:param name="ctrl-name"/>
- <out:param name="isDisabled" select="false()"/>
- <out:param name="aria-label"/>
- <utml:select>
- <utml:name><out:value-of select="$ctrl-name"/></utml:name>
- <out:if test="$form-read-only != 'true'">
- <out:attribute name="aria-label"><out:value-of select="$aria-label"/></out:attribute>
- </out:if>
- <out:if test="$isDisabled and $form-read-only != 'true'">
- <out:attribute name="disabled">true</out:attribute>
- </out:if>
- <!-- Declare an option for each month -->
- <utml:option value="january">
- <xts:string id="IDS_PROP_SCHED_JANUARY"/>
- </utml:option>
- <utml:option value="february">
- <xts:string id="IDS_PROP_SCHED_FEBRUARY"/>
- </utml:option>
- <utml:option value="march">
- <xts:string id="IDS_PROP_SCHED_MARCH"/>
- </utml:option>
- <utml:option value="april">
- <xts:string id="IDS_PROP_SCHED_APRIL"/>
- </utml:option>
- <utml:option value="may">
- <xts:string id="IDS_PROP_SCHED_MAY"/>
- </utml:option>
- <utml:option value="june">
- <xts:string id="IDS_PROP_SCHED_JUNE"/>
- </utml:option>
- <utml:option value="july">
- <xts:string id="IDS_PROP_SCHED_JULY"/>
- </utml:option>
- <utml:option value="august">
- <xts:string id="IDS_PROP_SCHED_AUGUST"/>
- </utml:option>
- <utml:option value="september">
- <xts:string id="IDS_PROP_SCHED_SEPTEMBER"/>
- </utml:option>
- <utml:option value="october">
- <xts:string id="IDS_PROP_SCHED_OCTOBER"/>
- </utml:option>
- <utml:option value="november">
- <xts:string id="IDS_PROP_SCHED_NOVEMBER"/>
- </utml:option>
- <utml:option value="december">
- <xts:string id="IDS_PROP_SCHED_DECEMBER"/>
- </utml:option>
- </utml:select>
- </out:template>
- <out:template name="rui-DayOptions">
- <out:param name="control_name"/>
- <out:param name="xsl_default_day"/>
- <out:param name="form-read-only"/>
- <out:param name="isDisabled" select="false()"/>
- <out:param name="aria-label"/>
- <utml:select utml:prefix="m_sp_" onchange="this.form.sub_type[1].checked = true; return true;">
- <out:if test="$isDisabled and $form-read-only != 'true'">
- <out:attribute name="disabled">true</out:attribute>
- </out:if>
- <out:if test="$form-read-only != 'true'">
- <out:attribute name="aria-label"><out:value-of select="$aria-label"/></out:attribute>
- </out:if>
- <utml:name>
- <out:value-of select="$control_name"/>
- </utml:name>
- <utml:default-value>
- <out:value-of select="$xsl_default_day"/>
- </utml:default-value>
- <!-- Declare an option for each day -->
- <utml:option value="1">1</utml:option>
- <utml:option value="2">2</utml:option>
- <utml:option value="3">3</utml:option>
- <utml:option value="4">4</utml:option>
- <utml:option value="5">5</utml:option>
- <utml:option value="6">6</utml:option>
- <utml:option value="7">7</utml:option>
- <utml:option value="8">8</utml:option>
- <utml:option value="9">9</utml:option>
- <utml:option value="10">10</utml:option>
- <utml:option value="11">11</utml:option>
- <utml:option value="12">12</utml:option>
- <utml:option value="13">13</utml:option>
- <utml:option value="14">14</utml:option>
- <utml:option value="15">15</utml:option>
- <utml:option value="16">16</utml:option>
- <utml:option value="17">17</utml:option>
- <utml:option value="18">18</utml:option>
- <utml:option value="19">19</utml:option>
- <utml:option value="20">20</utml:option>
- <utml:option value="21">21</utml:option>
- <utml:option value="22">22</utml:option>
- <utml:option value="23">23</utml:option>
- <utml:option value="24">24</utml:option>
- <utml:option value="25">25</utml:option>
- <utml:option value="26">26</utml:option>
- <utml:option value="27">27</utml:option>
- <utml:option value="28">28</utml:option>
- <utml:option value="29">29</utml:option>
- <utml:option value="30">30</utml:option>
- <utml:option value="31">31</utml:option>
- </utml:select>
- </out:template>
-
- <out:template name="rui-intraDailyFrequencyDetails">
- <out:param name="form-read-only" select="'false'"/>
- <out:param name="isDaily" select="false()"/>
- <out:variable name="savedType">
- <out:choose>
- <out:when test="key('env-param','type_saved')">
- <out:value-of select="key('env-param','type_saved')"/>
- </out:when>
- <out:otherwise>
- <out:value-of select="key('env-param','m_sp_type')"/>
- </out:otherwise>
- </out:choose>
- </out:variable>
- <out:variable name="isSavedTab" select="starts-with($savedType,key('env-param','m_sp_type'))"/>
- <out:variable name="isIntraDay" select="contains($savedType,'WithIntradayRecurrence')"/>
- <out:variable name="canScheduleIntraDay" select="$hasSchedCapabilityByDay='true' and ($hasSchedCapabilityByHour='true' or $hasSchedCapabilityByMinute='true')"/>
- <out:if test="($isSavedTab and $isIntraDay) or $canScheduleIntraDay">
- <out:variable name="intervalUnit" select="/root/env/param[@name='m_sp_intradayRecurrenceIntervalUnit']"/>
- <out:variable name="minuteHour_control">
- <out:choose>
- <out:when test="$form-read-only='true'">
- <out:choose>
- <out:when test="$intervalUnit='M'">
- <xts:string id="IDS_PROP_SETTINGS_UNITS_MIN"/>
- </out:when>
- <out:otherwise>
- <xts:string id="IDS_PROP_SETTINGS_UNITS_HOUR"/>
- </out:otherwise>
- </out:choose>
- </out:when>
- <out:otherwise>
- <out:variable name="minuteHour_control_label"><xts:string id="IDS_PROP_SCHED_FREQ_INTERVAL_UNITS"/></out:variable>
- <utml:select name="m_sp_intradayRecurrenceIntervalUnit">
- <out:attribute name="aria-label"><out:value-of select="$minuteHour_control_label"/></out:attribute>
- <out:if test="$hasSchedCapabilityByMinute='true' or ($intervalUnit='M' and boolean($isSavedTab))">
- <utml:option value="M">
- <xts:string id="IDS_PROP_SETTINGS_UNITS_MIN"/>
- </utml:option>
- </out:if>
- <out:if test="$hasSchedCapabilityByHour='true' or ($intervalUnit='H' and $isSavedTab)">
- <utml:option value="H">
- <xts:string id="IDS_PROP_SETTINGS_UNITS_HOUR"/>
- </utml:option>
- </out:if>
- </utml:select>
- </out:otherwise>
- </out:choose>
- </out:variable>
- <out:if test="not($form-read-only='true') or boolean($isIntraDay)">
- <dp:choice title="IDS_PROP_DAILY_FREQUENCY" noSpace="true">
- <dp:section1>
- <out:if test="not($form-read-only='true')">
- <utml:input type="checkbox" name="df_intra" value="true" onclick="enableIntraDay(this.checked);">
- <out:attribute name="aria-label"><xts:string id="IDS_PROP_ENABLE_DAILY_FREQUENCY_LABEL"/></out:attribute>
- <out:if test="$isDaily and not(key('env-param','m_sp_dailyPeriod') = 'day')">
- <out:attribute name="disabled"/>
- </out:if>
- </utml:input>
- </out:if>
- </dp:section1>
- <dp:section2>
- <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>
- <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>
- <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>
- <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>
- <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>
- <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>
- <out:variable name="startTimeInverallabel"><xts:string id="IDS_PROP_DAILY_FREQUENCY_START_TIME" encode="javascript"/></out:variable>
- <out:variable name="endTimeInverallabel"><xts:string id="IDS_PROP_DAILY_FREQUENCY_END_TIME" encode="javascript"/></out:variable>
- <div role="group">
- <out:attribute name="aria-label"><xts:string id="IDS_PROP_DAILY_FREQUENCY_ENTRY" encode="html"/></out:attribute>
- <out:call-template name="xtsString2Table">
- <out:with-param name="tableId" select="'intradayRecurrenceInterval'"/>
- <out:with-param name="xtsString">
- <out:variable name="number_control_label"><xts:string id="IDS_PROP_SCHED_FREQ_INTERVAL"/></out:variable>
- <xts:string id="IDS_PROP_SCHED_FREQ_RELATIVE">
- <xts:param name="number_control">
- <out:choose>
- <out:when test="$form-read-only = 'true'">
- <out:value-of select="/root/env/param[@name='m_sp_intradayRecurrenceIntervalNum']"/>
- </out:when>
- <out:otherwise>
- <utml:input type="text" size="3" maxlength="3" name="m_sp_intradayRecurrenceIntervalNum">
- <out:attribute name="aria-label"><out:value-of select="$number_control_label"/></out:attribute>
- <out:if test="($form-read-only = 'true')">
- <out:attribute name="disabled"></out:attribute>
- </out:if>
- </utml:input>
- </out:otherwise>
- </out:choose>
- </xts:param>
- <xts:param name="minuteHour_control">
- <out:copy-of select="$minuteHour_control"/>
- </xts:param>
- <xts:param name="startTime_control">
- <out:choose>
- <out:when test="$form-read-only = 'true'">
- <out:variable name="xsl_start_date">
- <out:value-of select="concat(string(key('env-param', 'p_sched_date1')), 'T', string(/root/env/param[@name='p_intradayRecurrenceStart']))"/>
- </out:variable>
- <out:variable name="xsl_UTC_start_date">
- <out:value-of select="xtsext:formatDateToUTC( string( $xsl_start_date ), string( $timeZone ) )"/>
- </out:variable>
- <out:value-of select="xtsext:formatDateFromUTC(string($xsl_UTC_start_date), 'h:mm a', string($timeZone), string($contentLocale))"/>
- </out:when>
- <out:otherwise>
- <dp:field>
- <out:call-template name="getSelectTime">
- <out:with-param name="promptLocale" select="$promptLocale"/>
- <out:with-param name="promptFormName" select="'pform'"/>
- <out:with-param name="promptRequired" select="'false'"/>
- <out:with-param name="promptDefaultValue" select="key('env-param', 'p_intradayRecurrenceStart')"/>
- <out:with-param name="promptParameter" select="'intradayRecurrenceStart'"/>
- <out:with-param name="promptShowSeconds" select="'false'"/>
- <out:with-param name="promptInline" select="'false'"/>
- <out:with-param name="promptTimeZone" select="$timeZone"/>
- <out:with-param name="promptHourFormat" select="'hh'"/>
- <out:with-param name="promptMinuteFormat" select="'mm'"/>
- <out:with-param name="promptSecondFormat" select="'ss'"/>
- <out:with-param name="promptMode" select="@mode"/>
- <out:with-param name="promptMultiSelect" select="'false'"/>
- <out:with-param name="promptId" select="'intradayRecurrenceStart'"/>
- <out:with-param name="suppressDisabled" select="'true'"/>
- <out:with-param name="promptBrowserMode" select="$promptBrowserMode"/>
- <out:with-param name="promptSelectUI" select="'editBox'"/>
- <out:with-param name="promptTimeLabel" select="$startTimeInverallabel"/>
- </out:call-template>
- </dp:field>
- </out:otherwise>
- </out:choose>
- </xts:param>
- <xts:param name="endTime_control">
- <out:choose>
- <out:when test="$form-read-only = 'true'">
- <out:variable name="xsl_end_date">
- <out:value-of select="concat(string(key('env-param', 'p_sched_date1')), 'T', string(/root/env/param[@name='p_intradayRecurrenceEnd']))"/>
- </out:variable>
- <out:variable name="xsl_UTC_end_date">
- <out:value-of select="xtsext:formatDateToUTC( string( $xsl_end_date ), string( $timeZone ) )"/>
- </out:variable>
- <out:value-of select="xtsext:formatDateFromUTC(string($xsl_UTC_end_date), 'h:mm a', string($timeZone), string($contentLocale))"/>
- </out:when>
- <out:otherwise>
- <dp:field>
- <out:call-template name="getSelectTime">
- <out:with-param name="promptLocale" select="$promptLocale"/>
- <out:with-param name="promptFormName" select="'pform'"/>
- <out:with-param name="promptRequired" select="'false'"/>
- <out:with-param name="promptDefaultValue" select="key('env-param', 'p_intradayRecurrenceEnd')"/>
- <out:with-param name="promptParameter" select="'intradayRecurrenceEnd'"/>
- <out:with-param name="promptShowSeconds" select="'false'"/>
- <out:with-param name="promptInline" select="'false'"/>
- <out:with-param name="promptTimeZone" select="$timeZone"/>
- <out:with-param name="promptHourFormat" select="'hh'"/>
- <out:with-param name="promptMinuteFormat" select="'mm'"/>
- <out:with-param name="promptSecondFormat" select="'ss'"/>
- <out:with-param name="promptMode" select="@mode"/>
- <out:with-param name="promptMultiSelect" select="'false'"/>
- <out:with-param name="promptId" select="'intradayRecurrenceEnd'"/>
- <out:with-param name="suppressDisabled" select="'true'"/>
- <out:with-param name="promptBrowserMode" select="$promptBrowserMode"/>
- <out:with-param name="promptSelectUI" select="'editBox'"/>
- <out:with-param name="promptTimeLabel" select="$endTimeInverallabel"/>
- </out:call-template>
- </dp:field>
- </out:otherwise>
- </out:choose>
- </xts:param>
- </xts:string>
- </out:with-param>
- </out:call-template>
- </div>
- </dp:section2>
- </dp:choice>
- </out:if>
- </out:if>
- </out:template>
- </xsl:copy>
- </xsl:template>
- <!--
- ===============================================================================================
- rui:recurrenceUI - render the schedule section.
- ===============================================================================================
- -->
- <xsl:template match="rui:recurrenceUI">
-
- <out:variable name="showTriggerTab">
- <out:choose>
- <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')))">
- <out:value-of select="'false'"/>
- </out:when>
- <out:otherwise><out:value-of select="'true'"/></out:otherwise>
- </out:choose>
- </out:variable>
- <out:variable name="showUserCredentialLink">
- <out:choose>
- <!-- 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) -->
- <out:when test="(($scheduleCredentialSearchPathProperty = $userCredentialSearchPathProperty) and $scheduleCredentialSearchPathProperty != 'unavailable') or ($scheduleCredentialSearchPathProperty = 'unavailable' and $scheduleExists='false')">
- <out:value-of select="'false'"/>
- </out:when>
- <out:otherwise><out:value-of select="'true'"/></out:otherwise>
- </out:choose>
- </out:variable>
-
- <out:variable name="interval">
- <out:choose>
- <out:when test="not(key('env-param','m_sp_type')='trigger' and $showTriggerTab='false')">
- <out:value-of select="key('env-param','m_sp_type')"/>
- </out:when>
- <out:otherwise><out:value-of select="'weekly'"/></out:otherwise>
- </out:choose>
- </out:variable>
- <out:call-template name="rui-scheduleScript">
- <out:with-param name="interval" select="$interval"/>
- </out:call-template>
- <utml:input type="hidden" name="changed_m_scheduleCredentials">
- <out:choose>
- <out:when test="key('env-param','m_schedule_owner_reset')='true'">
- <out:attribute name="value">1</out:attribute>
- </out:when>
- <out:otherwise>
- <out:attribute name="value">0</out:attribute>
- </out:otherwise>
- </out:choose>
- </utml:input>
- <utml:input type="hidden" name="switch_frequency" utml:update="false" value="false"/>
- <script language="javascript">
- function getScheduleInterval() {
- return '<out:value-of select="$interval"/>';
- }
- function getScheduleInterval() {
- return '<out:value-of select="$interval"/>';
- }
-
- function isIntraDailyFreq() {
- return <out:value-of select="key('env-param','df_intra')='true'"/>
- }
- </script>
- <div id="scheduleDiv">
- <!-- Render the page -->
- <xsl:choose>
- <xsl:when test="@agentStudio='true'">
- <lyt:layout style="1">
- <xsl:if test="@showTitle='true'">
- <xsl:attribute name="title">IDS_PROP_SCHED_RECURRENCE</xsl:attribute>
- <xsl:attribute name="border">yes</xsl:attribute>
- </xsl:if>
-
- <lyt:section>
- <xsl:call-template name="rui-recurrenceUI">
- <xsl:with-param name="agentStudio" select="true()"/>
- </xsl:call-template>
- </lyt:section>
- </lyt:layout>
- <lyt:layout style="1">
- <lyt:section>
- <dp:group>
- <dp:groupItem valign="top">
- <xsl:call-template name="rui-startDate"/>
- </dp:groupItem>
- <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>
- <dp:groupItem>
- <xsl:call-template name="rui-endDate"/>
- </dp:groupItem>
- </dp:group>
- </lyt:section>
- </lyt:layout>
- </xsl:when>
- <xsl:otherwise>
- <lyt:layout style="2">
- <xsl:if test="@showTitle='true'">
- <xsl:attribute name="title">IDS_PROP_SCHED_RECURRENCE</xsl:attribute>
- <xsl:attribute name="border">yes</xsl:attribute>
- </xsl:if>
-
- <lyt:section>
- <xsl:call-template name="rui-recurrenceUI"/>
- </lyt:section>
-
- <lyt:section>
- <lyt:layout style="1">
- <lyt:section>
- <xsl:call-template name="rui-startDate"/>
- </lyt:section>
- <lyt:section/>
- <lyt:section>
- <xsl:call-template name="rui-endDate"/>
- </lyt:section>
- </lyt:layout>
- </lyt:section>
- </lyt:layout>
- </xsl:otherwise>
- </xsl:choose>
- </div>
- </xsl:template>
-
- <xsl:template name="rui-recurrenceUI">
- <xsl:param name="agentStudio" select="false()"/>
- <out:variable name="runnableType">
- <out:choose>
- <out:when test="key('env-param', 'm_new_class')='contentTask'"><xts:string id="IDS_CONTENT_TASK"/></out:when>
- <out:when test="key('env-param', 'm_new_class')='metricsMaintenanceTask'"><xts:string id="IDS_OBJ_METRICSMAINTENANCETASK_LC"/></out:when>
- <out:when test="key('env-param', 'm_new_class')='metricsFileImportTask'"><xts:string id="IDS_OBJ_METRICSFILEIMPORTTASK_FROMFILES_LC"/></out:when>
- <out:otherwise><xts:string id="IDS_OBJ_JOBDEFINITION_LC"/></out:otherwise>
- </out:choose>
- </out:variable>
-
- <out:call-template name="rui-displayRecurrence">
- <out:with-param name="form-read-only" select="$form-read-only"/>
- <out:with-param name="utml-form-name" select="$utml-form-name"/>
- <out:with-param name="interval" select="$interval"/>
- <out:with-param name="inWizard">
- <xsl:choose>
- <xsl:when test="@inWizard='true'">true</xsl:when>
- <xsl:otherwise>false</xsl:otherwise>
- </xsl:choose>
- </out:with-param>
- <out:with-param name="agentStudio" select="{$agentStudio}"/>
- <out:with-param name="showTriggerTab" select="$showTriggerTab"/>
- <out:with-param name="showUserCredentialLink" select="$showUserCredentialLink"/>
- </out:call-template>
- </xsl:template>
-
- <xsl:template name="rui-startDate">
- <dp:list title="IDS_PROP_SCHED_STARTING">
- <label for="txtDatedateFrom" style="position: absolute;margin-left: -9999px; margin-top: -9999px; "><xts:string id="IDS_PROP_SCHED_STARTDATE"/></label>
- <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>
- <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>
- <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>
- <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>
- <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>
- <out:variable name="dialogLabel"><xts:string id="DS_PROP_SCHED_FREQ_RELATIVE_INTERVAL_START_DATE_DIALOG"/></out:variable>
- <out:variable name="startTimeInverallabel"><xts:string id="IDS_PROP_DAILY_SCHED_START_TIME" encode="javascript"/></out:variable>
- <out:choose>
- <out:when test=" $form-read-only = 'false' ">
- <dp:section>
- <dp:field width="200">
- <out:call-template name="getSelectDate">
- <out:with-param name="promptLocale" select="$promptLocale"/>
- <out:with-param name="promptTimeZone" select="$timeZone"/>
- <out:with-param name="promptFormName" select="'pform'"/>
- <out:with-param name="promptRequired" select="'false'"/>
- <out:with-param name="promptStartOfWeek" select="'Sunday'"/>
- <out:with-param name="promptCalendar" select="'Gregorian'"/>
- <out:with-param name="promptParameter" select="'sched_date1'"/>
- <out:with-param name="promptSelectDateUI" select="'editBox'"/>
- <out:with-param name="promptInputOrder" select="'YMD'"/>
- <out:with-param name="promptDefaultDate" select="key('env-param', 'p_sched_date1')"/>
- <out:with-param name="promptDateTime" select="'false'"/>
- <out:with-param name="promptMultiSelect" select="'false'"/>
- <out:with-param name="promptId" select="'dateFrom'"/>
- <out:with-param name="suppressDisabled" select="'true'"/>
- <out:with-param name="promptBrowserMode" select="$promptBrowserMode"/>
- <out:with-param name="promptSelectUI" select="'editBox'"/>
- <out:with-param name="popupLabel" select="$dialogLabel"/>
- </out:call-template>
- </dp:field>
- </dp:section>
- <dp:section>
- <dp:field width="200">
- <out:call-template name="getSelectTime">
- <out:with-param name="promptLocale" select="$promptLocale"/>
- <out:with-param name="promptFormName" select="'pform'"/>
- <out:with-param name="promptRequired" select="'false'"/>
- <out:with-param name="promptDefaultValue" select="key('env-param', 'p_sched_time1')"/>
- <out:with-param name="promptParameter" select="'sched_time1'"/>
- <out:with-param name="promptShowSeconds" select="'false'"/>
- <out:with-param name="promptInline" select="'false'"/>
- <out:with-param name="promptTimeZone" select="$timeZone"/>
- <out:with-param name="promptHourFormat" select="'hh'"/>
- <out:with-param name="promptMinuteFormat" select="'mm'"/>
- <out:with-param name="promptSecondFormat" select="'ss'"/>
- <out:with-param name="promptMode" select="@mode"/>
- <out:with-param name="promptMultiSelect" select="'false'"/>
- <out:with-param name="promptId" select="'timeFrom'"/>
- <out:with-param name="suppressDisabled" select="'true'"/>
- <out:with-param name="promptBrowserMode" select="$promptBrowserMode"/>
- <out:with-param name="promptSelectUI" select="'editBox'"/>
- <out:with-param name="promptTimeLabel" select="$startTimeInverallabel"/>
- </out:call-template>
- </dp:field>
- </dp:section>
- </out:when>
- <out:otherwise>
- <out:variable name="xsl_start_date">
- <out:value-of select="concat(string(key('env-param', 'p_sched_date1')), 'T', substring-before(string(key('env-param', 'p_sched_time1')), '.'))"/>
- </out:variable>
- <out:variable name="xsl_UTC_start_date">
- <out:value-of select="xtsext:formatDateToUTC( string( $xsl_start_date ), string( $timeZone ) )"/>
- </out:variable>
- <dp:section>
- <out:value-of select="xtsext:formatDateFromUTC(string($xsl_UTC_start_date), number('2'), number('3'), string($timeZone), string($contentLocale))"/>
- </dp:section>
- <utml:input name="p_sched_date1" type="hidden">
- <utml:value>
- <out:value-of select="key('env-param', 'p_sched_date1')"/>
- </utml:value>
- </utml:input>
- <utml:input name="p_sched_time1" type="hidden">
- <utml:value>
- <out:value-of select="key('env-param', 'p_sched_time1')"/>
- </utml:value>
- </utml:input>
- </out:otherwise>
- </out:choose>
- </dp:list>
- </xsl:template>
-
- <xsl:template name="rui-endDate">
- <utml:radio-group name="m_sp_endType">
- <dp:choice title="IDS_PROP_SCHED_UNTIL" id="lbl_m_sp_endType">
- <dp:section1>
- <utml:input type="radio" name="m_sp_endType" id="lbl_sp_noEnd" value="indefinite"/>
- </dp:section1>
- <dp:section2 for="lbl_sp_noEnd">
- <xts:string id="IDS_PROP_SCHED_NO_END_DATE"/>
- </dp:section2>
- <dp:section1>
- <utml:input type="radio" name="m_sp_endType" id="lbl_sp_endBy" value="onDate"/>
- </dp:section1>
- <dp:section2 for="lbl_sp_endBy">
- <xts:string id="IDS_PROP_SCHED_END_BY"/>
- </dp:section2>
- <dp:section3>
- <dp:list>
- <label for="txtDatedateTo" style="position: absolute;margin-left: -9999px; margin-top: -9999px; "><xts:string id="IDS_PROP_SCHED_ENDDATE"/></label>
- <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>
- <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>
- <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>
- <out:variable name="startTimeInverallabel"><xts:string id="IDS_PROP_DAILY_SCHED_END_TIME" encode="javascript"/></out:variable>
- <out:variable name="dialogLabel"><xts:string id="DS_PROP_SCHED_FREQ_RELATIVE_INTERVAL_END_DATE_DIALOG"/></out:variable>
- <out:choose>
- <out:when test=" $form-read-only = 'false' ">
- <dp:section>
- <dp:field width="200">
- <out:call-template name="getSelectDate">
- <out:with-param name="promptLocale" select="$promptLocale"/>
- <out:with-param name="promptTimeZone" select="$timeZone"/>
- <out:with-param name="promptFormName" select="'pform'"/>
- <out:with-param name="promptRequired" select="'false'"/>
- <out:with-param name="promptStartOfWeek" select="'Sunday'"/>
- <out:with-param name="promptCalendar" select="'Gregorian'"/>
- <out:with-param name="promptParameter" select="'sched_date2'"/>
- <out:with-param name="promptSelectDateUI" select="'editBox'"/>
- <out:with-param name="promptInputOrder" select="'YMD'"/>
- <out:with-param name="promptDefaultDate" select="key('env-param', 'p_sched_date2')"/>
- <out:with-param name="promptDateTime" select="'false'"/>
- <out:with-param name="promptMultiSelect" select="'false'"/>
- <out:with-param name="promptId" select="'dateTo'"/>
- <out:with-param name="promptBrowserMode" select="$promptBrowserMode"/>
- <out:with-param name="suppressDisabled" select="'true'"/>
- <out:with-param name="promptSelectUI" select="'editBox'"/>
- <out:with-param name="popupLabel" select="$dialogLabel"/>
- </out:call-template>
- </dp:field>
- </dp:section>
- <dp:section>
- <dp:field width="200">
- <out:call-template name="getSelectTime">
- <out:with-param name="promptLocale" select="$promptLocale"/>
- <out:with-param name="promptFormName" select="'pform'"/>
- <out:with-param name="promptRequired" select="'false'"/>
- <out:with-param name="promptDefaultValue" select="key('env-param', 'p_sched_time2')"/>
- <out:with-param name="promptParameter" select="'sched_time2'"/>
- <out:with-param name="promptShowSeconds" select="'false'"/>
- <out:with-param name="promptInline" select="'false'"/>
- <out:with-param name="promptTimeZone" select="$timeZone"/>
- <out:with-param name="promptHourFormat" select="'hh'"/>
- <out:with-param name="promptMinuteFormat" select="'mm'"/>
- <out:with-param name="promptSecondFormat" select="'ss'"/>
- <out:with-param name="promptMode" select="@mode"/>
- <out:with-param name="promptMultiSelect" select="'false'"/>
- <out:with-param name="promptId" select="'timeTo'"/>
- <out:with-param name="suppressDisabled" select="'true'"/>
- <out:with-param name="promptBrowserMode" select="$promptBrowserMode"/>
- <out:with-param name="promptSelectUI" select="'editBox'"/>
- <out:with-param name="promptTimeLabel" select="$startTimeInverallabel"/>
- </out:call-template>
- </dp:field>
- </dp:section>
- </out:when>
- <out:otherwise>
- <out:variable name="xsl_end_date">
- <out:value-of select="concat(string(key('env-param', 'p_sched_date2')), 'T', substring-before(string(key('env-param', 'p_sched_time2')), '.'))"/>
- </out:variable>
- <out:variable name="xsl_UTC_end_date">
- <out:value-of select="xtsext:formatDateToUTC( string( $xsl_end_date ), string( $timeZone ) )"/>
- </out:variable>
- <dp:section>
- <out:value-of select="xtsext:formatDateFromUTC(string($xsl_UTC_end_date), number('2'), number('3'), string($timeZone), string($contentLocale))"/>
- </dp:section>
- <utml:input name="p_sched_date2" type="hidden">
- <utml:value>
- <out:value-of select="key('env-param', 'p_sched_date2')"/>
- </utml:value>
- </utml:input>
- <utml:input name="p_sched_time2" type="hidden">
- <utml:value>
- <out:value-of select="key('env-param', 'p_sched_time2')"/>
- </utml:value>
- </utml:input>
- </out:otherwise>
- </out:choose>
- </dp:list>
- </dp:section3>
- </dp:choice>
- </utml:radio-group>
- </xsl:template>
-
- <xsl:template match="rui:promptControls">
- <out:variable name="skin" select="key('user-param', 'skin')"/>
- <out:include href="p_include.xsl"/>
- <out:variable name="promptLocale" select="$productLocale"/>
- <out:variable name="promptFormName" select="{@form}"/>
- <out:variable name="promptBrowserMode">
- <out:choose>
- <out:when test="$browser = 'ie' ">IE5</out:when>
- <out:when test="$browser = 'moz' ">NS6</out:when>
- <out:when test="$browser = 'safari' ">safari</out:when>
- <out:otherwise>NS4</out:otherwise>
- </out:choose>
- </out:variable>
- </xsl:template>
-
- <xsl:template match="rui:promptControlsScript">
- <out:call-template name="getPromptCommonIncludes">
- <out:with-param name="promptBrowserMode" select="$promptBrowserMode"/>
- </out:call-template>
- <out:call-template name="getselectDateTimeIncludes">
- <out:with-param name="promptLocale" select="$promptLocale"/>
- <out:with-param name="promptContentLocale" select="$contentLocale"/>
- <out:with-param name="promptBrowserMode" select="$promptBrowserMode"/>
- </out:call-template>
- </xsl:template>
- <xsl:template match="rui:footer">
- <dp:footer>
- <out:variable name="dateCheck">
- <xsl:choose>
- <xsl:when test="@isTriggerCheck and @isTriggerCheck!=''">
- <out:if test="not({@isTriggerCheck})">
- <out:text>checkDateControlChanged();</out:text>
- </out:if>
- </xsl:when>
- <xsl:otherwise><out:text>checkDateControlChanged();</out:text></xsl:otherwise>
- </xsl:choose>
- </out:variable>
- <out:choose>
- <out:when test=" $form-read-only = 'false' ">
- <df:button df:id="IDS_OK" df:style="href" df:href="javascript:onClickOK();"/>
- <out:choose>
- <out:when test="key('env-param', 'ps_nav_stack') and not(key('env-param', 'ps_nav_stack') = '') ">
- <df:button df:id="IDS_CANCEL" df:style="stack-down" onclick="{'{$dateCheck}'} {'{$dc-confirm-cancel}'}"/>
- </out:when>
- <out:otherwise>
- <df:button df:id="IDS_CANCEL" df:style="back-url" onclick="{'{$dateCheck}'} {'{$dc-confirm-cancel}'}"/>
- </out:otherwise>
- </out:choose>
- </out:when>
- <out:otherwise>
- <out:choose>
- <out:when test="key('env-param', 'ps_nav_stack') and not(key('env-param', 'ps_nav_stack') = '') ">
- <df:button df:id="IDS_CLOSE" df:style="stack-down"/>
- </out:when>
- <out:otherwise>
- <df:button df:id="IDS_CLOSE" df:style="back-url"/>
- </out:otherwise>
- </out:choose>
- </out:otherwise>
- </out:choose>
- </dp:footer>
- </xsl:template>
-
- <!-- Engine transform - this just ensures that everything not undeerstood by this logicheet gets copied over -->
- <xsl:template match="*|@*|text()|processing-instruction()">
- <xsl:copy>
- <xsl:apply-templates select="*|@*|text()|processing-instruction()"/>
- </xsl:copy>
- </xsl:template>
-
- </xsl:stylesheet>
|