<?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" />
<jsp:directive.include file="/jsp/custom/query_info.jsp" />
<og:comment
	system	= "GF:エンジンサンプル"
	pgid	= "GFX014"
	title	= "DB差分"
	date	= "2008/10/27"
	author	= "Hiroki.Nakamura"
	text	= ""
	version	= "001"
/>

<script >
function allCheck( flag ) {
	var obj = document.getElementsByName( "OBJECT_TYPE" );
	for( i=0; i&lt;obj.length; i++ ) {
		obj[i].checked = flag;
	}
}
</script>

<og:value command="SET" key="TYPE" value="checkbox" />
<og:value command="SET" key="MUST" value="false"    />
<og:equals val1="{@SELECT}" val2="SOURCE" >
	<og:value command="SET" key="TYPE" value="radio" />
	<og:value command="SET" key="MUST" value="true"  />
</og:equals>

<form method="GET" action="forward.jsp" target="RESULT" onSubmit="timeSet();">
<table summary="layout" >
  <tr><td>
	<fieldset style="display:inline;">
		<legend><strong><og:message lbl="HIKAKU_MOTO" /></strong></legend>
		<table>
		  <tr><og:column name="DBID1"			lbl="DBID"  codeKeyVal="{@DBID_INFO}" /></tr>
		  <tr><og:column name="OWNER1"			lbl="OWNER" defaultVal="{@LAST.SYSTEM_ID}" size="5" must="{@MUST}" /></tr>
		  <tr><og:column name="OBJECT_NAME1"	lbl="OBJECT_NAME" /></tr>
		</table>
	</fieldset>
	</td><td>
	<fieldset style="display:inline;">
		<legend><strong><og:message lbl="HIKAKU_SAKI" /></strong></legend>
		<table>
		  <tr><og:column name="DBID2"			lbl="DBID"  codeKeyVal="{@DBID_INFO}" /></tr>
		  <tr><og:column name="OWNER2"			lbl="OWNER" defaultVal="{@LAST.SYSTEM_ID}" size="5" must="{@MUST}" /></tr>
		  <tr><og:column name="OBJECT_NAME2"	lbl="OBJECT_NAME" /></tr>
		</table>
	</fieldset>
	</td><td>
		<table>
		  <tr>
			<td>
			<og:select name="ACTION" lbl="Action" td="no">
				<og:option value="MINUS"      lbl="MINUS"      />
				<og:option value="INTERSECT"  lbl="INTERSECT"  />
				<og:option value="UNION_ALL"  lbl="UNION_ALL"  />
				<og:option value="UNION"      lbl="UNION"      />
				<og:option value="DIFFERENCE" lbl="DIFFERENCE" />
			</og:select>
			</td>
			<td>
			<og:select name="SELECT" lbl="Select" td="no" onChange="renew('query.jsp','QUERY');">
				<og:option value="OBJECT" lbl="Object" selected="selected" />
				<og:option value="SOURCE" lbl="Source" />
			</og:select>
			</td>
		  </tr>
		</table>
		<table>
		  <tr>
			<og:input type="checkbox" onClick="allCheck( this.checked );" style="background-color:Green;" />
			<og:input type="{@TYPE}" name="OBJECT_TYPE" lbl="table"	value="TABLE"		/>
			<og:input type="{@TYPE}" name="OBJECT_TYPE" lbl="view"		value="VIEW"		/>
			<og:input type="{@TYPE}" name="OBJECT_TYPE" lbl="index"	value="INDEX"		/>
		  </tr>
		  <tr>
			<td /><td />
			<og:input type="{@TYPE}" name="OBJECT_TYPE" lbl="sequence"	value="SEQUENCE"	/>
			<og:input type="{@TYPE}" name="OBJECT_TYPE" lbl="trigger"	value="TRIGGER"		/>
			<og:input type="{@TYPE}" name="OBJECT_TYPE" lbl="synonym"	value="SYNONYM"		/>
		  </tr>
		  <tr>
			<td /><td />
			<og:input type="{@TYPE}" name="OBJECT_TYPE" lbl="function"	value="FUNCTION"		/>
			<og:input type="{@TYPE}" name="OBJECT_TYPE" lbl="package"	value="PACKAGE"			/>
			<og:input type="{@TYPE}" name="OBJECT_TYPE" lbl="pkg body"	value="PACKAGE BODY"	/>
		  </tr>
		  <tr>
			<td /><td />
			<og:input type="{@TYPE}" name="OBJECT_TYPE" lbl="procedure"	value="PROCEDURE"	/>
			<og:input type="{@TYPE}" name="OBJECT_TYPE" lbl="type"			value="TYPE"		/>
			<og:input type="{@TYPE}" name="OBJECT_TYPE" lbl="type body"	value="TYPE BODY"	/>
		  </tr>
		</table>
	</td></tr>
</table>

<og:queryButton />
</form>

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