123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514 |
- <?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">
- <xts:block id="getContent" mode="interpret" processor="XSLT" type="exec" condition=".[/root/env/param[@name='samplesLoaded']!='true']" mandatory="false">
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/" xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/" xmlns:cm="http://developer.cognos.com/schemas/cm/1/" xmlns:SOAP-ENV="http://www.w3.org/2001/09/soap-envelope">
- <xsl:output method="xml" version="1.0" encoding="UTF-8"/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:append>
- <intervalSampleList>
- <xts:request asText="true" href="bus://dispatcher" protocol="BUS" soapAction="http://www.ibm.com/xmlns/prod/cognos/systemService/201404/">
- <SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <SOAP-ENV:Header>
- <xsl:copy-of select="/root/header/*"/>
- <ns1:biBusHeader href="#id0" xmlns:ns1="http://developer.cognos.com/schemas/bibus/3/"/>
- </SOAP-ENV:Header>
- <SOAP-ENV:Body>
- <ns2:getFormatSamples xmlns:ns2="http://developer.cognos.com/schemas/bibus/3/">
- <name xsi:type="xsd:string">qsintervals</name>
- </ns2:getFormatSamples>
- <multiRef id="id0" SOAP-ENC:root="0" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns4:biBusHeader" xmlns:ns3="http://schemas.xmlsoap.org/soap/envelope/:encodingStyle" xmlns:ns4="http://developer.cognos.com/schemas/bibus/3/">
- <ns4:CAM href="#id1"/>
- <ns4:hdrSession xsi:nil="true"/>
- <ns4:providers xsi:nil="true"/>
- <ns4:userPreferenceVars xsi:nil="true"/>
- <ns4:tracking xsi:nil="true"/>
- <ns4:dispatcherTransportVars xsi:nil="true"/>
- <ns4:CAMProtect xsi:nil="true"/>
- </multiRef>
- <multiRef id="id1" SOAP-ENC:root="0" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns5:CAM" xmlns:ns5="http://developer.cognos.com/schemas/bibus/3/">
- <ns5:action xsi:type="xsd:string">logon</ns5:action>
- <ns5:credential xsi:nil="true"/>
- <ns5:securityBlob xsi:nil="true"/>
- <ns5:CAMPassport xsi:nil="true"/>
- <ns5:CAMCredentialPath xsi:nil="true"/>
- <ns5:exception xsi:nil="true"/>
- <ns5:roles xsi:nil="true"/>
- </multiRef>
- </SOAP-ENV:Body>
- </SOAP-ENV:Envelope>
- </xts:request>
- </intervalSampleList>
- </xts:append>
- <xts:append>
- <dateSampleList>
- <xts:request asText="true" href="bus://dispatcher" protocol="BUS" soapAction="http://www.ibm.com/xmlns/prod/cognos/systemService/201404/">
- <SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <SOAP-ENV:Header>
- <xsl:copy-of select="/root/header/*"/>
- <ns1:biBusHeader href="#id0" xmlns:ns1="http://developer.cognos.com/schemas/bibus/3/"/>
- </SOAP-ENV:Header>
- <SOAP-ENV:Body>
- <ns2:getFormatSamples xmlns:ns2="http://developer.cognos.com/schemas/bibus/3/">
- <name xsi:type="xsd:string">qsdates</name>
- </ns2:getFormatSamples>
- <multiRef id="id0" SOAP-ENC:root="0" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns4:biBusHeader" xmlns:ns3="http://schemas.xmlsoap.org/soap/envelope/:encodingStyle" xmlns:ns4="http://developer.cognos.com/schemas/bibus/3/">
- <ns4:CAM href="#id1"/>
- <ns4:hdrSession xsi:nil="true"/>
- <ns4:providers xsi:nil="true"/>
- <ns4:userPreferenceVars xsi:nil="true"/>
- <ns4:tracking xsi:nil="true"/>
- <ns4:dispatcherTransportVars xsi:nil="true"/>
- <ns4:CAMProtect xsi:nil="true"/>
- </multiRef>
- <multiRef id="id1" SOAP-ENC:root="0" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns5:CAM" xmlns:ns5="http://developer.cognos.com/schemas/bibus/3/">
- <ns5:action xsi:type="xsd:string">logon</ns5:action>
- <ns5:credential xsi:nil="true"/>
- <ns5:securityBlob xsi:nil="true"/>
- <ns5:CAMPassport xsi:nil="true"/>
- <ns5:CAMCredentialPath xsi:nil="true"/>
- <ns5:exception xsi:nil="true"/>
- <ns5:roles xsi:nil="true"/>
- </multiRef>
- </SOAP-ENV:Body>
- </SOAP-ENV:Envelope>
- </xts:request>
- </dateSampleList>
- </xts:append>
- <xts:append>
- <timeSampleList>
- <xts:request asText="true" href="bus://dispatcher" protocol="BUS" soapAction="http://www.ibm.com/xmlns/prod/cognos/systemService/201404/">
- <SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <SOAP-ENV:Header>
- <xsl:copy-of select="/root/header/*"/>
- <ns1:biBusHeader href="#id0" xmlns:ns1="http://developer.cognos.com/schemas/bibus/3/"/>
- </SOAP-ENV:Header>
- <SOAP-ENV:Body>
- <ns2:getFormatSamples xmlns:ns2="http://developer.cognos.com/schemas/bibus/3/">
- <name xsi:type="xsd:string">qstimes</name>
- </ns2:getFormatSamples>
- <multiRef id="id0" SOAP-ENC:root="0" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns4:biBusHeader" xmlns:ns3="http://schemas.xmlsoap.org/soap/envelope/:encodingStyle" xmlns:ns4="http://developer.cognos.com/schemas/bibus/3/">
- <ns4:CAM href="#id1"/>
- <ns4:hdrSession xsi:nil="true"/>
- <ns4:providers xsi:nil="true"/>
- <ns4:userPreferenceVars xsi:nil="true"/>
- <ns4:tracking xsi:nil="true"/>
- <ns4:dispatcherTransportVars xsi:nil="true"/>
- <ns4:CAMProtect xsi:nil="true"/>
- </multiRef>
- <multiRef id="id1" SOAP-ENC:root="0" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns5:CAM" xmlns:ns5="http://developer.cognos.com/schemas/bibus/3/">
- <ns5:action xsi:type="xsd:string">logon</ns5:action>
- <ns5:credential xsi:nil="true"/>
- <ns5:securityBlob xsi:nil="true"/>
- <ns5:CAMPassport xsi:nil="true"/>
- <ns5:CAMCredentialPath xsi:nil="true"/>
- <ns5:exception xsi:nil="true"/>
- <ns5:roles xsi:nil="true"/>
- </multiRef>
- </SOAP-ENV:Body>
- </SOAP-ENV:Envelope>
- </xts:request>
- </timeSampleList>
- </xts:append>
- <xts:append>
- <datetimeSampleList>
- <xts:request asText="true" href="bus://dispatcher" protocol="BUS" soapAction="http://www.ibm.com/xmlns/prod/cognos/systemService/201404/">
- <SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <SOAP-ENV:Header>
- <xsl:copy-of select="/root/header/*"/>
- <ns1:biBusHeader href="#id0" xmlns:ns1="http://developer.cognos.com/schemas/bibus/3/"/>
- </SOAP-ENV:Header>
- <SOAP-ENV:Body>
- <ns2:getFormatSamples xmlns:ns2="http://developer.cognos.com/schemas/bibus/3/">
- <name xsi:type="xsd:string">qsdatetimes</name>
- </ns2:getFormatSamples>
- <multiRef id="id0" SOAP-ENC:root="0" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns4:biBusHeader" xmlns:ns3="http://schemas.xmlsoap.org/soap/envelope/:encodingStyle" xmlns:ns4="http://developer.cognos.com/schemas/bibus/3/">
- <ns4:CAM href="#id1"/>
- <ns4:hdrSession xsi:nil="true"/>
- <ns4:providers xsi:nil="true"/>
- <ns4:userPreferenceVars xsi:nil="true"/>
- <ns4:tracking xsi:nil="true"/>
- <ns4:dispatcherTransportVars xsi:nil="true"/>
- <ns4:CAMProtect xsi:nil="true"/>
- </multiRef>
- <multiRef id="id1" SOAP-ENC:root="0" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns5:CAM" xmlns:ns5="http://developer.cognos.com/schemas/bibus/3/">
- <ns5:action xsi:type="xsd:string">logon</ns5:action>
- <ns5:credential xsi:nil="true"/>
- <ns5:securityBlob xsi:nil="true"/>
- <ns5:CAMPassport xsi:nil="true"/>
- <ns5:CAMCredentialPath xsi:nil="true"/>
- <ns5:exception xsi:nil="true"/>
- <ns5:roles xsi:nil="true"/>
- </multiRef>
- </SOAP-ENV:Body>
- </SOAP-ENV:Envelope>
- </xts:request>
- </datetimeSampleList>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <xts:block id="appendDocument" mode="interpret" processor="XSLT" type="exec" dependency="getContent" condition=".[/root/env/param[@name='samplesLoaded']!='true']" mandatory="false">
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/" xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/" xmlns:cm="http://developer.cognos.com/schemas/cm/1/" xmlns:SOAP-ENV="http://www.w3.org/2001/09/soap-envelope" xmlns:bus="http://developer.cognos.com/schemas/bibus/3/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt">
- <xsl:output method="xml" version="1.0" encoding="UTF-8"/>
- <xsl:template match="/root">
- <xts:sequence>
- <xts:update select="/root/intervalSampleList">
- <intervalSampleList>
- <xsl:for-each select="./intervalSampleList/bus:getFormatSamplesResponse/samples/item">
- <xsl:value-of select="." disable-output-escaping="yes"/>
- </xsl:for-each>
- </intervalSampleList>
- </xts:update>
- <xts:update select="/root/dateSampleList">
- <dateSampleList>
- <xsl:for-each select="./dateSampleList/bus:getFormatSamplesResponse/samples/item">
- <xsl:value-of select="." disable-output-escaping="yes"/>
- </xsl:for-each>
- </dateSampleList>
- </xts:update>
- <xts:update select="/root/timeSampleList">
- <timeSampleList>
- <xsl:for-each select="./timeSampleList/bus:getFormatSamplesResponse/samples/item">
- <xsl:value-of select="." disable-output-escaping="yes"/>
- </xsl:for-each>
- </timeSampleList>
- </xts:update>
- <xts:update select="/root/datetimeSampleList">
- <datetimeSampleList>
- <xsl:for-each select="./datetimeSampleList/bus:getFormatSamplesResponse/samples/item">
- <xsl:value-of select="." disable-output-escaping="yes"/>
- </xsl:for-each>
- </datetimeSampleList>
- </xts:update>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <xts:block id="page" type="exec" mode="output" processor="XSLT" mimeType="text/html" dependency="appendDocument">
- <!-- 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"/>
- <!-- add any theme variables -->
- <df:variables/>
- <pf:variables/>
- <!-- start the output -->
- <xsl:template match="/root">
- <dp:page>
- <dp:script>
- <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"><!--
- var goDialogManager = new CDialogManager();
- var cf = getConfigFrame();
- var dlgType = cf.dlgGlobalGetParm('xxformatDlgType');
- var dateTime = cf.dlgGlobalGetParm('xxDateTime');
- var selectedFormat = cf.dlgGlobalGetParm('xxSelectedFormat');
-
- function execute()
- {
- var oMQMgr = goDialogManager.getMiniQueryManager();
- var cmdArray = new Array();
- var dlgsel = document.f.formatDlgType.options[document.f.formatDlgType.selectedIndex].value;
- var sampleIdx = document.f.formatsamples.selectedIndex;
- if (dlgsel == "default")
- cmdArray[0] = "default";
- else
- {
- if (dlgsel == "mixed" || sampleIdx < 0)
- {
- cf.hideDialogFrame();
- return;
- }
- else
- {
- var samplesel = document.f.formatsamples.options[document.f.formatsamples.selectedIndex].value;
- if (samplesel == "mixed")
- {
- cf.hideDialogFrame();
- return;
- }
- cmdArray[0] = dlgsel;
- cmdArray[1] = getSelectedSample(dlgsel);
- }
- }
- for (var i = 0; i < cf.cfgSize("SelColumns"); i++)
- cmdArray[cmdArray.length] = cf.escapeParam(oMQMgr.getColumnId(cf.cfgGetAt("SelColumns", i)));
- cf.addColumnsForReselection();
- cf.submitFormat(cmdArray);
- }
- function getSelectedSample(dlg)
- {
- with (document)
- {
- if (cf)
- {
- var sample = cf.cfgGetAt(getSampleListName(dlg), document.f.formatsamples.options[document.f.formatsamples.selectedIndex].value);
- var i = 1;
- var sampleSize = sample.length;
- var atts = "";
- var count = 0;
- while (i + 1 < sampleSize)
- {
- if (sample[i] != "sampleString")
- {
- atts += "," + sample[i] + "," + cf.escapeParam(sample[i + 1]);
- count++;
- }
- i = i + 2;
- }
- return (sample[0] + "," + count + atts + ",0");
- }
- }
- }
- function changeDlgType()
- {
- if (dlgType == 'datetime')
- {
- with (document)
- {
- var dlgsel = document.f.formatDlgType.options[document.f.formatDlgType.selectedIndex].value;
- if (dlgsel != "default" && dlgsel != "mixed")
- {
- while (document.f.formatsamples.options.length > 0)
- document.f.formatsamples.options[0] = null;
- populateSamples(dlgsel);
- }
- }
- }
- showOrHide();
- }
- function showOrHide()
- {
- with (document)
- {
- var dlgsel = document.f.formatDlgType.options[document.f.formatDlgType.selectedIndex].value;
- getElementById("spansamples").style.visibility = (dlgsel == "default" || dlgsel == "mixed")?"hidden":"visible";
- }
- }
- function getSampleListName(dlg)
- {
- var sampleListName = "";
- if (dlg == "date")
- sampleListName = "DateSamples";
- else if (dlg == "time")
- sampleListName = "TimeSamples";
- else if (dlg == "datetime")
- sampleListName = "DatetimeSamples";
- else if (dlg == "interval")
- sampleListName = "IntervalSamples";
- return sampleListName;
- }
- function populateSamples(dlg)
- {
- with (document)
- {
- if (cf)
- {
- var i = 0;
- if (selectedFormat == 'mixed')
- document.f.formatsamples.options[i++] = new Option("<xts:string id="DIALOG_MULTIPLE_SELECTION" encode="javascript"/>","mixed",false,true);
- var sampleListName = getSampleListName(dlg);
- if (sampleListName == "")
- return;
- var numSamples = cf.cfgSize(sampleListName);
- for (var j = 0; j < numSamples ; j++)
- {
- document.f.formatsamples.options[i] = new Option(cf.getAttValFromFormatArray("sampleString", sampleListName, j),j,false,false);
- i++;
- }
- if (i != 0)
- document.f.formatsamples.selectedIndex = 0;
- if (selectedFormat != 'mixed' && selectedFormat != 'default')
- {
- var idx = cf.findFormatInSampleList(sampleListName);
- if (idx != -1)
- document.f.formatsamples.selectedIndex = idx;
- }
- }
- }
- }
- function init()
- {
- attachMouseEvents();
- var x = document.getElementById("formatDesc");
- if (dlgType == 'interval')
- x.appendChild(document.createTextNode("<xts:string id="FORMAT_INTERVAL_DESCRIPTION" encode="javascript"/>"));
- else
- x.appendChild(document.createTextNode("<xts:string id="FORMAT_TIME_DESCRIPTION" encode="javascript"/>"));
- with (document)
- {
- if (cf)
- {
- if (cf.showDialogFrame) cf.showDialogFrame(390);
- var i = 0;
- var temp = dateTime;
- if (dateTime == 'mixed')
- document.f.formatDlgType.options[i++] = new Option("<xts:string id="DIALOG_SELECT_ONE_OPTION" encode="javascript"/>","mixed", false, true);
- document.f.formatDlgType.options[i++] = new Option("<xts:string id="DIALOG_DEFAULT_OPTION" encode="javascript"/>","default",false,false);
- if (dlgType == 'interval')
- document.f.formatDlgType.options[i++] = new Option("<xts:string id="FORMAT_INTERVAL_OPTION" encode="javascript"/>","interval",false,false);
- else
- {
- if (dlgType != 'time')
- document.f.formatDlgType.options[i++] = new Option("<xts:string id="FORMAT_DATE_OPTION" encode="javascript"/>","date",false,false);
- if (dlgType != 'date')
- document.f.formatDlgType.options[i++] = new Option("<xts:string id="FORMAT_TIME_OPTION" encode="javascript"/>","time",false,false);
- if (dlgType = 'datetime')
- document.f.formatDlgType.options[i++] = new Option("<xts:string id="FORMAT_DATE_AND_TIME_OPTION" encode="javascript"/>","datetime",false,false);
- }
- for (var i = 0; i < document.f.formatDlgType.options.length; i++)
- {
- if (document.f.formatDlgType.options[i].value == temp)
- {
- document.f.formatDlgType.selectedIndex = i;
- break;
- }
- }
- i = 0;
- <xsl:for-each select="/root/intervalSampleList/intervalFormat">
- getConfigFrame().cfgSetAt("IntervalSamples",i++, new Array("<xsl:value-of select="xtsext:javascriptencode(string(name(.)))"/>","sampleString","<xsl:value-of select="xtsext:javascriptencode(string(.))"/>"<xsl:for-each select="./@*">,"<xsl:value-of select="xtsext:javascriptencode(string(name(.)))"/>","<xsl:value-of select="xtsext:javascriptencode(string(.))"/>"</xsl:for-each>));
- </xsl:for-each>
- i = 0;
- <xsl:for-each select="/root/dateSampleList/dateFormat">
- getConfigFrame().cfgSetAt("DateSamples",i++, new Array("<xsl:value-of select="xtsext:javascriptencode(string(name(.)))"/>","sampleString","<xsl:value-of select="xtsext:javascriptencode(string(.))"/>"<xsl:for-each select="./@*">,"<xsl:value-of select="xtsext:javascriptencode(string(name(.)))"/>","<xsl:value-of select="xtsext:javascriptencode(string(.))"/>"</xsl:for-each>));
- </xsl:for-each>
- i = 0;
- <xsl:for-each select="/root/timeSampleList/timeFormat[@timeStyle!='medium']">
- getConfigFrame().cfgSetAt("TimeSamples",i++, new Array("<xsl:value-of select="xtsext:javascriptencode(string(name(.)))"/>","sampleString","<xsl:value-of select="xtsext:javascriptencode(string(.))"/>"<xsl:for-each select="./@*">,"<xsl:value-of select="xtsext:javascriptencode(string(name(.)))"/>","<xsl:value-of select="xtsext:javascriptencode(string(.))"/>"</xsl:for-each>));
- </xsl:for-each>
- i = 0;
- <xsl:for-each select="/root/datetimeSampleList/dateTimeFormat[@dateStyle!='medium']">
- getConfigFrame().cfgSetAt("DatetimeSamples",i++, new Array("<xsl:value-of select="xtsext:javascriptencode(string(name(.)))"/>","sampleString","<xsl:value-of select="xtsext:javascriptencode(string(.))"/>"<xsl:for-each select="./@*">,"<xsl:value-of select="xtsext:javascriptencode(string(name(.)))"/>","<xsl:value-of select="xtsext:javascriptencode(string(.))"/>"</xsl:for-each>));
- </xsl:for-each>
- getConfigFrame().cfgSet("formatSamplesLoaded", true);
- if (dlgType = 'datetime')
- changeDlgType();
- else
- {
- populateSamples(dlgType);
- showOrHide();
- }
- }
- }
- }
- </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="execute();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="FORMAT_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>
- <xsl:attribute name="id">formatDesc</xsl:attribute>
- </dp:description>
- </dp:header>
- </td>
- </tr>
- <tr>
- <td width="100%" height="100%" valign="top">
- <!-- layout -->
- <lyt:layout style="2" border="no">
- <lyt:section height="260" valign="top">
- <dp:input>
- <dp:section1>
- <xts:string id="FORMAT_CATEGORY_LABEL"/>
- </dp:section1>
- <dp:section2>
- <select name="formatDlgType" onchange="changeDlgType()"/>
- </dp:section2>
- </dp:input>
- </lyt:section>
- <lyt:section>
- <span id="spansamples" style="visibility:hidden">
- <dp:input>
- <dp:section1>
- <xts:string id="DIALOG_TYPE_LABEL"/>
- </dp:section1>
- <dp:section2>
- <select name="formatsamples" size="14"/>
- </dp:section2>
- </dp:input>
- </span>
- </lyt:section>
- </lyt:layout>
- </td>
- </tr>
- <tr>
- <td width="100%" height="0%">
- <!-- Use default buttons [ OK = execute() and CANCEL = hideDialogFrame() ] -->
- <qsdlg:defaultButtons/>
- </td>
- </tr>
- <!--dbg:dumpxml select="/"/-->
- </table>
- </form>
- </dp:page>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- </xts:morphlet>
|