123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634 |
- <?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.
- -->
- <!-- Inputs: m_targetMorphlet -->
- <!--
- Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
- Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
- -->
- <!-- sensitiveData : Sensitive data is selected to be exported. The archive must be encrypted. Export only. -->
- <!-- m_archiveEncryptPword: The encryption password. -->
- <!-- encryptArchive: User has chosen to encrypt the archive by selecting the "Encrypt the content of the archive" checkbox in the "specify the a deployment archive page". Export only. -->
- <!-- m_button_pressed: Gets set to OK or Cancel when the user clicks on one of those buttons in the deployment password page. -->
- <!-- credential_clear: Delete the password if set to 'true' -->
- <xts:morphlet xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/portal.xml, messages/portalRL.xml" requiredCapability="canUseAdministrationPortal">
- <!--
- ================================================================================
- formlogic_init
-
- Initializes the UTML navigation stuff.
- ================================================================================
- -->
- <xts:block id="formlogic_init" type="exec" mode="interpret" processor="XSLT" path="/logicsheets/formlogic_init.xslt" nodelist="env,credential,system,http"/>
- <!--
- ================================================================================
- encrypt_credentials
-
- Encrypts the credentials from the Specify the signon userid & password dialog.
- ================================================================================
- -->
- <xts:block id="encrypt_credentials" type="exec" mode="interpret" processor="XSLT" mandatory="false" condition=".[/root/env/param[@name='m_signon_password'] or /root/env/param[@name='credential_clear']='true']">
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dpl="http://developer.cognos.com/schemas/xts/logicsheets/deployment/" xmlns:pf="http://developer.cognos.com/schemas/xts/pf" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:variable name="query-values" select="/root/env/param"/>
- <pf:variables/>
- <dpl:variables/>
- <xsl:template match="/">
- <xts:sequence>
- <xsl:choose>
- <xsl:when test="$query-values[@name='credential_clear']='true'">
- <xts:delete select="/root/env/param[@name='m_archiveEncryptPword']"/>
- <xts:replace select="/root/env/param[@name='credential_clear']">
- <param name="credential_clear">false</param>
- </xts:replace>
- </xsl:when>
- <xsl:when test="$query-values[@name='m_signon_pwd_changed']='1'">
- <xts:delete select="/root/env/param[@name='m_archiveEncryptPword']"/>
- <xts:append select="/root/env">
- <param name="m_archiveEncryptPword">
- <xsl:value-of select="'<credential><encryptedValue>'"/>
- <xsl:choose>
- <xsl:when test="/root/env/param[@name='m_signon_password' and @format='encrypted']">
- <xts:encrypt>
- <xts:param name="provider">cognos.cam</xts:param>
- <xts:param name="source">
- <credential>
- <password>
- <xts:decrypt>
- <xts:param name="encode">xml</xts:param>
- <xts:param name="provider">cognos.cam</xts:param>
- <xts:param name="source">
- <xsl:value-of select="/root/env/param[@name='m_signon_password']"/>
- </xts:param>
- </xts:decrypt>
- </password>
- </credential>
- </xts:param>
- </xts:encrypt>
- </xsl:when>
- <xsl:otherwise>
- <xts:encrypt>
- <xts:param name="provider">cognos.cam</xts:param>
- <xts:param name="source">
- <credential>
- <password>
- <xsl:value-of select="xtsext:xmlencode(string(/root/env/param[@name='m_signon_password']))"/>
- </password>
- </credential>
- </xts:param>
- </xts:encrypt>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:value-of select="'</encryptedValue></credential>'"/>
- </param>
- </xts:append>
- </xsl:when>
- <xsl:when test="$query-values[@name='m_button_pressed']='cancel'">
- <xts:delete select="/root/env/param[@name='m_archiveEncryptPword']"/>
- </xsl:when>
- </xsl:choose>
- <xts:delete select="/root/env/param[@name='m_signon_password' or @name='m_signon_confirm_password']"/>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- read_deployment_archive is executed in import wizard only
- ===============================================================================================
- -->
- <xts:block id="getArchiveOptions" processor="XSLT" type="exec" dependency="encrypt_credentials" mandatory="false" condition=".[/root/env/param[@name='m_class'] = 'importDeployment' and (not(/root/env/param[@name='m_button_pressed']) or /root/env/param[@name='m_button_pressed'] != 'cancel')]">
- <xts:logicsheet path="logicsheets/deploymentlogic.xsl"/>
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/" xmlns:bus="http://developer.cognos.com/schemas/bibus/1/" xmlns:pf="http://developer.cognos.com/schemas/xts/pf" xmlns:dpl="http://developer.cognos.com/schemas/xts/logicsheets/deployment/" xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <dpl:getArchiveOptions handleFault="true"/>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- faultHandler
- ===============================================================================================
- -->
- <xts:block id="faultHandler" type="fault" processor="XSLT">
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
- <xsl:output method="xml"/>
- <xsl:template match="/root/fault">
- <xsl:choose>
- <xsl:when test="./*[local-name() = 'exception']/*[local-name() = 'exceptionDetail']/*[local-name() = 'exception']/errorCode = 'cmArchiveEncrypted' or ./*[local-name() = 'exception']/*[local-name() = 'exceptionDetail']/*[local-name() = 'exception']/errorCode = 'cmImportCryptoFailed'">
- <copyFault>
- <xsl:copy-of select="."/>
- </copyFault>
- </xsl:when>
- <xsl:otherwise>
- <xsl:copy-of select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <xsl:template match="text()"/>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- read_deployment_archive is executed in import wizard only
- ===============================================================================================
- -->
- <xts:block id="faultProcessor" type="exec" mode="interpret" processor="XSLT" dependency="getArchiveOptions" mandatory="false">
- <xts:logicsheet path="logicsheets/deploymentlogic.xsl"/>
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dpl="http://developer.cognos.com/schemas/xts/logicsheets/deployment/" xmlns:pf="http://developer.cognos.com/schemas/xts/pf" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/">
- <!-- Setting the pass_fault to true will cause the password page to be displayed -->
- <xsl:variable name="pass_fault">
- <xsl:choose>
- <xsl:when test="(/root/archiveOptions/copyFault/fault or /root/env/param[@name = 'editPword'] = 'true' or ((not(/root/env/param[@name = 'm_archiveEncryptPword']) or /root/env/param[@name = 'm_archiveEncryptPword'] = '') and (/root/env/param[@name = 'editPword'] != 'true') and (/root/env/param[@name = 'encryptArchive'] or /root/env/param[@name = 'sensitiveData']))) and ((not(/root/env/param[@name = 'm_button_pressed'])) or (/root/env/param[@name = 'm_button_pressed'] != 'cancel'))">
- <xsl:value-of select="'true'"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="'false'"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xts:sequence>
-
- <!-- Reset editPword -->
- <xts:replace select="/root/env/param[@name = 'editPword']">
- <param name="editPword">
- <xsl:value-of select="'false'"/>
- </param>
- </xts:replace>
-
- <xsl:choose>
- <xsl:when test="not(/root/env/param[@name='displayPass'])">
- <xts:append select="/root/env">
- <param name="displayPass">
- <xsl:value-of select="$pass_fault"/>
- </param>
- </xts:append>
- </xsl:when>
- <xsl:otherwise>
- <xts:replace select="/root/env/param[@name='displayPass']">
- <param name="displayPass">
- <xsl:value-of select="$pass_fault"/>
- </param>
- </xts:replace>
- </xsl:otherwise>
- </xsl:choose>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- processArchiveOptions
- ===============================================================================================
- -->
- <xts:block id="processArchiveOptions" processor="XSLT" type="exec" nodelist="archiveOptions" dependency="formlogic_init faultProcessor" mandatory="false" condition=".[/root/env/param[@name='m_class'] = 'importDeployment']">
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
- <xsl:template match="/">
- <xts:sequence>
- <xts:delete select="/root/archiveOptions/*[local-name()='getDeploymentOptionsResponse']/*[local-name()='deploymentOptions']/*[local-name()='deploymentOption'][@name='preserveStoreIDs']"/>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- Get the list of archive packages from Content Manager or /root/env/param[@name = 'm_archiveOptions'] into /root/archiveOptions
- ===============================================================================================
- -->
- <xts:block id="encodeArchiveOptions" processor="XSLT" type="exec" dependency="processArchiveOptions" mandatory="false" condition=".[/root/env/param[@name='m_class'] = 'importDeployment' and /root/env/param[@name='displayPass'] = 'false']">
- <xts:logicsheet path="logicsheets/deploymentlogic.xsl"/>
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/" xmlns:bus="http://developer.cognos.com/schemas/bibus/1/" xmlns:pf="http://developer.cognos.com/schemas/xts/pf" xmlns:dpl="http://developer.cognos.com/schemas/xts/logicsheets/deployment/" xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <pf:variables/>
- <pf:serialize-xml/>
- <xsl:template match="/">
- <xsl:if test="/root/archiveOptions">
- <xts:sequence>
- <xsl:variable name="serialized_options">
- <xsl:call-template name="serialize-xml">
- <xsl:with-param name="node-set" select="/root/archiveOptions"/>
- </xsl:call-template>
- </xsl:variable>
- <xts:delete select="/root/env/param[@name = 'm_archiveOptions']"/>
- <xts:append select="/root/env">
- <param name="m_archiveOptions">
- <xsl:value-of select="xtsext:cafaction( concat('sign_wrap_setpassportid_', $passport), xtsext:web64encode(string($serialized_options), true()))"/>
- </param>
- </xts:append>
- </xts:sequence>
- </xsl:if>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
-
- <!--
- ===============================================================================================
- Process state parameters
- ===============================================================================================
- -->
- <xts:block id="processPassedVars" processor="XSLT" type="exec" dependency="formlogic_init encodeArchiveOptions" mandatory="false" condition=".[/root/env/param[@name='displayPass'] = 'false']">
- <xts:logicsheet path="logicsheets/deploymentlogic.xsl"/>
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/" xmlns:bus="http://developer.cognos.com/schemas/bibus/1/" xmlns:pf="http://developer.cognos.com/schemas/xts/pf" xmlns:dpl="http://developer.cognos.com/schemas/xts/logicsheets/deployment/" xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <pf:variables/>
- <xsl:template match="/">
-
- <xsl:variable name="targetMorphlet" select="concat('/',key('env-param','m_targetMorphlet'))"/>
- <xsl:variable name="callerMorphlet" select="key('env-param','m_callerMorphlet')"/>
-
- <xts:sequence>
-
- <xsl:choose>
- <xsl:when test="/root/env/param[@name = 'm_button_pressed'] = 'cancel'">
- <xsl:for-each select="/root/env/param[starts-with(@name,'state_')]">
- <xsl:variable name="varName"><xsl:value-of select="substring-after((./@name),'state_')"/></xsl:variable>
- <xts:replace>
- <xsl:attribute name="select">
- <xsl:text>/root/env/param[@name='</xsl:text>
- <xsl:value-of select="$varName"/>
- <xsl:text>']</xsl:text>
- </xsl:attribute>
- <param name="{$varName}">
- <xsl:value-of select="."/>
- </param>
- </xts:replace>
- </xsl:for-each>
-
- <xts:replace select="/root/env/param[@name = 'm']">
- <param name="m">
- <xsl:value-of select="$callerMorphlet"/>
- </param>
- </xts:replace>
- </xsl:when>
- <xsl:otherwise>
- <xts:replace select="/root/env/param[@name = 'm']">
- <param name="m">
- <xsl:value-of select="concat($app,$targetMorphlet)"/>
- </param>
- </xts:replace>
- </xsl:otherwise>
- </xsl:choose>
-
- <!-- Remove state variables. -->
- <xts:delete select="/root/env/param[starts-with(@name,'state_')]"/>
-
- <!-- Remove the m_targetMorphlet -->
- <xts:delete select="/root/env/param[@name = 'm_targetMorphlet']"/>
-
- <!-- Remove the m_callerMorphlet -->
- <xts:delete select="/root/env/param[@name = 'm_callerMorphlet']"/>
-
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- main
- ===============================================================================================
- -->
- <xts:block id="main" type="exec" mode="output" mimeType="text/html" processor="XSLT" dependency="formlogic_init processPassedVars faultProcessor encodeArchiveOptions">
- <!-- portal specific information -->
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <!-- get the presentation theme -->
- <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
- <!-- apply the form logic -->
- <xts:logicsheet path="logicsheets/formlogic.xslt"/>
- <!-- Keeps the status line clean. -->
- <xts:logicsheet path="logicsheets/validation.xslt"/> <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/templates/" xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/" xmlns:pf="http://developer.cognos.com/schemas/xts/pf" xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/" xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/" xmlns:dc="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/confirm/1/" 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:xtsext="xalan://com.cognos.xts.ext.XTSExt" xmlns:x="x" exclude-result-prefixes="xsl pf df dc dp lyt cp cf x utml">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
- <!-- Get the portal common variables. -->
- <pf:variables/>
- <xsl:variable name="mname" select="'deployment_password.xts'"/>
- <xsl:variable name="back-url"/>
- <xsl:template match="/">
- <xsl:variable name="object-name" select="key('env-param','m_name')"/>
- <xsl:variable name="title" select="key('env-param','credential_title')"/>
- <xsl:variable name="browser-title">
- <xsl:choose>
- <xsl:when test="$title != ''">
- <xsl:value-of select="$title"/>
- </xsl:when>
- <xsl:when test="$object-name != ''">
- <xts:string id="IDS_PROP_SIGNON_CREDENTIALS_TITLE">
- <xts:param name="objectName">
- <xsl:value-of select="$object-name"/>
- </xts:param>
- </xts:string>
- </xsl:when>
- <xsl:otherwise>
- <xts:string id="IDS_PROP_SIGNON_CREDENTIALS_TITLE_NO_OBJECT"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <!-- Start the HTML -->
- <xsl:text disable-output-escaping='yes'><!DOCTYPE html></xsl:text><dp:page longTitle="$browser-title">
- <dp:meta>
- <!-- Standard meta tags -->
- <pf:meta/>
- </dp:meta>
- <dp:script>
- <pf:help context="HID_DEPLOY"/>
- <xsl:choose>
- <xsl:when test="/root/env/param[@name = 'displayPass'] = 'false'">
- <script language="JavaScript">
- function init()
- {
- if (document.pform.revisiting.value == "false")
- {
-
- <!-- pop or maintain -->
- if (document.pform.m_button_pressed && document.pform.m_button_pressed.value == 'cancel' && document.pform.m_operation_cancel && document.pform.m_operation_cancel.value != '')
- {
- document.pform.ps_nav_op.value = document.pform.m_operation_cancel.value;
- document.pform.m_operation_cancel.value = '';
- }
- else
- {
- <!-- drop or maintain -->
- if (document.pform.m_operation && document.pform.m_operation.value != '')
- {
- document.pform.ps_nav_op.value = document.pform.m_operation.value;
- document.pform.m_operation.value = '';
- }
- }
-
- <!-- Reset the m_button_pressed -->
- if (document.pform.m_button_pressed && document.pform.m_button_pressed.value != '')
- {
- document.pform.m_button_pressed.value='';
- }
-
- document.pform.revisiting.value = "true";
- <!-- Reset the displayPass -->
- document.pform.displayPass.value = '';
- document.pform.submit();
- }
-
- else
- {
- if (document.pform.direction.value == "forward")
- {
- document.pform.direction.value = "back";
- window.history.go(1);
- }
- else
- {
- document.pform.direction.value = "forward";
- window.history.go(-1);
- }
- }
- }
-
- </script>
- </xsl:when>
- <xsl:otherwise>
- <script language="JavaScript" src="{$webcontent}/{$app}/js/utilities.js"/>
- <script language="JavaScript">
- function clearPasswords()
- {
- var f = document.pform;
- f.m_signon_password.value = '';
- if (f.m_signon_confirm_password)
- {
- f.m_signon_confirm_password.value = '';
- }
- }
- var isFocusOnBox='false';
- function init()
- {
- <xsl:if test="/root/archiveOptions/copyFault/fault and /root/archiveOptions/copyFault/fault/*[local-name() = 'exception']/*[local-name() = 'exceptionDetail']/*[local-name() = 'exception']/errorCode != 'cmArchiveEncrypted'">
- alert('<xsl:for-each select="/root/archiveOptions/copyFault/fault/*[local-name() = 'exception']/*[local-name() = 'exceptionDetail']/*[local-name() = 'exception']/*[local-name() = 'message']"><xsl:value-of select="xtsext:javascriptencode(string(./messageString))"/><xsl:value-of select="' '"/></xsl:for-each>')
- </xsl:if>
- document.pform.m_signon_password.focus();
- setFocus('true');
- }
- function validate()
- {
- var f = document.pform;
- <xsl:if test="key('env-param','m_class') = 'exportDeployment'">
- if (document.pform.m_signon_password.value.length < 8)
- {
- alert("<xts:string id="IDS_DEPLOYMENT_PASSWORD_SIZE_LIMIT_WARNING" encode="javascript"/>");
- document.pform.m_signon_password.focus();
- document.pform.m_signon_password.select();
- return false;
- }
- </xsl:if>
- <xsl:if test="key('env-param','m_class') = 'importDeployment'">
- if (document.pform.m_signon_password.value.length < 8)
- {
- alert("<xts:string id="IDS_DEPLOYMENT_PASSWORD_WARNING" encode="javascript"/>");
- document.pform.m_signon_password.focus();
- document.pform.m_signon_password.select();
- return false;
- }
- </xsl:if>
- <xsl:if test="key('env-param','m_class') != 'importDeployment'">
- if (f.m_signon_password.value != f.m_signon_confirm_password.value)
- {
- alert("<xts:string id="IDS_ERR_0003_PASSWORD_VERIF_FAILED" encode="javascript"/>");
- document.pform.m_signon_password.focus();
-
- return false;
- }
- </xsl:if>
- return true;
- }
- function setFocus(bFocus)
- {
- isFocusOnBox=bFocus;
- }
-
- function handleKeyDown()
- {
- <xsl:if test="$browser='ie' ">
- keyPressed = event.keyCode;
- if (keyPressed == 13)
- {
- if (window.event.returnValue != false)
- {
- window.event.returnValue = false;
- return false;
- }
- if (window.event.returnValue == false)
- {
- window.event.cancelBubble = true;
- return false;
- }
- window.event.returnValue = false;
- return false;
- }
- </xsl:if>
- }
- </script>
- </xsl:otherwise>
- </xsl:choose>
- </dp:script>
- <xsl:choose>
- <xsl:when test="/root/env/param[@name = 'displayPass'] = 'false'">
- <utml:form name="pform" method="post" action="{$gateway}">
- <utml:input type="hidden" name="revisiting" utml:update="false">
- <utml:value>
- <xsl:value-of select="'false'"/>
- </utml:value>
- </utml:input>
- <utml:input type="hidden" name="direction" utml:update="false"/>
- <xsl:if test="/root/env/param[@name = 'm_button_pressed']">
- <utml:input type="hidden" name="m_button_pressed"/>
- </xsl:if>
-
- </utml:form>
- </xsl:when>
- <xsl:otherwise>
- <utml:form name="pform" method="post" action="{$gateway}">
- <dp:header>
- <dp:close>
- <utml:a utml:op="maintain" onClick="javascript:document.pform.m_signon_pwd_changed.value='0';document.pform.m_button_pressed.value='cancel'"><dp:closeMarker/></utml:a>
- </dp:close>
- <dp:title>
- <xsl:value-of select="$browser-title"/>
- </dp:title>
- </dp:header>
- <utml:input type="hidden" name="m_button_pressed"/>
- <utml:input type="hidden" name="m_signon_pwd_changed" utml:update="false" value="0"/>
- <lyt:layout style="1" border="no">
- <lyt:section>
- <dp:input>
- <dp:section1 id="lbl_signon_password">
- <xts:string id="IDS_PASSWORD"/>
- </dp:section1>
- <dp:section2>
- <utml:input type="password" size="53" name="m_signon_password" aria-labelledby="lbl_signon_password" utml:update="false" onchange="document.pform.m_signon_pwd_changed.value='1'" onfocus="this.select();setFocus('true')" onblur="setFocus('false')" onKeyDown="handleKeyDown()">
- <utml:value>
- <xsl:choose>
- <xsl:when test="key('env-param','m_class') = 'importDeployment' or key('env-param','m_class') = 'exportDeployment'">
- <xsl:if test="key('env-param','m_archiveEncryptPword')">
- <!-- There is no need to localize this, it's simply a dummy value used to
- make *** appear in the password field. -->
- <xsl:text>###PASSWORD###</xsl:text>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <xsl:if test="not(key('env-param','m_signon_pwd_specified')='0')">
- <!-- There is no need to localize this, it's simply a dummy value used to
- make *** appear in the password field. -->
- <xsl:text>###PASSWORD###</xsl:text>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
- </utml:value>
- </utml:input>
- <xsl:if test="$browser = 'moz' ">
- <script language="JavaScript">
- window.captureEvents(Event.KEYPRESS);
- function keyhandler(e)
- {
- var Key;
- Key = e.which;
- if (Key==13)
- {
- if (isFocusOnBox == 'true')
- return false;
- }
- }
- window.onkeypress = keyhandler;
- </script>
- </xsl:if>
- </dp:section2>
- </dp:input>
- <xsl:if test="key('env-param','m_class') != 'importDeployment'">
- <dp:input>
- <dp:section1 id="lbl_signon_confirm_password">
- <xts:string id="IDS_CONFIRM_PASSWORD"/>
- </dp:section1>
- <dp:section2>
- <utml:input type="password" size="53" name="m_signon_confirm_password" aria-labelledby="lbl_signon_confirm_password" utml:update="false" onfocus="this.select();">
- <utml:value>
- <xsl:choose>
- <xsl:when test="key('env-param','m_class') = 'exportDeployment'">
- <xsl:if test="key('env-param','m_archiveEncryptPword')">
- <xsl:text>###PASSWORD###</xsl:text>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <xsl:if test="not(key('env-param','m_signon_pwd_specified')='0')">
- <!-- There is no need to localize this, it's simply a dummy value used to make *** appear in the password field. -->
- <xsl:text>###PASSWORD###</xsl:text>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
- </utml:value>
- </utml:input>
- </dp:section2>
- </dp:input>
- </xsl:if>
- </lyt:section>
- </lyt:layout>
- <dp:footer>
- <df:button df:id="IDS_OK" utml:validate="true" df:style="maintain" onClick="javascript:document.pform.m_button_pressed.value='ok'">
- <df:target>
- <xsl:value-of select="concat($app, '/deployment_password.xts')"/>
- </df:target>
- </df:button>
- <df:button df:id="IDS_CANCEL" df:style="maintain" onClick="javascript:document.pform.m_signon_pwd_changed.value='0';document.pform.m_button_pressed.value='cancel'">
- <df:target>
- <xsl:value-of select="concat($app, '/deployment_password.xts')"/>
- </df:target>
- </df:button>
- </dp:footer>
- </utml:form>
- </xsl:otherwise>
- </xsl:choose>
- </dp:page>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- debug - display debug information
- ===============================================================================================
- -->
- <xts:block id="debug" dependency="main" condition=".[/root/session/param[@name='debug']='1']" type="exec" 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>
|