123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466 |
- <?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 resolverBase="prompting" version="1.0" xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/QSRVUITextPL.xml,messages/portal.xml,messages/portalRL.xml" requiredCapability="canUseQueryStudio">
- <xts:block id="format" type="exec" mode="output" processor="XSLT" mimeType="text/html" dependency="getAdvancedServerSettings">
- <!-- 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"/>
- <!-- Default variables (like skin) and prompt variables -->
- <qsdlg:variables/>
- <qsdlg:promptVariables/>
- <!-- Prompt Control XSL include -->
- <xsl:include href="p_include.xsl"/>
- <!-- add any theme variables -->
- <df:variables/>
- <pf:variables/>
- <!-- start the output -->
- <xsl:template match="/root">
- <dp:page>
- <dp:script>
- <xsl:call-template name="getPromptCommonIncludes"/>
- <xsl:call-template name="gettextBoxIncludes">
- <xsl:with-param name="promptLocale" select="$promptLocale"/>
- <xsl:with-param name="promptContentLocale" select="$contentLocale"/>
- </xsl:call-template>
- <link href="{$qsdlgskin}/qs/QSRVDialog.css" type="text/css" rel="stylesheet"/>
- <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/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">
- <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/dialogs/customizeGroupsDialog.js</xsl:attribute>
- <xsl:text/>//<xsl:text/>
- </script>
- <script type="text/javascript"><!--
- var gsCustomGroups = "<xsl:value-of select="xtsext:javascriptencode(string(/root/configurationVars/configuration/property[@name='RSVP.QS.FORCE.CUSTOM.GROUPS.VARCHAR']))"/>";
- var sDialogSkinPath = "<xsl:value-of select="xtsext:javascriptencode(string($qsdlgskin))"/>";
- var sCalcName = "<xts:string id="CUSTOMIZE_VALUES_NEW_COLUMN_LABEL" encode="javascript"/>";
- var sValuesRangeName = "<xts:string id="CUSTOMIZE_VALUES_RANGE_NAME" encode="javascript"/>";
- var goDialogManager = new CDialogManager();
- var WO1076_flag = true;
- var customGroupValues = new Array();
- var customGroupSelectedIndex = -1;
- var customGroupNames = new Array();
- var allAvailableValues = new Array();
- var cf = getConfigFrame();
- var MQge = null;
- var advClosedSize = 470;
- var advOpenSize = 526;
- var dataType = 62;
- var loadingTimer = 0;
- //--></script>
- <script type="text/javascript">
- <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/dialogs/executeButton.js</xsl:attribute>
- <xsl:text/>//<xsl:text/>
- </script>
- </dp:script>
- <form style="margin:0px" name="f" method="POST" onsubmit="return false;">
- <table border="0" cellspacing="0" cellpadding="0" height="100%" width="100%">
- <tr>
- <td width="100%" height="0%">
- <!-- dialog header -->
- <dp:header help="false">
- <!-- header titles -->
- <dp:title>
- <xts:string id="CUSTOMIZE_VALUES_TITLE"/>
- </dp:title>
- <!-- close link for the header -->
- <dp:close>
- <a href="javascript:getConfigFrame().hideDialogFrame()">
- <dp:closeMarker/>
- </a>
- </dp:close>
- <!-- description (hint text) -->
- <dp:description>
- <xts:string id="CUSTOMIZE_VALUES_DESCRIPTION"/>
- </dp:description>
- </dp:header>
- </td>
- </tr>
- <tr>
- <td width="100%" height="100%" valign="top">
- <!-- layout -->
- <lyt:layout style="1" border="no">
- <lyt:section>
- <table>
- <tr>
- <td>
- <img src="{$qsdlgskin}/prompting/images/icon_required.gif" border="0" height="10" width="10"/>
- </td>
- <td class="dialogHintText">
- <xts:string id="CUSTOMIZE_VALUES_REQUIRED_FIELD"/>
- </td>
- </tr>
- <tr>
- <td>
- <img src="{$qsdlgskin}/prompting/images/error_timed_on.gif" border="0" height="10" width="10"/>
- </td>
- <td class="dialogHintText">
- <xts:string id="CUSTOMIZE_VALUES_NOTHING_SELECTED"/>
- </td>
- </tr>
- </table>
- <dp:input>
- <dp:section1>
- <xts:string id="CUSTOMIZE_VALUES_TYPE"/>
- </dp:section1>
- <dp:section2>
- <select name="customizationType" onChange="javascript:setTimeout(customTypeChange, 10);" style="width:260px;">
- <option value="0" selected="true">
- <xts:string id="CUSTOMIZE_VALUES_OPTION_INDIVIDUAL_GROUPS"/>
- </option>
- <option value="1">
- <xts:string id="CUSTOMIZE_VALUES_OPTION_RANGES"/>
- </option>
- </select>
- </dp:section2>
- </dp:input>
- </lyt:section>
- <lyt:section>
- <TABLE cellpadding="0" cellspacing="0" border="0" width="100%">
- <TR>
- <td width="31%">
- <table width="100%">
- <tr>
- <TD width="90%">
- <table border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td class="formLabel">
- <xts:string id="CUSTOMIZE_GROUP_NAME_OF_GROUP"/>
- </td>
- </tr>
- <tr>
- <td>
- <xsl:call-template name="getTextBox">
- <xsl:with-param name="promptLocale" select="$promptLocale"/>
- <xsl:with-param name="promptFormName" select="$promptFormName"/>
- <xsl:with-param name="promptRequired" select="'true'"/>
- <xsl:with-param name="promptId" select="'group_name'"/>
- <xsl:with-param name="promptHideText" select="'false'"/>
- <xsl:with-param name="promptMultiLine" select="'false'"/>
- <xsl:with-param name="promptParameter" select="'parameterValue'"/>
- <xsl:with-param name="promptSubmitType" select="'NO_SUBMIT'"/>
- </xsl:call-template>
- </td>
- </tr>
- </table>
- </TD>
- <TD align="center" width="10%">
- <TABLE border="0" cellpadding="2" cellspacing="0">
- <tr>
- <td>
- <IMG src="{$qsdlgskin}/prompting/images/spacer.gif" height="7" width="5"/>
- </td>
- </tr>
- <tr>
- <td align="center" valign="middle">
- <table cellpadding="0" cellspacing="0" border="0" onClick="addGroup()">
- <tr>
- <td id="addSelectedButton" align="center" valign="top" class="clsDialogButton" onmouseover="document.getElementById('addSelectedButton').className='clsDialogButtonOver';window.status='';return true;" onmouseout="document.getElementById('addSelectedButton').className='clsDialogButton';window.status='';return true;">
- <IMG border="0" height="16" width="16" align="top">
- <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/images/arrow_down.gif</xsl:attribute>
- <xsl:attribute name="title"><xts:string id="CUSTOMIZE_GROUP_ADD_GROUP_TIP"/></xsl:attribute>
- </IMG>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </TABLE>
- </TD>
- </tr>
- </table>
- </td>
- <td colspan="3"/>
- </TR>
- <TR>
- <TD valign="top" width="31%">
- <table border="0" cellpadding="0" cellspacing="0" width="100%">
- <tr>
- <td class="formLabel">
- <xts:string id="CUSTOMIZE_GROUP_CUSTOM_GROUPS"/>
- </td>
- </tr>
- <tr>
- <td width="100%">
- <select id="group_names" name="group_names" size="8" style="width:100%" onChange="javascript:customGroupItemSelected();"/>
- </td>
- </tr>
- <TR>
- <TD align="right" nowrap="nowrap">
- <A href="javascript:deleteCustomGroup()" class="clsLink"><xts:string id="CUSTOMIZE_VALUES_DELETE"/></A>
- <xsl:text> </xsl:text>
- </TD>
- </TR>
- </table>
- </TD>
- <TD valign="top" width="31%">
- <TABLE border="0" cellspacing="0" cellpadding="0" width="100%" style="padding-left:5px">
- <tr>
- <TD class="formLabel">
- <xts:string id="CUSTOMIZE_GROUP_CUSTOM_GROUP_VALUES"/>
- </TD>
- </tr>
- <TR>
- <TD width="100%">
- <select id="group_values" name="group_values" multiple="true" size="8" style="width:100%" onDblClick="removeValue()"/>
- </TD>
- </TR>
- <TR>
- <TD align="right" nowrap="nowrap">
- <A href="javascript:selectAll('group_values')" class="clsLink"><xts:string id="DIALOG_SELECT_ALL"/></A>
- <xsl:text> </xsl:text>
- <A href="javascript:deselectAll('group_values')" class="clsLink"><xts:string id="DIALOG_DESELECT_ALL"/></A>
- </TD>
- </TR>
- </TABLE>
- </TD>
- <TD align="center" valign="top" width="7%" height="100%">
- <TABLE border="0" cellpadding="0" cellspacing="0" height="50%">
- <tr>
- <td align="center" valign="bottom" height="100%">
- <table cellpadding="0" cellspacing="0" border="0" onClick="addValue()">
- <tr>
- <td id="addValueButton" align="center" valign="top" class="clsDialogButton" onmouseover="document.getElementById('addValueButton').className='clsDialogButtonOver';window.status='';return true;" onmouseout="document.getElementById('addValueButton').className='clsDialogButton';window.status='';return true;">
- <IMG src="{$qsdlgskin}/prompting/images/remove.gif" border="0" height="16" width="16" align="top">
- <xsl:attribute name="title"><xts:string id="CUSTOMIZE_GROUP_ADD_VALUES_TIP"/></xsl:attribute>
- </IMG>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </TABLE>
- <TABLE border="0" cellpadding="2" cellspacing="0" height="50%">
- <tr>
- <td align="center" valign="top" height="100%">
- <table cellpadding="0" cellspacing="0" border="0" onClick="removeValue()">
- <tr>
- <td id="removeValueButton" align="center" valign="top" class="clsDialogButton" onmouseover="document.getElementById('removeValueButton').className='clsDialogButtonOver';window.status='';return true;" onmouseout="document.getElementById('removeValueButton').className='clsDialogButton';window.status='';return true;">
- <IMG src="{$qsdlgskin}/prompting/images/insert.gif" border="0" height="16" width="16" align="top">
- <xsl:attribute name="title"><xts:string id="CUSTOMIZE_GROUP_REMOVE_VALUES_TIP"/></xsl:attribute>
- </IMG>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </TABLE>
- </TD>
- <TD valign="top" width="31%" height="100%">
- <TABLE border="0" cellspacing="0" cellpadding="0" width="100%" height="100%">
- <xsl:choose>
- <xsl:when test="/root/env/param[@name='xxAdvanced'] = '0'">
- <tr>
- <TD class="formLabel">
- <xts:string id="CUSTOMIZE_GROUP_AVAILABLE_VALUES"/>
- </TD>
- </tr>
- <TR>
- <TD width="100%">
- <div id="loadingDiv" class="clsCheckBoxList" style="height:108px;width:100%;padding:2px;"/>
- <select id="available_values" name="available_values" multiple="true" size="8" style="width:100%; display: none;" onDblClick="addValue()"/>
- </TD>
- </TR>
- <TR>
- <TD align="right" nowrap="nowrap">
- <A href="javascript:selectAll('available_values')" class="clsLink"><xts:string id="DIALOG_SELECT_ALL"/></A>
- <xsl:text> </xsl:text>
- <A href="javascript:deselectAll('available_values')" class="clsLink"><xts:string id="DIALOG_DESELECT_ALL"/></A>
- </TD>
- </TR>
- </xsl:when>
- <xsl:otherwise>
- <tr>
- <td style="height:100%; padding: 15px 0px 20px;">
- <table style="height:100%; border:1px solid #cccccc;">
- <tr>
- <TD class="formLabel">
- <xts:string id="CUSTOMIZE_GROUP_VALUE"/>
- </TD>
- </tr>
- <TR>
- <td style="width:100%;">
- <xsl:choose>
- <xsl:when test="/root/env/param[@name='xxCustomType'] = '0'">
- <xsl:call-template name="getTextBox">
- <xsl:with-param name="promptLocale" select="$promptLocale"/>
- <xsl:with-param name="promptFormName" select="$promptFormName"/>
- <xsl:with-param name="promptRequired" select="'false'"/>
- <xsl:with-param name="promptId" select="'custom_value'"/>
- <xsl:with-param name="promptHideText" select="'false'"/>
- <xsl:with-param name="promptMultiLine" select="'false'"/>
- <xsl:with-param name="promptParameter" select="'parameterValue'"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="/root/env/param[@name='xxCustomType'] = '1'">
- <xsl:call-template name="getTextBox">
- <xsl:with-param name="promptLocale" select="$promptLocale"/>
- <xsl:with-param name="promptFormName" select="$promptFormName"/>
- <xsl:with-param name="promptRequired" select="'false'"/>
- <xsl:with-param name="promptId" select="'custom_value'"/>
- <xsl:with-param name="promptHideText" select="'false'"/>
- <xsl:with-param name="promptMultiLine" select="'false'"/>
- <xsl:with-param name="promptParameter" select="'parameterValue'"/>
- <xsl:with-param name="promptDataType" select="'number'"/>
- <xsl:with-param name="promptMaxLength" select="'15'"/>
- </xsl:call-template>
- </xsl:when>
- </xsl:choose>
- </td>
- </TR>
- </table>
- </td>
- </tr>
- </xsl:otherwise>
- </xsl:choose>
- </TABLE>
- </TD>
- </TR>
- <tr>
- <td colspan="4">
- <IMG src="{$qsdlgskin}/prompting/images/spacer.gif" height="7" width="1"/>
- </td>
- </tr>
- <TR>
- <TD valign="top" colspan="3">
- <table border="0" cellspacing="0" cellpadding="0" width="100%">
- <tr>
- <td class="formText" colspan="2">
- <a style="padding-right:5px;" href="javascript:void(0);" onmousedown="showHideApplyRemaining()" onmouseover="window.status='';return true;" onmouseout="window.status='';return true;"><xts:string id="CUSTOMIZE_VALUES_ALL_REMAINING_VALUES"/></a>
- <a href="javascript:void(0);" onmousedown="showHideApplyRemaining()" onmouseover="window.status='';return true;" onmouseout="window.status='';return true;">
- <img id="applyRemainingImg" border="0">
- <xsl:attribute name="src"><xsl:value-of select="$qsdlgskin"/>/prompting/images/prompt_option_expand.gif</xsl:attribute>
- </img>
- </a>
- </td>
- </tr>
- <tr id="individualValuesText" style="display:none">
- <td class="formText" colspan="2">
- <xts:string id="CUSTOMIZE_VALUES_USE_INDIVIDUAL_VALUES"/>
- </td>
- </tr>
- <tr id="noRangeNameText" style="display:none">
- <td class="formText" colspan="2">
- <xts:string id="CUSTOMIZE_VALUES_DO_NOT_SHOW_RANGE_NAME"/>
- </td>
- </tr>
- <tr id="rangeNameText" style="display:none">
- <td id="rangeNameValue" class="formText" colspan="2">
- <xts:string id="CUSTOMIZE_VALUES_RANGE_NAME"/>
- </td>
- </tr>
- <tr id="remainingValuesRow">
- <td>
- <dp:choice>
- <dp:section1>
- <input type="radio" name="remaining_values_options" value="individual_values" checked="true"/>
- </dp:section1>
- <dp:section2>
- <xts:string id="CUSTOMIZE_VALUES_USE_INDIVIDUAL_VALUES"/>
- </dp:section2>
- <dp:section1>
- <input type="radio" name="remaining_values_options" value="do_not_show"/>
- </dp:section1>
- <dp:section2>
- <xts:string id="CUSTOMIZE_VALUES_DO_NOT_SHOW_RANGE_NAME"/>
- </dp:section2>
- <dp:section1>
- <input type="radio" name="remaining_values_options" value="range_name"/>
- </dp:section1>
- <dp:section2>
- <xts:string id="CUSTOMIZE_VALUES_NEW_RANGE_NAME"/>
- </dp:section2>
- <dp:section3>
- <input style="width:200px;" type="text" name="range_name_text" onClick="javascript:document.f.remaining_values_options[2].checked = true;" onKeyPress="javascript:document.f.remaining_values_options[2].checked = true;"/>
- </dp:section3>
- </dp:choice>
- </td>
- </tr>
- </table>
- </TD>
- <TD valign="top">
- <table border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td class="formLabel">
- <xts:string id="CUSTOMIZE_VALUES_LABEL_NAME"/>
- </td>
- </tr>
- <tr>
- <td>
- <input style="width:260px;" type="text" name="calc_label_text">
- <xsl:if test="/root/system/param[@name='disableEnterKeyAutoSubmit'] != 'true'">
- <xsl:attribute name="onKeyUp">javascript:if (event.keyCode == 13) execute();</xsl:attribute>
- </xsl:if>
- </input>
- </td>
- </tr>
- </table>
- </TD>
- </TR>
- </TABLE>
- </lyt:section>
- </lyt:layout>
- </td>
- </tr>
- <tr>
- <td width="100%" height="0%">
- <qsdlg:defaultButtons/>
- </td>
- </tr>
- <!-- <dbg:dumpxml select="/"/> -->
- </table>
- </form>
- </dp:page>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <xts:block id="getAdvancedServerSettings" mode="interpret" processor="XML" type="exec" mandatory="false">
- <xts:sequence>
- <xts:append>
- <configurationVars>
- <xts:function name="getConfiguration">
- <xts:param name="RSVP.QS.FORCE.CUSTOM.GROUPS.VARCHAR"/>
- </xts:function>
- </configurationVars>
- </xts:append>
- </xts:sequence>
- </xts:block>
- </xts:morphlet>
|