<%@ page
language     = "java"
pageEncoding = "Windows-31J"
buffer       = "256kb"
autoFlush    = "false"
errorPage    = "/jsp/common/error.jsp"
%><%@ page
import = "jp.mosp.common.common.MospConst"
import = "jp.mosp.common.common.HtmlUtility"
import = "jp.mosp.common.CommonConst"
import = "jp.mosp.payroll.common.vo.PayrollImportCardVo"
%><%
PayrollImportCardVo vo = (PayrollImportCardVo)request.getAttribute(MospConst.ATT_VO);
String[][] aryImportData = vo.getEscAryImportData();
String[] aryImportHead   = vo.getaryImportHeader();
%>
<%= HtmlUtility.getHeader(vo) %>
<%= HtmlUtility.getSubTitle(vo) %>
<div class="Body" id="Import">
	<%=HtmlUtility.getMessages(vo)%>
	<div class="Select">
		<table id="tblHeader">
			<tbody>
				<tr>
					<td>
						<%= vo.getName("P_HEADER") %><%= vo.getName("C_SEPARATOR") %>
					</td>
					<td>
						<%= vo.getEscLblHeader() %>
					</td>
				</tr>
			</tbody>
		</table>
	</div>
	<div class="Card">
		<table>
			<tr>
				<td class="InputTd">
					<input type="file" id="<%= PayrollImportCardVo.PRM_FIL_IMPORT_FILE %>" name="<%= PayrollImportCardVo.PRM_FIL_IMPORT_FILE %>" />
				</td>
				<td class="ButtonTd">
					<button type="button" class="fncButton" onclick="doSubmitMulti(document.form, 'P9041')"><%= vo.getName("P_IMPORT") %></button>
				</td>
			</tr>
		</table>
	</div>
<%= HtmlUtility.getListInfo(vo) %>
	<div class="List">
		<table id="list">
			<thead>
				<tr>
<%
for (int i = 0; i < vo.getImportHeaderCount(); i++) {
%>
					<th class="headTitleTd"><%= aryImportHead[i] %></th>
<%
}
%>
				</tr>
			</thead>
			<tbody>
<%
for (int i = 0; i < vo.getImporDataCount(); i++) {
%>
				<tr>
<%
	for (int j = 0; j < vo.getImportHeaderCount(); j++) {
%>
					<td><%= aryImportData[i][j] %></td>
<%
	}
%>
				</tr>
<%
}
%>
			</tbody>
		</table>
	</div>
</div>
<%=HtmlUtility.getFooter(vo) %>
