<%--
/*
 * MosP - Mind Open Source Project         http://www.mosp.jp/
 * Copyright (C) 1987-2009 MIND Co., Ltd.  http://www.e-mind.co.jp/
 * 
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
--%>
<%@ 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) %>
