<%--
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.common.vo.MosPMenuVo"
import = "jp.mosp.common.common.BaseVo"
%><%
MosPMenuVo vo = (MosPMenuVo)request.getAttribute(MospConst.ATT_VO);
String[] aryCmd	= vo.getAryCmd();
String[] aryName = vo.getAryName();
%>
<%= 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>
						<%= vo.NAM_MENU %>
					</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<%= i %>" onclick="doSubmit(document.form, '<%= BaseVo.escapeHTML(aryCmd[i]) %>');">
									<%= BaseVo.escapeHTML(aryName[i]) %>
								</a>
							</li>
<%
}
%>
						</ul>
					</td>
				</tr>
			</tbody>
		</table>
	</div>
</div>
<%= HtmlUtility.getFooter(vo) %>

