123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176 |
- <?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).
- -->
- <xts:morphlet version="1.0" xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/QSRVUITextPL.xml,messages/portal.xml,messages/portalRL.xml">
- <xts:block id="page" type="exec" mode="output" processor="XSLT" mimeType="text/html">
- <!-- get the debug logic sheet -->
- <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
- <!-- get the new theme stuff -->
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
- <!-- apply the form logic -->
- <xts:logicsheet path="logicsheets/formlogic.xslt"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
- 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: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:dbg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/debug/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- exclude-result-prefixes="xsl xts lyt pf dp df cp cf dbg utml xtsext">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
- <!-- add any theme variables -->
- <df:variables/>
- <pf:variables/>
-
- <!-- start the output -->
- <xsl:template match="/root">
- <xsl:text disable-output-escaping='yes'><!DOCTYPE html></xsl:text><dp:page>
- <dp:script>
- <dp:meta/>
- <script type="text/javascript">
- function doCancel()
- {
- <xsl:choose>
- <xsl:when test="string(/root/env/param[@name='backURL'])!=''">
- backTo = "<xsl:value-of select="xtsext:javascriptencode(string(/root/env/param[@name='backURL']))"/>";
- window.setTimeout("window.location.href = backTo;" , 1);
- </xsl:when>
- <xsl:when test="string(/root/env/param[@name='ps_nav_stack'])!=''">
- document.pform.ps_nav_op.value = 'pop';
- document.pform.m.value = document.pform.ps_nav_stack.value;
- document.pform.submit();
- </xsl:when>
- </xsl:choose>
- }
- </script>
- </dp:script>
-
- <utml:form name="pform" method="post" action="{$gateway}">
- <!-- dialog header -->
- <dp:header help="false">
- <!-- header titles -->
- <dp:title><xsl:value-of select="$product_name"/></dp:title>
- <!-- close link for the header -->
- <dp:close>
- <utml:a utml:op="stack-down">
- <dp:closeMarker/>
- </utml:a>
- </dp:close>
- <!-- description (hint text) -->
- <dp:description><xsl:value-of select="substring-before(string(/root/env/param[@name='errorText']),' ')"/></dp:description>
- </dp:header>
-
- <lyt:layout style="1">
- <lyt:section>
- <dp:group>
- <dp:groupItem>
- <img height="32" width="32" border="0">
- <xsl:attribute name="src">
- <xsl:value-of select="$webcontent"/>/<xsl:value-of select="$app"/>
- <xsl:text/>/images/msg_error.gif<xsl:text/>
- </xsl:attribute>
- </img>
- </dp:groupItem>
- <dp:groupItem>
- <!-- used for alignment -->
- <dp:text/><xsl:text> </xsl:text>
- </dp:groupItem>
- <dp:groupItem valign="top">
- <dp:text nospace="nospace" wrap="wrap">
- <xsl:value-of select="substring-after(string(/root/env/param[@name='errorText']),' ')"/>
- </dp:text>
- </dp:groupItem>
- </dp:group>
- </lyt:section>
- </lyt:layout>
- <xsl:if test="normalize-space(string(/root/env/param[@name='errorDetail']))!=''">
- <!-- NOTE: *** The following changes where made get alignment correct (since not in a layout): -->
- <!-- The image height and width are set to 30 instead of 32 -->
- <!-- Lone dp:text -->
- <!-- The   is used to align the Details hyperlink with the textarea -->
- <dp:group>
- <dp:groupItem>
- <img height="30" width="30" border="0">
- <xsl:attribute name="src"><xsl:value-of select="$webcontent"/>/images/space.gif</xsl:attribute>
- </img>
- </dp:groupItem>
- <dp:groupItem>
- <dp:text/>
- </dp:groupItem>
- <dp:groupItem align="left">
- <xsl:if test="/root/env/param[@name='errorDetail']">
- <cf:dynamicExpandingSection name="details" title="IDS_FAULT_DETAILS" expanding="yes">
- <!-- Filtering control -->
- <lyt:layout style="1" joinSection="no">
- <lyt:section>
- <div class="errorPanel">
- <xsl:value-of select="/root/env/param[@name='errorDetail']"/>
- </div>
- </lyt:section>
- </lyt:layout>
- </cf:dynamicExpandingSection>
- </xsl:if>
- </dp:groupItem>
- </dp:group>
- </xsl:if>
- <dp:footer>
- <dp:button>
- <a href="javascript:doCancel();">
- <dp:buttonText><xts:string id="IDS_OK"/></dp:buttonText>
- </a>
- </dp:button>
- </dp:footer>
- <!-- <dbg:dumpxml select="/"/> -->
- </utml:form>
- </dp:page>
- </xsl:template>
-
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- debug - display debug information
- ===============================================================================================
- -->
- <xts:block id="debug" dependency="page" type="exec" condition=".[ /root/session/param[@name='debug'] = '1' ]" mode="output" processor="XSLT" mandatory="false" mimeType="text/html">
- <!-- get the debug logic sheet -->
- <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dbg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/debug/" exclude-result-prefixes="dbg">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
- <xsl:template match="/">
- <dbg:dumpxml select="/root"/>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- </xts:morphlet>
|