<%@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://java.sun.com/jstl/core_rt" prefix="c" %>

<c:set var="user" scope="page" value="${sessionScope.user}"/>
<c:set var="apptrans" value="${requestScope.apptransaction}"/>
<html:html locale="true">
	<head>
		<title><bean:message key="state.title"/></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><img src="/WorkflowSample/images/left-bar.jpg" width="300" height="20"></td>
		<td><bean:message key="state.title"/></td>
		<td><img src="/WorkflowSample/images/right-bar.jpg" width="300" height="20"></td>
	</tr>
	<tr align="center">
		<td colspan="3"><br><jsp:include page = "include/appOvertimeContent.jsp" /><p></td>
	</tr>
	<tr align="center">
		<td colspan="3">
			<table class="state">
			<tr>
				<th width="15%"><bean:message key="label.no"/></th>
				<th width="65%"><bean:message key="statuslist.participant"/></th>
				<th width="20%"><bean:message key="statuslist.status"/></th>
			</tr>
			<c:forEach items="${apptrans}" var="appt" varStatus="status">
			<tr>	
				<td class="data" align="center"><c:out value = "${status.count}" /></td>
				<td class="data">
					<c:choose>
						<c:when test="${appt.appUserID == \"\"}"><c:out value = "${appt.appRoleID}" /></c:when>
						<c:otherwise><c:out value = "${appt.appUserID}" /></c:otherwise>
					</c:choose></td>
				<td class="data" align="center"><c:out value = "${appt.appStatus}" /></td>
			</tr>
			</c:forEach>
			</table>
		</td>
	</tr>
	<tr align="center">
		<td colspan="3"><br>
			<table width="450">
			<tr>
				<td align="left"><html:link page="/menuselection.do?item=status"><bean:message key="statuslist.back"/></html:link></td>
				<td align="right"><html:link forward="mainmenu"><bean:message key="link.menu"/></html:link></td>
			</tr>
			</table><br>
			
			<jsp:include page="include/bottom.jsp" />
		</td>
	</tr>
	</table><p>
	</center>
   </body>
</html:html>