PIntrvl_Range.html 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <!-- Licensed Materials - Property of IBM
  2. BI and PM: Mobile
  3. (C) Copyright IBM Corp. 2007, 2012
  4. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. -->
  5. <%
  6. String[] start = prompt.intervalToArray("");
  7. String[] end = prompt.intervalToArray("");
  8. if (prompt.getDefaultRange() != null && prompt.getDefaultRange().getStartUseValue() != null) {
  9. start = prompt.intervalToArray(prompt.getDefaultRange().getStartUseValue());
  10. }
  11. if (prompt.getDefaultRange() != null) {
  12. if (prompt.getDefaultRange().getStartUseValue() != null) start = prompt.intervalToArray(prompt.getDefaultRange().getStartUseValue());
  13. if (prompt.getDefaultRange().getEndUseValue() != null) end = prompt.intervalToArray(prompt.getDefaultRange().getEndUseValue());
  14. }
  15. String[] DefValues = start;
  16. String[] DefValues2 = end;
  17. def c = "msgPos:&apos;msg${prompt.name}&apos; "
  18. if( prompt.required ) c += " required"
  19. %>
  20. <div class="prompt ${prompt.tag}" ${prompt}>
  21. <div id="msg${prompt.name}"></div>
  22. <%
  23. if( !label ) out << "<label>${prompt.name}</label>"
  24. %>
  25. i18n('WEB_PROMPT_FROM')
  26. <div min="true">
  27. <table>
  28. <tr>
  29. <td>i18n('WEB_PROMPT_INTERVAL_DAYS'):</td>
  30. <td>i18n('WEB_PROMPT_INTERVAL_HOURS'):</td>
  31. <td>i18n('WEB_PROMPT_INTERVAL_MINUTES'):</td>
  32. <% if( prompt.displaySeconds ){ %>
  33. <td>i18n('WEB_PROMPT_INTERVAL_SECONDS'):</td>
  34. <% } %>
  35. <% if( prompt.displayMilliSeconds ){ %>
  36. <td>i18n('WEB_PROMPT_INTERVAL_MILLISECONDS'):</td>
  37. <% } %>
  38. </tr>
  39. <tr>
  40. <td><input type="text" itype="D" size="4" value="${DefValues[0]}" class="${c}" pattern="[0-9]*"></input></td>
  41. <td><input type="text" itype="H" size="4" value="${DefValues[1]}" class="${c}" pattern="[0-9]*"></input></td>
  42. <td><input type="text" itype="M" size="2" value="${DefValues[2]}" maxlength="2" class="${c}" pattern="[0-9]*"></input></td>
  43. <% if( prompt.displaySeconds ){ %>
  44. <td><input type="text" itype="S" size="2" value="${DefValues[3]}" maxlength="2" class="${c}" pattern="[0-9]*"></input></td>
  45. <% } %>
  46. <% if( prompt.displayMilliSeconds ){ %>
  47. <td><input type="text" itype="MS" size="3" value="${DefValues[4]}" maxlength="3" class="${c}" pattern="[0-9]*"></input></td>
  48. <% } %>
  49. </tr>
  50. </table>
  51. i18n('WEB_PROMPT_TO')
  52. <div max="true">
  53. <table>
  54. <tr>
  55. <td>i18n('WEB_PROMPT_INTERVAL_DAYS'):</td>
  56. <td>i18n('WEB_PROMPT_INTERVAL_HOURS'):</td>
  57. <td>i18n('WEB_PROMPT_INTERVAL_MINUTES'):</td>
  58. <% if( prompt.displaySeconds ){ %>
  59. <td>i18n('WEB_PROMPT_INTERVAL_SECONDS'):</td>
  60. <% } %>
  61. <% if( prompt.displayMilliSeconds ){ %>
  62. <td>i18n('WEB_PROMPT_INTERVAL_MILLISECONDS'):</td>
  63. <% } %>
  64. </tr>
  65. <tr>
  66. <td><input type="text" itype="D" size="4" value="${DefValues2[0]}" class="${c}" pattern="[0-9]*"></input></td>
  67. <td><input type="text" itype="H" size="4" value="${DefValues2[1]}" class="${c}" pattern="[0-9]*"></input></td>
  68. <td><input type="text" itype="M" size="2" value="${DefValues2[2]}" maxlength="2" class="${c}" pattern="[0-9]*"></input></td>
  69. <% if( prompt.displaySeconds ){ %>
  70. <td><input type="text" itype="S" size="2" value="${DefValues2[3]}" maxlength="2" class="${c}" pattern="[0-9]*"></input></td>
  71. <% } %>
  72. <% if( prompt.displayMilliSeconds ){ %>
  73. <td><input type="text" itype="MS" size="3" value="${DefValues2[4]}" maxlength="3" class="${c}" pattern="[0-9]*"></input></td>
  74. <% } %>
  75. </tr>
  76. </table>
  77. </div>
  78. </div>