<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page
	import="jp.co.argo21.nautica.workflow.sample.model.AppTransaction"%>
<%@ page import="java.util.List"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="css/base.css" type="text/css">
<title>申請待ち申請一覧</title>
</head>
<body>
<%@ include file="include/header.jsp"%>
<div align="center">
<table width="923" border="0">
	<tr>
		<td width="200" height="17"><img src="left-bar.jpg" width="200"
			height="20"></td>
		<td width="509">
		<div align="center"><span class="style5">申請内容入力待ち申請一覧</span></div>
		</td>
		<td width="200"><img src="right-bar.jpg" width="200" height="20"></td>
	</tr>
</table>
</div>
<p align="center">&nbsp;</p>
<%
	String errMsg = (String) request.getAttribute("errMsg");
	if (errMsg != null) {
%>
<p align="center"><%=errMsg%></p>
<%
	} else {
%>
<table width="900" border="1" align="center" cellpadding="2"
	bordercolor="#00CC33">
	<tr bgcolor="#00FFCC">
		<td width="50">
		<div align="center" class="style32">No</div>
		</td>
		<td width="125">
		<div align="center" class="style32">
		<div align="center">申請書番号</div>
		</div>
		</td>
		<td width="175">
		<div align="center" class="style32">申請種別</div>
		</td>
		<td width="50">
		<div align="center" class="style32">状態</div>
		</td>
		<td width="100">
		<div align="center" class="style32">承認者</div>
		</td>
		<td width="348" height="25">
		<div align="center" class="style32">コメント</div>
		<div align="center" class="style32"></div>
		</td>
	</tr>
<%
		List<AppTransaction> appTrans = (List<AppTransaction>) request
					.getAttribute("appTrans");

			int count = 1;
			for (AppTransaction appTran : appTrans) {
%>
	<tr bgcolor="#EEFFEE">
		<td>
		<div align="right" class="style24"><%=count%></div>
		</td>
		<td>
		<div align="center" class="style24"><a
			href="http://localhost:8080/NauticaAxisSample/RestartInput?appID=<%= appTran.getAppID()%>&screen=ApplyWaitList"><%=appTran.getAppID()%></a></div>
		</td>
		<td><a
			href="http://localhost:8080/NauticaAxisSample/RestartInput?appID=<%= appTran.getAppID()%>&screen=ApplyWaitList"
			class="style24"><%=appTran.getAppkind().getAppkindName()%></a></td>
		<td class="style24"><%=appTran.getAppStatus()%></td>
		<td width="100"><span class="style24"><%=appTran.getAppUserID()%></span></td>
		<td height="25" class="style24">
<%
			if (appTran.getComment() != null) {
						out.println(appTran.getComment());
					}
%>
		</td>
	</tr>
<%
		count++;
			}
		}
%>
</table>
<%@ include file="include/footer.jsp"%>
</body>
</html>