<?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="query" useRealTimeCheck="false"/>
<og:localResource systemId="GE" initLoad="false" />
<jsp:directive.include file="/jsp/custom/query_info.jsp" />
<og:comment
	system	= "GE:エンジン標準"
	pgid	= "FAQRGST"
	title	= "標準(FAQ登録)"
	date	= "2012/01/10"
	author	= "Son.I"
	text	= ""
	version	= "001"
/>

<form method="GET" action="forward.jsp" target="RESULT" onClick="timeSet();">

<!-- 変更はここから -->
<table summary="layout" >
<tr>
	<!-- ｼｽﾃﾑIDはrootユーザのみ入力可能にする -->
	<og:equals val1="{@USER.ROLES}" val2="root" >
		<og:column name="SYSTEM_ID"  must="true" size="2" value="{@SYS.SYSTEM_ID}">
			(<og:input type="checkbox" name="AST" value="**" lbl="**" td="no" />)
		</og:column>
	</og:equals>
	<og:equals val1="{@USER.ROLES}" val2="root" notEquals="true">
		<og:text>
			<input type="hidden" name="SYSTEM_ID" id="SYSTEM_ID" value="{@SYS.SYSTEM_ID}"/>
		</og:text>
	</og:equals>
	<!-- ｼｽﾃﾑｺｰﾄﾞ	-->
	<og:column name="SYSCODE" size="2" defaultVal="{@USER.SYSCODE}"/>
	<!-- FAQ区分 -->
	<og:column name="KBFAQ" must="true" codeName="KBFAQ1" addNoValue="false"/>
	<!-- 分類 -->
	<og:select name="CDBNRUI" eventColumn="SYSTEM_ID,SYSCODE">
		<og:option lbl=""/>
			<og:queryOption>
				SELECT CDBNRUI,
					CASE WHEN KBFAQ='1' THEN TITLE
						WHEN  KBFAQ='2' THEN '-'{@DBF.CON}TITLE
						WHEN  KBFAQ='3' THEN '--'{@DBF.CON}TITLE
						ELSE TITLE END TITLE
				FROM GE80
				WHERE	KBFAQ	!= '0'
				AND		FGJ	IN	('0','1')
				AND		SYSTEM_ID = '{@SYSTEM_ID}'
				AND		( ('{@SYSCODE}' is null AND SYSCODE='*') OR SYSCODE = '{@SYSCODE}')
				ORDER BY SEQNO
			</og:queryOption>
	</og:select>
</tr>
<tr>
	<!-- 質問番号 -->
	<og:column name="QANO" clazz="aimai" size="11"/>
	<!-- 関連画面ID -->
	<og:column name="KNRNGUI" clazz="aimai" colspan="3"/>
	<!-- ｷｰﾜｰﾄﾞ -->
	<og:column name="KEYWORD" clazz="aimai" />
</tr>
</table>

<table>
	<tr>
		<td><og:queryButton /></td>
		<td><og:input type="checkbox" name="CHECK" lbl="MSG0083" value="1" td="no" checked="checked"/></td>
	</tr>
</table>
</form>

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