<%--
MosP - Mind Open Source Project         http://www.mosp.jp/
Copyright (C) 1987-2008 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.
--%>
<%-- 〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　--%>
<%--      コンピュータ・マインド・シリーズ／MosP                             --%>
<%--                                                                         --%>
<%--                                                                         --%>
<%--                                                                         --%>
<%--      プログラムＩＤ：  HolidayMasterList                                --%>
<%--      プログラム名  ：  祝祭日・休日一覧画面                             --%>
<%--      修正履歴      ：                                                   --%>
<%--                                                                         --%>
<%--                                                                         --%>
<%--                                                                         --%>
<%-- 〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　--%>
<%@ 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.system.vo.HolidayMasterListVo"
%><%
HolidayMasterListVo vo = (HolidayMasterListVo)request.getAttribute(MospConst.ATT_VO);
String[] aryHdate	= vo.getEscAryHDate();
String[] aryHname	= vo.getEscAryHName();
%>
<%=HtmlUtility.getHeader(vo)%>
<%=vo.getSubTitle(vo.SUB_TITLE, vo.CMD_MENU_SYSTEM2)%>
<div class="Body" id="holidayMasterList">
	<%=HtmlUtility.getMessages(vo)%>
	<div class="Search">
		<table>
			<tr>
				<td id="tdTCode">
					<span><%=HolidayMasterListVo.NAM_H_DATE%><%=CommonConst.STR_TITLE_SEPARATOR%></span>
					<input type="text" class="CodeTextBox" id="<%= HolidayMasterListVo.PRM_TXT_H_DATE %>" name="<%= HolidayMasterListVo.PRM_TXT_H_DATE %>" value="<%= vo.getEscTxtHDate() %>" />
				</td>
				<td id="tdTName">
					<span><%=HolidayMasterListVo.NAM_H_NAME%><%=CommonConst.STR_TITLE_SEPARATOR%></span>
					<input type="text" class="TextBox" id="<%= HolidayMasterListVo.PRM_TXT_H_NAME %>" name="<%= HolidayMasterListVo.PRM_TXT_H_NAME %>" value="<%= vo.getEscTxtHName() %>" />
				</td>
				<td class="ButtonTd">
					<button type="button" onclick="doSubmitKey(document.form, 'S2711', '')"><%=CommonConst.NAM_SEARCH%></button>

				</td>
			</tr>
		</table>
	</div>
	<%=HtmlUtility.getListInfo(vo)%>
	<div class="List">
		<table id="list">
			<thead>
				<tr>
					<th id="thButton"></th>
					<th id="thHDate" onclick="doSubmitKey(document.form, 'S2713', '<%= vo.KEY_H_CODE %>'    , '')">&nbsp;<%=HolidayMasterListVo.NAM_H_DATE%>&nbsp;<%=vo.getSortMark(vo.KEY_H_CODE)%></th>
					<th id="thHName" onclick="doSubmitKey(document.form, 'S2713', '<%= vo.KEY_H_NAME %>'    , '')">&nbsp;<%=HolidayMasterListVo.NAM_H_NAME%>&nbsp;<%=vo.getSortMark(vo.KEY_H_NAME)%></th>
				</tr>
			</thead>
			<tbody>
<%
for (int i = vo.getStart(); i <= vo.getEnd(); i++) {
%>
				<tr>
					<td class="ButtonTd">
						<button type="button" onclick="doSubmitKey(document.form, 'S2716', '<%= aryHdate[i] %>', '')"><%= CommonConst.NAM_SELECT %></button>
					</td>
					<td><%= aryHdate[i] %></td>
					<td><%= aryHname[i] %></td>
				</tr>
<%
}
%>
			</tbody>
		</table>
	</div>
	<div class="ButtonDiv">
		<button type="button" class="ExecuteButton" onclick="doSubmit(document.form, 'S2715')"><%= CommonConst.NAM_MAKE_NEW_DATA %></button>
		<button type="button" class="MenuButton" onclick="doSubmit(document.form, 'S2910')"><%= CommonConst.NAM_TO_MENU %></button>
	</div>
</div>
<%= HtmlUtility.getFooter(vo) %>
