<?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" />
<jsp:directive.include file="/jsp/custom/result_info.jsp" />
<og:comment
	system	= "GF:エンジンサンプル"
	pgid	= "GFX002"
	title	= "逆引登録"
	date	= "2008/10/27"
	author	= "Hiroki.Nakamura"
	text	= ""
	version	= "001"
/>

<og:columnCheck
	command     = "{@command}"
/>

<og:value command="SQL" >
	select max(SEQ)+1 SEQ from GE27
</og:value>

<og:entry command="{@command}" >
	<og:columnSet command="{@command}" columnId="SEQ" value="{@SEQ}" action="SET" />
</og:entry>

<og:message lbl="MSG0045" comment="複写処理を行います。" /><br />
<form onSubmit="return oneClick();" method="POST" action="forward.jsp" target="CONTENTS" >
<og:writeCheck>
	<og:submit  value="entry"   lbl="ENTRY" accesskey="E" />
	<og:submit  value="reset"   lbl="RESET" accesskey="R" />
	<og:input type="reset" name="command" lbl="MSG0011" td="false" />
</og:writeCheck>

<!-- DB検索結果を表示させます。 -->
<og:view
	viewFormType = "HTMLFormatTextField"
	command 	 = "{@command}"
	noWritable   = "FGJ"
	noDisplay    = "FGJ,DYSET,DYUPD,USRSET,USRUPD,PRGUPD"
	skip         = "true"
	startNo      = "{@startNo}" 
	pageSize     = "{@pageSize}"
>
<table>
<tr>[TITLE]  [PARTNO]    [SEQ]       </tr>
<tr>[ANSWER] [CHAPTERNO] [DIFFICULTY]</tr>
</table>
<table>
<tr>[KEYWORD]    [BIG_CLASS]    </tr>
<tr>[URL]        [INSIDE_CLASS] </tr>
</table>
<table>
<tr>[CONTENTS]</tr>
<tr>[SAMPLE]  </tr>
</table>
</og:view>

<og:hidden name="SQL" >
  <jsp:text>
	INSERT INTO GE27
		(SEQ,TITLE,ANSWER,DIFFICULTY,PARTNO,CHAPTERNO,BIG_CLASS,INSIDE_CLASS,KEYWORD,CONTENTS,SAMPLE,URL,
		 FGJ,DYSET,DYUPD,USRSET,USRUPD,PRGUPD)
	VALUES
		([SEQ],[TITLE],[ANSWER],[DIFFICULTY],[PARTNO],[CHAPTERNO],[BIG_CLASS],[INSIDE_CLASS],[KEYWORD],[CONTENTS],[SAMPLE],[URL],
		 '1','{@USER.YMDH}','{@USER.YMDH}','{@USER.ID}','{@USER.ID}','{@GUI.KEY}')
  </jsp:text>
</og:hidden>
</form>

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