<%@ include file="/includes.jsp" %>
<%@ taglib prefix="smvc" uri="http://www.springframework.org/tags/form"%>

<style>
	.inventoryTable {
		width: 90%;
		border: #B4B4B4 1px solid;
	}
	
	.inventoryTable > tr > th {
		border: #B4B4B4 1px solid;
		white-space: pre;
		font-weight: normal;
		padding: 6px 3px 6px 3px;
	}
	
	.inventoryTable > tr > td {
		border: #B4B4B4 1px solid;
	}
	
</style>
<br/>
<tags:tableRenderer model="${tableModel}">
	<c:choose>
		<c:when test="${colCount == 1}"><a href="../emdt/formObject.form?type=1&id=<c:out value="${cell.value.id }"/>"><c:out value="${cell.value.label }"/></a></c:when>
		<c:when test="${colCount == 2}"><a href="../emdt/formObject.form?type=2&id=<c:out value="${cell.value.id }"/>"><c:out value="${cell.value.label }"/></a></c:when>
		<c:when test="${colCount == 3}"><a href="../emdt/formObject.form?type=3&id=<c:out value="${cell.value.id }"/>"><c:out value="${cell.value.label }"/></a></c:when>
		<c:when test="${colCount == 4}"><a href="../emdt/formObject.form?type=4&id=<c:out value="${cell.value.id }"/>"><c:out value="${cell.value.label }"/></a></c:when>
		<c:when test="${colCount == 5}"><a href="../emdt/formObject.form?type=5&id=<c:out value="${cell.value.id }"/>"><c:out value="${cell.value.name }"/></a></c:when>
		<c:when test="${colCount == 6}"><a href="../emdt/formObject.form?type=5&id=<c:out value="${cell.value.id }"/>"><c:out value="${cell.value.label }"/></a></c:when>
		<c:otherwise><c:out value="${cell.value }"/></c:otherwise>
	</c:choose>
</tags:tableRenderer>

