<%--
 Copyright : All Rights Reserved. Copyright (C) 2006, Hitachi, Ltd.
 Title     : ServerConductor WebConsole
 Version   : 08-00
 Name      : envAgtEachAlt.jsp
 Date      : 2006/05/22
 Author    : Lakshmanan/Dinesh/Kimura
 --%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page language = "java" %>
<%@ page session = "false" %>
<%@ page errorPage = "errorDialog.jsp" %>
<%@ page import = "java.util.List" %>
<%@ page import = 
    "JP.co.Hitachi.soft.System_Manager.webconsole.common.MessageConstant" %>
<%@ page import = "JP.co.Hitachi.soft.System_Manager.webconsole.common.Const" %>
<%@ page import = "JP.co.Hitachi.soft.System_Manager.data.HsmConst" %>
<%@ taglib prefix = "html"  uri = "/WEB-INF/struts-html.tld" %>
<%@ taglib prefix = "bean"  uri = "/WEB-INF/struts-bean.tld" %>
<%@ taglib prefix = "table" uri = "/WEB-INF/table.tld" %>
<%@ taglib prefix = "util"  uri = "/WEB-INF/common-tags.tld" %>
<%@ taglib prefix = "logic" uri = "/WEB-INF/struts-logic.tld"%>                 <%// 800WA_WEBCONSOLE372 %>
<%@ page contentType = "text/html; charset = UTF-8" pageEncoding = "UTF-8" %>
<% response.addHeader("Cache-Control","no-cache"); %>
<util:checkURL/>

<html:html locale = "true">
<head>
<title></title>
<link rel = "stylesheet" type = "text/css" href = "css/common.css">
<link rel = "stylesheet" type = "text/css" href = "css/alert.css">
<script src = "js/common.js"></script>
<script src = "js/envSet.js"></script>
<jsp:useBean  id = "AlertAttributeSettingBean" scope = "request" class = 
"JP.co.Hitachi.soft.System_Manager.webconsole.model.bean.AgentAlertAttributeSettingBean"/>
<script>
   <%
    List l_liDataList = AlertAttributeSettingBean.getAlertAttribute();
    
    if (l_liDataList != null && l_liDataList.size() > 0) { 
        StringBuffer l_sbTemp = new StringBuffer();
        for (int l_iIdx = 0; l_iIdx < l_liDataList.size(); l_iIdx++ ) {
            List l_liData = (List) l_liDataList.get(l_iIdx);
            l_sbTemp.append("'");
            l_sbTemp.append(l_liData.get(0).toString().trim());
            l_sbTemp.append("',");
    %>
           <util:set name = "AlertAttributeDetail">
            new AlertAttributeDetails(
                    '<%= l_liData.get(0).toString().trim()%>',
                    '<%= l_liData.get(1).toString().trim()%>',
                    '<%= l_liData.get(2).toString().trim()%>',
                    '<%= l_liData.get(3).toString().trim()%>',
                    '<%= l_liData.get(4).toString().trim()%>',
                    '<%= l_liData.get(5).toString().trim()%>',
                    '<%= l_liData.get(6).toString().trim()%>',
                    '<%= l_liData.get(7).toString().trim()%>',
                    '<%= l_liData.get(8).toString().trim()%>',
                    '<%= l_liData.get(9).toString().trim()%>',
                    '<%= l_liData.get(10).toString().trim()%>',
                    '<%= l_liData.get(11).toString().trim()%>');
            </util:set>
            m_alertAttributes['<%= l_liData.get(0).toString().trim() %>'] 
            = <%= pageContext.getAttribute("AlertAttributeDetail").toString() %>
       <%
        }
        String l_stTemp = l_sbTemp.toString().trim();
        String l_stIsLinux = "false";
        if (AlertAttributeSettingBean.getHostType()
                                             == HsmConst.NODE_TYPE_HOST_LINUX) {
            l_stIsLinux = "true";
        }
        %>
        m_arrAlertId
                  = new Array(<%= l_stTemp.substring(0,l_stTemp.length()-1) %>);
        m_isLinux = <%= l_stIsLinux %>;
        <%-- m_stFrequency = "<%= Const.ALERT_NOTIFY_COUNT_NUMBER %>"; --%>     <%-- 800WA_WEBCONSOLE250 --%><%-- 800WA_WEBCONSOLE294 --%>
        m_stFrequency = "<%= Const.ALERT_NOTIFY_FREQUENCY_MESSAGE %>";          <%-- 800WA_WEBCONSOLE294 --%>            
  <%}%>
</script>
</head>
<%-- <body onload = "setInitialState('alertID')" style = "margin-top:10px"> --%><%-- 800WA_WEBCONSOLE404 --%>
<%-- <body onload = "setInitialState('alertID')" style = "margin-top:10px" 
    onresize="resetHeader('Settings')"> --%>                                    <%-- 800WA_WEBCONSOLE404 --%><%-- 800WA_WEBCONSOLE443 --%>
    <body onload = "setInitialState('alertID')"  
                  onresize = "resetHeader('Settings')">                         <%-- 800WA_WEBCONSOLE443 --%>

<%-- Create query string --%>
<util:set name = "Query">
 ?<%= Const.SETTING_ALERT_ATTRIBUTE_HOST_NAME%>=<%= request
                                                    .getParameter("hostName") %> 
</util:set>
<%-- Create action url --%>
<util:set name = "AgentAlertAttributeSearchAction">                             <%-- 800WA_WEBCONSOLE269 --%>
    AgentAlertAttributeSearchAction<%= pageContext                              
                                             .getAttribute("Query").toString()%><%-- 800WA_WEBCONSOLE269 --%>
</util:set>
<util:set name = "AlertAttributePageAction">
    <util:rewrite action = "AlertAttributePageAction"/><%= 
                              pageContext.getAttribute("Query").toString()%>
</util:set>
<util:set name = "FnOnSubmit">
	return validateSearchCondition('<util:rewrite action = "<%= pageContext.
	         getAttribute("AgentAlertAttributeSearchAction").toString()%>"/>',  <%-- 800WA_WEBCONSOLE269 --%>
	'<%= pageContext.getAttribute("AlertAttributePageAction").toString()%>')
</util:set>

<html:form action = "<%= pageContext
		        .getAttribute("AgentAlertAttributeSearchAction").toString() %>" 
           onsubmit = "<%= pageContext.getAttribute("FnOnSubmit").toString()%>"><%-- 800WA_WEBCONSOLE269 --%>

    <%-- Hidden values --%>
    <html:hidden property = "isPagination" value = "false"/>
    <html:hidden property = "hdnSearchFlag" value = "true"/>
    <html:hidden property = "hdnNodeId"
                            value = "<%= request.getParameter("hdnNodeId")%>"/>
    <html:hidden property = "hdnAlertID" 
                           value = "<%= request.getParameter("hdnAlertID")%>" /><%-- 800WA_WEBCONSOLE313 --%>
    <html:hidden property = "hdnContent" 
                           value = "<%= request.getParameter("hdnContent")%>" /><%-- 800WA_WEBCONSOLE313 --%>
    <html:hidden property = "hdnAlertLevel"
                        value = "<%= request.getParameter("hdnAlertLevel")%>" /><%-- 800WA_WEBCONSOLE313 --%>
                            
    <%-- Table for search conditions --%>
    <%-- <table width = "100%" border = "0" cellspacing = "0" cellpadding = "2"> --%>
<%-- <table width = "100%" border = "0" id="alertSearchTable" cellspacing = "0"
        cellpadding = "2" > --%>                                                <%-- 800WA_WEBCONSOLE404 --%><%-- 800WA_WEBCONSOLE443 --%>
    <table width = "100%" border = "0" id="alertSearchTable"   cellspacing = "0"
        cellpadding = "3" >                                                     <%-- 800WA_WEBCONSOLE443 --%>                                                     
        <tr>
            <td class = "nowrap" width = "10%">
                <span class = "middle">
                    <bean:message key = "envagt.detail.alert.id"
                     bundle = "<%= Const.MESSAGE_RESOURCES_KEY_AGENT%>" />      <%-- 800WA_WEBCONSOLE442 --%>
                </span>
              </td>
            <td width = "10%">
                <html:text property = "alertID" size = "10" maxlength = "6" 
                           onblur="removeSelection(this)" onchange="setObject(this)"/>  <% // 800WA_WEBCONSOLE368  %> <%-- 800WA_WEBCONSOLE479  --%>
            </td>
            <td width = "8%" align = "center">
                <span class = "middle">
                    <bean:message key = "envagt.detail.contents"
                     bundle = "<%= Const.MESSAGE_RESOURCES_KEY_AGENT%>"/>       <%-- 800WA_WEBCONSOLE442 --%>
                </span>
              </td>
            <td width = "80%">
                <%--                                                            // 800WA_WEBCONSOLE288
                <html:text                                                      // 800WA_WEBCONSOLE288
                 property = "alertContent" size = "60" maxlength = "160"/>      // 800WA_WEBCONSOLE288 
                 --%>
                <html:text 
                 property = "alertContent" size = "60" maxlength = "150" onchange="setObject(this)"/>      <%-- 800WA_WEBCONSOLE288 --%><%-- 800WA_WEBCONSOLE479  --%>
           </td>
        </tr>
        <tr>
            <td class = "nowrap">
                <span class = "middle">
                    <bean:message key = "envagt.detail.alert.level" 
                     bundle = "<%= Const.MESSAGE_RESOURCES_KEY_AGENT%>"/>       <%-- 800WA_WEBCONSOLE442 --%>
                </span>
             </td>
            <td>
                <html:select property = "alertLevel">
                    <%--
                    <html:options property = "value"                            //   800WA_WEBCONSOLE307
                     collection = "alertLevelList" />                           //   800WA_WEBCONSOLE307 --%>
                    <html:options property = "value" labelProperty = "label"    
                     collection = "alertLevelList" />                           <%-- 800WA_WEBCONSOLE307 --%>
                </html:select>
            </td>
            <td></td>
            <td colspan = "2" align = "right">
                <html:submit styleClass = "small">
                    <bean:message key = "envagt.detail.search.button" 
                     bundle = "<%= Const.MESSAGE_RESOURCES_KEY_AGENT%>"/> 
                </html:submit>
            </td>
        </tr>
        <tr><td colspan="5" class="line_top">&nbsp;</td></tr>                   <%-- 800WA_WEBCONSOLE404 --%>
    </table>
    
    <%-- <hr> --%>                                                              <%-- 800WA_WEBCONSOLE404 --%>
    
    <logic:present scope = "request" 
                name = "<%= Const.ATTRIBUTE_REQUEST_ERROR_BEAN%>">              <% // 800WA_WEBCONSOLE372%>
         <script>                                                               <% // 800WA_WEBCONSOLE372%>
  	            var l_globalFlag = false;                                       <% // 800WA_WEBCONSOLE372%>
         </script>                                                              <% // 800WA_WEBCONSOLE372%>
         <jsp:include page="errorDialog.jsp" flush="false" />                   <% // 800WA_WEBCONSOLE372%>
    </logic:present>                                                            <% // 800WA_WEBCONSOLE372%>
    
    <logic:notPresent scope = "request"
             name = "<%= Const.ATTRIBUTE_REQUEST_ERROR_BEAN%>">                 <% // 800WA_WEBCONSOLE372%>
 
    <%-- alert level order for the custom sorting --%>
    <util:set name = "alertLevelOrder">
        <%--                                                                    //   800WA_WEBCONSOLE307
        <bean:message                                                           //   800WA_WEBCONSOLE307
         key = "internal.alert.common.level.info"                               //   800WA_WEBCONSOLE307
         bundle = "<%= Const.MESSAGE_RESOURCES_KEY_INTERNAL%>"/>,<bean:message  //   800WA_WEBCONSOLE307
         key = "internal.alert.common.level.attention"                          //   800WA_WEBCONSOLE307
         bundle = "<%= Const.MESSAGE_RESOURCES_KEY_INTERNAL%>"/>,<bean:message  //   800WA_WEBCONSOLE307
         key = "internal.alert.common.level.warning"                            //   800WA_WEBCONSOLE307
         bundle = "<%= Const.MESSAGE_RESOURCES_KEY_INTERNAL%>"/>,<bean:message  //   800WA_WEBCONSOLE307
         key = "internal.alert.common.level.trouble"                            //   800WA_WEBCONSOLE307
         bundle = "<%= Const.MESSAGE_RESOURCES_KEY_INTERNAL%>"/>                //   800WA_WEBCONSOLE307 --%>
         <%=                                                                    /*   800WA_WEBCONSOLE307 */
         Const.SETTING_ALERT_ATTRIBUTE_UNKNOWN_ID %>,<%=                        /*   800WA_WEBCONSOLE307 */
         new Integer(HsmConst.EVENT_SEVERITY_INFO).toString()   %>,<%=          /*   800WA_WEBCONSOLE307 */
         new Integer(HsmConst.EVENT_SEVERITY_NONCRI).toString() %>,<%=          /*   800WA_WEBCONSOLE307 */
         new Integer(HsmConst.EVENT_SEVERITY_CRI).toString()    %>,<%=          /*   800WA_WEBCONSOLE307 */
         new Integer(HsmConst.EVENT_SEVERITY_NONREC).toString() %>,<%=          /*   800WA_WEBCONSOLE307 */
         Const.SETTING_ALERT_ATTRIBUTE_UNACQUIRE_ID %>                          <%-- 800WA_WEBCONSOLE307 --%>
    </util:set>
    
    <%-- <div id="dataTable" style="width:100%"> --%>                           <%-- 800WA_WEBCONSOLE404 --%> <%-- 800WA_WEBCONSOLE428 --%>
    <%List l_liHeader = AlertAttributeSettingBean.getAlertAttributeHeader();%>
    <%-- Table for the alert attribute list --%>
    <%-- <table:table scope = "requestscope" headerData = "alertAttributeHeader" 
     border = "1" cellpadding = "2" cellspacing = "2" styleClass = "alertTable"
     detailData = "alertAttribute" name = "AlertAttributeSettingBean"
     scroll = "true" 
     firstPage = "envagt.detail.first.page" previousPage="envagt.detail.previous" 
  	 nextPage="envagt.detail.next" lastPage="envagt.detail.last.page"           
	 goButton="envagt.detail.move" bundle="<%=Const.PROPERTIES_FILE_SETTING_AGENT_RESOURCES %>" 
     pageSize = "<%= AlertAttributeSettingBean.getAlertsPerPage() %>" 
     requestURI = "<%= pageContext
                   .getAttribute("AlertAttributePageAction").toString()%>"> --%><%-- 800WA_WEBCONSOLE426 --%><%-- 800WA_WEBCONSOLE457 --%>
    <table:table scope = "requestscope" headerData = "alertAttributeHeader" 
     border = "1" cellpadding = "2" cellspacing = "2" styleClass = "alertTable"
     detailData = "alertAttribute" name = "AlertAttributeSettingBean"
     scroll = "true" isGoButtonDisabled = "true"
     firstPage = "envagt.detail.first.page" previousPage="envagt.detail.previous" 
  	 nextPage="envagt.detail.next" lastPage="envagt.detail.last.page"           
	 goButton="envagt.detail.move" bundle="<%=Const.PROPERTIES_FILE_SETTING_AGENT_RESOURCES %>" 
     pageSize = "<%= AlertAttributeSettingBean.getAlertsPerPage() %>" 
     requestURI = "<%= pageContext
                        .getAttribute("AlertAttributePageAction").toString()%>"><%-- 800WA_WEBCONSOLE457 --%>
       <%-- <div class = "scrollTable"> --%>
        <%-- Column header for radio button --%>
        <util:set name = "AlertAttributeRadioBox">
         className = 
         JP.co.Hitachi.soft.System_Manager.webconsole.common.DataDecoratorClass,
         methodName = getAlertAttributeInput, name = RowID
        </util:set>
        <table:column 
         sort = "false" styleClass = "centerAlign"
         property = "<%= l_liHeader.get(0).toString() %>" 
         decorator = "<%= pageContext.getAttribute("AlertAttributeRadioBox")
                                                               .toString() %>"/>
        <%-- Column header for Alert ID --%>
        <table:column  sort = "true" sanitize = "true"
         property = "<%= l_liHeader.get(1).toString() %>"/>                     <%-- 800WA_WEBCONSOLE276 --%>
        <%-- Column header for Occurrence part --%>
        <table:column sort = "true" sanitize = "true"
         property = "<%= l_liHeader.get(2).toString() %>"/>                     <%-- 800WA_WEBCONSOLE276 --%>
        <%-- Column header for Alert Level --%>
        <%--                                                                    //   800WA_WEBCONSOLE307
        <table:column  customsort = "alertLevelSort()" sanitize = "true"        //   800WA_WEBCONSOLE307
         order = "<%= pageContext.getAttribute("alertLevelOrder").toString()%>" //   800WA_WEBCONSOLE307
         property = "<%= l_liHeader.get(3).toString() %>"/>                 --%><%-- 800WA_WEBCONSOLE276 800WA_WEBCONSOLE307 --%>
        <table:column  customsort = "alertLevelSort()" sanitize = "true"
         order = "<%= pageContext.getAttribute("alertLevelOrder").toString()%>"
         property = "<%= l_liHeader.get(3).toString() %>"
         sortBy = "<%= l_liHeader.get(12).toString() %>" />                     <%-- 800WA_WEBCONSOLE307 --%>
        <%-- Column header for Contents --%>
        <table:column  sort = "true" sanitize = "true"
         property = "<%= l_liHeader.get(4).toString() %>"/>        
    <%-- </div>  --%>                                                           
    </table:table>
     <%--</div>--%>                                                             <%-- 800WA_WEBCONSOLE404 --%> <%-- 800WA_WEBCONSOLE428 --%>
        
    <%-- Set button --%>
    <%-- <div align = "right" style = "margin-top:10px"> --%>                   <%-- 800WA_WEBCONSOLE404 --%>
    <div id="setButton" align = "right" style = "margin-top:10px">              <%-- 800WA_WEBCONSOLE404 --%>
        <util:set name = "FnSetButton">
         return setUpdatedValues('<util:rewrite 
         action = "AgentAlertAttributeAction"/><%= pageContext
                                .getAttribute("Query").toString()%>', 
                                '<%= Const.SYMBOL_ALERT_ATTRIBUTE_DELIMITER %>')
        </util:set>
        <%-- <html:button property = "Set" styleClass = "small"
             onclick = "<%= pageContext.getAttribute("FnSetButton")
                                                            .toString()%>"> --%><%-- 800WA_WEBCONSOLE457 --%>
        <html:button property = "Set" styleClass = "small"
             disabled = "true"
             onclick = "<%= pageContext.getAttribute("FnSetButton")
                                                                 .toString()%>"><%-- 800WA_WEBCONSOLE457 --%>
            <bean:message key = "envagt.common.set.button"
             bundle = "<%= Const.MESSAGE_RESOURCES_KEY_AGENT%>"/>
        </html:button>
    </div>
   
    <%-- Table for the setting --%>
    <%-- <table border = "1" cellpadding = "2" cellspacing = "1" width = "100%"> --%><%-- 800WA_WEBCONSOLE404 --%>
    <table id="setting" border = "1" cellpadding = "2" cellspacing = "1" 
        width = "100%">                                                         <%-- 800WA_WEBCONSOLE404 --%>
    <tr>
        <td width = "25%" class = "nowrap">
            <%-- Table for occurrence notification --%>
            <table border = "0" cellpadding = "1" cellspacing = "0">
                <tr>
                    <td width = "25%" class = "nowrap">
                        <span class = "large">
                        <bean:message 
                         key = "envagt.detail.alert.occurrence.notification"
                         bundle = "<%= Const.MESSAGE_RESOURCES_KEY_AGENT%>"/>
                        </span>
                    </td>
                </tr>
                <tr>                                                            <%-- 800WA_WEBCONSOLE437 --%> 
                 <td>                                                           <%-- 800WA_WEBCONSOLE437 --%>                                  
                  <table border = "0" cellpadding = "1" cellspacing = "0">      <%-- 800WA_WEBCONSOLE437 --%>
                <tr>
                    <td class = "nowrap">
                        <input type = "radio" 
                         value = "true" name = "RadioNotify"
                         onchange = "setChangeFlag();setObject(this);"          <%-- 800WA_WEBCONSOLE479  --%>
                         onclick = "setDisable('TextFrequency', false)"/>
                        <span class = "small">
                        <bean:message key = "envagt.detail.notify"
                         bundle = "<%= Const.MESSAGE_RESOURCES_KEY_AGENT%>"/>
                        </span>
                    </td>
                </tr>
                <tr>
                    <td class = "nowrap">
                        <span class = "small"
                         style = "position:relative;left:25px">
                        <input  size = "5" type = "text"
                         onchange = "setChangeFlag();setObject(this);"          <%-- 800WA_WEBCONSOLE371 --%>
                         onkeydown = "return disableEnter()"
                         maxlength = "5"                                        <%-- 800WA_WEBCONSOLE288 --%> 
                         name = "TextFrequency">
                        <bean:message key = "envagt.detail.alert.times"
                         bundle = "<%= Const.MESSAGE_RESOURCES_KEY_AGENT%>"/>
                        </span>
                    </td>
                </tr>
                <tr>
                    <td>
                        <span class = "small"
                         style = "position:relative;left:25px">
                        <bean:message key = "envagt.detail.alert.times.info"
                         bundle = "<%= Const.MESSAGE_RESOURCES_KEY_AGENT%>"/>
                        </span>
                    </td>
                </tr>
                <tr>
                    <td>
                        <input type = "radio" value = "false"
                         onchange = "setChangeFlag();setObject(this);"           <%-- 800WA_WEBCONSOLE479  --%>
                         onclick = "checkFrequency()" name = "RadioNotify" >
                        <span class = "small">
                        <bean:message key = "envagt.detail.do.not.notify"
                         bundle = "<%= Const.MESSAGE_RESOURCES_KEY_AGENT%>"/>
                        </span>
                    </td>
                </tr>
               </table>                                                         <%-- 800WA_WEBCONSOLE437 --%>
              </td>                                                             <%-- 800WA_WEBCONSOLE437 --%>
            </tr>                                                               <%-- 800WA_WEBCONSOLE437 --%>            
          </table>
        </td>
        <td width = "50%" class = "nowrap" valign = "top">
            <%-- Table for server operation --%>
           <%--  <table border = "0" width = "100%"> --%>                        <%-- 800WA_WEBCONSOLE437 --%>
         <table border = "0" width = "100%" cellpadding = "1" cellspacing = "0"><%-- 800WA_WEBCONSOLE437 --%> 
                <tr>
                    <td colspan = "2" class = "nowrap">
                        <span class = "large">
                        <bean:message key = "envagt.detail.server.action"
                         bundle = "<%= Const.MESSAGE_RESOURCES_KEY_AGENT%>"/>
                        </span>
                    </td>
                </tr>
                <tr>
                    <td width = "50%" class = "nowrap" valign = "top">          <%-- 800WA_WEBCONSOLE332 --%>
                        <%-- Table for server operation --%>                    <%-- 800WA_WEBCONSOLE332 --%>
                       <%-- <table border = "0" cellspacing = "0" 
                         cellpadding = "2" width = "100%"> --%>                     <%-- 800WA_WEBCONSOLE332 --%><%-- 800WA_WEBCONSOLE437 --%> 
                         <table border = "0" cellspacing = "0" 
                         cellpadding = "1" width = "100%">                      <%-- 800WA_WEBCONSOLE437 --%> 
                        <tr><td>                                                <%-- 800WA_WEBCONSOLE332 --%>
                        <input type = "radio" name = "RadioOperation"
                         onchange = "setChangeFlag();setObject(this);"          <%-- 800WA_WEBCONSOLE479  --%>
                         onclick = "setProcessDisable(true)"
                         value = 
                         "<%= Const.ATTRIBUTE_POWER_OPERATION_DONOTHING%>">     <%-- 800WA_WEBCONSOLE332 --%>
                        <span class = "small">
                        <bean:message 
                         key = "envagt.detail.server.action.do.nothing"
                         bundle = "<%= Const.MESSAGE_RESOURCES_KEY_AGENT%>"/>   <%-- 800WA_WEBCONSOLE332 --%>
                        </span>                                                 <%-- 800WA_WEBCONSOLE332 --%>
                        </td></tr>                                              <%-- 800WA_WEBCONSOLE332 --%>
                        <tr>                                                    <%-- 800WA_WEBCONSOLE332 --%>
                        <td class = "nowrap">                                   <%-- 800WA_WEBCONSOLE332 --%>
                           <input type = "radio" name = "RadioOperation"            
                            onchange = "setChangeFlag();setObject(this);"       <%-- 800WA_WEBCONSOLE479  --%>
                            onclick = "setProcessDisable(false)"
                            value = 
                            "<%= Const.ATTRIBUTE_POWER_OPERATION_POWEROFF%>">   <%-- 800WA_WEBCONSOLE332 --%>
                           <span class = "small">                               <%-- 800WA_WEBCONSOLE332 --%>
                           <bean:message 
                            key = "envagt.detail.server.action.power.off"
                            bundle = "<%= Const.MESSAGE_RESOURCES_KEY_AGENT%>"/><%-- 800WA_WEBCONSOLE332 --%>
                           </span>                                              <%-- 800WA_WEBCONSOLE332 --%>
                        </td>                                                   <%-- 800WA_WEBCONSOLE332 --%>
                        </tr>                                                   <%-- 800WA_WEBCONSOLE332 --%>
                        <tr>                                                    <%-- 800WA_WEBCONSOLE332 --%>
                        <td class = "nowrap">                                   <%-- 800WA_WEBCONSOLE332 --%>
                        <input type = "radio" name = "RadioOperation" 
                         onclick = "setProcessDisable(false);setObject(this);"  <%-- 800WA_WEBCONSOLE479  --%>
                         onchange = "setChangeFlag()"
                         value = "<%= Const.ATTRIBUTE_POWER_OPERATION_REBOOT%>"><%-- 800WA_WEBCONSOLE332 --%>
                        <span class = "small">                                  <%-- 800WA_WEBCONSOLE332 --%>
                        <bean:message key = "envagt.detail.server.action.reboot"
                         bundle = "<%= Const.MESSAGE_RESOURCES_KEY_AGENT%>"/>   <%-- 800WA_WEBCONSOLE332 --%>
                        </span>                                                 <%-- 800WA_WEBCONSOLE332 --%>
                        </td>                                                   <%-- 800WA_WEBCONSOLE332 --%>
                        </tr>                                                   <%-- 800WA_WEBCONSOLE332 --%>
                        </table>                                                <%-- 800WA_WEBCONSOLE332 --%>
                    </td>                                                       <%-- 800WA_WEBCONSOLE332 --%>
                    <td width = "50%" class = "nowrap" valign = "top">          <%-- 800WA_WEBCONSOLE332 --%>
                        <%-- Table for Forced termination of process --%>       <%-- 800WA_WEBCONSOLE332 --%>
                       <%-- <table border = "0" cellspacing = "0" 
                         cellpadding = "2" width = "100%"> --%>                 <%-- 800WA_WEBCONSOLE332 --%><%-- 800WA_WEBCONSOLE437 --%> 
                         <table border = "0" cellspacing = "0" 
                         cellpadding = "1" width = "100%">                      <%-- 800WA_WEBCONSOLE437 --%> 
                        <tr><td class = "nowrap">                               <%-- 800WA_WEBCONSOLE332 --%>
                        <span class = "small">                                  <%-- 800WA_WEBCONSOLE332 --%>
                        <bean:message key = "envagt.detail.forced.ending"
                         bundle = "<%= Const.MESSAGE_RESOURCES_KEY_AGENT%>"/>   <%-- 800WA_WEBCONSOLE332 --%>
                        </span>                                                 <%-- 800WA_WEBCONSOLE332 --%>
                        </td>                                                   <%-- 800WA_WEBCONSOLE332 --%>
                        </tr>                                                   <%-- 800WA_WEBCONSOLE332 --%>
                        <tr>                                                    <%-- 800WA_WEBCONSOLE332 --%>
                        <td class = "nowrap">                                   <%-- 800WA_WEBCONSOLE332 --%>
                           <input type = "radio" value = "true" 
                            name = "RadioProcess" onchange = "setChangeFlag();setObject(this);"> <%-- 800WA_WEBCONSOLE332 --%><%-- 800WA_WEBCONSOLE479  --%>
                           <span class = "small">                               <%-- 800WA_WEBCONSOLE332 --%>
                           <bean:message key = "envagt.detail.forced.ending.yes"
                            bundle = "<%= Const.MESSAGE_RESOURCES_KEY_AGENT%>"/><%-- 800WA_WEBCONSOLE332 --%>
                           </span>                                              <%-- 800WA_WEBCONSOLE332 --%>
                        </td>                                                   <%-- 800WA_WEBCONSOLE332 --%>
                        </tr>                                                   <%-- 800WA_WEBCONSOLE332 --%>
                        <tr>                                                    <%-- 800WA_WEBCONSOLE332 --%>
                        <td class = "nowrap">                                   <%-- 800WA_WEBCONSOLE332 --%>
                           <input type = "radio"
                            onchange = "setChangeFlag();setObject(this);"       <%-- 800WA_WEBCONSOLE479  --%>
                            value = "false" name = "RadioProcess">              <%-- 800WA_WEBCONSOLE332 --%>
                           <span class = "small">                               <%-- 800WA_WEBCONSOLE332 --%>
                           <bean:message key = "envagt.detail.forced.ending.no"
                            bundle = "<%= Const.MESSAGE_RESOURCES_KEY_AGENT%>"/><%-- 800WA_WEBCONSOLE332 --%>
                           </span>                                              <%-- 800WA_WEBCONSOLE332 --%>
                        </td>                                                   <%-- 800WA_WEBCONSOLE332 --%>
                        </table>                                                <%-- 800WA_WEBCONSOLE332 --%>
                    </td>
                </tr>
              <%-- <tr>                                                         //   800WA_WEBCONSOLE332
                    <td class = "nowrap">                                       //   800WA_WEBCONSOLE332 
                        <input type = "radio" name = "RadioOperation"           //   800WA_WEBCONSOLE332
                         onchange = "setChangeFlag()"                           //   800WA_WEBCONSOLE332
                         onclick = "setProcessDisable(false)"                   //   800WA_WEBCONSOLE332
                         value =                                                //   800WA_WEBCONSOLE332
                         "<%= Const.ATTRIBUTE_POWER_OPERATION_POWEROFF%>">      //   800WA_WEBCONSOLE332
                        <span class = "small">                                  //   800WA_WEBCONSOLE332
                        <bean:message                                           //   800WA_WEBCONSOLE332
                         key = "envagt.detail.server.action.power.off"          //   800WA_WEBCONSOLE332
                         bundle = "<%= Const.MESSAGE_RESOURCES_KEY_AGENT%>"/>   //   800WA_WEBCONSOLE332
                        </span>                                                 //   800WA_WEBCONSOLE332
                    </td>                                                       //   800WA_WEBCONSOLE332
                    <td class = "nowrap">                                       //   800WA_WEBCONSOLE332
                        <input type = "radio" value = "true"                    //   800WA_WEBCONSOLE332
                         name = "RadioProcess" onchange = "setChangeFlag()">    //   800WA_WEBCONSOLE332
                        <span class = "small">                                  //   800WA_WEBCONSOLE332
                        <bean:message key = "envagt.detail.forced.ending.yes"   //   800WA_WEBCONSOLE332
                         bundle = "<%= Const.MESSAGE_RESOURCES_KEY_AGENT%>"/>   //   800WA_WEBCONSOLE332
                        </span>                                                 //   800WA_WEBCONSOLE332
                    </td>                                                       //   800WA_WEBCONSOLE332
                </tr>                                                           //   800WA_WEBCONSOLE332
                <tr>                                                            //   800WA_WEBCONSOLE332
                    <td class = "nowrap">                                       //   800WA_WEBCONSOLE332
                        <input type = "radio" name = "RadioOperation"           //   800WA_WEBCONSOLE332
                         onclick = "setProcessDisable(false)"                   //   800WA_WEBCONSOLE332
                         onchange = "setChangeFlag()"                           //   800WA_WEBCONSOLE332
                         value = "<%= Const.ATTRIBUTE_POWER_OPERATION_REBOOT%>">//   800WA_WEBCONSOLE332
                        <span class = "small">                                  //   800WA_WEBCONSOLE332
                        <bean:message key = "envagt.detail.server.action.reboot"//   800WA_WEBCONSOLE332
                         bundle = "<%= Const.MESSAGE_RESOURCES_KEY_AGENT%>"/>   //   800WA_WEBCONSOLE332
                        </span>                                                 //   800WA_WEBCONSOLE332
                    </td>                                                       //   800WA_WEBCONSOLE332
                    <td class = "nowrap">                                       //   800WA_WEBCONSOLE332
                        <input type = "radio"                                   //   800WA_WEBCONSOLE332
                         onchange = "setChangeFlag()"                           //   800WA_WEBCONSOLE332
                         value = "false" name = "RadioProcess">                 //   800WA_WEBCONSOLE332
                        <span class = "small">                                  //   800WA_WEBCONSOLE332
                        <bean:message key = "envagt.detail.forced.ending.no"    //   800WA_WEBCONSOLE332
                         bundle = "<%= Const.MESSAGE_RESOURCES_KEY_AGENT%>"/>   //   800WA_WEBCONSOLE332
                        </span>                                                 //   800WA_WEBCONSOLE332
                    </td>                                                       //   800WA_WEBCONSOLE332
                </tr>                                                           //   800WA_WEBCONSOLE332 --%>
            </table>
        </td>
        <td width = "25%" class = "nowrap" valign = "top">
            <%-- Table for fail over --%>
            <%-- <table border = "0">--%>                                       <%-- 800WA_WEBCONSOLE437 --%> 
            <table border = "0"  cellpadding = "1" cellspacing = "0">           <%-- 800WA_WEBCONSOLE437 --%> 
                <tr>
                    <td width = "25%" class = "nowrap">
                        <span class = "large">
                        <bean:message key = "envagt.detail.failover"
                         bundle = "<%= Const.MESSAGE_RESOURCES_KEY_AGENT%>"/>
                        </span>
                    </td>
                </tr>
                <tr>                                                            <%-- 800WA_WEBCONSOLE437 --%> 
                  <td>                                                          <%-- 800WA_WEBCONSOLE437 --%> 
                    <table border = "0" cellpadding = "1" cellspacing = "0">    <%-- 800WA_WEBCONSOLE437 --%> 
                     <tr>
                       <td class = "nowrap">
                        <input type = "radio" onchange = "setChangeFlag();setObject(this);" <%-- 800WA_WEBCONSOLE479  --%>
                         name = "RadioFailover" value = "true">
                        <span class = "small">
                        <bean:message key = "envagt.detail.failover.yes"
                         bundle = "<%= Const.MESSAGE_RESOURCES_KEY_AGENT%>"/>
                        </span>
                    </td>
                </tr>
                <tr>
                    <td class = "nowrap">
                        <input  onchange = "setChangeFlag();setObject(this);"   <%-- 800WA_WEBCONSOLE479  --%>
                         type = "radio" name = "RadioFailover" value = "false">
                        <span class = "small">
                        <bean:message key = "envagt.detail.failover.no"
                         bundle = "<%= Const.MESSAGE_RESOURCES_KEY_AGENT%>"/>
                        </span>
                    </td>
                </tr>
               </table>                                                         <%-- 800WA_WEBCONSOLE437 --%> 
              </td>                                                             <%-- 800WA_WEBCONSOLE437 --%> 
             </tr>                                                              <%-- 800WA_WEBCONSOLE437 --%> 
            </table>
        </td>
    </tr>
    </table>        

<%-- Hidden list box for the attribute settings --%>
<%-- <select name = "alertAttribute" multiple = "true" 
 style = "visibility:hidden;position:absolute;top:0px;right:0px;"> --%>         <%-- 800WA_WEBCONSOLE462 --%>
<%-- <select name = "alertAttribute" multiple = "true" 
 style = "visibility:hidden;position:absolute;top:0px;left:0px;"> --%>          <%-- 800WA_WEBCONSOLE462 --%><%-- 800WA_WEBCONSOLE483 --%>
<select name = "alertAttribute" multiple = "true" 
 style = "visibility:hidden;position:absolute;top:0px;left:0px;width:0px">      <%-- 800WA_WEBCONSOLE483 --%>
</select>
<div onresize = "resetHeader('Settings')"
 style = "width:0%;position:absolute;top:0px;left:0px;"></div>                  <%-- 800WA_WEBCONSOLE462 --%>
</logic:notPresent>                                                             <% // 800WA_WEBCONSOLE372%>

</html:form>
                                                                       <%-- 800WA_WEBCONSOLE404 --%>
</body>
<%-- Get the error message information  from the property file --%>
<util:set name = "errorArray">
var MSG_COMMON_FORMAT_CHECK 
= "<%= MessageConstant.MSG_COMMON_FORMAT_CHECK %>";
var MSG_PAGE_CHECK
= "<%= MessageConstant.MSG_PAGE_CHECK %>";
var MSG_COMMON_POSITIVE_INTEGER_CHECK
= "<%= MessageConstant.MSG_COMMON_POSITIVE_INTEGER_CHECK %>";
var MSG_COMMON_RANGE_CHECK
= "<%= MessageConstant.MSG_COMMON_RANGE_CHECK %>";
var MSG_ALERTTRIGER_CHECK
= "<%= MessageConstant.MSG_ALERTTRIGER_CHECK %>";
var MSG_COMMON_CONFIRM_CHANGED 
= "<%= MessageConstant.MSG_COMMON_CONFIRM_CHANGED %>";
var MSG_COMMON_RANGE_CHARACTER_CHECK 
= "<%= MessageConstant.MSG_COMMON_RANGE_CHARACTER_CHECK %>";
var ALERT_ATTRIBUTE_MIN_NOTIFY_COUNT 
= "<%= Const.SETTING_ALERT_ATTRIBUTE_MIN_NOTIFY_COUNT %>";                      <%-- 800WA_WEBCONSOLE424 --%>
var ALERT_ATTRIBUTE_MAX_NOTIFY_COUNT 
= "<%= Const.SETTING_ALERT_ATTRIBUTE_MAX_NOTIFY_COUNT %>";                      <%-- 800WA_WEBCONSOLE424 --%>

<%-- KASM1804F-E --%>
errorMsgArr[MSG_COMMON_FORMAT_CHECK] = '<bean:message 
bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ERRMESSAGE%>" 
key = "<%= MessageConstant.MSG_COMMON_FORMAT_CHECK %>"/>';
<%-- KASM18081-E --%>
errorMsgArr[MSG_PAGE_CHECK] = '<bean:message 
bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ERRMESSAGE%>"
key = "<%= MessageConstant.MSG_PAGE_CHECK %>"/>';
<%-- KASM1801F-E --%>
errorMsgArr[MSG_COMMON_POSITIVE_INTEGER_CHECK] = '<bean:message 
bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ERRMESSAGE%>"
key = "<%= MessageConstant.MSG_COMMON_POSITIVE_INTEGER_CHECK %>"
arg0 = "{0}"/>';
<%-- KASM1802D-E --%>
errorMsgArr[MSG_COMMON_RANGE_CHECK] = '<bean:message 
bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ERRMESSAGE%>"
key = "<%= MessageConstant.MSG_COMMON_RANGE_CHECK %>"
arg0 = "{0}" arg1 = "{1}" arg2 = "{2}"/>';
<%-- KASM18089-E --%>
errorMsgArr[MSG_ALERTTRIGER_CHECK] = '<bean:message 
bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ERRMESSAGE%>"
key = "<%= MessageConstant.MSG_ALERTTRIGER_CHECK %>"/>';
<%-- KASM1802C-Q --%>
errorMsgArr[MSG_COMMON_CONFIRM_CHANGED] = '<bean:message 
bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ERRMESSAGE%>"
key = "<%= MessageConstant.MSG_COMMON_CONFIRM_CHANGED %>"/>';
<%-- KASM18184-E --%>
errorMsgArr[MSG_COMMON_RANGE_CHARACTER_CHECK] = '<bean:message 
bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ERRMESSAGE%>" 
key = "<%= MessageConstant.MSG_COMMON_RANGE_CHARACTER_CHECK %>" 
arg0 = "{0}" arg1 = "{1}"/>';
</util:set>
<script>
errorMsgArr = new Array();
<%= pageContext.getAttribute("errorArray").toString() %>
if (document.forms[0].Set != null) {                                            <%-- 800WA_WEBCONSOLE461 --%>
document.forms[0].Set.disabled = false;                                         <%-- 800WA_WEBCONSOLE457 --%>
}                                                                               <%-- 800WA_WEBCONSOLE461 --%>
if (document.getElementById("go") != null) {                                    <%-- 800WA_WEBCONSOLE461 --%>
document.getElementById("go").disabled = false;                                 <%-- 800WA_WEBCONSOLE457 --%>
}                                                                               <%-- 800WA_WEBCONSOLE461 --%>
resetHeader('Settings');                                                        <%-- 800WA_WEBCONSOLE462 --%>
</script>
</html:html>