<%--
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.
--%>
<%-- 〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　--%>
<%--      コンピュータ・マインド・シリーズ／MosP                            --%>
<%--                                                                         --%>
<%--                                                                         --%>
<%--                                                                         --%>
<%--      プログラムＩＤ：  menu                                             --%>
<%--      プログラム名  ：  メニュー画面                                     --%>
<%--      修正履歴      ：                                                   --%>
<%--                                                                         --%>
<%--                                                                         --%>
<%--                                                                         --%>
<%-- 〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　〜　--%>
<%@ 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.common.vo.MosPMenuVo"
%><%
MosPMenuVo vo = (MosPMenuVo)request.getAttribute(MospConst.ATT_VO);
String[]aryCmd	= vo.getEscAryCmd();
String[]aryName	= vo.getEscAryName();
%>
<%= HtmlUtility.getHeader(vo) %>
<div class="Header">
	<div id="divLogout">
		<button type="button" id="btnGuide" onclick="doSubmit(document.form, 'C1060')"><%= CommonConst.TTL_MOSP_MENU_GUIDE %></button>
		<button type="button" id="btnLogout" onclick="doSubmit(document.form, 'C1030')"><%= CommonConst.NAM_LOGOUT %></button>
	</div>
	<div class="TitleBar">
		<span id="lblTitle"><%= vo.getEscTitle() %>&nbsp;<%=CommonConst.NAM_LOGIN_MENU %>&nbsp;</span>
		<span id="lblVersion"><%= vo.getEscVersion() %></span>
		<span id="lblUserName"><%= CommonConst.NAM_USER_NAME %><%= CommonConst.STR_TITLE_SEPARATOR %><%= vo.getEscUserName() %></span>
	</div>
</div>
<div class="Body" id="menu">
	<%=HtmlUtility.getMessages(vo)%>
	<div id="divMenu">
		<table>
			<thead>
				<tr>
					<th></th>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td class="MainTd">
						<ul class="mm clearFix">
<%
for (int i = 0; i < aryCmd.length; i++) {
%>
							<li>
								<a href="#" class="MenuButton" id="btnMain" onclick="doSubmit(document.form, '<%= aryCmd[i] %>');"><%= aryName[i] %></a>
							</li>
<%
}
%>
						</ul>
					</td>
				</tr>
			</tbody>
		</table>
	</div>
<%--	
	<div id="divMenu">
		<table>
			<thead>
				<tr>
					<th><%= CommonConst.TTL_MAIN_MENU %></th>
					<th id="lblSubMenu"><%= CommonConst.TTL_SUB_MENU %></th>
					<th></th>
					<th></th>
				</tr>
			</thead>
			<tbody>
				<tr>
					<!-- メインメニューボタン -->
					<td class="MainTd">
						<ul class="mm">
							<li>
								<a href="#" class="MenuButton" id="btnMain0" onclick="showSubMenu(1)"><%= CommonConst.TTL_MENU_INPUT %></a>
							</li>
							<li>
								<a href="#" class="MenuButton" id="btnMain1" onclick="showSubMenu(2);"><%= CommonConst.TTL_MENU_MANAGE %></a>
							</li>
							<li>
								<a href="#" class="MenuButton" id="btnMain2" onclick="showSubMenu(3);"><%= CommonConst.TTL_MENU_PAYROLL %></a>
							</li>
							<li>
								<a href="#" class="MenuButton" id="btnMain3" onclick="showSubMenu(4);"><%= CommonConst.TTL_MENU_HUMAN %></a>
							</li>
							<li>
								<a href="#" class="MenuButton" id="btnMain4" onclick="showSubMenu(5);"><%= CommonConst.TTL_MENU_SYSTEM %></a>
							</li>
							<li>
								<a href="#" class="MenuButton" id="btnMain5" onclick="showSubMenu(6);"><%= CommonConst.TTL_MENU_SYSTEM2 %></a>
							</li>
						</ul>
					</td>
					<!-- サブメニューボタン -->
					<td class="SubTd">
						<ul class="sm clearFix">
							<li><a href="#" class="MenuButton" id="btnSub0" onclick="doSubmit(document.form, arySubMenu[0]);"></a></li>
							<li><a href="#" class="MenuButton" id="btnSub1" onclick="doSubmit(document.form, arySubMenu[1]);"></a></li>
							<li><a href="#" class="MenuButton" id="btnSub2" onclick="doSubmit(document.form, arySubMenu[2]);"></a></li>
							<li><a href="#" class="MenuButton" id="btnSub3" onclick="doSubmit(document.form, arySubMenu[3]);"></a></li>
							<li><a href="#" class="MenuButton" id="btnSub4" onclick="doSubmit(document.form, arySubMenu[4]);"></a></li>
							<li><a href="#" class="MenuButton" id="btnSub5" onclick="doSubmit(document.form, arySubMenu[5]);"></a></li>
							<li><a href="#" class="MenuButton" id="btnSub6" onclick="doSubmit(document.form, arySubMenu[6]);"></a></li>
							<li><a href="#" class="MenuButton" id="btnSub7" onclick="doSubmit(document.form, arySubMenu[7]);"></a></li>
							<li><a href="#" class="MenuButton" id="btnSub8" onclick="doSubmit(document.form, arySubMenu[8]);"></a></li>
							<li><a href="#" class="MenuButton" id="btnSub9" onclick="doSubmit(document.form, arySubMenu[9]);"></a></li>
							<li><a href="#" class="MenuButton" id="btnSub10" onclick="doSubmit(document.form, arySubMenu[10]);"></a></li>
							<li><a href="#" class="MenuButton" id="btnSub11" onclick="doSubmit(document.form, arySubMenu[11]);"></a></li>
							<li><a href="#" class="MenuButton" id="btnSub12" onclick="doSubmit(document.form, arySubMenu[12]);"></a></li>
							<li><a href="#" class="MenuButton" id="btnSub13" onclick="doSubmit(document.form, arySubMenu[13]);"></a></li>
							<li><a href="#" class="MenuButton" id="btnSub14" onclick="doSubmit(document.form, arySubMenu[14]);"></a></li>
							<li><a href="#" class="MenuButton" id="btnSub15" onclick="doSubmit(document.form, arySubMenu[15]);"></a></li>
							<li><a href="#" class="MenuButton" id="btnSub16" onclick="doSubmit(document.form, arySubMenu[16]);"></a></li>
							<li><a href="#" class="MenuButton" id="btnSub17" onclick="doSubmit(document.form, arySubMenu[17]);"></a></li>
						</ul>
					</td>
				</tr>
			</tbody>
		</table>
	</div>
	<div class="CopyLabel">
		<%= vo.getCopy() %>
	</div>	--%>
</div>
<%= HtmlUtility.getFooter(vo) %>

