PDate_MultiSelect.html 1.3 KB

123456789101112131415161718192021222324252627282930313233
  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}<%
  6. if( prompt.firstDate != null ) out << " first='${prompt.toLongString(prompt.firstDate)}'"
  7. if( prompt.lastDate != null ) out << " last='${prompt.toLongString(prompt.lastDate)}'"
  8. %>>
  9. <%
  10. if( !label ) out << "<label>${prompt.name}</label>"
  11. %>
  12. <input type="text" <%
  13. if( prompt.lastDate != null ) out << " actualvalue='${prompt.toLongString(prompt.lastDate)}'"
  14. %>></input>
  15. <input type="button" btype="insert" value="i18n('WEB_PROMPT_INSERT')"></input>
  16. <div id="msg${prompt.name}Select"></div>
  17. <select size="4" multiple="true"
  18. <%
  19. def classes = "msgPos:&apos;msg${prompt.name}Select&apos; ";
  20. if( prompt.required ) classes += " selectrequired"
  21. out << " class='${classes}'>"
  22. if( prompt.defaults != null ){
  23. prompt.defaultsValuesAsDates.each{ key ->
  24. out << "<option value='&lt;![CDATA[${prompt.toLongString(key)}]]&gt;'></option>"
  25. }
  26. }
  27. %>
  28. </select>
  29. <a id="select_all" href="javascript:void(0)">i18n('WEB_PROMPT_SELECT_ALL')</a>
  30. <a id="deselect_all" href="javascript:void(0)">i18n('WEB_PROMPT_DESELECT_ALL')</a>
  31. <input type="button" btype="remove" value="i18n('WEB_PROMPT_REMOVE')"></input>
  32. </div>