<%-- $Id: relationshipTabDetails.jsp,v 1.12.2.1 2004/05/13 13:05:03 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 showGroup()
{

if(eval(document.forms[0].groupnames.selectedIndex))
{

nodeurl="/topo/objectdetails.do?name="+document.forms[0].groupnames.options[document.forms[0].groupnames.selectedIndex].value;
location.href = nodeurl;
}
}

function showChild()
{

if(eval(document.forms[0].childerenkeyslist.selectedIndex)+1)
{

nodeurl="/topo/objectdetails.do?name="+document.forms[0].childerenkeyslist.options[document.forms[0].childerenkeyslist.selectedIndex].value;
location.href = nodeurl;
}
}
function showMember()
{

if(eval(document.forms[0].groupmembers.selectedIndex))
{

nodeurl="/topo/objectdetails.do?name="+document.forms[0].groupmembers.options[document.forms[0].groupmembers.selectedIndex].value;
location.href = nodeurl;
}
}
</script>

   <tr>
     <td height="20">
<table width="600" border="0" align="left" 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.relationship.header'/></span></td>
      </tr>
      <tr> 
        <td width="150" height="30" > <span class="text"> <fmt:message key='webclient.topo.objectdetails.parentkey'/> </span> </td>
        <td width="422"30" class="text"> <c:choose> <c:when test="${!empty ObjectDetailsBean.map.parentKey}"> 
          <A href="/topo/objectdetails.do?name=<c:out value='${ObjectDetailsBean.map.parentKey}'/>" ><c:out value='${ObjectDetailsBean.map.parentKey}'/> 
          </A> </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.groupnames'/> </span></td>
        <td height="30"> <c:choose> <c:when test="${!empty ObjectDetailsBean.map.groupNames}"> 
          <table width="423" border="0" align="left" cellpadding="0" cellspacing="0" class="NobotBorder">
            <tr> 
              <td width="46" rowspan="2" align="left"> 
                <select name="groupnames" multiple class="formStyle">
                  <c:forTokens items="${ObjectDetailsBean.map.groupNames}" 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="99" align="left" class="text"><a href="javascript:showGroup()"> 
                <fmt:message key='webclient.topo.objectdetails.groupnames.details'/></a></td>
              <td width="278" align="left" class="formStyle"><fmt:message key='webclient.topo.objectdetails.groupnames.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.iscontainer'/></span> </td>
        <td height="30" class="text"> <html-el:radio name="ObjectDetailsBean" property="isContainer" value="true"/> 
          <fmt:message key='webclient.topo.objectdetails.iscontainer.yes'/> <html-el:radio name="ObjectDetailsBean" property="isContainer" value="false"/><fmt:message key='webclient.topo.objectdetails.iscontainer.no'/> 
        </td>
      </tr>
      <c:if test='${ObjectDetailsBean.map.isContainer == "true"}'> 
      <tr> 
        <td width="150" height="30" > <span class="text"><fmt:message key='webclient.topo.objectdetails.childrenkeys'/></span></td>
        <td height="30"> <c:choose> <c:when test="${!empty ObjectDetailsBean.map.childrenKeys}"> 
          <table width="422" border="0" align="left" cellpadding="0" cellspacing="0" class="NobotBorder">
            <tr> 
              <td width="46" align="left"> 
                <select name="childerenkeyslist" size="3" class="formStyle">
                  <c:forTokens items="${ObjectDetailsBean.map.childrenKeys}" 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="100" align="left" class="text"><a href="javascript:showChild()"><fmt:message key='webclient.topo.objectdetails.childrenkeys.details'/></a></td>
              <td width="285" align="left" class="formStyle"><fmt:message key='webclient.topo.objectdetails.childrenkeys.help'/> </td>
            </tr>
          </table></c:when> <c:otherwise> <span class="text">--</span> </c:otherwise> 
          </c:choose> </td>
      </tr>
      </c:if> 
      <tr> 
        <td width="150" height="30" > <span class="text"><fmt:message key='webclient.topo.objectdetails.isgroup'/></span> </td>
        <td height="30" class="text"> <html-el:radio name="ObjectDetailsBean" property="isGroup" value="true"/> 
          <fmt:message key='webclient.topo.objectdetails.isgroup.yes'/> <html-el:radio  name="ObjectDetailsBean" property="isGroup" value="false"/><fmt:message key='webclient.topo.objectdetails.isgroup.no'/> 
        </td>
      </tr>
      <c:if test='${ObjectDetailsBean.map.isGroup == "true"}'> 
      <tr> 
        <td width="150" height="30" > <span class="text"><fmt:message key='webclient.topo.objectdetails.groupmembers'/></span></td>
        <td height="30"> <c:choose> <c:when test="${!empty ObjectDetailsBean.map.groupmembers}"> 
          <table width="423" height="54" border="0" align="left" cellpadding="0" cellspacing="0" class="NobotBorder">
            <tr> 
              <td width="38" height="54" rowspan="2" align="left"> 
                <select name="groupmembers" size="3" multiple class="formStyle">
                  <c:forTokens items="${ObjectDetailsBean.map.groupMembers}" 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="100" align="left" class="text"><a href="javascript:showMember()"><fmt:message key='webclient.topo.objectdetails.groupmembers.details'/></a></td>
              <td width="297" align="left" class="formStyle"><fmt:message key='webclient.topo.objectdetails.groupmembers.help'/></td>
            </tr>
          </table></c:when> <c:otherwise> <span class="text">--</span> </c:otherwise> 
          </c:choose> </td>
      </tr>
      </c:if> </table>
</td> </tr>


