?? advancedlogfiltermodehtml.jspf
字號:
} %> 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_ROW1 %>" <% if(oldmatchwithrow1 != null){ if(oldmatchwithrow1.equals(Integer.toString(LogMatch.MATCH_WITH_EVENT))){ %> > <% for(int i=0; i < eventnames.length; i++){ %> <option <% if(oldmatchvaluerow1!= null){ if(Integer.parseInt(oldmatchvaluerow1) == ((Integer) eventtexttoid.get(eventnames[i])).intValue()) out.write(" selected "); } %> value='<%= ((Integer) eventtexttoid.get(eventnames[i])).intValue() %>'><%= eventnames[i] %> </option> <% } } else{ if(oldmatchwithrow1.equals(Integer.toString(LogMatch.MATCH_WITH_SPECIALADMIN))){ %> > <% for(int i=0; i < ADMINTYPES.length; i++){ %> <option <% if(oldmatchvaluerow1!= null){ if(oldmatchvaluerow1.equals(Integer.toString(i))) out.write(" selected "); } %> value='<%= i %>'><%= ejbcawebbean.getText(ADMINTYPES[i]) %> </option> <% } } else{ if(oldmatchwithrow1.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(oldmatchvaluerow1!= null){ if(oldmatchvaluerow1.equals(Integer.toString(index))) out.write(" selected "); } %> value='<%= index %>'><%= caname %> </option> <% } } else{ if(oldmatchwithrow1.equals(Integer.toString(LogMatch.MATCH_WITH_MODULE))){ %> > <% for(int i=0; i < modulenames.length; i++){ %> <option <% index = ((Integer) moduletexttoid.get(modulenames[i])).intValue(); if(oldmatchvaluerow1!= null){ if(oldmatchvaluerow1.equals(Integer.toString(index))) out.write(" selected "); } %> value='<%= index %>'><%= modulenames[i] %> </option> <% } } else{ %> disabled > <% } }}} }else{ %> disabled > <% } %> </select> <% if( oldmatchwithrow1!= null){ if( oldmatchwithrow1.equals(Integer.toString(LogMatch.MATCH_WITH_EVENT)) || Integer.parseInt(oldmatchwithrow1) == LogMatch.MATCH_WITH_MODULE || oldmatchwithrow1.equals(Integer.toString(LogMatch.MATCH_WITH_SPECIALADMIN)) || oldmatchwithrow1.equals(Integer.toString(LogMatch.MATCH_WITH_CA))){ %> <input type="text" name="<%=TEXTFIELD_MATCHVALUE_ROW1 %>" size="1" maxlength="255" value='' disabled > <% }else{ %> <input type="text" name="<%=TEXTFIELD_MATCHVALUE_ROW1 %>" size="40" maxlength="255" value='<%=oldmatchvaluerow1 %>' > <% } }else{ %> <input type="text" name="<%=TEXTFIELD_MATCHVALUE_ROW1 %>" size="40" maxlength="255" value='' > <% } %> </td> </tr> <tr> <td width="2%"> </td> <td width="5%" align="left"> <select name='<%= SELECT_CONNECTOR_ROW2 %>'> <option value='<%= VALUE_NONE %>'><%= ejbcawebbean.getText("NONE") %> </option> <% for(int i=0; i< connectorreferences.length; i++) { %> <option <% if(oldconnectorrow2 != null) if(oldconnectorrow2.equals(Integer.toString(i))) out.print(" selected "); %> value='<%= i %>'> <%= ejbcawebbean.getText(connectorreferences[i]) %> </option> <% } %> </select> </td> <td width="93%" align="left"> <% tempval = -1; if(oldmatchwithrow2!= null) tempval= Integer.parseInt(oldmatchwithrow2); %> <select name="<%=SELECT_MATCHWITH_ROW2 %>" onchange='changematchfields(2)' > <option value='<%= VALUE_NONE %>'><%= ejbcawebbean.getText("NONE") %> </option> <option <% if(tempval == LogMatch.MATCH_WITH_EVENT) out.write(" selected "); %> value='<%=LogMatch.MATCH_WITH_EVENT %>'><%= ejbcawebbean.getText("MATCHEVENT") %> </option> <option <% if(tempval == LogMatch.MATCH_WITH_CA) out.write(" selected "); %> value='<%= LogMatch.MATCH_WITH_CA %>'><%= ejbcawebbean.getText("MATCHCA") %> </option> <option <% if(tempval == LogMatch.MATCH_WITH_MODULE) out.write(" selected "); %> value='<%= LogMatch.MATCH_WITH_MODULE%>'><%= ejbcawebbean.getText("MATCHMODULE") %> </option> <option <% if(tempval == LogMatch.MATCH_WITH_USERNAME) out.write(" selected "); %> value='<%= LogMatch.MATCH_WITH_USERNAME %>'><%= ejbcawebbean.getText("MATCHUSERNAME") %> </option> <option <% if(tempval == LogMatch.MATCH_WITH_CERTIFICATE) out.write(" selected "); %> value='<%= LogMatch.MATCH_WITH_CERTIFICATE %>'><%= ejbcawebbean.getText("MATCHCERTIFICATE") %> </option> <option <%if(tempval == LogMatch.MATCH_WITH_SPECIALADMIN) out.write(" selected "); %> value='<%= LogMatch.MATCH_WITH_SPECIALADMIN %>'><%= ejbcawebbean.getText("MATCHADMINTYPE") %> </option> <option <% if(tempval == LogMatch.MATCH_WITH_ADMINCERTIFICATE) out.write(" selected "); %> value='<%= LogMatch.MATCH_WITH_ADMINCERTIFICATE %>'><%= ejbcawebbean.getText("MATCHADMINCERT") %> </option> <option <% if(tempval == LogMatch.MATCH_WITH_IP) out.write(" selected "); %> value='<%= LogMatch.MATCH_WITH_IP %>'><%= ejbcawebbean.getText("MATCHADMINIP") %> </option> <option <%if(tempval == LogMatch.MATCH_WITH_COMMENT) out.write(" selected "); %> value='<%= LogMatch.MATCH_WITH_COMMENT %>'><%= ejbcawebbean.getText("MATCHCOMMENT") %> </option> </select> <% tempval = -1; if(oldmatchtyperow2!= null) tempval= Integer.parseInt(oldmatchtyperow2); %> <select name="<%=SELECT_MATCHTYPE_ROW2 %>"> <% if(oldmatchwithrow2 != null){ if(Integer.parseInt(oldmatchwithrow2) == LogMatch.MATCH_WITH_EVENT || Integer.parseInt(oldmatchwithrow2) == LogMatch.MATCH_WITH_MODULE || Integer.parseInt(oldmatchwithrow2) == LogMatch.MATCH_WITH_SPECIALADMIN || Integer.parseInt(oldmatchwithrow2) == 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_ROW2 %>" <% if(oldmatchwithrow2 != null){ if(oldmatchwithrow2.equals(Integer.toString(LogMatch.MATCH_WITH_EVENT))){ %> > <% for(int i=0; i < eventnames.length; i++){ %> <option <% if(oldmatchvaluerow2!= null){ if(Integer.parseInt(oldmatchvaluerow2) == ((Integer) eventtexttoid.get(eventnames[i])).intValue()) out.write(" selected "); } %> value='<%= ((Integer) eventtexttoid.get(eventnames[i])).intValue() %>'><%= eventnames[i] %> </option> <% } } else{ if(oldmatchwithrow2.equals(Integer.toString(LogMatch.MATCH_WITH_SPECIALADMIN))){ %> > <% for(int i=0; i < ADMINTYPES.length; i++){ %> <option <% if(oldmatchvaluerow2!= null){ if(oldmatchvaluerow2.equals(Integer.toString(i))) out.write(" selected "); } %> value='<%= i %>'><%= ejbcawebbean.getText(ADMINTYPES[i]) %> </option> <% } } else{ if(oldmatchwithrow2.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(oldmatchvaluerow2!= null){ if(oldmatchvaluerow2.equals(Integer.toString(index))) out.write(" selected "); } %> value='<%= index %>'><%= caname %> </option> <% } } else{ if(oldmatchwithrow2.equals(Integer.toString(LogMatch.MATCH_WITH_MODULE))){ %> > <% for(int i=0; i < modulenames.length; i++){ %> <option <% index = ((Integer) moduletexttoid.get(modulenames[i])).intValue(); if(oldmatchvaluerow2!= null){ if(oldmatchvaluerow2.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( oldmatchwithrow2!= null){ if( oldmatchwithrow2.equals(Integer.toString(LogMatch.MATCH_WITH_EVENT)) || Integer.parseInt(oldmatchwithrow2) == LogMatch.MATCH_WITH_MODULE || oldmatchwithrow2.equals(Integer.toString(LogMatch.MATCH_WITH_SPECIALADMIN)) || oldmatchwithrow2.equals(Integer.toString(LogMatch.MATCH_WITH_CA))){ %> <input type="text" name="<%=TEXTFIELD_MATCHVALUE_ROW2 %>" size="1" maxlength="255" value='' disabled > <% }else{ %> <input type="text" name="<%=TEXTFIELD_MATCHVALUE_ROW2 %>" size="40" maxlength="255" value='<%=oldmatchvaluerow2 %>' > <% } }else{ %> <input type="text" name="<%=TEXTFIELD_MATCHVALUE_ROW2 %>" size="40" maxlength="255" value='' > <% } %> </td> </tr> <tr> <td width="2%"> </td> <td width="5%" align="left"> <select name='<%= SELECT_CONNECTOR_ROW3 %>'> <option value='<%= VALUE_NONE %>'><%= ejbcawebbean.getText("NONE") %> </option> <% for(int i=0; i< connectorreferences.length; i++) { %> <option <% if(oldconnectorrow3 != null) if(oldconnectorrow3.equals(Integer.toString(i))) out.print(" selected "); %> value='<%= i %>'> <%= ejbcawebbean.getText(connectorreferences[i]) %> </option> <% } %> </select> </td> <td width="93%" align="left"> <% tempval = -1; if(oldmatchwithrow3!= null) tempval= Integer.parseInt(oldmatchwithrow3); %> <select name="<%=SELECT_MATCHWITH_ROW3 %>" onchange='changematchfields(3)' > <option value='<%= VALUE_NONE %>'><%= ejbcawebbean.getText("NONE") %> </option> <option <% if(tempval == LogMatch.MATCH_WITH_EVENT) out.write(" selected "); %> value='<%= Integer.toString(LogMatch.MATCH_WITH_EVENT) %>'><%= ejbcawebbean.getText("MATCHEVENT") %> </option> <option <% if(tempval == LogMatch.MATCH_WITH_CA) out.write(" selected ");
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -