PIntrvl_MultiSelect_Range.html 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. <div class="prompt ${prompt.tag}" ${prompt}>
  6. <div id="msg${prompt.name}"></div>
  7. <%
  8. if( !label ) out << "<label>${prompt.name}</label>"
  9. %>
  10. i18n('WEB_PROMPT_FROM')
  11. <div min="true">
  12. <table>
  13. <tr>
  14. <td>i18n('WEB_PROMPT_INTERVAL_DAYS'):</td>
  15. <td>i18n('WEB_PROMPT_INTERVAL_HOURS'):</td>
  16. <td>i18n('WEB_PROMPT_INTERVAL_MINUTES'):</td>
  17. <% if( prompt.displaySeconds ){ %>
  18. <td>i18n('WEB_PROMPT_INTERVAL_SECONDS'):</td>
  19. <% } %>
  20. <% if( prompt.displayMilliSeconds ){ %>
  21. <td>i18n('WEB_PROMPT_INTERVAL_MILLISECONDS'):</td>
  22. <% } %>
  23. </tr>
  24. <tr>
  25. <td><input type="text" itype="D" size="4" value="" pattern="[0-9]*"></input></td>
  26. <td><input type="text" itype="H" size="4" value="" pattern="[0-9]*"></input></td>
  27. <td><input type="text" itype="M" size="2" value="" maxlength="2" pattern="[0-9]*"></input></td>
  28. <% if( prompt.displaySeconds ){ %>
  29. <td><input type="text" itype="S" size="2" value="" maxlength="2" pattern="[0-9]*"></input></td>
  30. <% } %>
  31. <% if( prompt.displayMilliSeconds ){ %>
  32. <td><input type="text" itype="MS" size="3" value="" maxlength="3" pattern="[0-9]*"></input></td>
  33. <% } %>
  34. </tr>
  35. </table>
  36. </div>
  37. i18n('WEB_PROMPT_TO')
  38. <div max="true">
  39. <table>
  40. <tr>
  41. <td>i18n('WEB_PROMPT_INTERVAL_DAYS'):</td>
  42. <td>i18n('WEB_PROMPT_INTERVAL_HOURS'):</td>
  43. <td>i18n('WEB_PROMPT_INTERVAL_MINUTES'):</td>
  44. <% if( prompt.displaySeconds ){ %>
  45. <td>i18n('WEB_PROMPT_INTERVAL_SECONDS'):</td>
  46. <% } %>
  47. <% if( prompt.displayMilliSeconds ){ %>
  48. <td>i18n('WEB_PROMPT_INTERVAL_MILLISECONDS'):</td>
  49. <% } %>
  50. </tr>
  51. <tr>
  52. <td><input type="text" itype="D" size="4" value="" pattern="[0-9]*" ></input></td>
  53. <td><input type="text" itype="H" size="4" value="" pattern="[0-9]*" ></input></td>
  54. <td><input type="text" itype="M" size="2" value="" maxlength="2" pattern="[0-9]*"></input></td>
  55. <% if( prompt.displaySeconds ){ %>
  56. <td><input type="text" itype="S" size="2" value="" maxlength="2" pattern="[0-9]*"></input></td>
  57. <% } %>
  58. <% if( prompt.displayMilliSeconds ){ %>
  59. <td><input type="text" itype="MS" size="3" value="" maxlength="3" pattern="[0-9]*"></input></td>
  60. <% } %>
  61. </tr>
  62. </table>
  63. </div>
  64. <input type="button" btype="insert" value="i18n('WEB_PROMPT_INSERT')"></input>
  65. <select name="p_${prompt.name}" size="4" multiple="true"<%
  66. def classes = "msgPos:&apos;msg${prompt.name}&apos; ";
  67. if( prompt.required ) classes += " selectrequired"
  68. out << " class='${classes}'>"
  69. prompt.defaultRanges.each{ r ->
  70. if( r.startUseValue == null ){
  71. out << "<option value='{&quot;minValue&quot;:&quot;&lt;MIN&gt;&quot;,&quot;maxValue&quot;:&quot;&lt;![CDATA[${r.endUseValue}]]&gt;&quot;}'>i18n('WEB_PROMPT_LESSTHANOREQUAL', ['${r.endDisplayValue}'])</option>"
  72. } else if( r.endUseValue == null ){
  73. out << "<option value='{&quot;minValue&quot;:&quot;&lt;![CDATA[${r.startUseValue}]]&gt;&quot;,&quot;maxValue&quot;:&quot;&lt;MAX&gt;&quot;}'>i18n('WEB_PROMPT_GREATERTHANOREQUAL', ['${r.startDisplayValue}'])</option>"
  74. } else {
  75. out << "<option value='{&quot;minValue&quot;:&quot;&lt;![CDATA[${r.startUseValue}]]&gt;&quot;,&quot;maxValue&quot;:&quot;&lt;![CDATA[${r.endUseValue}]]&gt;&quot;}'>i18n('WEB_PROMPT_BETWEEN', ['${r.startDisplayValue}', '${r.endDisplayValue}'])</option>"
  76. }
  77. }
  78. %></select>
  79. <a id="select_all" href="javascript:void(0)">i18n('WEB_PROMPT_SELECT_ALL')</a>
  80. <a id="deselect_all" href="javascript:void(0)">i18n('WEB_PROMPT_DESELECT_ALL')</a>
  81. <input type="button" btype="remove" value="i18n('WEB_PROMPT_REMOVE')"></input>
  82. </div>