<%@ page language="java"  contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="hybs-taglib.tld" prefix="og" %>
<%@ page import="org.opengion.hayabusa.common.*,org.opengion.hayabusa.resource.*" %>
<og:head headType="init" >
	<script type="text/javascript" src="{@SYS.JSP}/menu/GmisTree.js" ><!-- --></script>
</og:head>

<body>
<jsp:directive.include file="/jsp/custom/menu_init.jsp" />
<og:comment
	system   = "GE:エンジンサンプル"
	pgid     = "GE1007"
	title    = "ヘルプメニュー"
	date     = "2007/12/12"
	author   = "K.HASEGAWA"
	text     = "ZZZZ"
	version  = "001"
/>

<strong>
<table width="200px" >
<div class="forpos" id="dummy"></div>
<%
	// GUIInfo の全キーを取得し、userInfo でアクセス可能な画面のみ、列挙する。
	UserInfo userInfo = (UserInfo)session.getAttribute( HybsSystem.USERINFO_KEY );
	GUIInfo[] guiInfos = userInfo.getGUIInfos();
	String classify = "";
	String guikey   = null;
	String name     = "";
	int menuNo = 10;
	int kmokuNo = 0;
	for( int i=0; i < guiInfos.length; i++ ) {
		if( guiInfos[i].isRead() ) {
			if( ! classify.equals( guiInfos[i].getClassify() )) {
				classify = guiInfos[i].getClassify();
				menuNo++;
				kmokuNo = 0;
%>
<div class="expand1" id="menu<%= menuNo %>"><%= "\u3010" %><%= classify%><%= "\u3011" %><br /></div>
<%			}
			guikey = guiInfos[i].getKey();
			name = "\u3000" + guiInfos[i].getName();
%>
<div class="expand2" id="menu<%= menuNo %>_<%= kmokuNo%>">
	<a href="<%= guikey %>" target = "CONTENTS"><%= name %>

	<og:help
		lbl        = "<%= name %>"
		guiInfoKey = "<%= guikey %>"
		target     = "CONTENTS"
		viewMsg    = "true"  /><br /></div>
<%		}
		kmokuNo++;
	}
%>
</table>
</strong>

</body>
</html>
