<%-- $Id: networkTabDetails.jsp,v 1.13.2.1 2004/05/11 17:33:41 asivakumar Exp $ --%>

<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html-el" prefix="html-el" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>

<script language="javascript">

function showNodeList()
{
if(eval(document.forms[0].nodelist.selectedIndex)+1)
{
nodeurl="/topo/objectdetails.do?name="+document.forms[0].nodelist.options[document.forms[0].nodelist.selectedIndex].value;
location.href = nodeurl;
}
}

function showSubNetworks()
{
if(eval(document.forms[0].subnetslist.selectedIndex)+1)
{
neturl="/topo/objectdetails.do?name="+document.forms[0].subnetslist.options[document.forms[0].subnetslist.selectedIndex].value;
location.href = neturl;
}
}
</script>

      <tr>
       <td height="20">
<table width="600" border="0" cellpadding="2" cellspacing="0" class="botBorder">
      <tr>
        <td colspan="2"><img src="/webclient/topo/images/spacer.gif" width="1" height="1"></td>
      </tr>
      <tr> 
        <td height="25" class="header2bg" colspan="2"> <span class="header2"><fmt:message key='webclient.topo.objectdetails.tab.network.header'/></span></td>
      </tr>
      <tr> 
        <td width="150" height="30"><span class="text"><fmt:message key='webclient.topo.objectdetails.network.nodelist'/></span> </td>
        <td width="422" height="30" class="text"> <c:choose> <c:when test="${!empty ObjectDetailsBean.map.NodeList}"> 
          <table width="100%" border="0" align="left" cellpadding="0" cellspacing="0" class="NobotBorder">
            <tr> 
              <td width="32%"> <select name="nodelist" size="3" class="formStyle" >
                  <c:forTokens items="${ObjectDetailsBean.map.NodeList}" var="token" delims=" " varStatus="counter" > 
                  <option value ='<c:out value="${token}"/>'
<c:if test='${counter.index == 0}'>
selected
</c:if>
><c:out value="${token}"/></option>
                  </c:forTokens> </select> </td>
              <td width="19%" class="text" nowrap> <A href="javascript:showNodeList()" ><fmt:message key='webclient.topo.objectdetails.network.nodelist.details'/> </A> 
              <td width="49%" class="text"><fmt:message key='webclient.topo.objectdetails.network.nodelist.help'/></td>
            </tr>
          </table></c:when> <c:otherwise> -- </c:otherwise> </c:choose> </td>
      </tr>
      <tr> 
        <td width="150" height="30"> <span class="text"><fmt:message key='webclient.topo.objectdetails.network.interfacelist'/> </span></td>
        <td height="30"> <c:choose> <c:when test="${!empty ObjectDetailsBean.map.InterfaceList}"> 
          <table width="100%" border="0" align="left" cellpadding="0" cellspacing="0" class="NobotBorder">
            <tr> 
              <td width="100%"> <select name="interfacelist" class="formStyle">
                  <c:forTokens items="${ObjectDetailsBean.map.InterfaceList}" var="token" delims=" " varStatus="counter"> 
                  <option value ='<c:out value="${token}"/>'
<c:if test='${counter.index == 0}'>
selected
</c:if>

><c:out value="${token}"/></option>
                  </c:forTokens> </select> </td>
            </tr>
          </table></c:when> <c:otherwise> -- </c:otherwise> </c:choose> </td>
      </tr>
      <tr> 
        <td width="150" height="30"> <span class="text"><fmt:message key='webclient.topo.objectdetails.network.subnets'/></span></td>
        <td height="30"> <c:choose> <c:when test="${!empty ObjectDetailsBean.map.subNets}"> 
          <table width="100%" border="0" align="left" cellpadding="0" cellspacing="0" class="NobotBorder">
            <tr> 
              <td width="32%"> <select name="subnetslist"  class="formStyle">
                  <c:forTokens items="${ObjectDetailsBean.map.subNets}" var="token" delims=" " varStatus="counter" > 
                  <option value ='<c:out value="${token}"/>'
<c:if test='${counter.index == 0}'>
selected
</c:if>

><c:out value="${token}"/></option>
                  </c:forTokens> </select> </td>
              <td width="19%" class="text"><a href="javascript:showSubNetworks()"><fmt:message key='webclient.topo.objectdetails.network.subnets.details'/></a></td>
              <td width="49%" class="formStyle"><fmt:message key='webclient.topo.objectdetails.network.subnets.help'/></td>
            </tr>
          </table></c:when> <c:otherwise> <span class="text">--</span> </c:otherwise> 
          </c:choose> </td>
      </tr>
      <tr> 
        <td width="150" height="30"><span class="text"><fmt:message key='webclient.topo.objectdetails.network.subnetmasks'/></span></td>
        <td height="30"> <c:choose> <c:when test="${!empty ObjectDetailsBean.map.subNetNetmasks}"> 
          <table width="100%" border="0" align="left" cellpadding="0" cellspacing="0" class="NobotBorder">
            <tr> 
              <td width="100%"> <select name="subnetmasksslist" class="formStyle">
                  <c:forTokens items="${ObjectDetailsBean.map.subNetNetmasks}" var="token" delims=" " > 
                  <option value ='<c:out value="${token}"/>'><c:out value="${token}"/></option>
                  </c:forTokens> </select> </td>
            </tr>
          </table></c:when> <c:otherwise> <span class="text">--</span> </c:otherwise> 
          </c:choose> </td>
      </tr>
      <tr> 
        <td width="150" height="30"> <span class="text"><fmt:message key='webclient.topo.objectdetails.network.parentnetmask'/></span> 
        </td>
        <td height="30" > <c:choose> <c:when test="${!empty ObjectDetailsBean.map.parentNetmask and ObjectDetailsBean.map.parentNetmask !='null'}"> 
          <c:out value='${ObjectDetailsBean.map.parentNetmask}'/> </c:when> <c:otherwise> 
          <span class="text">--</span> </c:otherwise> </c:choose> </td>
      </tr>
      <tr> 
        <td width="150" height="30"> <span class="text"> <fmt:message key='webclient.topo.objectdetails.network.parentnetwork'/></span></td>
        <td height="30" class="text"> <c:choose> <c:when test="${!empty ObjectDetailsBean.map.parentNetwork and ObjectDetailsBean.map.parentNetwork != 'null'}"> 
          <c:out value='${ObjectDetailsBean.map.parentNetwork}'/> </c:when> <c:otherwise> 
          -- </c:otherwise> </c:choose> </td>
      </tr>
    </table>
</td> </tr>