123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: ps
- (C) Copyright IBM Corp. 2005, 2013
- 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:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
- xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
- exclude-result-prefixes="xsl pf dp xtsext xts">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
-
- <pf:variables/>
- <xsl:variable name="prd" select="/root/env/param[@name = 'prd']"/>
- <xsl:variable name="browserTitle">
- <xsl:choose>
- <xsl:when test="$prd != ''"><xsl:value-of select="$prd"/></xsl:when>
- <xsl:otherwise><xts:string id="IDS_PORTAL"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:template match="/">
- <xsl:variable name="tenantID" select="/root/*[local-name()='sessionResponse']//*[local-name()='tenantID']"/>
- <xsl:text disable-output-escaping='yes'><!DOCTYPE html></xsl:text><dp:page longTitle="$product_name">
- <!-- this is the redirect portion of the code -->
- <dp:meta>
- <!-- Add standard meta tags -->
- <pf:meta/>
- <!--<meta http-equiv="refresh">
- <xsl:attribute name="content">0; URL=<xsl:value-of select="/root/env/param[@name = 'backURL']"/></xsl:attribute>
- </meta>-->
- <dp:script>
- <pf:help context=""/> <!-- Help system -->
- </dp:script>
- <!-- dialog header -->
- </dp:meta>
- <dp:header>
- <!-- header titles-->
- <dp:title showName="false">
- <xsl:value-of select="$browserTitle"/>
- </dp:title>
- <!-- header introduction -->
- <dp:close>
- <xsl:variable name="close"><xts:string id="IDS_CLOSE"/></xsl:variable>
- <a href="{key('env-param', 'backURL')}"><img height="16" width="16" class="dialogClose" vspace="2" border="0" src="{$skin_images}close.gif" alt="{$close}" onmouseover="this.className = 'dialogCloseOver'" onmouseout="this.className = 'dialogClose'"/></a>
- </dp:close>
- </dp:header>
- <xsl:variable name="isDefaultAcctProfileObject" select="/root/env/param[@name='m_class'] = 'account' and starts-with(/root/env/param[@name='m_obj'],'/configuration/account')"/>
- <xsl:variable name="userHasNotConfirmedCreate" select="not(/root/env/param[@name='createAcctProfile'] = 'true')"/>
- <lyt:layout style="1">
- <lyt:section>
- <dp:group>
- <dp:groupItem valign="top">
- <dp:text>
- <xsl:choose>
- <xsl:when test="$isDefaultAcctProfileObject and $userHasNotConfirmedCreate">
- <xts:string id="IDS_CREATE_DEFAULT_USER_PROFILE">
- <xts:param name="tenantName">
- <xsl:choose>
- <xsl:when test="/root/env/param[@name='m_tenantName']">
- <xsl:value-of select="/root/env/param[@name='m_tenantName']"/>
- </xsl:when>
- <xsl:when test="/root/env/param[@name='m_tenantId']">
- <xsl:value-of select="/root/env/param[@name='m_tenantId']"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="key('session-param', 'e_tenantDisplayName')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xts:param>
- </xts:string>
- </xsl:when>
- <xsl:otherwise>
- <xts:string id="IDS_OBJECT_INVALID"/>
- </xsl:otherwise>
- </xsl:choose>
- <br/>
- </dp:text>
- </dp:groupItem>
- </dp:group>
- </lyt:section>
- </lyt:layout>
- <dp:footer>
- <xsl:choose>
- <xsl:when test="$isDefaultAcctProfileObject and $userHasNotConfirmedCreate">
- <df:button df:id="IDS_OK" df:style="href" df:href="#" onclick="this.onclick=null;window.location=window.location+'&createDefaultUserAcctProfile=true'"/>
- <df:button df:id="IDS_CANCEL" df:style="href" df:href="{key('env-param', 'backURL')}"/>
- </xsl:when>
- <xsl:otherwise>
- <df:button df:id="IDS_CLOSE" df:style="href" df:href="{key('env-param', 'backURL')}"/>
- </xsl:otherwise>
- </xsl:choose>
- </dp:footer>
- </dp:page>
- </xsl:template>
- </xsl:stylesheet>
|