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

<og:head headType="result" useAjaxSubmit="true" >
	<script type="text/javascript" src="adjustFrame.js"><!-- --></script>
</og:head>
<jsp:directive.include file="/jsp/custom/result_info.jsp" />
<og:comment
	system	= "GF:エンジンサンプル"
	pgid	= "TEST11"
	title	= "3ペインサンプル"
	date	= "2017/06/30"
	author	= "XXXXX"
	text	= ""
	version	= "001">
</og:comment>

<!-- ﾜｰﾆﾝｸﾞﾒｯｾｰｼﾞです｡ここでは､登録完了のﾒｯｾｰｼﾞを表示します｡ -->
<og:equals val1="{@command}" val2="NEW|RESET" matches="true">
	<br/>
</og:equals>
<og:errorMessage command="{@command}" clear="{@clear}" displayMsg="{@displayMsg}" />

<!-- 入力ﾁｪｯｸ -->
<og:columnCheck command="{@command}" columns="*" />

<!-- 取り消しﾎﾞﾀﾝが押された時に必要です｡ -->
<og:entry command="{@command}" tableId="3PAIN" useConsistency="false" />

<!-- DB検索 -->
<og:query command="{@command}" debug="{@debug}" maxRowCount="{@maxRowCount}" tableId="3PAIN">
	SELECT	 A.EMPNO
			,A.ENAME
			,A.JOB
			,A.MGR
			,A.HIREDATE
			,A.COMM
			,A.DEPTNO
	FROM	EMP A
	<og:where>
		<og:and value = "A.EMPNO	=		'{@EMPNO}'"		/>
		<og:and value = "A.ENAME	LIKE	'{@ENAME}%'"	/>
	</og:where>
	<!-- (表示順) -->
	<og:appear startKey="ORDER BY" value="{@ORDER_BY}" defaultVal="A.EMPNO" />
</og:query>

<!-- formﾀｸﾞでﾘｸｴｽﾄﾌｨｰﾙﾄﾞを囲います｡ -->
<form method="POST" action="forward.jsp" target="INPUT">
	<!-- ﾎﾞﾀﾝ作成 -->
	<og:writeCheck>
		<og:submit action="INSERT" />
		<og:submit action="COPY" />
		<og:submit action="MODIFY" />
		<og:submit action="DELETE" />
		<og:submit action="VIEW" />
	</og:writeCheck>

	<!-- DB検索結果を表示 -->
	<!-- 2016/10/21 追加 -->
	<og:view
		viewFormType	= "HTMLTable"
		command			= "{@command}"
		selectedType	= "radio"
		tableId			= "3PAIN" />
</form>

<!-- ﾌﾚｰﾑｻｲｽﾞを調整する -->
<script type="text/javascript" >
	adjustLeftFrameWidth();
</script>

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