123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: HTS
- (C) Copyright IBM Corp. 2005, 2010
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:frag="http://developer.cognos.com/schemas/cps/logic/fragment/1/" xmlns:xts="http://developer.cognos.com/schemas/xts/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" xmlns:ui="http://developer.cognos.com/schemas/cps/logic/ui/1/" xmlns:nui="http://developer.cognos.com/schemas/cps/logic/nav/ui/1/" xmlns:nav="http://developer.cognos.com/schemas/cps/navigation/1/" xmlns:layout="http://developer.cognos.com/common/layout" xmlns:valerr="http://developer.cognos.com/validation/errrormessages/1/" xmlns:java="java:com.cognos.portal.utils.CCLLocaleUtils" exclude-result-prefixes="xts xtsext ui nui nav">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/">
- <script type="text/javascript">
- _THIS_.addEventListener("fragment.refresh", "_THIS_refreshAll");
- _THIS_.addEventListener("fragment.load", "_THIS_init");
-
- function _THIS_refreshAll(evt) {
- var _THIS_utils = new hts_utils(_THIS_);
- _THIS_utils.refreshCurrentTab('poolTaskList');
- }
- function createPlanningBanner() {
- hts_productMode.setMode(hts_productMode.PLANNING);
-
- /*
- * Create a progress pane that consists of a title
- */
- var container = document.createElement('div');
- <xsl:variable name="productName" select="/root/*[local-name()='input' and @name='custom']/*[local-name()='custom']/*[local-name()='param' and @name='displayText']"/>
- <xsl:variable name="userName" select="/root/*[local-name()='input' and @name='settings']/*[local-name()='settings']/*[local-name()='param' and @name='user']"/>
- <xsl:variable name="skin" select="/root/*[local-name()='input' and @name='settings']/*[local-name()='settings']/*[local-name()='param' and @name='skin']"/>
- //BANNER
- document.title = '<xsl:value-of select="xtsext:javascriptencode(string($productName))"/>';
- var progressBanner = dojo.byId("dojoBanner");
- var bannerParams = {
- pmpWebRoot: "../../../pmpsvc",
- helpPage: "rightsProgress",
- userName: '<xsl:value-of select="xtsext:javascriptencode(string($userName))"/>',
- skinName: '<xsl:value-of select="xtsext:javascriptencode(string($skin))"/>'
- };
- var banner = new common.widgets.BannerWidget(bannerParams, progressBanner);
- banner.setBackPage("applications.jsp");
- //if (this.securityMode == "CAM") {
- banner.showContainer("preferences", true);
- //}
- dojo.connect(banner, "onRefresh", this, function(){
- window.location.reload();
- });
- /**var deferred = common.ProgressDialog.show(
- {title: this.getMessages().getMessage('progressTitle'), showCancel: true});
- deferred.addCallback(this, function(result){
- if('CANCEL' == result){
- //if cancelled, will go back to the portal page
- this.goBack()
- }
- });*/
- return container;
- }
- function _THIS_init () {
- //We are running in Planning mode so hide the links.
- if (hts_productMode && hts_productMode.getMode() == hts_productMode.PLANNING) {
- dojo.registerModulePath("common", "../../pmpjs/common");
- parent.handleLogon = function(href, frag) {
- window.location.href = _F_Config.webContent + "/applications.jsp";
- };
- dojo.require("common.widgets.BannerWidget");
- dojo.addOnLoad( function() {
- dojo.attr("_THIS_bannercontent","style",{display:"none"});
- createPlanningBanner();
- // every element in the page with the class "blueButton" assigned
- dojo.query(".headerTitle").forEach(function(node, index, arr){
- node.style.backgroundColor="transparent";
- //dojo.attr(node,"backgroundColor","inherit");
- //dojo.style(node,{backgroundColor:"inherit"});
- //node.style.removeProperty("background-color");
- //dojo.style(node, "padding","0px");
- });
- dojo.query(".mainHeader1").forEach(function(node, index, arr){
- //alert("main header 1 found");
- //dojo.style(node, "backgroundColor","");
- dojo.style(node, "borderBottom","0px");
- dojo.style(node, "borderTop","0px");
- dojo.style(node, "borderLeft","0px");
- dojo.style(node, "padding","0px");
- });
- });
- }
- }
- </script>
- <div id="_THIS_bannercontent">
- _THIS?frag-subfragment=banner/THIS_
- </div>
- <div style="font-size: 130%">
- <div id="dojoBanner" ></div>
- </div>
- </xsl:template>
- </xsl:stylesheet>
|