123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295 |
- <?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).
- -->
- <xts:morphlet version="1.0" xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/QSRVUITextPL.xml,messages/portal.xml,messages/portalRL.xml" requiredCapability="canUseQueryStudio, canUseQueryStudioAdvancedMode" nodelist="debug, http, env, command, system, session, user, actions, tabs, http, configProps, credential, cookies, setCookies, accountOptions, newSession, gatewayURI, cm:queryResponse, objectClass">
- <xts:block id="page" type="exec" mode="output" processor="XSLT" mimeType="text/html">
- <!-- get the debug logic sheet -->
- <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
- <!-- get the new theme stuff -->
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="qs/logicsheets/dialogs.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
- <!-- apply the form logic -->
- <xts:logicsheet path="logicsheets/formlogic.xslt"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
- xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
- 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:dbg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/debug/"
- xmlns:qsdlg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/qs/dialog/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- exclude-result-prefixes="xsl xts lyt pf dp df cp cf dbg qsdlg xtsext">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
- <!-- dbg:templates / -->
- <!-- Default variables (like skin) -->
- <qsdlg:variables/>
- <!-- add any theme variables -->
- <df:variables/>
- <pf:variables/>
- <xsl:variable name="mname" select="'filterCombine.xts'"/>
- <!-- start the output -->
- <xsl:template match="/root">
- <!--Get HTML output for the HEAD section -->
- <dp:page>
- <dp:script>
- <link rel="stylesheet" type="text/css" href="{$qsdlgskin}/qs/QSRVDialog.css" />
- <link rel="stylesheet" type="text/css" href="{$qsdlgskin}/qs/CRN.css" />
- <script type="text/javascript">
- <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/layout.js</xsl:attribute>
- <xsl:text/>//<xsl:text/>
- </script>
- <script type="text/javascript">
- <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/dialogs/filterDialog.js</xsl:attribute>
- <xsl:text/>//<xsl:text/>
- </script>
- <script type="text/javascript">
- <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/rv/cvConstants.js</xsl:attribute>
- <xsl:text/>//<xsl:text/>
- </script>
- <script type="text/javascript">
- <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/rv/common.js</xsl:attribute>
- <xsl:text/>//<xsl:text/>
- </script>
- <script type="text/javascript">
- <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/rv/cvui.js</xsl:attribute>
- <xsl:text/>//<xsl:text/>
- </script>
- <script type="text/javascript">
- <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/common/framework/notification/CObserver.js</xsl:attribute>
- <xsl:text/>//<xsl:text/>
- </script>
- <script type="text/javascript">
- <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/CFilterContextMenu.js</xsl:attribute>
- <xsl:text/>//<xsl:text/>
- </script>
- <script type="text/javascript">
- <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/classes/CDialogManager.js</xsl:attribute>
- <xsl:text/>//<xsl:text/>
- </script>
- <script type="text/javascript">
- <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/classes/CWindowManager.js</xsl:attribute>
- <xsl:text/>//<xsl:text/>
- </script>
- <script type="text/javascript"><!--
- var goDialogManager = new CDialogManager();
- var isComplexFilterDialog=true;
- var cf = getConfigFrame();
- var oCFilters = null;
- var oFilterViewObj = null;
- var gFContextMenu = null;
- var UI_HTMLSTRING = "";
- function execute(evt, bLeaveDialog) {
- if(goDialogManager.isSpaceOrEnterKeyEvent(evt))
- {
- filterCombine_execute(bLeaveDialog);
- }
- }
- function cancelDialog(evt) {
- if(goDialogManager.isSpaceOrEnterKeyEvent(evt))
- {
- filterCombine_cancelDialog();
- }
- }
- function applyChanges(evt) {
- if(goDialogManager.isSpaceOrEnterKeyEvent(evt))
- {
- filterCombine_applyChanges();
- }
- }
- function init()
- {
- filterCombine_init( <xsl:text/>
- <xsl:text/>"<xsl:value-of select="xtsext:javascriptencode(string(env/param[@name='m_tab']))"/>", <xsl:text/>
- <xsl:choose>
- <xsl:when test="env/param[@name='m_tab']='r'">cf.giFILTERVIEW_RAW</xsl:when>
- <xsl:otherwise>cf.giFILTERVIEW_SUMMARY</xsl:otherwise>
- </xsl:choose>);
- }
- function renderFilterView() { filterCombine_renderFilterView(); }
- function gf() { filterCombine_gf(); }
- function ugf() { filterCombine_ugf(); }
- function df() { filterCombine_df(); }
- function fNot(bNot) { filterCombine_fNot(bNot); }
- function dfa() { filterCombine_dfa(); }
- function afl() { filterCombine_afl(); }
- function cOp(sId, sOp) { filterCombine_cOp(sId, sOp); }
- function modifyFilter(sFID) { filterCombine_modifyFilter(sFID, "<xsl:value-of select="xtsext:javascriptencode(string(env/param[@name='m_tab']))"/>"); }
- function tab(sTab) { filterCombine_tab(sTab, "<xsl:value-of select="xtsext:javascriptencode(string($mname))"/>"); }
- //--></script>
- </dp:script>
- <form style="margin:0px" name="f" method="POST" onsubmit="execute();return false;">
- <table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%">
- <tr>
- <td width="100%" height="0%">
- <!-- dialog header -->
- <dp:header help="false">
- <!-- header titles -->
- <dp:title><xts:string id="FILTER_COMBINE_TITLE"/></dp:title>
- <!-- close link for the header -->
- <dp:close>
- <a href="javascript:this.cancelDialog()">
- <dp:closeMarker/>
- </a>
- </dp:close>
- <!-- description (hint text) -->
- <dp:description>
- <cp:tabset>
- <cp:select>
- <xsl:choose>
- <xsl:when test="env/param[@name='m_tab']='s'">
- <xsl:value-of select="env/param[@name='m_tab']"/>
- </xsl:when>
- <xsl:otherwise>r</xsl:otherwise>
- </xsl:choose>
- </cp:select>
- <cp:tab name="r" position="start">
- <a id="rTab" href="javascript:void tab('r');">
- <xsl:text/>
- <cp:label><xts:string id="FILTER_COMBINE_TAB_DETAIL"/></cp:label>
- <xsl:text/>
- </a>
- </cp:tab>
- <cp:tab name="s" position="end">
- <a href="javascript:void tab('s');">
- <xsl:text/>
- <cp:label><xts:string id="FILTER_COMBINE_TAB_SUMMARY"/></cp:label>
- <xsl:text/>
- </a>
- </cp:tab>
- </cp:tabset>
- <div style="padding-top:10px;">
- <xsl:choose>
- <xsl:when test="env/param[@name='m_tab']='s'">
- <xts:string id="FILTER_COMBINE_TAB_SUMMARY_DESC"/>
- </xsl:when>
- <xsl:otherwise>
- <xts:string id="FILTER_COMBINE_TAB_DETAIL_DESC"/>
- </xsl:otherwise>
- </xsl:choose>
- </div>
- </dp:description>
- </dp:header>
- </td>
- </tr>
- <tr>
- <td width="100%" height="100%">
- <!-- layout -->
- <lyt:layout style="1" border="no">
- <lyt:section>
- <div id="filterList" class="cctable" style="height:130px; overflow:auto;"></div>
- <table width="100%" cellspacing="0" cellpadding="0" border="0">
- <tbody>
- <tr>
- <td width="100%"> </td>
- <td class="formText" nowrap="nowrap" style="padding-left:10px;">
- <xsl:text/>
- <a id="gfLink" href="javascript:void(0);" onclick="gf();" onmouseout="window.status='';return true;" onmouseover="window.status=''; return true;">
- <xsl:text/><xts:string id="FILTER_COMBINE_GROUP"/><xsl:text/>
- </a>
- <xsl:text/>
- </td>
- <td class="formText" nowrap="nowrap" style="padding-left:10px;">
- <xsl:text/>
- <a id="ugfLink" href="javascript:void(0);" onclick="ugf();" onmouseout="window.status='';return true;" onmouseover="window.status=''; return true;">
- <xsl:text/><xts:string id="FILTER_COMBINE_UNGROUP"/><xsl:text/>
- </a>
- <xsl:text/>
- </td>
- <td class="formText" nowrap="nowrap" style="padding-left:10px;">
- <xsl:text/>
- <a id="addNOT" href="javascript:void(0);" onclick="fNot(true);" onmouseout="window.status='';return true;" onmouseover="window.status=''; return true;">
- <xsl:text/><xts:string id="FILTER_COMBINE_ADD_NOT"/><xsl:text/>
- </a>
- <xsl:text/>
- </td>
- <td class="formText" nowrap="nowrap" style="padding-left:10px;">
- <xsl:text/>
- <a id="removeNOT" href="javascript:void(0);" onclick="fNot(false);" onmouseout="window.status='';return true;" onmouseover="window.status=''; return true;">
- <xsl:text/><xts:string id="FILTER_COMBINE_REMOVE_NOT"/><xsl:text/>
- </a>
- <xsl:text/>
- </td>
- <td class="formText" nowrap="nowrap" style="padding-left:10px;">
- <xsl:text/>
- <a id="delLink" href="javascript:void(0);" onclick="df();" onmouseout="window.status='';return true;" onmouseover="window.status=''; return true;">
- <xsl:text/><xts:string id="FILTER_COMBINE_DELETE"/><xsl:text/>
- </a>
- <xsl:text/>
- </td>
- <td class="formText" nowrap="nowrap" style="padding-left:10px;">
- <xsl:text/>
- <a id="delAllLink" href="javascript:void(0);" onclick="dfa();" onmouseout="window.status='';return true;" onmouseover="window.status=''; return true;">
- <xsl:text/><xts:string id="FILTER_COMBINE_DELETEALL"/><xsl:text/>
- </a>
- <xsl:text/>
- </td>
- <td class="formText" nowrap="nowrap" style="padding-left:10px;">
- <xsl:text/>
- <a id="aflLink" href="javascript:void afl();" onmouseout="window.status='';return true;" onmouseover="window.status=''; return true;">
- <xsl:text/><xts:string id="FILTER_COMBINE_ADD_LINE"/><xsl:text/>
- </a>
- <xsl:text/>
- </td>
- </tr>
- </tbody>
- </table>
- </lyt:section>
- </lyt:layout>
- </td>
- </tr>
- <tr>
- <td width="100%" height="0%">
- <dp:footer>
- <df:button df:id="IDS_OK" df:style="href" onkeypress="javascript:execute(event)" df:href="javascript:execute(null)" df:defaultKey="active"/>
- <df:button df:id="IDS_CANCEL" df:style="href" onkeypress="javascript:cancelDialog(event)" df:href="javascript:cancelDialog(null)"/>
- <df:button df:id="IDS_APPLY" df:style="href" onkeypress="javascript:applyChanges(event)" df:href="javascript:applyChanges(null)"/>
- </dp:footer>
- </td>
- </tr>
- <!-- dbg:dumpxml select="/"/ -->
- </table>
- </form>
- </dp:page>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- </xts:morphlet>
|