123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: ps
- (C) Copyright IBM Corp. 2005, 2014
- 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 xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/portal.xml, messages/portalRL.xml" requiredCapability="canUseServerAdministrationTool">
- <!--
- ===============================================================================================
- If external backURLs are not allowed then verify the backURL is in the crn domain and replace it if it isn't
- ===============================================================================================
- -->
- <xts:block id="secureBackURL" path="portal/secureBackURL.xml" processor="XSLT" type="exec" condition=".[/root/system/param[@name = 'allowExternalURLs'] = 'false']" mandatory="false"/>
- <!--
- ===============================================================================================
- Saves cut/copied entries in a user session - Only executes after a cut or a copy operation.
- ===============================================================================================
- -->
- <xts:block id="groupEdit" path="portal/set_clipboard.xml" processor="XSLT" type="exec" mandatory="false" condition=".[/root/env/param[@name='editentries']]">
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- </xts:block>
- <!-- ======================================================== -->
- <!-- Session Management -->
- <!-- ======================================================== -->
- <!-- Reads session-sensitive info from CM -->
- <xts:block processor="XSLT" type="exec" mandatory="false"
- id="refreshSession"
- path="portal/cc/read_session.xml"
- condition=".[
- string(/root/cookies/cookie[@name = 'cc_session']) = ''
- or /root/env/param[@name='m_reload']
- or /root/env/param[@name='m_root'] ]">
- <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- </xts:block>
- <!-- Update the <session> element for this request. -->
- <xts:block id="buildSession" path="portal/session.xml" dependency="refreshSession secureBackURL" processor="XSLT" type="exec"
- condition=".[
- /root/newSession
- or /root/env/param[@name='ui']
- or /root/env/param[@name='d']
- or /root/env/param[starts-with(@name,'m_s_')]
- or /root/env/param[@name = 'resetSort'] ]"
- mandatory="false"/>
- <!-- Save changes to the state info in a cookie -->
- <xts:block mode="interpret" processor="XSLT" type="exec"
- id="setSession"
- path="portal/set_session.xml"
- dependency="buildSession groupEdit getContent"
- condition=".[/root/updateSession]"
- mandatory="false"/>
- <!--
- ======================================
- Generate the search expression
- ======================================
- -->
- <xts:block id="generateSearchExp" processor="XSLT" type="exec" dependency="buildSession" condition=".[/root/env/param[@name='search']]" mandatory="false">
- <xts:logicsheet path="logicsheets/searchlogic.xslt"/>
- <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:search="http://developer.cognos.com/schemas/xts/logicsheets/xslt/searchlogic/"
- xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- exclude-result-prefixes="search cml xtsext">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" omit-xml-declaration="yes" indent="no"/>
- <cml:object-predicates/>
- <xsl:template match="root">
- <xsl:variable name="path">
- <xsl:choose>
- <xsl:when test="/root/env/param[@name = 'm_path'] and /root/env/param[@name = 'm_path'] != ''">
- <xsl:value-of select="/root/env/param[@name = 'm_path']"/>
- </xsl:when>
- <xsl:otherwise>/configuration</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xts:sequence>
- <search:gen-search-exp defaultRoot="configuration">
- <search:defaultTypes>
- <search:defaultType>configurationFolder</search:defaultType>
- <search:defaultType>dispatcher</search:defaultType>
- <search:defaultType>service</search:defaultType>
- </search:defaultTypes>
- </search:gen-search-exp>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
-
- <!--
- ===============================================================================================
- Main Content Request
- ===============================================================================================
- -->
- <xts:block id="getContent" processor="XSLT" type="exec" dependency="generateSearchExp">
- <xts:logicsheet path="logicsheets/tenantlogic.xsl"/>
- <xts:logicsheet path="logicsheets/cm-logic.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:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- xmlns:bus="http://developer.cognos.com/schemas/bibus/1/"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- exclude-result-prefixes="xsl send cm bus pf cml xtsext">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" omit-xml-declaration="yes"/>
- <pf:variables/>
- <cml:object-predicates/>
- <xsl:template match="root">
- <xsl:variable name="m_sort" select="/root/session/param[@name='s_conf']"/>
- <xsl:variable name="m_path" select="/root/env/param[@name = 'm_path']"/>
- <xsl:variable name="path">
- <xsl:choose>
- <xsl:when test="$m_path != ''">
- <xsl:value-of select="$m_path"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="'/configuration'"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="class_filter">
- <xsl:text>[@objectClass="dispatcher" or @objectClass="configurationFolder" or </xsl:text>
- <xsl:for-each select="/root/system/param[@name='ui_objects']/object[@service='T'][position()!=last()]">
- <xsl:value-of select="concat('@objectClass="', @class, '" or ')"/>
- </xsl:for-each>
- <xsl:text>@objectClass="</xsl:text>
- <xsl:value-of select="/root/system/param[@name='ui_objects']/object[@service='T'][position()=last()]/@class"/>
- <xsl:text>"]</xsl:text>
- </xsl:variable>
- <xts:sequence>
- <xts:append>
- <path>
- <sort>
- <xsl:value-of select="$m_sort"/>
- </sort>
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <send:request provider="cm">
- <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
- <cm:query>
- <cm:search>
- <xsl:value-of select="$path"/>
- </cm:search>
- <cm:properties>
- <cm:property name="defaultName"/>
- <cm:property name="ancestors"/>
- <cm:property name="permissions"/>
- <cm:property name="searchPath"/>
- <cm:property name="storeID"/>
- </cm:properties>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </path>
- </xts:append>
- <xts:append>
- <configDefaultName>
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <send:request provider="cm">
- <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
- <cm:query>
- <cm:search>/configuration[permission('read')]</cm:search>
- <cm:properties>
- <cm:property name="defaultName"/>
- <cm:property name="searchPath"/>
- <cm:property name="objectClass"/>
- <cm:property name="permissions"/>
- <cm:property name="tenantID"/>
- </cm:properties>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </configDefaultName>
- </xts:append>
- <!-- Don't need to query CM if we are in search dialog without running a search query. -->
- <xsl:if test="/root/search/expression or not(/root/search)">
- <xts:append>
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <send:request provider="cm">
- <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
- <cm:query>
- <cm:search>
- <xsl:choose>
- <xsl:when test="/root/search/expression">
- <xsl:value-of select="/root/search/expression"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$path"/>/*<xsl:value-of select="concat($class_filter, $visibility-predicate)"/>
- </xsl:otherwise>
- </xsl:choose>
- </cm:search>
- <cm:properties>
- <cml:prop-base/>
- <cm:property name="objectClass"/>
- <cm:property name="hasChildren"/>
- <cm:property name="startAsActive"/>
- <cm:property name="runningState"/>
- <!-- If we are doing search then request ancestors too -->
- <xsl:if test="/root/search/expression">
- <cm:property name="ancestors"/>
- </xsl:if>
- <cm:property name="permissions"/>
- </cm:properties>
- <cm:sortBy>
- <cm:sort name="usage" order="ascending"/>
- <xsl:choose>
- <xsl:when test="$m_sort = 'da'">
- <cm:sort name="modificationTime" order="ascending"/>
- </xsl:when>
- <xsl:when test="$m_sort = 'dd'">
- <cm:sort name="modificationTime" order="descending"/>
- </xsl:when>
- <xsl:when test="$m_sort = 'nd'">
- <cm:sort name="defaultName" order="descending"/>
- </xsl:when>
- <xsl:otherwise>
- <cm:sort name="defaultName" order="ascending"/>
- </xsl:otherwise>
- </xsl:choose>
- </cm:sortBy>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </xts:append>
- </xsl:if>
- </xts:sequence>
- <xts:sequence>
- <xts:delete select="/root/env/param[@name='pagerto']"/>
- <xts:delete select="/root/env/param[@name='pagerfrom']"/>
- <xts:delete select="/root/env/param[@name='pagerto_d']"/>
- <xts:delete select="/root/env/param[@name='pagerfrom_d']"/>
- <xts:delete select="/root/env/param[@name='m_path']"/>
- <xts:append select="/root/env">
- <param name="m_path">
- <xsl:value-of select="$path"/>
- </param>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
-
- <!-- Merge the tenantNames into the response -->
- <xts:block processor="XSLT" type="exec" mandatory="false"
- path="/portal/tenancy/mergeTenantNames.xslt"
- id="mergeTenantNames"
- dependency="getContent"
- condition=".[/root/session/param[@name='e_showTenantInfo']='true']">
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- </xts:block>
- <!--
- ===============================================================================================
- Load class names map
- ===============================================================================================
- -->
- <xts:block id="getClassNames" type="exec" mode="input" processor="XML" path="/portal/uiExtensions.xml">
- <xts:logicsheet path="/logicsheets/uiobjects/uiobjects_names.xslt"/>
- </xts:block>
-
- <!--
- ===============================================================================================
- Render the page in HTML
- ===============================================================================================
- -->
- <xts:block id="final" dependency="mergeTenantNames getClassNames" mode="output" processor="XSLT" type="exec" mimeType="text/html">
- <xts:logicsheet path="logicsheets/toollogic.xslt"/>
- <!-- Cognos Central main behaviour logic -->
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/main/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/main/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/main/search.xsl"/>
- <!-- Cognos Central controls logic -->
- <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
- <!-- Generic logicsheets -->
- <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
- <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:tool="http://developer.cognos.com/schemas/xts/logicsheets/xslt/toollogic/" xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/" xmlns:mt="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mt" xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/" xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/" 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:smt="http://developer.cognos.com/schemas/xts/admin/iServerManagement/1/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" exclude-result-prefixes="tool cm mt lyt dp cf cp smt xtsext">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
- <!-- current file name -->
- <xsl:variable name="mname" select="'legacy_tools/tools_service_config.xts'"/>
- <cp:flyoutControl/>
- <!-- start the output -->
- <xsl:template match="/root">
- <xsl:variable name="tab"><xts:string id="IDS_SERVICE_CONFIG"/></xsl:variable>
- <xsl:variable name="toolName"><xts:string id="IDS_TOOLS_SERVER_ADMINISTRATION"/></xsl:variable>
- <xsl:variable name="userCanNotTraverse" select="not(contains(/root/path/cm:queryResponse/*/cm:permissions, 'traverse'))"/>
- <xsl:variable name="userCanNotWrite" select="not(contains(/root/path/cm:queryResponse/*/cm:permissions, 'write'))"/>
- <tool:page formName="frmEntryAdmin" stateParams="m_path m_section m_pagerfrom m_pagerto" helpid="HID_SERVERS_CONFIGURE" hideHeaders="true">
- <tool:name>
- <xts:string id="IDS_TOOLS_TITLE">
- <xts:param name="toolTab"><xsl:value-of select="$tab"/></xts:param>
- <xts:param name="toolName"><xsl:value-of select="$toolName"/></xts:param>
- </xts:string>
- </tool:name>
- <tool:title><xsl:value-of select="$toolName"/></tool:title>
- <tool:search toolBar="true" type="config">
- <mt:stypes>
- <mt:stype name="dispatcher">
- <xts:string id="IDS_OBJ_DISPATCHER"/>
- </mt:stype>
- <mt:stype name="configurationFolder">
- <xts:string id="IDS_OBJ_CONFIGURATIONFOLDER"/>
- </mt:stype>
- <mt:stype name="service">
- <xts:string id="IDS_SERVICE"/>
- </mt:stype>
- </mt:stypes>
- <mt:scopes>
- <mt:scope>fb</mt:scope>
- <mt:scope>fo</mt:scope>
- <mt:scope>any</mt:scope>
- </mt:scopes>
- <mt:close-params>
- <param>backURL</param>
- <param>tool_tab</param>
- <param>m_path</param>
- <param>m_section</param>
- </mt:close-params>
- </tool:search>
- <tool:pathSearch>
- <cf:do-the-path-link>
- <cf:param name="familytree">/root/path/cm:queryResponse/child::node()/cm:ancestors</cf:param>
- <cf:param name="familymember">/root/path/cm:queryResponse/child::node()/cm:defaultName</cf:param>
- <cf:param name="lastIsLink">true</cf:param>
- <cf:param name="anchorpath">
- <xsl:choose>
- <xsl:when test="cm:title">
- <a>
- <xsl:attribute name="href"><xsl:value-of select="$gateway"/>?b_action=xts.run&m=<xsl:value-of select="key('env-param','m')"/>&m_path=<xsl:value-of select="xtsext:protect(xtsext:urlencode(cm:searchPath),'url','searchPath','getdata')"/><xsl:text>&tool_tab=c</xsl:text><xsl:if test="key('env-param', 'backURL')"><xsl:text>&backURL=</xsl:text><xsl:value-of select="xtsext:protect(xtsext:urlencode( string( key( 'env-param', 'backURL' ) ) ),'url','url','getdata')"/></xsl:if></xsl:attribute>
- <xsl:value-of select="cm:title"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <a>
- <xsl:attribute name="href"><xsl:value-of select="$gateway"/>?b_action=xts.run&m=<xsl:value-of select="key('env-param','m')"/>&m_path=<xsl:value-of select="xtsext:protect(xtsext:urlencode(/root/path/cm:queryResponse/child::node()/cm:searchPath),'url','searchPath','getdata')"/><xsl:text>&tool_tab=c</xsl:text><xsl:if test="key('env-param', 'backURL')"><xsl:text>&backURL=</xsl:text><xsl:value-of select="xtsext:protect(xtsext:urlencode( string( key( 'env-param', 'backURL' ) ) ),'url','url','getdata')"/></xsl:if></xsl:attribute>
- <xsl:value-of select="/root/path/cm:queryResponse/child::node()/cm:defaultName"/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </cf:param>
- </cf:do-the-path-link>
- </tool:pathSearch>
- <tool:path>
- <cf:do-the-path-link>
- <cf:param name="familytree">/root/path/cm:queryResponse/child::node()/cm:ancestors</cf:param>
- <cf:param name="familymember">/root/path/cm:queryResponse/child::node()/cm:defaultName</cf:param>
- <cf:param name="anchorpath">
- <a>
- <xsl:attribute name="href"><xsl:value-of select="concat($gateway, '?b_action=xts.run')"/><xsl:value-of select="concat('&m=', key('env-param', 'm'))"/><xsl:value-of select="concat('&m_path=', xtsext:protect(xtsext:urlencode(string(cm:searchPath)),'url','searchPath','getdata'))"/><xsl:value-of select="concat('&tool_tab=', $tool-tab)"/><xsl:if test="key('env-param', 'backURL')"><xsl:value-of select="concat('&backURL=', xtsext:protect(xtsext:urlencode(string(key('env-param', 'backURL'))),'url','url','getdata'))"/></xsl:if></xsl:attribute>
- <xsl:value-of select="cm:title"/>
- </a>
- </cf:param>
- </cf:do-the-path-link>
- </tool:path>
- <tool:tabs tabset-name="server">c</tool:tabs>
- <tool:actions>
- <mt:toolbar cogadmin="true">
- <xsl:if test="$m_class='configuration' or $m_class='configurationFolder'">
- <mt:tool-group cogadmin="true">
- <xsl:choose>
- <xsl:when test="$userCanNotTraverse or $userCanNotWrite">
- <mt:tool cogadmin="true" name="new" disable="true" new-class="configurationFolder"/>
- </xsl:when>
- <xsl:otherwise>
- <mt:tool cogadmin="true" name="new" new-class="configurationFolder"/>
- </xsl:otherwise>
- </xsl:choose>
- </mt:tool-group>
- </xsl:if>
- <xsl:if test="$m_class != 'dispatcher'">
- <mt:tool-group cogadmin="true">
- <mt:tool cogadmin="true" name="cut"/>
- <mt:tool cogadmin="true" name="paste" type="config" mode="tools"/>
- <mt:tool cogadmin="true" name="delete" type="config" mode="tools"/>
- </mt:tool-group>
- </xsl:if>
- <mt:tool-group cogadmin="true" lastgroup="true">
- <mt:tool cogadmin="true" name="parent_properties">
- <tool-name>configuration_properties</tool-name>
- <request-path>/root/path/cm:queryResponse/*</request-path>
- </mt:tool>
- <xsl:if test="not($userCanNotWrite)">
- <mt:tool cogadmin="true" name="refresh_connections">
- <request-path>/root/path/cm:queryResponse/*</request-path>
- </mt:tool>
- </xsl:if>
- <xsl:if test="/root/path/cm:queryResponse/*/cm:searchPath = '/configuration'">
- <xsl:if test="$isAdminUser">
- <mt:tool cogadmin="true" name="routingRules"/>
- </xsl:if>
- <mt:tool cogadmin="true" name="file_system_locations"/>
- <mt:tool cogadmin="true" name="page_sizes"/>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="$userCanNotTraverse">
- <mt:tool cogadmin="true" name="search" disable="true"/>
- </xsl:when>
- <xsl:otherwise>
- <mt:tool cogadmin="true" name="search"/>
- </xsl:otherwise>
- </xsl:choose>
- </mt:tool-group>
- </mt:toolbar>
- </tool:actions>
- <xsl:if test="$userCanNotTraverse">
- <mt:objectNoneFound id="IDS_NO_TRAVERSE_CONTAINER"/>
- </xsl:if>
- <xsl:if test="not($userCanNotTraverse)">
- <tool:contents>
- <tool:browser type="config">
- <tool:containers>dispatcher configurationFolder</tool:containers>
- <tool:selectables><xsl:if test="not(/root/search/expression)">dispatcher</xsl:if> configurationFolder</tool:selectables>
- <tool:columnHeaders session-name="s_conf">
- <cp:columnHeader width="20"/>
- <cp:columnHeader width="100%" sort="n">
- <cp:sortHref>
- <xsl:value-of select="$back-url"/>&m_s_conf=<xsl:text/>
- <xsl:choose>
- <xsl:when test="key('session-param', 's_conf') = 'na' ">nd</xsl:when>
- <xsl:when test="key('session-param', 's_conf') = 'nd' "/>
- <xsl:otherwise>na</xsl:otherwise>
- </xsl:choose>
- <xsl:text>&tool_tab=c</xsl:text>
- </cp:sortHref>
- <xts:string id="IDS_NAME"/>
- </cp:columnHeader>
- <cp:columnHeader sort="d">
- <cp:sortHref>
- <xsl:value-of select="$back-url"/>&m_s_conf=<xsl:text/>
- <xsl:choose>
- <xsl:when test="key('session-param', 's_conf') = 'da' ">dd</xsl:when>
- <xsl:when test="key('session-param', 's_conf') = 'dd' "/>
- <xsl:otherwise>da</xsl:otherwise>
- </xsl:choose>
- <xsl:text>&tool_tab=c</xsl:text>
- </cp:sortHref>
- <xts:string id="IDS_MODIFIED"/>
- </cp:columnHeader>
- </tool:columnHeaders>
- <tool:columnContents>
- <cp:columnContent scope="row">
- <xsl:choose>
- <xsl:when test="$m_class != 'dispatcher'">
- <xsl:choose>
- <xsl:when test="contains(concat(' ', cm:permissions, ' '), ' traverse ')">
- <a>
- <xsl:attribute name="href"><xsl:call-template name="gen-url"/><xsl:text>&tool_tab=c</xsl:text></xsl:attribute>
- <xsl:value-of select="cm:defaultName"/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="href"><xsl:call-template name="gen-url"/><xsl:text>&tool_tab=c</xsl:text></xsl:attribute>
- <xsl:value-of select="cm:defaultName"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="cm:defaultName"/>
- </xsl:otherwise>
- </xsl:choose>
- <!-- Render the disabled icon if this entry is disabled -->
- <xsl:if test="cm:disabled = 'true'">
- <img height="16" width="16" hspace="4" align="absmiddle" src="{$image_root}state_disabled.gif">
- <xsl:attribute name="alt"><xts:string id="IDS_DISABLED"/></xsl:attribute>
- </img>
- </xsl:if>
- <xsl:text>  </xsl:text>
- </cp:columnContent>
- <cp:columnContent>
- <xsl:value-of select="xtsext:formatDateFromUTC( string( cm:modificationTime ), number( '2' ), number( '3' ), string( $timeZone ), string( $contentLocale ) )"/>
- <xsl:text>  </xsl:text>
- </cp:columnContent>
- </tool:columnContents>
- <tool:columnFooters session-name="s_dir">
- <cp:columnFooter width="100%" colspan="11" timezone="string(/root/user/param[@name='timeZoneID'])">
- <!-- display the current timestamp -->
- <xsl:variable name="time_now" select="xtsext:getCurrentDateTime(string(/root/user/param[@name='timeZoneID']))"/>
- <xts:string id="IDS_LAST_UPDATED">
- <xts:param name="time">
- <xsl:value-of select="xtsext:formatDateFromUTC(string($time_now), number('2'), number('3'), '', string($contentLocale))"/>
- </xts:param>
- </xts:string>
- </cp:columnFooter>
- </tool:columnFooters>
- <tool:row-actions>
- <tool:action name="supportPropertiesAction"/>
- <tool:action name="supportAllActionsAction"/>
- </tool:row-actions>
- </tool:browser>
- </tool:contents>
- </xsl:if>
- <!-- for action "stop immediatelyl" -->
- <input type="hidden" name="m_smt_imm" value=""/>
- <!-- for the refresh connections action -->
- <input type="hidden" name="parentSearchPath" value=""/>
- </tool:page>
- </xsl:template>
- <!--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-->
- <xsl:template match="text()"/>
- <!--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-->
- <cp:tabControl/>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- debug - display debug information
- ===============================================================================================
- -->
- <xts:block id="debug" dependency="final" condition=".[/root/env/param[@name='d'] = '1' or /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>
|