123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- BI and PM: qs
- (C) Copyright IBM Corp. 2001, 2017
- 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:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:out="dummy-uri"
- xmlns:qsp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/qs/presentation/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- exclude-result-prefixes="xts xsl qsp">
- <xsl:output method="xml" encoding="UTF-8" indent="no"/>
- <xsl:namespace-alias stylesheet-prefix="out" result-prefix="xsl"/>
- <xsl:template match="qsp:h1">
- <link rel="STYLESHEET" type="text/css">
- <out:attribute name="href"><out:value-of select="$skin_root"/>/shared/banner.css</out:attribute>
- </link>
-
- <link rel="STYLESHEET" type="text/css">
- <out:attribute name="href"><out:value-of select="$webRoot"/>/qs/css/qs.css</out:attribute>
- </link>
- <div id="headerBack">
- <table cellspacing="0" cellpadding="0" class="mainHeader1" border="0">
- <tr>
- <td class="logoContainer"><div class="logo"></div></td>
- <td class="headerTitle" id="applicationCaption" style="white-space:nowrap;">
- <xsl:text/><xts:string id="QUERY_STUDIO_WINDOW_TITLE"/> <xsl:text/>
- </td>
- <td class="mainHeader1Middle">
- <table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <out:if test=" $is-named = '1' ">
- <td nowrap="nowrap">
- <span class="userNameContainer" id="ibm-banner-welcome-qs">
- <out:value-of select="key('session-param', 'e_user')"/>
- </span>
- </td>
- </out:if>
-
- <out:if test="$is-secure = '1'">
- <td nowrap="nowrap">
- <div class="authOptionContainer" id="authOptionContainerDiv"/>
- </td>
- <td class="dividerContainer"><div class="bannerDivider"></div></td>
- </out:if>
-
- <td>
- <div id="topToolbarContainer" style="background: none;"/>
- </td>
- </tr>
- </table>
- </td>
- <td id="ibmLogo"></td>
- </tr>
- </table>
- <div class="headerBannerLip"></div>
- </div>
- <script type="text/javascript">
- <!-- init the available namespaces and the traversable (logged in) namespaces -->
- cfgSet("availableLogonNamespaces", 0);
- cfgSet("traversableLogonNamespaces", 0);
- <out:choose>
- <out:when test="key('user-param', 'activeLogonNamespaces') != ''">
- cfgSet("giAvailableLogonNamespaces", <out:value-of select="key('user-param', 'activeLogonNamespaces')"/>);
- </out:when>
- </out:choose>
- <out:choose>
- <out:when test="key('user-param', 'traversableLogonNamespaces') != ''">
- cfgSet("giTraversableLogonNamespaces", <out:value-of select="key('user-param', 'traversableLogonNamespaces')"/>);
- </out:when>
- </out:choose>
- var bIsAnonymous = false;
- <!-- need a drop down with logon as default and logon and logoff in the menu -->
- <out:choose>
- <!-- Test if we're anonymous -->
- <out:when test="key('session-param', 'show_logon') = 'true'">
- <out:choose>
- <out:when test="$is-named != '1'">
- <!-- We are anonymous -->
- cfgSet("gbIsAnonymous", true);
- var bIsAnonymous = true;
- </out:when>
- </out:choose>
- </out:when>
- </out:choose>
- var gTopToolbarLogon = initLogonMenu(cfgGet("giAvailableLogonNamespaces"),cfgGet("giTraversableLogonNamespaces"), bIsAnonymous);
- <!-- Header buttons -->
- var gTopToolbarStyle = new CUIStyle('bannerOptionsButtonNormal', 'bannerOptionsButtonOver', 'bannerOptionsButtonNormal', 'bannerOptionsButtonNormal', 'bannerOptionsButtonNormal');
- var gTopToolbarFlyoutMenu = new CUIStyle('bannerOptionsButtonNormal', 'bannerOptionsButtonOver', 'headerButtonDropDown', 'bannerOptionsButtonNormal','bannerOptionsButtonNormal', 'bannerOptionsButtonNormal');
-
- var gTopToolbar = new CBar('topToolbarContainer', gTopToolbarStyle, null, '', '', '', 'qs', 'tt');
- gTopToolbar.setMenuType(cHorizonalBar);
- <!-- Home and back buttons disabled in Titan release -->
- <!-- var topToolbarbutton = new CToolbarButton(gTopToolbar, 'bannerHome(cfgGet("gsCognosHome"));', '<out:value-of select="$skin_root"/>/shared/images/action_home.gif', '<xts:string id="IDS_PORTAL" encode="javascript"/>', gTopToolbarStyle, false, null, null, '<out:value-of select="$webRoot"/>');
- if (gsUiBackURL.length > 0)
- {
- topToolbarbutton = new CToolbarButton(gTopToolbar, 'closeLink();', '<out:value-of select="$skin_root"/>/shared/images/action_return.gif', '<xts:string id="EXIT" encode="javascript"/>', gTopToolbarStyle, false, null, null, '<out:value-of select="$webRoot"/>');
- }
- -->
- topToolbarbutton = new CToolbarButton(gTopToolbar, 'bannerHelp("help")', '<out:value-of select="$skin_root"/>/shared/images/action_help.gif', '<xts:string id="HELP" encode="javascript"/>', gTopToolbarStyle, false, null, null, '<out:value-of select="$webRoot"/>');
- var topMenuItem = new CMenuItem(gTopToolbar, '', '', '<out:value-of select="$skin_root"/>/shared/images/dropdown_arrow_banner.gif', gTopToolbarFlyoutMenu, '<out:value-of select="$webRoot"/>', '<out:value-of select="$skin_root"/>');
- topMenuItem.setToolTip('<xts:string id="HELP_OPTIONS" encode="javascript"/>');
- var topMenuIcon = topMenuItem.getIcon();
- topMenuIcon.setWidth(7);
- gTopToolbar.draw();
- var helpMenu = topMenuItem.createDropDownMenu(gMenuStyle, '<xts:string id="HELP" encode="javascript"/>');
- var helpMenuItem = new CMenuItem(helpMenu, '<xts:string id="HELP" encode="javascript"/>', 'bannerHelp("help")', '', gMenuItemStyle, '<out:value-of select="$webRoot"/>', '<out:value-of select="$skin_root"/>');
- helpMenuItem = new CMenuItem(helpMenu, '<xts:string id="COGNOS_ON_THE_WEB" encode="javascript"/>', 'bannerHelp("cogonweb")', '', gMenuItemStyle, '<out:value-of select="$webRoot"/>', '<out:value-of select="$skin_root"/>');
- helpMenu.add(gMenuSeperator);
- <!-- Welcome Page link disabled in Titan release -->
- <!-- helpMenuItem = new CMenuItem(helpMenu, '<xts:string id="GO_TO_THE_WELCOME_PAGE" encode="javascript"/>', 'bannerHelp("welcome")', '', gMenuItemStyle, '<out:value-of select="$webRoot"/>', '<out:value-of select="$skin_root"/>');
- helpMenu.add(gMenuSeperator); -->
- <out:variable name="appName">
- <xts:string id="QUERY_STUDIO_WINDOW_TITLE" encode="javascript"/>
- </out:variable>
- helpMenuItem = new CMenuItem(helpMenu, '<xts:string id="ABOUT_TITLE" encode="javascript"><xts:param name="appName"><out:value-of select="$appName"/></xts:param></xts:string>', 'bannerHelp("about")', '', gMenuItemStyle, '<out:value-of select="$webRoot"/>', '<out:value-of select="$skin_root"/>');
- </script>
- </xsl:template>
- <!-- the main engine -->
- <xsl:template match="*">
- <xsl:copy>
- <xsl:copy-of select="@*"/>
- <xsl:apply-templates/>
- </xsl:copy>
- </xsl:template>
- </xsl:stylesheet>
|