48 lines
1.7 KiB
Plaintext
48 lines
1.7 KiB
Plaintext
|
<%@ include file="/WEB-INF/jspf/page.jspf" %>
|
||
|
<c:if test='${empty webUser || !webUser.loggedIn}'>
|
||
|
<c:redirect url='loginServlet?ForwardTo=shipments.jsp'/>
|
||
|
</c:if>
|
||
|
<html>
|
||
|
<head>
|
||
|
<%@ include file="/WEB-INF/jspf/head.jspf" %>
|
||
|
<title><c:out value='${ctx.name}'/> - My Shipments</title>
|
||
|
</head>
|
||
|
<body><div id="page">
|
||
|
<%@ include file="/WEB-INF/jspf/header.jspf" %>
|
||
|
<div id="main">
|
||
|
<%@ include file="/WEB-INF/jspf/menu.jspf" %>
|
||
|
<%@ include file="/WEB-INF/jspf/vendor.jspf" %>
|
||
|
<div id="content">
|
||
|
<h1>My Shipments</h1>
|
||
|
<c:if test='${not empty info.info}'>
|
||
|
<p><b><c:out value='${info.message}'/></b></p>
|
||
|
</c:if>
|
||
|
<table class="contentTable">
|
||
|
<tr>
|
||
|
<th>Document No</th>
|
||
|
<th>Status</th>
|
||
|
<th>Date</th>
|
||
|
</tr>
|
||
|
<c:forEach items='${info.shipments}' var='shipment' varStatus='status'>
|
||
|
<jsp:useBean id="status" type="javax.servlet.jsp.jstl.core.LoopTagStatus" />
|
||
|
<c:choose>
|
||
|
<c:when test="<%= status.getCount() %2 == 0 %>">
|
||
|
<c:set var="rowClass" value="evenRow"/>
|
||
|
</c:when>
|
||
|
<c:otherwise>
|
||
|
<c:set var="rowClass" value="oddRow"/>
|
||
|
</c:otherwise>
|
||
|
</c:choose>
|
||
|
<tr>
|
||
|
<td class="<c:out value='${rowClass}' />"><c:out value='${shipment.documentNo}'/></td>
|
||
|
<td class="<c:out value='${rowClass}' />"><c:out value='${shipment.docStatusName}'/></td>
|
||
|
<td class="<c:out value='${rowClass}' />"><fmt:formatDate value='${shipment.movementDate}'/></td>
|
||
|
</tr>
|
||
|
</c:forEach>
|
||
|
</table>
|
||
|
<p> </p></div>
|
||
|
</div>
|
||
|
<%@ include file="/WEB-INF/jspf/footer.jspf" %>
|
||
|
</div></body>
|
||
|
</html>
|