PDTime.html 1.0 KB

123456789101112131415161718192021
  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.defaultValue != null && prompt.defaultValue.length() != 0 ) out << " default='${prompt.toLongString(prompt.parse(prompt.defaultValue))}'"
  7. if( prompt.firstDate != null ) out << " first='${prompt.toLongString(prompt.firstDate)}'"
  8. if( prompt.lastDate != null ) out << " last='${prompt.toLongString(prompt.lastDate)}'"
  9. %>>
  10. <%
  11. if( !label ) out << "<label>${prompt.name}</label>"
  12. %>
  13. <div id="msg${prompt.name}"></div>
  14. <input type="text" <%
  15. def classes = "msgPos:&apos;msg${prompt.name}&apos; ";
  16. if( prompt.required ) classes += " required"
  17. out << " class='${classes}'"
  18. if( prompt.defaultValue != null && prompt.defaultValue.length() != 0 ) out << " actualvalue='${prompt.toLongString(prompt.parse(prompt.defaultValue))}'"
  19. %>></input>
  20. </div>