
<%-- $Id: addMapMenu.jsp,v 1.1.2.8.2.2 2005/07/25 06:13:11 sudharshan Exp $ --%>
<head>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
<%-- <%@ taglib prefix="popup" uri="http://www.adventnet.com/nms/webclient/components" %>  --%>

</head>

<script language="javascript">
function removeMapCV(viewId)
{
  if (viewId == 'ipnet.netmap')
  {
      alert('<fmt:message key="webclient.map.cv.deletesymbol.denied"/> '+ viewId);
  }
  else
  {
      var con = confirm('<fmt:message key="webclient.map.cv.deletesymbol.confirm"/> '+ viewId);
      if ( con != true)
      {
          return;
      }
      else
      {
          url = "/map/MapCVAction.do?method=deleteMap&viewId=" +viewId;  
          location.href = url;
      }
  }
}

</script>

<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
<TBODY>
<TR height=22>
<c:choose>
<c:when test='${empty mapProps.label}'>
<TD class="header1" valign="bottom"><fmt:message key='webclient.map.view.header'><fmt:param value="${displayName}"/></fmt:message></TD>
</c:when>
<c:otherwise>
<TD class="header1" valign="bottom"><fmt:message key='webclient.map.view.header'><fmt:param value="${mapProps.label}"/></fmt:message></TD>
</c:otherwise>
</c:choose>

<td class="text" align=right valign=bottom><fmt:message key='webclient.map.view.header.count'><fmt:param value="${objectsInViewCount}"/></fmt:message></td>
</tr>
<tr>
<td colspan=2 height=2 class=hline><img src="/webclient/common/images/trans.gif" width=1 height=1></td>
</tr>
</TBODY>
</TABLE>

<table class="menuHeader"  width="100%" align=center cellpadding=1 cellspacing=0>
<tr align=left>
<c:if test="${mapOperations == 'true'}">
<td height=25 cellpadding="0" cellspacing="3" ><center>
<a class="textSmall" href = "/map/MapCVAction.do?selectedTab=Maps&viewId=<c:out value='${selectedNode}'/>&ComplexSearchView=Map&searchAction=MapCVAction&actionToPerform=addMap&displayName=<c:out value='${displayName}'/>"/><fmt:message key='webclient.map.href.addmap' /></a>
</center>
</td>
<td width="10" align="left" class="textSmall"> &nbsp;|</td>
<td height=25 cellpadding="0" cellspacing="3" ><center>
</c:if>
<c:if test="${mapOperations == 'false'}">
<td height=25 cellpadding="0" cellspacing="3" >
</c:if>
<a class="textSmall" href = "/map/MapCVAction.do?selectedTab=Maps&ComplexSearchView=Map&OrNotSupported=true&searchAction=MapCVAction&actionToPerform=modifyMap&viewId=<c:out value='${selectedNode}'/>" ><fmt:message key='webclient.map.propsconfig.configure.map' /></a>
</center>
</td>
<c:if test="${mapOperations == 'true'}">
<td width="10" align="left" class="textSmall"> &nbsp;|</td>
<td height=25 cellpadding="0" cellspacing="3" ><center>
<a class="textSmall" href = "javascript:removeMapCV('<c:out value="${selectedNode}"/>')"><fmt:message key='webclient.map.href.deletemap' /></a>
</center></td>
<td width="10" align="left" class="textSmall"> &nbsp;|</td>
<td height=25 cellpadding="0" cellspacing="3" ><center>
<a class="textSmall" href = "/map/AddSymbolPage.do?selectedTab=Maps&mapName=<c:out value='${selectedNode}'/>"><fmt:message key='webclient.map.href.addsymbol' /></a>
</center>
</td>
</c:if>
<c:choose>
<c:when test="${linkRequired eq 'true'}">
<td width="10" align="left" class="textSmall"> &nbsp;|</td>
<td height=25 cellpadding="0" cellspacing="3" ><center>
<a class="textSmall" href = "/map/AddLinkPage.do?selectedTab=Maps&mapName=<c:out value='${selectedNode}'/>"><fmt:message key='webclient.map.href.addlink' /></a></center>
</td>
<td width="40%" align="left" class="textSmall"> </td>
</c:when>
<c:otherwise>
<td width="50%" align="center" class="textSmall"> </td>
</c:otherwise>
</c:choose>

<!--
<td width="10" align="center" class="textSmall"> &nbsp;|</td>
<td height=25 cellpadding="0" cellspacing="3" ><center>
<a class="textSmall" href = "/map/AddContainerPage.do?mapName=<c:out value='${selectedNode}'/>"><fmt:message key='webclient.map.href.addcontainer' /></a></center>
</td>
-->
</tr>
</table>
