<%--
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       = "16kb"
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.vo.AttendanceMenuVo"
%><%
AttendanceMenuVo vo = (AttendanceMenuVo)request.getAttribute(MospConst.ATT_VO);
%>
<div class="divInfo">
	<table id="tblChange">
		<tbody>
			<tr>
				<td id="tdKCode">
					<%= CommonConst.NAM_K_CODE %><%= CommonConst.STR_TITLE_SEPARATOR %><%= vo.getEscLblKCode() %>
				</td>
				<td id="tdKName">
					<%= CommonConst.NAM_K_NAME %><%= CommonConst.STR_TITLE_SEPARATOR %><%= vo.getEscLblKName() %>
				</td>
				<td>
					<button type="button" id="btnStart" class="ExecuteButton" onclick="doSubmitKey(document.form, 'K1100', '<%= vo.getEscHidKCode() %>', '<%= vo.getEscHidDate() %>')">
						<%= CommonConst.NAM_INPUT_START %>
					</button>
				</td>
				<td>
					<button type="button" id="btnQuit" class="ExecuteButton" onclick="doSubmitKey(document.form, 'K1110', '<%= vo.getEscHidKCode() %>', '<%= vo.getEscHidDate() %>')">
						<%= CommonConst.NAM_INPUT_QUIT %>
					</button>
				</td>
				<td>
					<button type="button" id="btnCheck" class="ExecuteButton" onclick="doSubmitKey(document.form, 'K1121', '<%= vo.getEscHidKCode() %>', '<%= vo.getEscHidDate() %>')">
						<%= CommonConst.NAM_CHECK_ATTENDANCE %>
					</button>
				</td>
				<td>
					<button type="button" id="btnHoliday" class="ExecuteButton" onclick="doSubmitKey(document.form, 'K1130', '<%= vo.getEscHidKCode() %>', '<%= vo.getEscHidDate() %>')">
						<%= CommonConst.NAM_INPUT_HOLIDAY %>
					</button>
				</td>
				<td>
					<button type="button" class="ExecuteButton" onclick="doSubmit(document.form, 'K1013')">
						<%= CommonConst.TTL_ATTENDANCE_LIST %>
					</button>
				</td>
			</tr>
		</tbody>
	</table>
	<input type="hidden" id="<%= AttendanceMenuVo.PRM_HID_K_CODE 	%>" name="<%= AttendanceMenuVo.PRM_HID_K_CODE 	%>" value="<%= vo.getEscHidKCode()	%>" />
	<input type="hidden" id="<%= AttendanceMenuVo.PRM_HID_YEAR 		%>" name="<%= AttendanceMenuVo.PRM_HID_YEAR		%>" value="<%= vo.getEscHidYear()	%>" />
	<input type="hidden" id="<%= AttendanceMenuVo.PRM_HID_MONTH		%>" name="<%= AttendanceMenuVo.PRM_HID_MONTH	%>" value="<%= vo.getEscHidMonth()	%>" />
	<input type="hidden" id="<%= AttendanceMenuVo.PRM_HID_DAY		%>" name="<%= AttendanceMenuVo.PRM_HID_DAY		%>" value="<%= vo.getEscHidDay()	%>" />
</div>

<div id="divDateChange">
	<button type="button" class="DateChangeButton" onclick="doSubmitKey(document.form, 'K1014', '<%= vo.getEscHidKCode() %>', '<%= vo.getHidFormerDate() %>')">
		<%= vo.getEscLblFormerDate() %>
	</button>
	<span id="spnSelectDate">
		<%= vo.getEscLblDate() %><%= CommonConst.NAM_ROUND_BRACKETS_LEFT %><span class="<%= vo.getEscDayOfWeekColorClass() %>"><%= vo.getEscLblDayOfWeek() %></span><%= CommonConst.NAM_ROUND_BRACKETS_RIGHT %>
	</span>
	<button type="button" class="DateChangeButton" onclick="doSubmitKey(document.form, 'K1014', '<%= vo.getEscHidKCode() %>', '<%= vo.getHidNextDate() %>')">
		<%= vo.getEscLblNextDate() %>
	</button>
</div>	

<div id="divTitle"><span id="spnMode"></span></div>
