filterModel.xts 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. BI and PM: qs
  5. (C) Copyright IBM Corp. 2001, 2017
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <!--
  9. Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
  10. Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
  11. -->
  12. <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">
  13. <xts:block id="page" type="exec" mode="output" processor="XSLT" mimeType="text/html">
  14. <!-- get the debug logic sheet -->
  15. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  16. <!-- get the new theme stuff -->
  17. <xts:logicsheet path="logicsheets/portal.xsl"/>
  18. <xts:logicsheet path="qs/logicsheets/dialogIncludes.xsl"/>
  19. <xts:logicsheet path="qs/logicsheets/dialogs.xsl"/>
  20. <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
  21. <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
  22. <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
  23. <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
  24. <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
  25. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  26. <!-- apply the form logic -->
  27. <xts:logicsheet path="logicsheets/formlogic.xslt"/>
  28. <xsl:stylesheet version="1.0"
  29. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  30. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  31. xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
  32. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  33. xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
  34. xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
  35. xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
  36. xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
  37. xmlns:dbg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/debug/"
  38. xmlns:qsdialog="http://developer.cognos.com/schemas/xts/logicsheets/xslt/qs/dialog/"
  39. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  40. exclude-result-prefixes="xsl xts lyt pf dp df cp cf dbg qsdialog xtsext">
  41. <xsl:import href="qs/logicsheets/markupTemplates.xsl"/>
  42. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
  43. <!-- add any theme variables -->
  44. <qsdialog:variables/>
  45. <df:variables/>
  46. <pf:variables/>
  47. <!-- start the output -->
  48. <xsl:template match="/root">
  49. <dp:page>
  50. <dp:script>
  51. <qsdialog:headerIncludes dlgSize="260" featureName="ModelFilter" setupParameters="env"/>
  52. <script type="text/javascript">
  53. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/dialogs/filterDialog.js</xsl:attribute>
  54. <xsl:text/>//<xsl:text/>
  55. </script>
  56. </dp:script>
  57. <form style="margin:0px" name="f" method="POST" onsubmit="return false;">
  58. <table border="0" cellspacing="0" cellpadding="0" height="100%" width="100%">
  59. <qsdialog:dialogHeader>
  60. <qsdialog:title><xts:string id="FILTER_TITLE"/></qsdialog:title>
  61. <qsdialog:description><xts:string id="FILTER_DESCRIPTION_DESC"/></qsdialog:description>
  62. </qsdialog:dialogHeader>
  63. <tr>
  64. <td width="100%" height="100%" valign="top">
  65. <!-- layout -->
  66. <lyt:layout style="2" border="no">
  67. <lyt:section>
  68. <dp:input>
  69. <dp:section1>
  70. <xts:string id="FILTER_DESCRIPTION_NAME"/>
  71. </dp:section1>
  72. <dp:section2>
  73. <xsl:attribute name="id">filterNameStr</xsl:attribute>
  74. </dp:section2>
  75. </dp:input>
  76. <xsl:if test="/root/system/param[@name='enableFilterNOT']='true'">
  77. <dp:input>
  78. <dp:section1>
  79. <xts:string id="FILTER_CONDITION"/>
  80. </dp:section1>
  81. <dp:section2>
  82. <select name="oExcludeSelectedValues">
  83. <option value="false"><xts:string id="FILTER_MODEL_SHOW_ONLY"/></option>
  84. <option value="true"><xts:string id="FILTER_MODEL_DO_NOT_SHOW"/></option>
  85. </select>
  86. </dp:section2>
  87. </dp:input>
  88. </xsl:if>
  89. <table cellpadding="1" cellspacing="0" border="0" alt="" style="margin-top:5px;">
  90. <tr>
  91. <td class="formText"><img height="30" width="30" src="{$skin_root}/prompting/images/tip_template.gif"/></td>
  92. <td class="formText" id="filterDeleteLink"><xts:string id="FILTER_MODEL_DELETE_LINK"/></td>
  93. </tr>
  94. </table>
  95. </lyt:section>
  96. <lyt:section>
  97. <div id="b_summaryOptions" style="display:none">
  98. <dp:choice title="FILTER_BASED_ON">
  99. <dp:section1>
  100. <input type="radio" name="r_summaryOption" value="detail"/>
  101. </dp:section1>
  102. <dp:section2>
  103. <xts:string id="FILTER_NUMSUM_DETAILS"/>
  104. </dp:section2>
  105. <dp:section1>
  106. <input type="radio" name="r_summaryOption" value="raw"/>
  107. </dp:section1>
  108. <dp:section2>
  109. <xts:string id="FILTER_NUMSUM_RAW"/>
  110. </dp:section2>
  111. </dp:choice>
  112. </div>
  113. </lyt:section>
  114. </lyt:layout>
  115. </td>
  116. </tr>
  117. <tr>
  118. <td width="100%" height="0%">
  119. <qsdialog:defaultButtons/>
  120. </td>
  121. </tr>
  122. <!-- <dbg:dumpxml select="/"/> -->
  123. </table>
  124. </form>
  125. </dp:page>
  126. </xsl:template>
  127. </xsl:stylesheet>
  128. </xts:block>
  129. </xts:morphlet>