PDate_MultiSelect_Range.html 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. i18n('WEB_PROMPT_FROM')
  13. <input min="true" type="text"></input>
  14. i18n('WEB_PROMPT_TO')
  15. <input max="true" type="text"></input>
  16. <input type="button" btype="insert" value="i18n('WEB_PROMPT_INSERT')"></input>
  17. <div id="msg${prompt.name}Select"></div>
  18. <select name="p_${prompt.name}" size="4" multiple="true"
  19. <%
  20. def classes = "msgPos:&apos;msg${prompt.name}Select&apos; ";
  21. if( prompt.required ) classes += " selectrequired"
  22. out << " class='${classes}'>"
  23. prompt.defaultRanges.each{ r ->
  24. if( r.startUseValue == null ){
  25. out << "<option lessthan='${prompt.toLongString(prompt.parse(r.endUseValue))}' value='{&quot;minValue&quot;:&quot;&lt;MIN&gt;&quot;,&quot;maxValue&quot;:&quot;&lt;![CDATA[${prompt.toLongString(prompt.parse(r.endUseValue))}]]&gt;&quot;}'></option>"
  26. } else if( r.endUseValue == null ){
  27. out << "<option greaterthan='${prompt.toLongString(prompt.parse(r.startUseValue))}' value='{&quot;minValue&quot;:&quot;&lt;![CDATA[${prompt.toLongString(prompt.parse(r.startUseValue))}]]&gt;&quot;,&quot;maxValue&quot;:&quot;&lt;MAX&gt;&quot;}'></option>"
  28. } else {
  29. out << "<option between1='${prompt.toLongString(prompt.parse(r.startUseValue))}' between2='${prompt.toLongString(prompt.parse(r.endUseValue))}' value='{&quot;minValue&quot;:&quot;&lt;![CDATA[${prompt.toLongString(prompt.parse(r.startUseValue))}]]&gt;&quot;,&quot;maxValue&quot;:&quot;&lt;![CDATA[${prompt.toLongString(prompt.parse(r.endUseValue))}]]&gt;&quot;}'></option>"
  30. }
  31. }
  32. %></select>
  33. <a id="select_all" href="javascript:void(0)">i18n('WEB_PROMPT_SELECT_ALL')</a>
  34. <a id="deselect_all" href="javascript:void(0)">i18n('WEB_PROMPT_DESELECT_ALL')</a>
  35. <input type="button" btype="remove" value="i18n('WEB_PROMPT_REMOVE')"></input>
  36. </div>