📄 advancedfiltermodehtml.jsp
字号:
<select name="<%=SELECT_MATCHTYPE_ROW3 %>"> <% if(oldmatchwithrow3 != null){ if(Integer.parseInt(oldmatchwithrow3) < 100){ %> <option <% if(tempval == BasicMatch.MATCH_TYPE_EQUALS){ out.write(" selected "); } %> value='<%= Integer.toString(BasicMatch.MATCH_TYPE_EQUALS) %>'><%= ejbcawebbean.getText("EQUALS") %> </option> <% } }else{ %> <option <% if(tempval == BasicMatch.MATCH_TYPE_EQUALS){ out.write(" selected "); } %> value='<%= Integer.toString(BasicMatch.MATCH_TYPE_EQUALS) %>'><%= ejbcawebbean.getText("EQUALS") %> </option> <% }%> <% if(oldmatchwithrow3 != null){ if( Integer.parseInt(oldmatchwithrow3) != UserMatch.MATCH_WITH_STATUS && Integer.parseInt(oldmatchwithrow3) != UserMatch.MATCH_WITH_ENDENTITYPROFILE && Integer.parseInt(oldmatchwithrow3) != UserMatch.MATCH_WITH_CERTIFICATEPROFILE && Integer.parseInt(oldmatchwithrow3) != UserMatch.MATCH_WITH_CA){ %> <option <% if(tempval == BasicMatch.MATCH_TYPE_BEGINSWITH){ out.write(" selected "); } %> value='<%= Integer.toString(BasicMatch.MATCH_TYPE_BEGINSWITH) %>'><%= ejbcawebbean.getText("BEGINSWITH") %> </option> <% } }else{ %> <option <% if(tempval == BasicMatch.MATCH_TYPE_BEGINSWITH){ out.write(" selected "); } %> value='<%= Integer.toString(BasicMatch.MATCH_TYPE_BEGINSWITH) %>'><%= ejbcawebbean.getText("BEGINSWITH") %> </option> <% } %> </select> <select name="<%=SELECT_MATCHVALUE_ROW3 %>" <% if(oldmatchwithrow3 != null){ if(oldmatchwithrow3.equals(Integer.toString(UserMatch.MATCH_WITH_ENDENTITYPROFILE))){ %> > <% iter = endentityprofileids.keySet().iterator(); while(iter.hasNext()){ String next = (String) iter.next(); int id = ((Integer) endentityprofileids.get(next)).intValue();%> <option <% if(oldmatchvaluerow3!= null){ if(Integer.parseInt(oldmatchvaluerow3) == id) out.write(" selected "); } %> value='<%= id %>'><%= next %> </option> <% } } else{ if(oldmatchwithrow3.equals(Integer.toString(UserMatch.MATCH_WITH_CERTIFICATEPROFILE))){ %> > <% iter = certificateprofileids.keySet().iterator(); while(iter.hasNext()){ String next = (String) iter.next(); int id = ((Integer) certificateprofileids.get(next)).intValue();%> <option <% if(oldmatchvaluerow3!= null){ if(Integer.parseInt(oldmatchvaluerow3) == id) out.write(" selected "); } %> value='<%= id %>'><%= next %> </option> <% } } else{ if(oldmatchwithrow3.equals(Integer.toString(UserMatch.MATCH_WITH_CA))){ %> > <% iter = caids.keySet().iterator(); while(iter.hasNext()){ String next = (String) iter.next(); int id = ((Integer) caids.get(next)).intValue();%> <option <% if(oldmatchvaluerow3!= null){ if(Integer.parseInt(oldmatchvaluerow3) == id) out.write(" selected "); } %> value='<%= id %>'><%= next %> </option> <% } } else{ if(oldmatchwithrow3.equals(Integer.toString(UserMatch.MATCH_WITH_STATUS))){ %> > <% tempval = -1; if(oldmatchtyperow3!= null) tempval= Integer.parseInt(oldmatchvaluerow3); for(int k=0;k<availablestatuses.length;k++){ %> <option <% if( tempval == availablestatuses[k]) out.write("selected"); %> value='<%= availablestatuses[k] %>'><%= ejbcawebbean.getText(availablestatustexts[k]) %></option> <% } %> <% } else{ %> disabled > <% } }}} }else{ %> disabled > <% } %> </select> <% if( oldmatchwithrow3!= null){ if( oldmatchwithrow3.equals(Integer.toString(UserMatch.MATCH_WITH_STATUS)) || oldmatchwithrow3.equals(Integer.toString(UserMatch.MATCH_WITH_ENDENTITYPROFILE)) || oldmatchwithrow3.equals(Integer.toString(UserMatch.MATCH_WITH_CERTIFICATEPROFILE)) || oldmatchwithrow3.equals(Integer.toString(UserMatch.MATCH_WITH_CA))){ %> <input type="text" name="<%=TEXTFIELD_MATCHVALUE_ROW3 %>" size="1" maxlength="255" value='' disabled > <% }else{ %> <input type="text" name="<%=TEXTFIELD_MATCHVALUE_ROW3 %>" size="40" maxlength="255" value='<%=oldmatchvaluerow3 %>' > <% } }else{ %> <input type="text" name="<%=TEXTFIELD_MATCHVALUE_ROW3 %>" size="40" maxlength="255" value='' > <% } %> </td> </tr> <tr> <td width="2%"> </td> <td width="5%" align="left"> <select name='<%= SELECT_CONNECTOR_ROW4 %>'> <option value='<%= VALUE_NONE %>'><%= ejbcawebbean.getText("NONE") %> </option> <% for(int i=0; i< connectorreferences.length; i++) { %> <option <% if(oldconnectorrow4 != null) if(oldconnectorrow4.equals(Integer.toString(i))) out.print(" selected "); %> value='<%= i %>'> <%= ejbcawebbean.getText(connectorreferences[i]) %> </option> <% } %> </select> </td> <td width="93%" align="left"> <select name='<%= SELECT_MATCHWITH_ROW4 %>'> <option value='<%= VALUE_NONE %>'><%= ejbcawebbean.getText("NONE") %> </option> <option <% if(oldmatchwithrow4!= null) if(oldmatchwithrow4.equals(Integer.toString(TimeMatch.MATCH_WITH_TIMECREATED))) out.write("selected"); %> value='<%= Integer.toString(TimeMatch.MATCH_WITH_TIMECREATED) %>'><%= ejbcawebbean.getText("CREATED") %> </option> <option <% if(oldmatchwithrow4!= null) if(oldmatchwithrow4.equals(Integer.toString(TimeMatch.MATCH_WITH_TIMEMODIFIED))) out.write("selected"); %> value='<%= Integer.toString(TimeMatch.MATCH_WITH_TIMEMODIFIED) %>'><%= ejbcawebbean.getText("MODIFIED") %> </option> </select> <%= ejbcawebbean.getText("ONORAFTER") %> <select name='<%= SELECT_DAY_ROW4 %>'> <% for(int i=0; i < 31; i++) { %> <option <% if(olddayrow4 != null) if(olddayrow4.equals(Integer.toString(i))) out.print(" selected "); %> value='<%= i %>'> <%= i+1 %> </option> <% } %> </select> <select name='<%= SELECT_MONTH_ROW4 %>'> <% for(int i=0; i < monthreferences.length; i++) { %> <option <% if(oldmonthrow4 != null) if(oldmonthrow4.equals(Integer.toString(i))) out.print(" selected "); %> value='<%= i %>'> <%= ejbcawebbean.getText(monthreferences[i]) %> </option> <% } %> </select> <select name='<%= SELECT_YEAR_ROW4 %>'> <% for(int i=2000; i < 2020; i++) { %> <option <% if(oldyearrow4 != null) if(oldyearrow4.equals(Integer.toString(i))) out.print(" selected "); %> value='<%= i %>'> <%= i %> </option> <% } %> </select> <select name='<%= SELECT_TIME_ROW4 %>'> <% Calendar time = Calendar.getInstance(); DateFormat dateformat = DateFormat.getTimeInstance(DateFormat.SHORT);%> <% for(int i=0; i < 24; i++) { %> <option <% if(oldtimerow4 != null) if(oldtimerow4.equals(Integer.toString(i))) out.print(" selected "); %> value='<%= i %>'> <% time.set(0,0,0,i,0); out.print(dateformat.format(time.getTime()));%> </option> <% } %> </select> </td> </tr> <tr> <td width="2%"> </td> <td width="5%" align="left"> </td> <td width="93%" align="left"> <%= ejbcawebbean.getText("ONORBEFORE") %> <select name='<%= SELECT_DAY_ROW5 %>'> <% tempval =0; if(olddayrow5 != null){ tempval = Integer.parseInt(olddayrow5); }else{ tempval = dayofmonth; } for(int i=0; i < 31; i++) { %> <option <% if(tempval == i) out.print(" selected "); %> value='<%= i %>'> <%= i+1 %> </option> <% } %> </select> <select name='<%= SELECT_MONTH_ROW5 %>'> <% tempval =0; if(oldmonthrow5 != null){ tempval = Integer.parseInt(oldmonthrow5); }else{ tempval = month; } for(int i=0; i < monthreferences.length; i++) { %> <option <% if(tempval == i) out.print(" selected "); %> value='<%= i %>'> <%= ejbcawebbean.getText(monthreferences[i]) %> </option> <% } %> </select> <select name='<%= SELECT_YEAR_ROW5 %>'> <% tempval =0; if(oldyearrow5 != null){ tempval = Integer.parseInt(oldyearrow5); }else{ tempval = year; } for(int i=2000; i < 2020; i++) { %> <option <% if(tempval == i) out.print(" selected "); %>value='<%= i %>'> <%= i %> </option> <% } %> </select> <select name='<%= SELECT_TIME_ROW5 %>'> <% time = Calendar.getInstance(); dateformat = DateFormat.getTimeInstance(DateFormat.SHORT);%> <% tempval =0; if(oldtimerow5 != null){ tempval = Integer.parseInt(oldtimerow5); }else{ tempval = hour; } for(int i=0; i < 24; i++) { %> <option <% if(tempval == i) out.print(" selected "); %> value='<%= i %>'> <% time.set(0,0,0,i,0); out.print(dateformat.format(time.getTime()));%> </option> <% } %> </select> </td> </tr> <td width="2%"> </td> <td width="5%" align="left"> </td> <td width="93%" align="left"> <input type="submit" name="<%=BUTTON_ADVANCEDLIST %>" value="<%= ejbcawebbean.getText("LIST") %>"> </td> </table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -