notification-task.xslt 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: HTS
  5. (C) Copyright IBM Corp. 2005, 2010
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" xmlns:xts="http://developer.cognos.com/schemas/xts/" xmlns:hts="http://developer.cognos.com/myinbox/common/hts_ui" exclude-result-prefixes="xts hts">
  9. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
  10. <xsl:variable name="notification_recipient_to_field"><xts:string id="IDS_FRAG_TASKVIEWER_LABEL_NOTIFICAION_RECIPIENT_TO_ALT_TXT"/></xsl:variable>
  11. <xsl:variable name="notification_recipient_cc_field"><xts:string id="IDS_FRAG_TASKVIEWER_LABEL_NOTIFICAION_RECIPIENT_CC_ALT_TXT"/></xsl:variable>
  12. <xsl:variable name="subject_input_field"><xts:string id="IDS_FRAG_TASKVIEWER_LABEL_SUBJECT_ALT_TXT"/></xsl:variable>
  13. <xsl:variable name="skin"><xsl:value-of select="xtsext:javascriptencode(string(/root/preferences/param[@name='skin']))"/></xsl:variable>
  14. <xsl:template match="/">
  15. <hts:script>
  16. //register ps dojo library to dojo
  17. dojo.registerModulePath('com', '../../ps/portal/js/com');
  18. dojo.require("dijit.Editor");
  19. dojo.require("com.ibm.cognos.ps.dojo.editor.plugins.TablePlugins");
  20. var _THIS_dateFrom="";
  21. var _THIS_dateTo="";
  22. var _THIS_toggler = new hts_toggler();
  23. var _THIS_dojoEditor;
  24. //messages used by TablePlugins.js
  25. var IDS_EMAIL_OPTIONS_BACKGRD = '<xts:string id="IDS_EMAIL_OPTIONS_BACKGRD" encode="javascript"/>';
  26. var IDS_EMAIL_OPTIONS_BORDER = '<xts:string id="IDS_EMAIL_OPTIONS_BORDER" encode="javascript"/>';
  27. _THIS_.addEventListener("fragment.load", "_THIS_init");
  28. _THIS_.parent.addEventListener("cognos.hts.buildNotificationTaskEditor", "_THIS_buildDojoEditor");
  29. function _THIS_init() {
  30. //We are running in Planning mode so hide the links.
  31. if (hts_productMode &amp;&amp; hts_productMode.getMode() == hts_productMode.PLANNING) {
  32. dojo.attr("_THIS_linksDivNot","style",{display:"none"});
  33. }
  34. //set the picker to display nothing. this fixes the issue of todays date getting displayed when no deadlines exist
  35. //also set the correct tab index and the correct label to be read by JAWs screen reader
  36. var dueDateEle = $('txtDate'+&apos;_THIS_&apos;+'taskOptions_dueDate');
  37. if (dueDateEle) {
  38. dijit.setWaiState(dueDateEle,'label','<xts:string id="IDS_FRAG_A11Y_DUE_DATE_LABEL" encode="javascript"/>');
  39. dueDateEle.value="";
  40. dueDateEle.tabIndex=11;
  41. }
  42. var uiStyle = new CUIStyle("CList_li", "CList_over", "CList_selected", "", null);
  43. // global cList
  44. cListNotifTask = new CList("myCList",false, "CList_ul",uiStyle);
  45. if (!_THIS_dojoEditor) {
  46. _THIS_dojoEditor = new DOJOEditor("_THIS__notificationMessageValue",{height: '150px' ,extraPlugins:['|',{name: 'com.ibm.cognos.ps.dojo.editor.plugins.TablePlugins', command: 'insertTableWithValidation', label:'<xts:string id="IDS_FRAG_TASKVIEWER_DOJO_INSERT_TABLE" encode="javascript"/>'},{name: 'com.ibm.cognos.ps.dojo.editor.plugins.TablePlugins', command: 'modifyTableWithValidation', label:'<xts:string id="IDS_FRAG_TASKVIEWER_DOJO_MODIFY_TABLE" encode="javascript"/>'}]});
  47. } else {
  48. //just incase
  49. _THIS_dojoEditor.destroy();
  50. }
  51. }
  52. function _THIS_buildDojoEditor() {
  53. _THIS_dojoEditor.create();
  54. setTimeout(function(){var input = dojo.byId('_THIS__potentialOwners_display');input.focus();}, 500);
  55. var iframe = dojo.byId('_THIS__notificationMessageValue_iframe');
  56. iframe.tabIndex=5;
  57. if (dojo.isMoz) {
  58. var contentDoc =_THIS_getEditorIFrameDocument();
  59. dojo.connect(contentDoc, 'onkeydown',_THIS_editor_handleTabKeyDown);
  60. }
  61. }
  62. function _THIS_getEditorIFrameDocument() {
  63. var iframe = dojo.byId('_THIS__notificationMessageValue_iframe');
  64. var contentDoc =(iframe.contentWindow || iframe.contentDocument);
  65. if (contentDoc.document) {
  66. contentDoc=contentDoc.document;
  67. }
  68. return contentDoc;
  69. }
  70. /* HACK alert!! There is a firefox/dojo bug which means that you cannot tab out of the editor and therefore cannot
  71. * access the ui below the editor using the keyboard. Attach a key listener to the editor iframe
  72. * and capture tab keys. When tab is pressed focus the element with the next tab index.
  73. */
  74. function _THIS_editor_handleTabKeyDown(e) {
  75. var keyCode = _THIS_getKeyCode(e);
  76. var iframe = dojo.byId('_THIS__notificationMessageValue_iframe');
  77. if(keyCode == dojo.keys.TAB &amp;&amp; !e.shiftKey &amp;&amp; !e.ctrlKey &amp;&amp; !e.altKey &amp;&amp; iframe){
  78. //iframe.focus(); //does not work
  79. //get the control with the next tabindex
  80. var nextTabIndex = iframe.tabIndex + 1;
  81. var done=false;
  82. //get all pform controls with a tabIndex
  83. dojo.query('#_THIS_pform [tabIndex]').forEach(function(ele){
  84. if (ele.id &amp;&amp; ele.tabIndex==nextTabIndex &amp;&amp; !done) {
  85. ele.focus();
  86. done=true;
  87. }
  88. });
  89. dojo.stopEvent(e);
  90. }
  91. }
  92. function _THIS_getKeyCode(e) {
  93. var keynum;
  94. if(window.event) // IE
  95. {
  96. keynum = e.keyCode;
  97. }
  98. else if(e.which) // Netscape/Firefox/Opera
  99. {
  100. keynum = e.which;
  101. }
  102. return keynum;
  103. }
  104. function _THIS_handleDeleteKeyDown(e) {
  105. //delete key
  106. var keynum;
  107. var keychar;
  108. if(window.event) // IE
  109. {
  110. keynum = e.keyCode;
  111. }
  112. else if(e.which) // Netscape/Firefox/Opera
  113. {
  114. keynum = e.which;
  115. }
  116. if(keynum == 46) {
  117. cListNotifTask.removeSelected();
  118. }
  119. return true;
  120. }
  121. function _THIS_save() {
  122. var links = new HTSLinks(cListNotifTask,$('linksDivNot'));
  123. document.getElementById('_THIS__linksList_value').value = links.getValues();
  124. document.getElementById('_THIS__linksList_display').value = links.getDisplayValues();
  125. if (hts_createNotificationTask(_THIS_,&apos;_THIS_&apos;)) {
  126. _THIS_done();
  127. //reload the task list to show new task if need be
  128. var _THIS_utils = new hts_utils(_THIS_);
  129. _THIS_utils.refreshCurrentTab('poolTaskList');
  130. }
  131. }
  132. function _THIS_done() {
  133. _THIS_dojoEditor.destroy();
  134. _THIS_.raiseEvent('cognos.hts.hideAll');
  135. }
  136. function _THIS_cancel() {
  137. // check if user has done some editing and warn before cancel
  138. var editedInfo = (document.getElementById('_THIS__subject_value').value );
  139. editedInfo +=(document.getElementById('_THIS__potentialOwners_value').value );
  140. editedInfo +=(document.getElementById('_THIS__stakeHolders_value').value );
  141. editedInfo += _THIS_dojoEditor.getValue();
  142. var links = new HTSLinks(cListNotifTask,$('linksDivNot'));
  143. editedInfo += links.getValues();
  144. var promptYes ;
  145. if(editedInfo.length>0){
  146. promptYes = confirm( '<xts:string id="IDS_FRAG_TASKVIEWER_WARN_TASK_MODIFIED" encode="javascript"/>' );
  147. if(!promptYes){
  148. return false;
  149. }else {
  150. // Lets manually clean each item on the task page
  151. document.getElementById('_THIS__subject_value').value = '';
  152. hts_removeAllLinks(cListNotifTask);
  153. var currentUser = new HTSHumanRole("_THIS__stakeHolders");
  154. currentUser.clear();
  155. var potUser = new HTSHumanRole("_THIS__potentialOwners");
  156. potUser.clear();
  157. }
  158. }
  159. _THIS_dojoEditor.destroy();
  160. _THIS_.raiseEvent('cognos.hts.displayPreviousDiv');
  161. }
  162. function _THIS_checkRecordReadReceiptCheckbox()
  163. {
  164. var recordReadReceiptCheckbox = document.getElementById('_THIS_recordReadReceipt');
  165. var notificationCheckbox = document.getElementById('_THIS_notification');
  166. if(notificationCheckbox.checked==true)
  167. {
  168. recordReadReceiptCheckbox.checked = true;
  169. }
  170. }
  171. function _THIS_uncheckNotificationCheckbox()
  172. {
  173. var recordReadReceiptCheckbox = document.getElementById('_THIS_recordReadReceipt');
  174. var notificationCheckbox = document.getElementById('_THIS_notification');
  175. if(recordReadReceiptCheckbox.checked==false)
  176. {
  177. notificationCheckbox.checked = false;
  178. }
  179. }
  180. _THIS_monitor = function (evt) {
  181. if (evt.eventPhase == evt.AT_TARGET) //only want to execute this on downstream events
  182. return;
  183. var sendAndClose = $('_THIS_btnSendAndClose');
  184. if (sendAndClose){
  185. if (evt.name == "fragment.retrieve.before"){
  186. sendAndClose.disabled = true;
  187. } else {
  188. sendAndClose.disabled = false;
  189. }
  190. }
  191. }
  192. _THIS_.parent.addEventListener("fragment.retrieve.before", "_THIS_monitor", true);
  193. _THIS_.parent.addEventListener("fragment.retrieve.after", "_THIS_monitor", true);
  194. //declare the error messages
  195. var _THIS_msg_array = new Array();
  196. _THIS_msg_array['MSG_ERR_INCOMPATIBLE_DATES'] = '<xts:string id="IDS_FRAG_TASKVIEWER_WARN_INCOMPATIBLE_DATES" encode="javascript"/>';
  197. _THIS_msg_array['MSG_ERR_INVALID_END_DATE'] = '<xts:string id="IDS_FRAG_TASKVIEWER_WARN_INVALID_END_DATE" encode="javascript"/>';
  198. _THIS_msg_array['MSG_ERR_INVALID_START_DATE'] = '<xts:string id="IDS_FRAG_TASKVIEWER_WARN_INVALID_START_DATE" encode="javascript"/>';
  199. _THIS_msg_array['MSG_ERR_INVALID_DATE'] = '<xts:string id="IDS_FRAG_TASKVIEWER_WARN_INVALID_DATE" encode="javascript"/>';
  200. _THIS_msg_array['MSG_ERR_INVALID_ASSIGNMENT'] = '<xts:string id="IDS_FRAG_TASKVIEWER_WARN_INVALID_ASSIGNMENT" encode="javascript"/>';
  201. _THIS_msg_array['MSG_ERR_EQUAL_DATES'] = '<xts:string id="IDS_FRAG_TASKVIEWER_WARN_EQUAL_DATES" encode="javascript"/>';
  202. //_THIS_msg_array['MSG_ERR_START_CANNOT_USE_CURRENT_DATE'] = '<xts:string id="IDS_FRAG_TASKVIEWER_WARN_START_CANNOT_USE_CURRENT_DATE" encode="javascript"/>';
  203. _THIS_msg_array['MSG_ERR_COMPLETE_CANNOT_USE_CURRENT_DATE'] = '<xts:string id="IDS_FRAG_TASKVIEWER_WARN_COMPLETE_CANNOT_USE_CURRENT_DATE" encode="javascript"/>';
  204. _THIS_msg_array['MSG_ERR_NOTIFICATION_RECIPIENT_NOT_SELECTED'] = '<xts:string id="IDS_FRAG_TASKVIEWER_WARN_NOTIFICATION_RECIPIENT_NOT_SELECTED" encode="javascript"/>';
  205. _THIS_msg_array['MSG_ERR_NOTIFICATION_DATE_INVALID'] = '<xts:string id="IDS_FRAG_TASKVIEWER_WARN_NOTIFICATION_DATE_INVALID" encode="javascript"/>';
  206. _THIS_msg_array['MSG_ERR_NOTIFICATION_DATE_IN_PAST'] = '<xts:string id="IDS_FRAG_TASKVIEWER_WARN_NOTIFICATION_DATE_IN_PAST" encode="javascript"/>';
  207. try{
  208. if (typeof oCV=="undefined") {
  209. oCV=window;
  210. }
  211. } catch(e) {
  212. oCV=window;
  213. }
  214. var G_PM_THIS_ = new C_PromptManager();
  215. oCV.preProcessControlArray=[];
  216. p_sSkinFolder=_F_Config.webContent+"/skins/<xsl:value-of select='$skin'/>";
  217. p_sWebContentURI=_F_Config.webContent;
  218. oCV.gbPromptRequestSubmitted=false;
  219. oCV.bCanFinish=true;oCV.bNextPage=true;
  220. oCV.pageNavigationObserverArray=[];
  221. oCV.rangeObserverArray=[];
  222. oCV.multipleObserverArray=[];
  223. oCV.datePickerObserverArray=[];
  224. oCV.hasPromptKeyDown=false;
  225. </hts:script>
  226. <xsl:call-template name="renderOptions"/>
  227. </xsl:template>
  228. <xsl:template name="renderOptions">
  229. <form name="_THIS_pform" id="_THIS_pform" method="post" action="_THIS?/THIS_">
  230. <!--render the button bar -->
  231. <hts:section id="_THIS_footer" class="taskDetailsButtonBar">
  232. <hts:rowset>
  233. <hts:row>
  234. <hts:button id="_THIS_btnSendAndClose" onKeyPress="if (_hts_getKeyCode(event) == 13) _THIS_save();" onclick="_THIS_save();" tabindex="12">
  235. <hts:value><xts:string id="IDS_FRAG_TASKVIEWER_NOTIFICATIONTASK_BUTTON_SEND"/></hts:value>
  236. </hts:button>
  237. <hts:button id="_THIS_btnCancel" onKeyPress="if (_hts_getKeyCode(event) == 13) _THIS_cancel();" onclick="_THIS_cancel();" tabindex="13">
  238. <hts:value><xts:string id="IDS_FRAG_TASKVIEWER_NOTIFICATIONTASK_BUTTON_CANCEL"/></hts:value>
  239. </hts:button>
  240. </hts:row>
  241. </hts:rowset>
  242. </hts:section>
  243. <!-- Text fields and date fields -->
  244. <hts:section format="select-dialog" style="width:100%">
  245. <hts:actionlist>
  246. <hts:action>
  247. <hts:rowset>
  248. <hts:row format="select">
  249. <xsl:variable name="labelName">
  250. <xts:string id="IDS_FRAG_TASKVIEWER_NOTIFICATIONTASK_LABEL_TO"/>
  251. </xsl:variable>
  252. <hts:action style="width:20px">
  253. <label for="_THIS__potentialOwners_display"><hts:text><xsl:value-of select="$labelName"/></hts:text></label>
  254. </hts:action>
  255. <hts:action>
  256. <hts:img src="_THIS?frag-resource=/fragments/common/images/space.gif/THIS_" alt="" height="0px" width="20px"/>
  257. </hts:action>
  258. <hts:action>
  259. <hts:field size="100" type="text" aria-readonly="true" alt="$notification_recipient_to_field" name="_THIS__potentialOwners_display" id="_THIS__potentialOwners_display" readonly="true" tabindex="1"/>
  260. <hts:hidden id="_THIS__potentialOwners_value" name="_THIS__potentialOwners_value"/>
  261. </hts:action>
  262. </hts:row>
  263. <hts:row>
  264. <xsl:variable name="labelName">
  265. <xts:string id="IDS_FRAG_TASKVIEWER_NOTIFICATIONTASK_LABEL_CC"/>
  266. </xsl:variable>
  267. <hts:action style="width:20px">
  268. <label for="_THIS__stakeHolders_display"><hts:text><xsl:value-of select="$labelName"/></hts:text></label>
  269. </hts:action>
  270. <hts:action>
  271. <hts:img src="_THIS?frag-resource=/fragments/common/images/space.gif/THIS_" alt="" height="0px" width="20px"/>
  272. </hts:action>
  273. <hts:action>
  274. <hts:field size="100" type="text" aria-readonly="true" alt="$notification_recipient_cc_field" name="_THIS__stakeHolders_display" id="_THIS__stakeHolders_display" readonly="true" tabindex="2"/>
  275. <hts:hidden id="_THIS__stakeHolders_value" name="_THIS__stakeHolders_value"/>
  276. </hts:action>
  277. </hts:row>
  278. <hts:row>
  279. <hts:div colspan="3" style="padding-bottom:4px;width:100%;text-align:right">
  280. <hts:link tabindex="3" id="_THIS_AddReceipientLink" onKeyPress="if (_hts_getKeyCode(event) == 13) hts_selectRecipients(&quot;&quot;,_THIS_msg_array,&apos;_THIS_&apos;+'_stakeHolders',&apos;_THIS_&apos;+'_potentialOwners');" onclick="hts_selectRecipients(&quot;&quot;,_THIS_msg_array,&apos;_THIS_&apos;+'_stakeHolders',&apos;_THIS_&apos;+'_potentialOwners');" href="#"><xts:string id="IDS_FRAG_TASKVIEWER_LABEL_ADD_RECIPIENTS"/></hts:link>
  281. </hts:div>
  282. <hts:action>
  283. <hts:img src="_THIS?frag-resource=/fragments/common/images/space.gif/THIS_" alt="" height="0px" width="300px"/>
  284. </hts:action>
  285. </hts:row>
  286. <hts:row format="select">
  287. <hts:action style="width:40px">
  288. <label for="_THIS__subject_value"><hts:text><xts:string id="IDS_FRAG_TASKVIEWER_NOTIFICATIONTASK_LABEL_SUBJECT"/></hts:text></label>
  289. </hts:action>
  290. <hts:action>
  291. <hts:img src="_THIS?frag-resource=/fragments/common/images/space.gif/THIS_" alt="" height="0px" width="5px"/>
  292. </hts:action>
  293. <hts:action colspan="2">
  294. <hts:field size="150" tabindex="4" type="text" alt="$subject_input_field" name="_THIS__subject_value" id="_THIS__subject_value"/>
  295. </hts:action>
  296. </hts:row>
  297. </hts:rowset>
  298. </hts:action>
  299. </hts:actionlist>
  300. <!-- Message with link -->
  301. <hts:actionlist>
  302. <hts:action>
  303. <label for="_THIS__notificationMessageValue_iframe"><xts:string id="IDS_FRAG_TASKVIEWER_NOTIFICATIONTASK_LABEL_MESSAGE"/></label>
  304. </hts:action>
  305. </hts:actionlist>
  306. <hts:div>
  307. <xsl:attribute name="id">_THIS__notificationMessageValue</xsl:attribute>
  308. <xsl:attribute name="style">margin-bottom:3px;width:100%</xsl:attribute>
  309. <!--xsl:attribute name="dojoType">dijit.Editor</xsl:attribute-->
  310. </hts:div>
  311. <hts:hidden id="_THIS__notificationMessageTextValue" name="_THIS__notificationMessageTextValue"/>
  312. <hts:div id="_THIS_linksDivNot">
  313. <hts:div id="linksDivNot" class="htsLinkArea" onkeydown="_THIS_handleDeleteKeyDown(event)"/>
  314. <hts:hidden id="_THIS__linksList_value" name="_THIS__linksList_value"/>
  315. <hts:hidden id="_THIS__linksList_display" name="_THIS__linksList_display"/>
  316. <div align="right">
  317. <hts:link tabindex="6" id="_THIS__removeLinks" onclick="hts_removeLinks(cListNotifTask, '_THIS__removeLinks');" href="#">
  318. <xts:string id="IDS_FRAG_TASKVIEWER_LABEL_REMOVE_LINKS"/>
  319. </hts:link>
  320. <hts:link tabindex="7" id="_THIS__addLinks" onclick="hts_selectLinks(cListNotifTask,'linksDivNot', '_THIS__addLinks', 6);" href="#">
  321. <xts:string id="IDS_FRAG_TASKVIEWER_LABEL_ADD_LINKS"/>
  322. </hts:link>
  323. </div>
  324. </hts:div>
  325. <!-- Advanced collapse area -->
  326. <hts:dynamicexpandcontrol name="_THIS_taskOptions_advanced" tabindex="8">
  327. <hts:text><xts:string id="IDS_FRAG_TASKVIEWER_SUBSCRIPTION_LABEL_ADVANCED"/></hts:text>
  328. <hts:dynamicarea>
  329. <hts:div class="cogstyle-hts-subscription-div-border" id="_THIS_taskOptions_advanced" name="_THIS_taskOptions_advanced">
  330. <hts:actionlist>
  331. <hts:action>
  332. <hts:img src="_THIS?frag-resource=/fragments/common/images/space.gif/THIS_" alt="" width="12px"/>
  333. </hts:action>
  334. <hts:action>
  335. <hts:text><xts:string id="IDS_FRAG_TASKVIEWER_NOTIFICATIONTASK_LABEL_OPTIONS"/></hts:text>
  336. <hts:actionlist>
  337. <hts:action>
  338. <hts:checkbox id="_THIS_recordReadReceipt" onclick="_THIS_uncheckNotificationCheckbox()" tabindex="9">
  339. <hts:value>RECORD_READ_RECEIPT</hts:value>
  340. <hts:text><xts:string id="IDS_FRAG_TASKVIEWER_NOTIFICATIONTASK_LABEL_RECORD_READ_RECEIPT"/></hts:text>
  341. </hts:checkbox>
  342. <hts:checkbox id="_THIS_notification" onclick="_THIS_checkRecordReadReceiptCheckbox();" tabindex="10">
  343. <hts:value>STATE_CHANGE</hts:value>
  344. <hts:text><xts:string id="IDS_FRAG_TASKVIEWER_SUBSCRIPTION_LABEL_NOTIFY_NOT_READ"/></hts:text>
  345. </hts:checkbox>
  346. <xsl:variable name="dueDateAriaLabel">
  347. <xts:string id="IDS_FRAG_TASKVIEWER_SUBSCRIPTION_LABEL_NOTIFY_NOT_READ"/>
  348. </xsl:variable>
  349. <div aria-label="{$dueDateAriaLabel}">
  350. <hts:actionlist>
  351. <hts:action>
  352. <hts:img src="_THIS?frag-resource=/fragments/common/images/space.gif/THIS_" alt="" width="15px"/>
  353. </hts:action>
  354. <hts:action>
  355. <hts:section format="select-dialog" id="selectDate_THIS_taskOptions_dueDate">
  356. <hts:script>
  357. var _THIS_dueDateId = "_THIS_taskOptions_dueDate";
  358. hts_clearDatePickersIframe(_THIS_dueDateId);
  359. genSelectDateHTML({formName:"_THIS_pform",parameterName:"_THIS_taskOptions_dueDate",submitType:"",prmtDefaultDate:_THIS_dateTo,defaultValue:_THIS_dateTo,startOfWeek:"Sunday",calendar:"Gregorian",selectUI:"editBox",selectDateUI:"editBox",inputOrder:"YMD",firstDate:hts_getCurrentDate(),lastDate:"",dateTime:0,initialState:RANGE_NO_VALUE,required:false,suppressDisabled:true,hideAdornments:false,suppressExtraPromptNames:false,multi:false,range:false,style:"",selectDateEditBoxStyle:"",selectDateYearsStyle:"",selectDateMonthsStyle:"",selectDateDaysOfWeekStyle:"",selectDateDaysStyle:"",CVId:"",id:_THIS_dueDateId});
  360. </hts:script>
  361. </hts:section>
  362. </hts:action>
  363. </hts:actionlist>
  364. </div>
  365. </hts:action>
  366. </hts:actionlist>
  367. </hts:action>
  368. </hts:actionlist>
  369. </hts:div>
  370. </hts:dynamicarea>
  371. </hts:dynamicexpandcontrol>
  372. </hts:section>
  373. </form>
  374. </xsl:template>
  375. </xsl:stylesheet>