<%-- $Id: printableAlarmList.jsp,v 1.6 2003/10/18 15:06:37 rsathish Exp $ --%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@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" %>

<html>
<head>
<title><fmt:message key="webclient.fault.alarmlist.print.title"><fmt:param value="${displayName}"/></fmt:message></title>
<%@include file="/webclient/common/jspf/commonIncludes.jspf" %>
</head>

    <%@ include file="/webclient/common/jspf/printPage.jspf"%>

    <tr> 
    <td>&nbsp;</td>
    <td>
    <table width="100%" border="0" cellspacing="1" cellpadding="3" align="left">
    <tr class="header2Bg">
     <c:forEach var="value" items="${headerList}">
           <c:set var="val" value="${value.columnName}"/>
       <td nowrap
             <c:if test="${val == 'severity'}">
                   colspan="2"
             </c:if>
             <c:if test="${val == 'previousSeverity'}">
                   colspan="2"
             </c:if>
                  class="header2">
                 <fmt:message key='webclient.fault.alarm.${value.columnName}'/>

                 <c:if test='${value.columnName == orderByColumn}'>
                 <c:choose>
                    <c:when test="${param.isAscending == 'true'}">
                       <img src="/webclient/common/images/sortup.gif" border=0 width="11" height="7" hspace="2" vspace="1">
                   </c:when>
                   <c:otherwise>
                       <img src="/webclient/common/images/sortdown.gif" border=0 width="11" height="7" hspace="2" vspace="1" >
                  </c:otherwise>
                </c:choose>
            </c:if>
            <c:if test="${empty orderByColumn}"> 
               <c:if test="${value.columnName == 'modTime'}">
                   <img src="/webclient/common/images/sortdown.gif" border=0 width="11" height="7" hspace="2" vspace="1" alt="sortdown" title="sortdown">
               </c:if>
            </c:if>
       </td>
     </c:forEach>

     <c:forEach var="prop" items="${viewData}" varStatus="status" >
           <c:choose>
              <c:when test="${status.count%2==1}">
                 <TR class="rowOdd">
              </c:when>
              <c:otherwise>
                 <TR class="rowEven">
              </c:otherwise>
          </c:choose>

        <c:forEach var="value1" items="${headerList}">
           <c:set var="val" value="${value1.columnName}"/>

           <c:choose>
             <c:when test="${val == 'severity'}">
                 <td width="2%" class="text"><img src="<c:out value="${prop.imgsrc}" />" border=0 width="16" height="16" hspace="1"></td>
             </c:when>
             <c:when test="${val == 'previousSeverity'}">
               <c:choose>
                  <c:when test="${prop.previousSeverity == '-'}">
                     <td width="2%" class="text"></td>
                  </c:when>
                  <c:otherwise>
                     <td width="2%" class="text"><img src="<c:out value="${prop.preimgsrc}" />" border=0 width="16" height="16" hspace="1" alt="<c:out value="${prop.previousSeverity}"/>" title="<c:out value="${prop.previousSeverity}"/>"></td>
                  </c:otherwise>
			  </c:choose>
            </c:when>
          </c:choose>
                  <TD class=text nowrap><c:out value="${prop[val]}"/></TD>
    </c:forEach>
   </TR>
</c:forEach>
</table>
</html>
