?? advancedlogfiltermodehtml.jspf
字號:
%> value='<%= LogMatch.MATCH_WITH_CA %>'><%= ejbcawebbean.getText("MATCHCA") %> </option> <option <% if(tempval == LogMatch.MATCH_WITH_MODULE) out.write(" selected "); %> value='<%= Integer.toString(LogMatch.MATCH_WITH_MODULE) %>'><%= ejbcawebbean.getText("MATCHMODULE") %> </option> <option <% if(tempval == LogMatch.MATCH_WITH_USERNAME) out.write(" selected "); %> value='<%= Integer.toString(LogMatch.MATCH_WITH_USERNAME) %>'><%= ejbcawebbean.getText("MATCHUSERNAME") %> </option> <option <% if(tempval == LogMatch.MATCH_WITH_CERTIFICATE) out.write(" selected "); %> value='<%= Integer.toString(LogMatch.MATCH_WITH_CERTIFICATE) %>'><%= ejbcawebbean.getText("MATCHCERTIFICATE") %> </option> <option <%if(tempval == LogMatch.MATCH_WITH_SPECIALADMIN) out.write(" selected "); %> value='<%= Integer.toString(LogMatch.MATCH_WITH_SPECIALADMIN) %>'><%= ejbcawebbean.getText("MATCHADMINTYPE") %> </option> <option <% if(tempval == LogMatch.MATCH_WITH_ADMINCERTIFICATE) out.write(" selected "); %> value='<%= Integer.toString(LogMatch.MATCH_WITH_ADMINCERTIFICATE) %>'><%= ejbcawebbean.getText("MATCHADMINCERT") %> </option> <option <% if(tempval == LogMatch.MATCH_WITH_IP) out.write(" selected "); %> value='<%= Integer.toString(LogMatch.MATCH_WITH_IP) %>'><%= ejbcawebbean.getText("MATCHADMINIP") %> </option> <option <%if(tempval == LogMatch.MATCH_WITH_COMMENT) out.write(" selected "); %> value='<%= Integer.toString(LogMatch.MATCH_WITH_COMMENT) %>'><%= ejbcawebbean.getText("MATCHCOMMENT") %> </option> </select> <% tempval = -1; if(oldmatchtyperow3!= null) tempval= Integer.parseInt(oldmatchtyperow3); %> <select name="<%=SELECT_MATCHTYPE_ROW3 %>"> <% if(oldmatchwithrow3 != null){ if(Integer.parseInt(oldmatchwithrow3) == LogMatch.MATCH_WITH_EVENT || Integer.parseInt(oldmatchwithrow3) == LogMatch.MATCH_WITH_MODULE || Integer.parseInt(oldmatchwithrow3) == LogMatch.MATCH_WITH_SPECIALADMIN || Integer.parseInt(oldmatchwithrow3) == LogMatch.MATCH_WITH_CA){ %> <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> <option <% if(tempval == BasicMatch.MATCH_TYPE_BEGINSWITH){ out.write(" selected "); } %> value='<%= Integer.toString(BasicMatch.MATCH_TYPE_BEGINSWITH) %>'><%= ejbcawebbean.getText("BEGINSWITH") %> </option> <option <% if(tempval == BasicMatch.MATCH_TYPE_CONTAINS){ out.write(" selected "); } %> value='<%= Integer.toString(BasicMatch.MATCH_TYPE_CONTAINS) %>'><%= ejbcawebbean.getText("CONTAINS") %> </option> <% } }else{%> <option <% if(tempval == BasicMatch.MATCH_TYPE_EQUALS){ out.write(" selected "); } %> value='<%= Integer.toString(BasicMatch.MATCH_TYPE_EQUALS) %>'><%= ejbcawebbean.getText("EQUALS") %> </option> <option <% if(tempval == BasicMatch.MATCH_TYPE_BEGINSWITH){ out.write(" selected "); } %> value='<%= Integer.toString(BasicMatch.MATCH_TYPE_BEGINSWITH) %>'><%= ejbcawebbean.getText("BEGINSWITH") %> </option> <option <% if(tempval == BasicMatch.MATCH_TYPE_CONTAINS){ out.write(" selected "); } %> value='<%= Integer.toString(BasicMatch.MATCH_TYPE_CONTAINS) %>'><%= ejbcawebbean.getText("CONTAINS") %> <% } %> </select> <select name="<%=SELECT_MATCHVALUE_ROW3 %>" <% if(oldmatchwithrow3 != null){ if(oldmatchwithrow3.equals(Integer.toString(LogMatch.MATCH_WITH_EVENT))){ %> > <% for(int i=0; i < eventnames.length; i++){ %> <option <% if(oldmatchvaluerow3!= null){ if(Integer.parseInt(oldmatchvaluerow3) == ((Integer) eventtexttoid.get(eventnames[i])).intValue()) out.write(" selected "); } %> value='<%= ((Integer) eventtexttoid.get(eventnames[i])).intValue() %>'><%= eventnames[i] %> </option> <% } } else{ if(oldmatchwithrow3.equals(Integer.toString(LogMatch.MATCH_WITH_SPECIALADMIN))){ %> > <% for(int i=0; i < ADMINTYPES.length; i++){ %> <option <% if(oldmatchvaluerow3!= null){ if(oldmatchvaluerow3.equals(Integer.toString(i))) out.write(" selected "); } %> value='<%= i %>'><%= ejbcawebbean.getText(ADMINTYPES[i]) %> </option> <% } } else{ if(oldmatchwithrow3.equals(Integer.toString(LogMatch.MATCH_WITH_CA))){ %> > <% canameiter = canameandids.keySet().iterator(); for(int i=0; i < canameandids.keySet().size(); i++){ %> <option <% String caname = (String) canameiter.next(); index = ((Integer) canameandids.get(caname)).intValue(); if(oldmatchvaluerow3!= null){ if(oldmatchvaluerow3.equals(Integer.toString(index))) out.write(" selected "); } %> value='<%= index %>'><%= caname %> </option> <% } } else{ if(oldmatchwithrow3.equals(Integer.toString(LogMatch.MATCH_WITH_MODULE))){ %> > <% for(int i=0; i < modulenames.length; i++){ %> <option <% index = ((Integer) moduletexttoid.get(modulenames[i])).intValue(); if(oldmatchvaluerow3!= null){ if(oldmatchvaluerow3.equals(Integer.toString(index))) out.write(" selected "); } index = ((Integer) moduletexttoid.get(modulenames[i])).intValue(); %> value='<%= index %>'><%= modulenames[i] %> </option> <% } } else{ %> disabled > <% } }}} }else{ %> disabled > <% } %> </select> <% if( oldmatchwithrow3!= null){ if( oldmatchwithrow3.equals(Integer.toString(LogMatch.MATCH_WITH_EVENT)) || Integer.parseInt(oldmatchwithrow3) == LogMatch.MATCH_WITH_MODULE || oldmatchwithrow3.equals(Integer.toString(LogMatch.MATCH_WITH_SPECIALADMIN)) || oldmatchwithrow3.equals(Integer.toString(LogMatch.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("TIME") %> </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 %> </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 %> </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 %>" onclick='return checkfields()' value="<%= ejbcawebbean.getText("LIST") %>"> </td> </table>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -