<%--
 Copyright : All Rights Reserved. Copyright (C) 2006, Hitachi, Ltd.
 Title     : ServerConductor WebConsole
 Version   : 08-00
 Name      : envMngNet.jsp
 Date      : 2006/05/05 
 Author    : SivaRajan.S.K.A
 --%>
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
<%@ page language = "java" %>
<%@ page errorPage = "errorDialog.jsp" %>

<%@ page import =
"JP.co.Hitachi.soft.System_Manager.webconsole.common.Const" %>
<%@page import =
"JP.co.Hitachi.soft.System_Manager.webconsole.model.bean.ErrorBean"%>
<%@page import =
"JP.co.Hitachi.soft.System_Manager.webconsole.common.MessageConstant"%>
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib uri = "/WEB-INF/struts-html.tld" prefix = "html" %>
<%@ taglib uri = "/WEB-INF/struts-bean.tld" prefix = "bean" %>
<%@ taglib uri = "/WEB-INF/struts-logic.tld" prefix = "logic" %>
<%@ taglib uri = "/WEB-INF/common-tags.tld" prefix = "util" %>
<% response.addHeader("Cache-Control","no-cache"); %>

<jsp:useBean id="ManagerNetworkSettingBean" class="JP.co.Hitachi.soft.System_Manager.webconsole.model.bean.ManagerNetworkSettingBean" scope="request"/>

<util:checkURL/> 
<html:html locale = "true">
    <head>
         <title></title>              
        <script src = "js/common.js"> </script>                                 <% //800WA_WEBCONSOLE192 %>         
         <script src = "js/envSet.js">  </script>
         <link rel = "stylesheet" type = "text/css" href = "css/common.css">
         <link rel = "stylesheet" type = "text/css" href = "css/header.css"> 
    </head>
    <body onload = "document.forms[0].cmdTimeOut.focus()">
    <html:form  action="ManagerNetworkSettingAction"
onsubmit = "setObject(document.forms[0].cmdTimeOut);return validateMngNetForm();" >     <% //800WA_WEBCONSOLE304 %> <% //800WA_WEBCONSOLE391 %> 

        <util:set name = "ManagerNetworkCmdTimeOutBeanValue" >
             <%=ManagerNetworkSettingBean.getCmdTimeOut()%>
        </util:set>

       <table border = "0" cellspacing="0" cellpadding ="3" 
                                                align = "center" width = 100%>  
         <tr> 
             <td align = "left" width = "50%">
                <span class = "small"> 
                   <bean:message  
                      bundle = "<%= Const.MESSAGE_RESOURCES_KEY_MANAGER%>"  
                      key = "envmng.detail.command.timeout"/>
                </span>
              </td>
              <td align= "left" width = "50%">
                 <html:text property = "cmdTimeOut"  size = "10" 
                    maxlength = "3" value = "<%=pageContext.
                          getAttribute("ManagerNetworkCmdTimeOutBeanValue").
                                                                 toString() %>"
                styleClass = "small"  onchange = "setupFlag();setObject(this);"/><% //800WA_WEBCONSOLE371 %>
                   <span class = "small">                                       <% //800WA_WEBCONSOLE319 %> 
                    <bean:message 
                       bundle = "<%= Const.MESSAGE_RESOURCES_KEY_MANAGER%>"  
                       key = "envmng.detail.timeout.second"/>
                   </span>                                                      <% //800WA_WEBCONSOLE319 %>
               </td>
          </tr>
          <tr>
              <td align = "right" colspan = "2">
                 <%-- <html:submit property = "submit" styleClass = "small" 
                    onclick = "return validateMngNetForm();"> --%>              <%-- 800WA_WEBCONSOLE451 --%>
               <%-- <html:submit property = "submit" styleClass = "small" > --%><%-- 800WA_WEBCONSOLE451 --%><%-- 800WA_WEBCONSOLE457 --%>
                 <html:submit property = "submit" styleClass = "small" 
                     disabled = "true">                                         <%-- 800WA_WEBCONSOLE457 --%>
                    <bean:message  
                         bundle = "<%= Const.MESSAGE_RESOURCES_KEY_MANAGER%>" 
                         key ='envmng.common.set.button'/>
                  </html:submit> 
             </td>
          </tr>
      </table>
        <input type = "hidden" name = "hdnNodeId" value = ""></input>    
   </html:form>
  </body>
    <util:set name = "errorArray"> 
       var errorMsgArr = new Array();                                           <% //800WA_WEBCONSOLE290 %> 
       var MSG_MANAGER_TIMEOUT_CHECK =  
                  "<%=MessageConstant.MSG_MANAGER_TIMEOUT_CHECK%>"; 
       var MSG_COMMON_POSITIVE_INTEGER_CHECK =   
       "<%=MessageConstant.MSG_COMMON_POSITIVE_INTEGER_CHECK %>"; 
       var MSG_COMMON_RANGE_CHECK = 
                        "<%=MessageConstant.MSG_COMMON_RANGE_CHECK %>";            

      <%-- <!-- Textname.minimum and maximum values of Command Timeout --> --%> <% // 800WA_WEBCONSOLE300 %>
      var MANAGER_NETWORK_CMDTIMEOUT_MIN_VALUE = 
                             "<%=Const.MANAGER_NETWORK_CMDTIMEOUT_MIN_VALUE%>";
      var MANAGER_NETWORK_CMDTIMEOUT_MAX_VALUE = 
                            "<%=Const.MANAGER_NETWORK_CMDTIMEOUT_MAX_VALUE %>";
      var MANAGER_NETWORK_CMDTIMEOUT_TEXT_NAME = 
                             "<%=Const.MANAGER_NETWORK_CMDTIMEOUT_TEXT_NAME%>";

    errorMsgArr[MSG_MANAGER_TIMEOUT_CHECK] =                                    <% //800WA_WEBCONSOLE290 %>
      '<bean:message bundle = "<%=Const.MESSAGE_RESOURCES_KEY_ERRMESSAGE%>" 
       key = "<%=MessageConstant.MSG_MANAGER_TIMEOUT_CHECK %>"/>'; 

    errorMsgArr[MSG_COMMON_POSITIVE_INTEGER_CHECK] =                            <% //800WA_WEBCONSOLE290 %>
      '<bean:message  bundle = "<%=Const.MESSAGE_RESOURCES_KEY_ERRMESSAGE%>" 
        key = "<%=MessageConstant.MSG_COMMON_POSITIVE_INTEGER_CHECK %>" 
        arg0 = "{0}"/>'; 
      
    errorMsgArr[MSG_COMMON_RANGE_CHECK] =                                       <% //800WA_WEBCONSOLE290 %>
     '<bean:message bundle = "<%=Const.MESSAGE_RESOURCES_KEY_ERRMESSAGE%>" 
      key = "<%=MessageConstant.MSG_COMMON_RANGE_CHECK %>" 
      arg0 = "{0}" arg1 = "{1}" arg2 = "{2}"/>';     
  </util:set>         
    <script>
         var nodeId = '<%= ManagerNetworkSettingBean.getNodeID() %>'
         var errorMsgArr = new Array();     
         <%=pageContext.getAttribute("errorArray").toString()%>
         document.forms[0].submit.disabled = false;                             <%-- 800WA_WEBCONSOLE457 --%>
    </script>
</html:html>