<%-- $Id: deviceTabDetails.jsp,v 1.10.2.1.2.9 2004/12/02 15:09:16 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" %>


<c:set var="swaptableid"  value="${swaptableid+2}" scope='request' />


   <tr id='<c:out value="swipecontent${swaptableid-1}" />'>
     <td class="htableBorder" >
  <table width="770" border="0" cellpadding="0" cellspacing="0" class="table">

   <tr> 
<td colspan="4" >
<table  cellpadding="0" cellspacing="0" >
<tr height="20" class="header2bg" >
         <td width="720" class="propFormBlackText"> <fmt:message key='webclient.topo.objectdetails.tab.protocol.header'/></td>
        <td width="30" id='<c:out value="editswipe${swaptableid-1}" />' ><%--<a class="propFormLink" href="javascript:toggleSwipe('<c:out value="${swaptableid-1}" />')" ><fmt:message key='webclient.topo.objectdetails.edit'/></a>--%></td>
		<td width="20"  id='<c:out value="editswipe${swaptableid}" />'><%--<a href="javascript:toggleSwipe('<c:out value="${swaptableid-1}" />')" ><img border=0 src="/webclient/common/images/edit.gif" height="15" width="15"></a>--%></td>
</tr>
</table>
</td>

      </tr>
      <tr class="even"> 
        <td width="175" class="blackBoldText" > <fmt:message key='webclient.topo.objectdetails.snmpport'/> </td>
        <td width="210" class="blackText" >  <c:out value='${ObjectDetailsBean.map.snmpport}'/> </td>
        <td width="175" class="blackBoldText" > <fmt:message key='webclient.topo.objectdetails.basemibs'/></td>
        <td width="210" class="blackText" > <c:out value='${ObjectDetailsBean.map.baseMibs}'/> </td>
      </tr>

      <tr class="odd"> 
        <td class="blackBoldText" > <fmt:message key='webclient.topo.objectdetails.readcommunity'/></td>
        <td class="blackText" ><c:out value='${ObjectDetailsBean.map.community}'/> </td>
        <td class="blackBoldText" > <fmt:message key='webclient.topo.objectdetails.writecommunity'/> </td>
        <td class="blackText" ><c:out value='${ObjectDetailsBean.map.writeCommunity}'/> </td>
      </tr>

     <tr class="even"> 
        <td class="blackBoldText" > <fmt:message key='webclient.topo.objectdetails.version'/></td>
        <td class="blackText" > <c:out value='${ObjectDetailsBean.map.version}'/></td>
      </tr>

      <c:if test='${ObjectDetailsBean.map.version == "v3"}'> 
      <tr class="odd"> 
        <td class="blackBoldText" > <fmt:message key='webclient.topo.objectdetails.contextname'/> </td>
        <td class="blackText" > <c:out value='${ObjectDetailsBean.map.contextName}'/></td>
        <td class="blackBoldText" > <fmt:message key='webclient.topo.objectdetails.username'/> </td>
        <td class="blackText" > <c:out value='${ObjectDetailsBean.map.userName}'/></td>
      </tr>
      </c:if>
     
   </table></td> </tr>


 <tr id='<c:out value="swipecontent${swaptableid}" />' class="hide">
     <td class="htableBorder" height="20">
  <table width="770" border="0" cellpadding="0" cellspacing="0" class="table">

  <tr> 
<td colspan="4" >
<table cellpadding="0" cellspacing="0" >
<tr height="20" class="header2bg"   >

  <td width="710" class="propFormBlackText"> <fmt:message key='webclient.topo.objectdetails.tab.protocol.header'/></td>
  <td width="40" id='<c:out value="editswipe${swaptableid-1}" />' class="header2bg" colspan="2" ><a class="propFormLink" href= "javascript:closeSwipe('<c:out value="${swaptableid}" />')"  ><fmt:message key='webclient.topo.objectdetails.cancel'/></a></td>
  <td width="20" id='<c:out value="editswipe${swaptableid}" />'  colspan="2" ><a href= "javascript:closeSwipe('<c:out value="${swaptableid}" />')"  ><img border=0 src="/webclient/common/images/edit.gif" width="14" height="15"></a></td>

</tr>
</table>
</td>
</tr>

 <tr class="even"> 
        <td width="175" class="blackBoldText" > <fmt:message key='webclient.topo.objectdetails.snmpport'/>
        </td>
        <td width="210" class="blackText" > 
          <table width="100%" border="0" align="left" cellpadding="0" cellspacing="0" class="NobotBorder">
            <tr> 
              <td width="32%"> <html-el:text styleClass= "formstyle" name="ObjectDetailsBean"  property="snmpport"/></td>
              <c:set target="${ObjectDetailsBean.map}" property="snmpport" value="${null}"/> 
              <td width="49%" class="errorText"> <html-el:errors property="snmpport"/></td>
            </tr>
          </table></td>
        <td width="175" class="blackBoldText" ><fmt:message key='webclient.topo.objectdetails.basemibs'/></td>
        <td width="210" class="blackText" ><html-el:text styleClass= "formStyle"  name="ObjectDetailsBean" property="baseMibs"/></td>
        <c:set target="${ObjectDetailsBean.map}" property="baseMibs" value="${null}"/> 
      </tr>

      <tr class="odd"> 
           <td class="blackBoldText" > <fmt:message key='webclient.topo.objectdetails.readcommunity'/></td>
           <td class="blackText" > <select name="communitylist" style=width:100 class="formStyle">
           <c:forTokens items="${ObjectDetailsBean.map.community}" var="token" delims=" " > 
           <option value ='<c:out value="${token}"/>'><c:out value="${token}"/></option>
           </c:forTokens> </select>
           <td class="blackBoldText" > <fmt:message key='webclient.topo.objectdetails.writecommunity'/></td>
           <td class="blackText" > <select name="writecommunitylist" style=width:100 class="formStyle">
           <c:forTokens items="${ObjectDetailsBean.map.writeCommunity}" var="token" delims=" " > 
           <option value ='<c:out value="${token}"/>'><c:out value="${token}"/></option>
           </c:forTokens> </select> </td>

      </tr>

       <tr class="even"> 
        <td class="blackBoldText" > <fmt:message key='webclient.topo.objectdetails.version'/></td>
        <td class="blackText" ><c:out value='${ObjectDetailsBean.map.version}'/>&nbsp;</td>
        <td colspan="2">&nbsp;</td>
      </tr>

      <c:if test='${ObjectDetailsBean.map.version == "v3"}'> 
      <tr class="odd"> 
        <td class="blackBoldText" > <fmt:message key='webclient.topo.objectdetails.contextname'/> </td>
        <td class="blackText" > <c:out value='${ObjectDetailsBean.map.contextName}'/></td>
        <td class="blackBoldText" > <fmt:message key='webclient.topo.objectdetails.username'/> </td>
        <td class="blackText" > <c:out value='${ObjectDetailsBean.map.userName}'/></td>
      </tr>
      </c:if> 

      <tr class="odd"> 
        
      <td colspan=4 align="right" valign="middle"> 
          <input class=button type=submit value="<fmt:message key='webclient.topo.objectdetails.updatebutton'/>" name="submitButton" onClick="updatePerform('<c:out value='${beanName}'/>')"> &nbsp;
          <input class=button type=reset value="<fmt:message key='webclient.topo.objectdetails.clearbutton'/>" name="resetButton"></td> 
    </tr>
       
     </table></td> </tr>
