<%-- $Id: printableInventoryList.jsp,v 1.5 2003/11/26 08:30:25 prabhukm 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.topo.printableinventorylist.title'><fmt:param value="${param.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 width="20%"  nowrap 

<c:if test="${val == 'name'}">
colspan="2"
</c:if>
<c:if test="${val == 'status'}">
colspan="2"
</c:if>

>

<SPAN class="header2" ><fmt:message key='webclient.topo.${value.columnName}'/></SPAN>
<c:if test='${value.columnName == param.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>

</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	 == 'name'}">
<td width="2%" class="text"><img src="<c:out value="${prop.typeImage}" />" border=0 width="16" height="16" hspace="1"></td>
</c:when>
<c:when test="${val	 == 'status'}">
<td width="2%" class="text"><img src="<c:out value="${prop.statusImage}" />" border=0 width="16" height="16" hspace="1" ></td>
</c:when>
</c:choose>

<TD class=text width="20%" nowrap >
            	<c:choose> 
                	<c:when test="${prop[val] != null}" > 
                       <c:out value="${prop[val]}"/>
                	</c:when> 
                	<c:otherwise> 
                    	<c:out value="--"/>
                	</c:otherwise> 
            	</c:choose>
</TD>
</c:forEach>
</TR>
</c:forEach>
</table>
</html>
