<%-- $Id: accPanel.jsp,v 1.7.4.3 2004/02/11 11:23:41 rsathish Exp $ --%>

<%@page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
<%@include file="/webclient/common/jspf/commonIncludes.jspf" %> 
<script language="javascript" SRC="/webclient/fault/js/fault.js" type="text/javascript"></script>

        <TABLE BORDER="0" WIDTH="190" CELLPADDING="0" CELLSPACING="1">


   <c:forEach var="category" items="${categoryList}">

    <c:set var="sevCount" value="${accCount}"/>
      <tr> 
        <c:forEach var="sev" items="${sevCount[category]}" varStatus="status">

   <c:choose>
       <c:when test="${category == 'Total'}">
          <td bgcolor="<c:out value='${colors[status.count-1]}'/>" width="17%" align="center"><a href='/fault/AlarmView.do?severity=<c:out value="${severityValues[status.count-1]}"/>&displayName=Alarms&selectedTab=Fault&selectedNode=Alerts' class="text"><c:out value="${sev}"/></a></td>
       </c:when>               

       <c:when test="${category == 'Categories-Total'}">
          <td bgcolor="<c:out value='${colors[status.count-1]}'/>" width="17%" align="center"><a href='/fault/AlarmView.do?severity=<c:out value="${severityValues[status.count-1]}"/>&displayName=Alarms&category=<c:out value="${categories}"/>&selectedTab=Fault&selectedNode=Alerts' class="text"><c:out value="${sev}"/></a></td>
       </c:when>   

        <c:otherwise>          
           <td bgcolor="<c:out value='${colors[status.count-1]}'/>" width="17%" align="center"><a href='/fault/AlarmView.do?severity=<c:out value="${severityValues[status.count-1]}"/>&category=<c:out value="${category}"/>&displayName=Alarms&selectedTab=Fault&selectedNode=Alerts' class="text"><c:out value="${sev}"/></a></td>
        </c:otherwise>   

    </c:choose>

        </c:forEach>  
    
     <c:choose>             
      <c:when test="${category == 'Total'}">
         <td nowrap width="15%" class=accGrey><a href='/fault/AlarmView.do?displayName=Alarms&selectedTab=Fault&selectedNode=Alerts' class="textSmall"><c:out value="${category}"/></a></td>
      </c:when>   

      <c:when test="${category == 'Categories-Total'}">
         <td nowrap width="15%" class=accGrey><a href='/fault/AlarmView.do?displayName=Alarms&category=<c:out value="${categories}"/>&selectedTab=Fault&selectedNode=Alerts' class="textSmall"><c:out value="${category}"/></a></td>
      </c:when>   

      <c:otherwise>            
         <td nowrap width="15%" class=accGrey><a href='/fault/AlarmView.do?category=<c:out value="${category}"/>&displayName=Alarms&selectedTab=Fault&selectedNode=Alerts' class="textSmall"><c:out value="${category}"/></a></td>
      </c:otherwise>   

     </c:choose>

      </tr>
   </c:forEach>

 </table>

