123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: HTS
- (C) Copyright IBM Corp. 2005, 2010
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xts="http://developer.cognos.com/schemas/xts/">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
- <xsl:template match="/" mode="common">
- <script type="text/javascript">
- function _THIS_showPriorityDialog(tProperty,value) {
- var dlg = new ui_dialog(this.fragID + "editProperties", PFM.JS.IDS_JS_DETAILS, ui_dialog.style.BTN_OKCANCEL | ui_dialog.style.CENTER | ui_dialog.style.RESIZABLE, -1, -1, 500, 300);
- dlg.processCommand = function(cmd) {
- if ((cmd == ui_dialog.button.OK)) {
- var priorityValue = hts_getSelectedComboValue(dlg.dlg,"_THIS_priority");
- _THIS_.retrieve("action=setPriority&value=" + priorityValue ,null,true);
- _THIS_.transientUpdate('cognosTaskChanged',new Date().toUTCString());
- }
- this.destroy();
- return true;
- };
- if (tProperty != null || tProperty != undefined) {
- var markup = "<table border=\"0\" cellspacing=\"0\" cellpadding=\"4\">";
- markup += "<tr>";
- markup += "<td valign=\"top\">";
- markup += "<select tabindex=\"0\" class=\"taskOptionsSelectText\" name=\"_THIS_priority\" id=\"_THIS_priority\">";
- markup += _THIS_createOption(5,"<xts:string id="IDS_FRAG_PRIORITY_LABEL_LOW" encode="javascript"/>",value);
- markup += _THIS_createOption(3,"<xts:string id="IDS_FRAG_PRIORITY_LABEL_MEDIUM" encode="javascript"/>",value);
- markup += _THIS_createOption(1,"<xts:string id="IDS_FRAG_PRIORITY_LABEL_HIGH" encode="javascript"/>",value);
- markup += "</select>";
- markup += "</td>";
- markup += "</tr>";
- markup += "</table>";
- dlg.setContent(markup);
- dlg.show();
-
- }
-
- }
-
- function _THIS_createOption(cboValue, cboLabel, selectedValue) {
- comboStr = "<option value=\""+cboValue+"\"";
- if (selectedValue==cboValue) {
- comboStr+=" selected=\"true\"";
- }
- comboStr += ">"+cboLabel;
- comboStr += "</option>"
-
- return comboStr;
-
-
- }
- </script>
- </xsl:template>
- </xsl:stylesheet>
|