123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444 |
- <?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).
- -->
- <!--
- Used for year, month, week, day, hour, minute, second
- -->
- <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="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 -->
- <!-- apply the following logicsheets in order -->
- <xts:logicsheet path="qs/logicsheets/calc_theme.xsl"/>
- <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:clcdlg="test_calculationDlg"
- 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="clcdlg 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();
- <clcdlg:jvs/>
- var cf = getConfigFrame();
- var calcType = cf.dlgGlobalGetParm('xxCalcType');
- var calcParentIds = new Array();
- function execute()
- {
- var before_col_id = cf.dlgGlobalGetParm('xxInsBeforeColid');
- var calcOp = document.f.calcList.options[document.f.calcList.selectedIndex].value; //year, month, week, day, hour, minute, second
- var calcExpr = "";
- var cType = -1;
- var cUsage = 2;
- var listSeparator = goDialogManager.getMiniQueryManager().getListSeparator();
- switch (calcOp)
- {
- case "year":
- calcExpr = "extract(year from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ")";
- break;
- case "month":
- /////////*** temporary ***//////////
- calcOp += "Year";
- calcExpr = "extract(month from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ")";
- break;
- /////////*** temporary ***//////////
- switch (document.f.unitType.options[document.f.unitType.options.selectedIndex].value)
- {
- case "month":
- calcOp += "Year";
- calcExpr = "extract(month from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ")";
- break;
- default:
- calcOp += "Name";
- calcExpr = "if (extract(month from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ") = 1) then ('Jan.') else if (extract(month from "
- + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ") = 2) then ('Feb.') else if (extract(month from "
- + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ") = 3) then ('Mar.') else if (extract(month from "
- + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ") = 4) then ('Apr.') else if (extract(month from "
- + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ") = 5) then ('May') else if (extract(month from "
- + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ") = 6) then ('June') else if (extract(month from "
- + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ") = 7) then ('July') else if (extract(month from "
- + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ") = 8) then ('Aug.') else if (extract(month from "
- + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ") = 9) then ('Sep.') else if (extract(month from "
- + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ") = 10) then ('Oct.') else if (extract(month from "
- + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ") = 11) then ('Nov.') else ('Dec.')";
- cType = 62;
- cUsage = 7;
- break;
- }
- break;
- case "week":
- calcExpr = "_week_of_year(" + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ")";
- break;
- case "day":
- switch (document.f.unitType.options[document.f.unitType.options.selectedIndex].value)
- {
- case "week":
- calcOp += "Week";
- calcExpr = "_day_of_week(" + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + listSeparator + " " + document.f.firstOfWeek.options[document.f.firstOfWeek.options.selectedIndex].value + ")";
- break;
- case "name":
- calcOp += "Name";
- calcExpr = "if (Mod(floor(extract(day from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ") + (extract(year from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ") - floor((14 - extract (month from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + "))/12)) + ((extract(year from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ") - floor((14 - extract (month from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + "))/12))/4) - ((extract(year from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ") - floor((14 - extract (month from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + "))/12))/100) + ((extract(year from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ") - floor((14 - extract (month from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + "))/12))/400) +floor(31*(extract(month from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value
- + ") + 12 * floor((14 - extract(month from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + "))/12) - 2)/12)),7) = 0) then ('Sunday') else if (Mod(floor(extract(day from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ") + (extract(year from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ") - floor((14 - extract (month from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + "))/12)) + ((extract(year from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ") - floor((14 - extract (month from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + "))/12))/4) - ((extract(year from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ") - floor((14 - extract (month from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + "))/12))/100) + ((extract(year from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ") - floor((14 - extract (month from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + "))/12))/400) +floor(31*(extract(month from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ") + 12 * floor((14 - extract(month from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + "))/12) - 2)/12)),7) = 1) then ('Monday') else if (Mod(floor(extract(day from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ") + (extract(year from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value
- + ") - floor((14 - extract (month from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + "))/12)) + ((extract(year from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ") - floor((14 - extract (month from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + "))/12))/4) - ((extract(year from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ") - floor((14 - extract (month from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + "))/12))/100) + ((extract(year from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ") - floor((14 - extract (month from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + "))/12))/400) +floor(31*(extract(month from "
- + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ") + 12 * floor((14 - extract(month from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + "))/12) - 2)/12)),7) = 2) then ('Tuesday') else if (Mod(floor(extract(day from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ") + (extract(year from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ") - floor((14 - extract (month from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + "))/12)) + ((extract(year from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ") - floor((14 - extract (month from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value
- + "))/12))/4) - ((extract(year from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ") - floor((14 - extract (month from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + "))/12))/100) + ((extract(year from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ") - floor((14 - extract (month from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + "))/12))/400) +floor(31*(extract(month from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ") + 12 * floor((14 - extract(month from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + "))/12) - 2)/12)),7) = 3) then ('Wednesday') else if (Mod(floor(extract(day from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ") + (extract(year from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ") - floor((14 - extract (month from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + "))/12)) + ((extract(year from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value
- + ") - floor((14 - extract (month from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + "))/12))/4) - ((extract(year from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ") - floor((14 - extract (month from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + "))/12))/100) + ((extract(year from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ") - floor((14 - extract (month from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + "))/12))/400) +floor(31*(extract(month from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ") + 12 * floor((14 - extract(month from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + "))/12) - 2)/12)),7) = 4) then ('Thursday') else if (Mod(floor(extract(day from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ") + (extract(year from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ") - floor((14 - extract (month from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + "))/12)) + ((extract(year from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ") - floor((14 - extract (month from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + "))/12))/4) - ((extract(year from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ") - floor((14 - extract (month from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + "))/12))/100) + ((extract(year from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ") - floor((14 - extract (month from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value
- + "))/12))/400) +floor(31*(extract(month from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ") + 12 * floor((14 - extract(month from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + "))/12) - 2)/12)),7) = 5) then ('Friday') else ('Saturday')";
- cType = 62;
- cUsage = 7;
- break;
- case "month":
- calcOp += "Month";
- calcExpr = "extract(day from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ")";
- break;
- case "year":
- calcOp += "Year";
- calcExpr = "_day_of_year(" + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ")";
- break;
- case "first":
- calcOp += "First";
- calcExpr = "_first_of_month(" + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ")";
- if (calcType == "date")
- cType = 50;
- else
- cType = 52;
- break;
- default:
- calcOp += "Last";
- calcExpr = "_last_of_month(" + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ")";
- if (calcType == "date")
- cType = 50;
- else
- cType = 52;
- break;
- }
- break;
- case "hour":
- calcExpr = "extract(hour from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ")";
- break;
- case "minute":
- calcExpr = "extract(minute from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ")";
- break;
- default:
- calcExpr = "extract(second from " + document.f.repSel.options[document.f.repSel.options.selectedIndex].value + ")";
- break;
- }
- if (calcType == "date")
- calcOp += "Date";
- else if (calcType == "time")
- calcOp += "Time";
- else
- calcOp += "DateTime";
- var calcName = getCalcName();
- getConfigFrame().addCalcColumn(before_col_id, calcExpr, calcExpr, calcName, "none", calcOp, "none", "none", cType, cUsage, "none", -1, "none", calcParentIds);
- }
- function generateName(withQuotes)
- {
- var calcName = document.f.calcList.options[document.f.calcList.selectedIndex].value; //year, month, week, day, hour, minute, second
- var column = document.f.repSel.options[document.f.repSel.options.selectedIndex].text;
- switch (calcName)
- {
- case "year":
- calcName = "<xts:string id="CALCULATION_YEAR_EQUATION" encode="javascript"/>";
- break;
- case "month":
- /////////*** temporary ***//////////
- calcName = "<xts:string id="CALCULATION_MONTH_EQUATION" encode="javascript"/>";
- break;
- /////////*** temporary ***//////////
- if (document.f.unitType)
- {
- switch (document.f.unitType.options[document.f.unitType.options.selectedIndex].value)
- {
- case "month":
- calcName = "<xts:string id="CALCULATION_MONTH_EQUATION" encode="javascript"/>";
- break;
- default:
- calcName = "<xts:string id="CALCULATION_NAME_OF_MONTH_EQUATION" encode="javascript"/>";
- break;
- }
- }
- else
- calcName = "";
- break;
- case "week":
- calcName = "<xts:string id="CALCULATION_WEEK_EQUATION" encode="javascript"/>";
- break;
- case "day":
- if (document.f.unitType)
- {
- switch (document.f.unitType.options[document.f.unitType.options.selectedIndex].value)
- {
- case "week":
- calcName = "<xts:string id="CALCULATION_DAY_OF_WEEK_EQUATION" encode="javascript"/>";
- break;
- case "name":
- calcName = "<xts:string id="CALCULATION_NAME_OF_DAY_WEEK_EQUATION" encode="javascript"/>";
- break;
- case "month":
- calcName = "<xts:string id="CALCULATION_DAY_OF_MONTH_EQUATION" encode="javascript"/>";
- break;
- case "year":
- calcName = "<xts:string id="CALCULATION_DAY_OF_YEAR_EQUATION" encode="javascript"/>";
- break;
- case "first":
- calcName = "<xts:string id="CALCULATION_FIRST_OF_MONTH_EQUATION" encode="javascript"/>";
- break;
- default:
- calcName = "<xts:string id="CALCULATION_LAST_OF_MONTH_EQUATION" encode="javascript"/>";
- break;
- }
- }
- else
- calcName = "";
- break;
- case "hour":
- calcName = "<xts:string id="CALCULATION_HOUR_EQUATION" encode="javascript"/>";
- break;
- case "minute":
- calcName = "<xts:string id="CALCULATION_MINUTE_EQUATION" encode="javascript"/>";
- break;
- default:
- calcName = "<xts:string id="CALCULATION_SECOND_EQUATION" encode="javascript"/>";
- break;
- }
- calcName = stringReplace (calcName, "\\^0", column);
- return calcName;
- }
- function checkWeek()
- {
- if ((document.f.unitType)&&(document.f.firstOfWeek)&&(document.f.unitType.options[document.f.unitType.options.selectedIndex].value == "week"))
- document.getElementById("dayNumberOfWeek").style.display = "inline";
- else if (document.f.firstOfWeek)
- document.getElementById("dayNumberOfWeek").style.display = "none";
- }
- function init()
- {
- attachMouseEvents();
- for (var i = 0; i < cf.dlgGlobalSize('xxCalcParentIds'); i++)
- {
- var id = cf.dlgGlobalGetParmAt('xxCalcParentIds', i);
- calcParentIds[i] = id[0];
- }
- // populate selected columns menu
- for (var i = 0; i < cf.dlgGlobalSize('xxColInfo'); i++)
- {
- var label = cf.dlgGlobalGetParmAt('xxColInfo', i);
- document.f.repSel.options[document.f.repSel.options.length] = new Option(label[0], label[1]);
- }
- var validCalcs = new Array();
- for (var i = 0; i < cf.dlgGlobalSize('xxValidCalcItem'); i++)
- validCalcs[validCalcs.length] = cf.dlgGlobalGetParmAt('xxValidCalcItem', i);
- populateCalculationList(calcType, validCalcs);
- // select calculation
- document.f.calcList.selectedIndex = cf.dlgGlobalGetParm('xxCalcTypeIdx');
- getConfigFrame().cfgSet("CALCULATION_REFRESH", true);
- loadHint();
- setGlobals(calcType, false);
- addInsert();
- checkWeek();
- if (cf.dlgGlobalGetParm('xxDialogType') == 'CALCULATION_DAY')
- document.getElementById("displayCalcDay").style.display = "inline";
- // **** TEMPORARY ****
- //else if (cf.dlgGlobalGetParm('xxDialogType') == 'CALCULATION_MONTH')
- // document.getElementById("displayCalcMonth").style.display = "inline";
- }
- function redrawHint()
- {
- setTimeout(loadHint, 10);
- }
- //--></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 -->
- <clcdlg:basic_header/>
- </td>
- </tr>
- <tr>
- <td width="100%" height="100%" valign="top">
- <lyt:layout style="2" border="no">
- <lyt:section>
- <clcdlg:calculations/>
- <dp:input>
- <dp:section1>
- <xts:string id="CALCULATION_REP_ITEM"/>
- </dp:section1>
- <dp:section2>
- <select name="repSel" size="1" style="width:260" onChange="javascript:loadHint();"/>
- </dp:section2>
- </dp:input>
- <div id="displayCalcDay" style="display:none">
- <dp:input>
- <dp:section1>
- <xts:string id="CALCULATION_CREATE_DISPLAY"/>
- </dp:section1>
- <dp:section2>
- <select name="unitType" size="1" style="width:260" onChange="javascript:loadHint();checkWeek();">
- <!--
- /////////*** temporary ***//////////
- <option value="name"><xts:string id="CALCULATION_NAME_OF_DAY_OF_WEEK"/></option>
- /////////*** temporary ***//////////
- -->
- <option value="week">
- <xts:string id="CALCULATION_DAY_OF_WEEK"/>
- </option>
- <option value="month">
- <xts:string id="CALCULATION_DAY_OF_MONTH"/>
- </option>
- <option value="first">
- <xts:string id="CALCULATION_FIRST_OF_MONTH"/>
- </option>
- <option value="last">
- <xts:string id="CALCULATION_LAST_OF_MONTH"/>
- </option>
- <option value="year">
- <xts:string id="CALCULATION_DAY_OF_YEAR"/>
- </option>
- </select>
- </dp:section2>
- </dp:input>
- <div id="dayNumberOfWeek">
- <dp:input>
- <dp:section1>
- <xts:string id="CALCULATION_FIRST_DAY_OF_WEEK"/>
- </dp:section1>
- <dp:section2>
- <select name="firstOfWeek" size="1" style="width:260" onChange="javascript:loadHint();">
- <option value="7">
- <xts:string id="CALCULATION_SUNDAY"/>
- </option>
- <option value="1">
- <xts:string id="CALCULATION_MONDAY"/>
- </option>
- <option value="2">
- <xts:string id="CALCULATION_TUESDAY"/>
- </option>
- <option value="3">
- <xts:string id="CALCULATION_WEDNESDAY"/>
- </option>
- <option value="4">
- <xts:string id="CALCULATION_THURSDAY"/>
- </option>
- <option value="5">
- <xts:string id="CALCULATION_FRIDAY"/>
- </option>
- <option value="6">
- <xts:string id="CALCULATION_SATURDAY"/>
- </option>
- </select>
- </dp:section2>
- </dp:input>
- </div>
- </div>
- <!--
- /////////*** temporary ***//////////
- <div id="displayCalcMonth" style="display:none">
- <dp:input>
- <dp:section1><xts:string id="CALCULATION_CREATE_DISPLAY"/></dp:section1>
- <dp:section2>
- <select name="unitType" size="1" style="width:260" onChange="javascript:loadHint();">
- <option value="name"><xts:string id="CALCULATION_NAME_OF_MONTH_OF_YEAR"/></option>
- <option value="month"><xts:string id="CALCULATION_MONTH_OF_YEAR"/></option>
- </select>
- </dp:section2>
- </dp:input>
- </div>
- /////////*** temporary ***//////////
- -->
- </lyt:section>
- <lyt:section>
- <clcdlg:calc_hint/>
- </lyt:section>
- </lyt:layout>
- </td>
- </tr>
- <tr>
- <td width="100%" height="0%">
- <!-- Use default buttons [ OK = execute() and CANCEL = hideDialogFrame() ] -->
- <clcdlg:buttons/>
- </td>
- </tr>
- <!-- <dbg:dumpxml select="/"/> -->
- </table>
- </form>
- </dp:page>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- </xts:morphlet>
|