123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177 |
- <?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:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:pm="http://developer.cognos.com/schemas/xts/pm"
- xmlns:mt="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mt"
- xmlns:mf="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mf"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
- xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
- xmlns:rss="http://developer.cognos.com/schemas/xts/rss/"
- xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
- xmlns:out="dummy-uri"
- xmlns:cps="http://developer.cognos.com/schemas/cps/asm/objects/1/"
- xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
- exclude-result-prefixes="xsl cps cm pf pm mt mf xts xtsext cf cp rss out bus xts SOAP-ENV">
-
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
-
-
- <!-- Global vars -->
- <!-- ================================================= -->
- <mf:variables stateParams="m_ts m_folder m_folder2 m_nbid m_nbid2 m_section m_pagerfrom m_pagerto m_pg_e m_tab rui m_page backURL m_portlet" mode="main"/>
- <pf:variables/>
- <mf:main-variables/>
- <mf:TabRenderingTemplates/>
- <cp:flyoutControl/>
- <xsl:variable name="cmd-form" select="'cform'"/>
- <xsl:variable name="edit-form" select="'pform'"/>
-
-
- <!-- start the output -->
- <!-- ================================================= -->
- <xsl:template match="/root">
-
- <xsl:variable name="oTitle">
- <xsl:choose>
- <xsl:when test="$pageName != ''">
- <xsl:value-of select="$pageName"/>
- </xsl:when>
- <xsl:when test="$pageNotFound != ''">
- <xts:string id="IDS_PAGE_UNAVAILABLE"/>
- </xsl:when>
- </xsl:choose>
- </xsl:variable>
-
- <!-- HTML body -->
- <mt:customPage mode="main">
-
- <!-- Render the top headers. -->
- <xsl:call-template name="render-header"/>
-
- <xsl:variable name="isHomeCommand" select="key('env-param', 'gohome')"/>
-
- <xsl:variable name="invalidHomeHandler">
- <script>
- alert("<xts:string id="IDS_PAGE_INVALID_HOME" encode="javascript"/>");
- var url = "<xsl:value-of select="xtsext:javascriptencode($gateway)"/>?<xsl:value-of select="xtsext:javascriptencode($baseCCQS)"/>";
- location.href = url;
- </script>
- </xsl:variable>
- <form name="cform" method="post" action="{$gateway}" style="margin:0px">
- <mf:cmd-vars/>
- </form>
- <!-- End of HTML body -->
- </mt:customPage>
- </xsl:template>
-
-
- <xsl:template name="render-header">
- <mt:h1 mode="main">
- <mt:title>
- <xsl:choose>
- <xsl:when test="$displayMode = 'viewer'">
- <xsl:choose>
- <xsl:when test="$pageName != ''">
- <xsl:value-of select="$pageName"/>
- </xsl:when>
- <xsl:when test="$pageNotFound != ''">
- <xts:string id="IDS_PAGE_UNAVAILABLE"/>
- </xsl:when>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xts:string id="IDS_PORTAL"/>
- </xsl:otherwise>
- </xsl:choose>
- </mt:title>
- </mt:h1>
-
-
- <!-- only render these headers when in portal mode -->
- <xsl:if test="$displayMode = 'portal'">
- <mt:h3 mode="main">
- <mt:tabs/>
- </mt:h3>
- <mt:h4>
- <mt:path/>
-
- <mt:toolbar>
- <mt:tool-group hideDivider="true">
- <mt:tool name="new" new-class="pagelet"/>
- <xsl:if test="$canAddPageToPortal">
- <mt:tool name="add_page"/>
- </xsl:if>
- </mt:tool-group>
-
- <xsl:if test="not($pageNotFound) and $pageCanWrite and $pageCanRead">
- <mt:tool-group>
- <mt:tool name="edit_pagelet"/>
- </mt:tool-group>
- </xsl:if>
-
- </mt:toolbar>
- </mt:h4>
- </xsl:if>
-
- <xsl:if test="$displayMode = 'viewer' and $pageID != 'portlet'">
- <mt:h4>
- <mt:toolbar>
- <mt:tool-group hideDivider="true">
- <xsl:choose>
- <xsl:when test="$displayMode = 'viewer'">
- <mt:tool name="refresh"/>
- </xsl:when>
- <xsl:otherwise>
- <mt:tool name="refreshUsingGet"/>
- </xsl:otherwise>
- </xsl:choose>
-
- </mt:tool-group>
- <xsl:choose>
- <xsl:when test="$canAddPageToPortal">
- <mt:tool-group>
- <mt:tool name="add_page"/>
- </mt:tool-group>
- </xsl:when>
- <!-- We typically should check for page level access here but we can cheat a bit and
- show a disabled icon when the page is already in the user's portal. -->
- <xsl:when test="$isPersonalPortalPage">
- <mt:tool-group>
- <mt:tool name="add_page" disable="true"/>
- </mt:tool-group>
- </xsl:when>
- </xsl:choose>
- <xsl:if test="$canEditPage">
- <mt:tool-group>
- <mt:tool name="edit_pagelet"/>
- </mt:tool-group>
- </xsl:if>
- </mt:toolbar>
- </mt:h4>
- </xsl:if>
- </xsl:template>
-
- <cp:tabControl/>
- </xsl:stylesheet>
|