PIntrvl_MultiSelect.html 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. <table>
  11. <tr>
  12. <td>i18n('WEB_PROMPT_INTERVAL_DAYS'):</td>
  13. <td>i18n('WEB_PROMPT_INTERVAL_HOURS'):</td>
  14. <td>i18n('WEB_PROMPT_INTERVAL_MINUTES'):</td>
  15. <% if( prompt.displaySeconds ){ %>
  16. <td>i18n('WEB_PROMPT_INTERVAL_SECONDS'):</td>
  17. <% } %>
  18. <% if( prompt.displayMilliSeconds ){ %>
  19. <td>i18n('WEB_PROMPT_INTERVAL_MILLISECONDS'):</td>
  20. <% } %>
  21. </tr>
  22. <tr>
  23. <td><input type="text" itype="D" size="4" value="" pattern="[0-9]*"></input></td>
  24. <td><input type="text" itype="H" size="4" value="" pattern="[0-9]*"></input></td>
  25. <td><input type="text" itype="M" size="2" value="" maxlength="2" pattern="[0-9]*"></input></td>
  26. <% if( prompt.displaySeconds ){ %>
  27. <td><input type="text" itype="S" size="2" value="" maxlength="2" pattern="[0-9]*"></input></td>
  28. <% } %>
  29. <% if( prompt.displayMilliSeconds ){ %>
  30. <td><input type="text" itype="MS" size="3" value="" maxlength="3" pattern="[0-9]*"></input></td>
  31. <% } %>
  32. </tr>
  33. </table>
  34. <input type="button" btype="insert" value="i18n('WEB_PROMPT_INSERT')"></input>
  35. <select size="4" multiple="true" <%
  36. classes = "msgPos:&apos;msg${prompt.name}Select&apos; ";
  37. if( prompt.required ) classes += " selectrequired"
  38. out << " class='${classes}'>"
  39. if( prompt.defaults != null ){
  40. prompt.defaults.keys().each{ key ->
  41. out << "<option value='&lt;![CDATA[${prompt.defaults.get(key)}]]&gt;'>${key}</option>"
  42. }
  43. }
  44. %>
  45. </select>
  46. <a id="select_all" href="javascript:void(0)">i18n('WEB_PROMPT_SELECT_ALL')</a>
  47. <a id="deselect_all" href="javascript:void(0)">i18n('WEB_PROMPT_DESELECT_ALL')</a>
  48. <input type="button" btype="remove" value="i18n('WEB_PROMPT_REMOVE')"></input>
  49. </div>