1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <!-- Licensed Materials - Property of IBM
- BI and PM: Mobile
- (C) Copyright IBM Corp. 2007, 2012
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. -->
- <div class="prompt" ${prompt}>
- <%
- String displayName = prompt.label;
- if (displayName == null || displayName.isEmpty()) {
- displayName = prompt.name;
- }
- %>
- <%
- if( !label ) out << "<label>${displayName}</label>"
- %>
- i18n('WEB_PROMPT_FROM')
- <select min="true">
- <option value="<MIN>"></option>
- <%
- def range = prompt.getRangeSelection()
- prompt.options.keys().each{ key ->
- if( range != null && range.startUseValue != null && range.startUseValue == prompt.options.get(key) && range.startDisplayValue == key ){
- out << "<option value='<![CDATA[${prompt.options.get(key)}]]>' selected='true'>${key}</option>"
- }else{
- out << "<option value='<![CDATA[${prompt.options.get(key)}]]>'>${key}</option>"
- }
- }
- %>
- </select>
- i18n('WEB_PROMPT_TO')
- <select max="true">
- <option value="<MAX>"></option>
- <%
- prompt.options.keys().each{ key ->
- if( range != null && range.endUseValue != null && range.endUseValue == prompt.options.get(key) && range.endDisplayValue == key ){
- out << "<option value='<![CDATA[${prompt.options.get(key)}]]>' selected='true'>${key}</option>"
- }else{
- out << "<option value='<![CDATA[${prompt.options.get(key)}]]>'>${key}</option>"
- }
- }
- %>
- </select>
- <input type="button" btype="insert" value="i18n('WEB_PROMPT_INSERT')"></input>
- <div id="msg${prompt.name}"></div>
- <select result="true" name="p_${prompt.name}" size="4" multiple="true"
- <%
- def classes = "msgPos:'msg${prompt.name}'";
- if( prompt.required ) classes += " selectrequired"
- out << " class='${classes}' >"
-
- prompt.getRangeSelections().each{ r ->
- if( r.startUseValue == null ){
- out << "<option value='{"useMinValue":"<MIN>","useMaxValue":"<![CDATA[${r.endUseValue}]]>","displayMinValue":"","displayMaxValue":"${r.endDisplayValue}"}'>i18n('WEB_PROMPT_LESSTHANOREQUAL', ['${r.endDisplayValue}'])</option>"
- } else if( r.endUseValue == null ){
- out << "<option value='{"useMinValue":"<![CDATA[${r.startUseValue}]]>","useMaxValue":"<MAX>","displayMinValue":"${r.startDisplayValue}","displayMaxValue":""}'>i18n('WEB_PROMPT_GREATERTHANOREQUAL', ['${r.startDisplayValue}'])</option>"
- } else {
- out << "<option value='{"useMinValue":"<![CDATA[${r.startUseValue}]]>","useMaxValue":"<![CDATA[${r.endUseValue}]]>","displayMinValue":"${r.startDisplayValue}","displayMaxValue":"${r.endDisplayValue}"}'>i18n('WEB_PROMPT_BETWEEN', ['${r.startDisplayValue}', '${r.endDisplayValue}'])</option>"
- }
- }
- %></select>
-
- <a id="select_all" href="javascript:void(0)">i18n('WEB_PROMPT_SELECT_ALL')</a>
- <a id="deselect_all" href="javascript:void(0)">i18n('WEB_PROMPT_DESELECT_ALL')</a>
- <input type="button" btype="remove" value="i18n('WEB_PROMPT_REMOVE')"></input>
-
- </div>
|