<?xml version="1.0" encoding="UTF-8" ?>
<jsp:root
	xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:og="hybs-taglib.tld"
	version="2.0">
<jsp:directive.page language="java" contentType="text/html; charset=UTF-8" />

<og:head headType="query" />
<jsp:directive.include file="/jsp/custom/query_info.jsp" />
<og:comment
	system	= "GF:エンジンサンプル"
	pgid	= "GF6110"
	title	= "集計グラフ"
	date	= "2008/10/27"
	author	= "Hiroki.Nakamura"
	text	= ""
	version	= "001"
/>

<form method="GET" action="forward.jsp" target="RESULT" onClick="timeSet();">
<table>
<tr>
	<og:select name="YYYY" value="{@YYYY}" must="true">
		<og:queryOption>
			<jsp:text>select YYYY from GF43 group by YYYY order by YYYY DESC</jsp:text>
		</og:queryOption>
	</og:select>

	<og:select name="BLOCK" >
		<og:option value="" lbl="" />
		<og:queryOption>
			<jsp:text>select BLOCK from GF43 group by BLOCK order by BLOCK</jsp:text>
		</og:queryOption>
	</og:select>

	<og:select name="FLAG" lbl="Data View" value="{@FLAG}" defaultVal="false" >
		<og:option value="true"  lbl="true"  />
		<og:option value="false" lbl="false" />
	</og:select>

	<og:select name="TYPE" lbl="Type" onChange="renew('query.jsp','QUERY');" >
		<og:option value=""	lbl=""				/>
		<og:option value="BAR"	lbl="Bar"		/>
		<og:option value="XY"	lbl="XY"		/>
		<og:option value="PIE"	lbl="Pie"		/>
		<og:option value="VAL"	lbl="Val"		/>
	</og:select>

	<og:equals val1="{@TYPE}" val2="BAR" >
		<og:select name="chartType" lbl="MSG0024">
			<og:option value=""	lbl=""				 />
			<jsp:directive.include file="typeOptionBar.jsp" />
		</og:select>
	</og:equals>
	<og:equals val1="{@TYPE}" val2="XY" >
		<og:select name="chartType" lbl="MSG0024">
			<og:option value=""	lbl=""				 />
			<jsp:directive.include file="typeOptionXY.jsp" />
		</og:select>
	</og:equals>
	<og:equals val1="{@TYPE}" val2="PIE" >
		<og:select name="chartType" lbl="MSG0024">
			<og:option value=""	lbl=""				 />
			<jsp:directive.include file="typeOptionPie.jsp" />
		</og:select>
	</og:equals>
	<og:equals val1="{@TYPE}" val2="VAL" >
		<og:select name="chartType" lbl="MSG0024">
			<og:option value=""	lbl=""				 />
			<jsp:directive.include file="typeOptionVal.jsp" />
		</og:select>
	</og:equals>
</tr>
</table>

<og:queryButton />
</form>

<jsp:directive.include file="/jsp/common/htmlend.jsp" />
</jsp:root>
