
<%-- $Id: InventoryViewHeader.jsp,v 1.16.4.2 2004/02/10 05:32:24 rsathish Exp $ --%>

<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>

<table>
<tr>
  <td> 
    <table border="0" align="left" cellpadding="2" cellspacing="0">
      <tr align="left"> 
         <td>
            <input name="Submit" type="submit" class="button" value="<fmt:message key='webclient.topo.inventorylist.operations.viewevents'/>" onclick="javascript:showEvents('/fault/NetworkEvent.do?selectedNode=Events&selectedTab=Fault&displayName=Events')">
         </td>
         <td>
            <input name="Submit" type="submit" class="button" value="<fmt:message key='webclient.topo.inventorylist.operations.viewalarms'/>" onclick="javascript:showAlarms('/fault/AlarmView.do?selectedNode=Alerts&selectedTab=Fault&displayName=Alarms')">
         </td>
<c:if test='${!(empty privileges["Delete Object"] && empty privileges["Modify Object"])}'>
<td>
    <table border="0" align="left" cellpadding="2" cellspacing="0">
     <tr>
     <td width="2"><img src="/webclient/common/images/trans.gif" width="1" height="1"> </td>
       <c:if test='${!empty privileges["Manage And Unmanage Objects"]}'>
         <td>
            <input name="Submit" type="submit" class="button" value="<fmt:message key='webclient.topo.inventorylist.operations.manage'/>" onclick="javascript:performOperation('/topo/manageUnmanage.do?managed=true')">
         </td>
         <td>
            <input name="Submit" type="submit" class="button" value="<fmt:message key='webclient.topo.inventorylist.operations.unmanage'/>" onclick="javascript:performOperation('/topo/manageUnmanage.do?managed=false')">
         </td>
       </c:if>
<%--
       <c:if test='${!empty privileges["Start And Stop Discovery"]}'>
         <td>
            <input name="Submit" type="submit" class="button" value="<fmt:message key='webclient.topo.inventorylist.operations.startdiscovery'/>" onclick="javascript:performOperation('/topo/startStopDiscovery.do?discover=true')">
         </td>
         <td>
            <input name="Submit" type="submit" class="button" value="<fmt:message key='webclient.topo.inventorylist.operations.stopdiscovery'/>" onclick="javascript:performOperation('/topo/startStopDiscovery.do?discover=false')">
         </td>
       </c:if>
--%>
       <c:if test='${!empty privileges["Delete Object"]}'>
         <td>
            <input name="Submit" type="submit" class="button" value="<fmt:message key='webclient.topo.inventorylist.operations.deleteobject'/>" onclick="javascript:deleteObject('/topo/deleteObject.do?')">
         </td>
       </c:if>
    </tr>
  </table>
</td>
</c:if>
</tr>
</table>
</td>
</tr>
</table>
