123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: ps
- (C) Copyright IBM Corp. 2005, 2011
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <!--
- Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
- Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
- -->
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
- 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:prompt="http://developer.cognos.com/schemas/xts/portal/iPrompting/1/"
- xmlns:xos="http://developer.cognos.com/schemas/xts/output/"
- exclude-result-prefixes="xsl xts pf xtsext lyt dp df prompt xos">
- <!-- global application variables -->
- <pf:variables/>
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
- <xsl:variable name="mname" select="key('env-param', 'm')"/>
- <!-- Ouptut a response containing a simple message dialog stating that there are no prompts -->
- <xsl:template match="/root">
- <xsl:choose>
- <xsl:when test="/root/command/*/redirect != ''">
- <input type="hidden" name="ps_nav_op" value=""/>
- <!-- if we'ev visited the schedule dialog and we don't have a credential in CM, then create one -->
- <xsl:if test="not(key('env-param', 'm_sp_credential')) and key('env-param', 'visited_schedule_properties')">
- <input name="h_CAM_action" type="hidden" value="generateTC"/>
- </xsl:if>
- <script language="javascript">
- var frm = document.pform;
- frm.m.value = '<xsl:value-of select="xtsext:javascriptencode(string(/root/command/*/redirect))"/>';
- frm.method.value='';
- <!-- we never want to save the runOption prompt to true -->
- if (frm.m_ro_prompt)
- frm.m_ro_prompt.value = 'false';
-
- <xsl:choose>
- <!-- if we came from the job step run options page then do a stackdown -->
- <xsl:when test="key('env-param', 'step_options_visited')">
- frm.ps_nav_op.value = 'drop';
- </xsl:when>
- <xsl:otherwise>
- frm.ps_nav_op.value = 'submit';
- </xsl:otherwise>
- </xsl:choose>
- frm.submit();
- </script>
- </xsl:when>
- <xsl:otherwise>
- <!-- dialog header -->
- <dp:header help="false">
- <!-- header titles-->
- <dp:title>
- <xts:string id="IDS_PORTAL"/>
- </dp:title>
- <dp:close>
- <a href="#" onclick="document.formWarpRequest.method.value='';document.formWarpRequest.submit();">
- <dp:closeMarker/>
- </a>
- </dp:close>
- </dp:header>
- <lyt:layout style="1">
- <lyt:section>
- <dp:message>
- <dp:image>
- <img width="32" height="32" align="top" hspace="10">
- <xsl:attribute name="src">
- <xsl:value-of select="concat($webcontent, '/',$app,'/images/msg_information.gif')"/>
- </xsl:attribute>
- <xsl:attribute name="alt"><xts:string id="IDS_ICON_INFORMATION" encode="html"/></xsl:attribute>
- </img>
- </dp:image>
- <dp:messageText>
- <xts:string id="IDS_OTHERRUN_NO_PROMPTS_MESSAGE"/>
- <br/>
- </dp:messageText>
- </dp:message>
- </lyt:section>
- </lyt:layout>
- <!-- =================== F o o t e r ===================== -->
- <dp:footer>
- <df:button df:id="IDS_CLOSE" df:style="href" df:href="#" onClick="document.formWarpRequest.method.value='';document.formWarpRequest.submit();"/>
- </dp:footer>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- </xsl:stylesheet>
|