<%--
MosP - Mind Open Source Project    http://www.mosp.jp/
Copyright (C) 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.kintai.payroll.vo.PaidHolidayImportCardVo"
%><%
PaidHolidayImportCardVo vo = (PaidHolidayImportCardVo)request.getAttribute(MospConst.ATT_VO);
//String[][] aryPaidHoliday	= vo.getEscAryPaidHoliday();
String[][] aryYukyu		= vo.getEscAryYukyu();
%>
<%=HtmlUtility.getHeader(vo)%>
<%=HtmlUtility.getSubTitle(vo)%>
<div class="Body" id="upload">
	<%=HtmlUtility.getMessages(vo)%>
	<div class="Card">
		<table>
			<tr>
				<td class="TitleTd">
					<%=HtmlUtility.getRequiredMark()%><%=CommonConst.NAM_TARGET_FILE%><%=CommonConst.STR_TITLE_SEPARATOR%>
				</td>
				<td class="InputTd">
					<input type="file" id="<%= PaidHolidayImportCardVo.PRM_FIL_UPLOAD_FILE %>" name="<%= PaidHolidayImportCardVo.PRM_FIL_UPLOAD_FILE %>" />
				</td>
				<td class="ButtonTd">
					<button type="button" onclick="doSubmitMulti(document.form, 'P1121')"><%= CommonConst.NAM_UPLOAD %></button>
				</td>
			</tr>
		</table>
		<div class="buttonDiv">
			<button type="button" id="btnImport" onclick="submitForm(document.form, 'P1122')">
				<%= CommonConst.NAM_IMPORT %><%= CommonConst.NAM_START %>
			</button>
			<button type="button" id="btnReport" onclick="doSubmitFile(document.form, 'P1123')">
				<%= CommonConst.NAM_IMPORT %><%= CommonConst.NAM_ERROR %><%= vo.getName("C_EXPORT") %>
			</button>
		</div>
	</div>
	<%=HtmlUtility.getListInfo(vo)%>
	<div class="List">
		<table id="list">
			<thead>
				<tr>
					<th id="thColumn0" 	><%= vo.getAryColumnName()[0]	%></th>
					<th id="thColumn1" 	><%= vo.getAryColumnName()[1] 	%></th>
					<th id="thColumn2"	><%= vo.getAryColumnName()[2]	%></th>
					<th id="thColumn3"	><%= vo.getAryColumnName()[3]	%></th>
					<th id="thColumn4"	><%= vo.getAryColumnName()[4]	%></th>
					<th id="thColumn5"	><%= vo.getAryColumnName()[5]	%></th>
					<th id="thColumn6" 	><%= vo.getAryColumnName()[6]	%></th>
					<th id="thColumn7" 	><%= vo.getAryColumnName()[7]	%></th>
					<th id="thColumn8"	><%= vo.getAryColumnName()[8]	%></th>
				</tr>
			</thead>
			<tbody>
<%
for (int i = vo.getStart(); i <= vo.getEnd(); i++) {
%>
				<tr>
					<td><%= aryYukyu[i][0] %></td>
					<td><%= aryYukyu[i][1] %></td>
					<td><%= aryYukyu[i][2] %></td>
					<td><%= aryYukyu[i][3] %></td>
					<td><%= aryYukyu[i][4] %></td>
					<td><%= aryYukyu[i][5] %></td>
					<td><%= aryYukyu[i][6] %></td>
					<td><%= aryYukyu[i][7] %></td>
					<td><%= aryYukyu[i][8] %></td>
				</tr>
<%
}
%>
			</tbody>
		</table>
	</div>
</div>
<%=HtmlUtility.getFooter(vo) %>	
		
