<%@ page contentType="text/html;charset=Shift_JIS" pageEncoding="Shift_JIS"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%> 
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>

<c:set var="apptrans" value="${requestScope.apptransactions}"/>
<html:html>
	<head>
		<title><bean:message key="app.continueList.title1"/><bean:message key="app.continueList.title2"/></title>
		<link href="/WorkflowSample/css/style.css" rel="stylesheet" type="text/css">
	</head>
	<body>
	<center>
	<table class="big">
	<tr>
		<td colspan="3"><jsp:include page="include/top.jsp" /></td>
	</tr>
	<tr class="titlebar" align="center">
		<td><html:img src="/WorkflowSample/images/left-bar.jpg" width="300" height="20"/></td>
		<td>
			<bean:message key="app.continueList.title1"/><br>
			<bean:message key="app.continueList.title2"/>
		</td>
		<td><html:img src="/WorkflowSample/images/right-bar.jpg" width="300" height="20"/></td>
	</tr>
	<tr height="60" align="center">
		<td colspan="3"><br>
			<jsp:include page="error.jsp" />
			<logic:empty name="errorMsg" scope="request">
			<table class="data">
			<tr>
				<th width="30"><bean:message key="label.no"/></th>
				<th width="100"><bean:message key="label.appno"/></th>
				<th width="120"><bean:message key="label.appkind"/></th>
				<th width="60"><bean:message key="label.appstate"/></th>
				<th width="90"><bean:message key="label.approver"/></th>
				<th width="250"><bean:message key="label.comment"/></th>
			</tr>
			<c:forEach items="${apptrans}" var="appt" varStatus="status">
			<tr>
				<td class="data" align="right"><c:out value = "${status.count}" /></td>
				<td class="data" align="center"><html:link action="/selectioncontinue" paramId="appid" paramName="appt" paramProperty="appID">
				<c:out value = "${appt.appID}" /></html:link></td>
				<td class="data"><c:out value = "${appt.appkind.appkindName}" /></td>
				<td class="data"><c:out value = "${appt.appStatus}" /></td>
				<td class="data"><c:out value = "${appt.appUserID}" /></td>
				<td class="data"><c:out value = "${appt.comment}" /><br></td>
			</tr>
			</c:forEach>
			</table>
			</logic:empty>
		</td>
	</tr>
	<tr align="center">
		<td colspan="3"><br>
			<html:link forward = "mainmenu"><bean:message key="link.menu"/></html:link><p>
			<jsp:include page="include/bottom.jsp" />
		</td>
	</tr>
	</table>
	</center>
	</body>
</html:html>
