<?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" >
	<script>
	  function check(obj){
		if( "checkbox" == obj.type ) {
			if(obj.checked){
			  document.getElementById("USRSET" ).disabled = false;
			  document.getElementById("DYSET"  ).disabled = false;
			  document.getElementById("PGSET"  ).disabled = false;
			}
			else {
			  document.getElementById("USRSET" ).disabled = true;
			  document.getElementById("DYSET"  ).disabled = true;
			  document.getElementById("PGSET"  ).disabled = true;
			}
		}
	  }
	</script>
</og:head>

<jsp:directive.include file="/jsp/custom/query_info.jsp" />

<form method="POST" action="result.jsp" enctype="multipart/form-data" target="RESULT">
	<table >
	  <tr>
		<og:column name="DBID" codeKeyVal="{@DBID_INFO}" />
		<og:column name="FILE_TYPE" editor="KVMENU" param="XML:XML FILE:FILE" must="true" defaultVal="XML" addNoValue="false" />
		<og:input type="checkbox" name="CHK" value="true" checked="checked" lbl="SET_DEFAULT_MODEL" onChange="check(this);" />
		<td>(　<og:column name="USRSET" defaultVal="{@USER.ID}"     td="no" />
			   <og:column name="DYSET"  defaultVal="{@DATE.YMDHMS}" td="no" />
			   <og:column name="PGSET"  defaultVal="{@GUI.KEY}"     td="no" />　)
		</td>
	  </tr>
	</table>
	<table >
	  <tr>
		<og:input type="file" name="file1" lbl="MSG0015" optionAttributes="multiple" />
		<og:column name="insertDIR" list="insertDIR.sel" size="60" maxlength="256" />
			<og:datalist id="insertDIR.sel">
				<og:option lbl="{@SYS.REAL_PATH}db">{@SYS.REAL_PATH}db</og:option>
			</og:datalist>
	  </tr>
	</table>

	<og:fieldset lbl="DirectTableInsert" >
		<table>
		  <tr>
			<td><textarea name="SQL_TEXT" rows="6" cols="50"><!-- --></textarea></td>
			<td>
				<table>
					<tr>
						<og:column name="table"			size="10"	defaultVal="FILE.NAME" />
						<og:column name="sheetNos"		size="10" />
						<og:column name="skipRowCount"	size="5" />
					</tr>
					<tr>
						<og:column name="checkColumns"	size="10" />
						<og:column name="adjustColumns"	size="10" />
						<og:column name="useRenderer" codeName="BOOLEAN" defaultVal="false" addNoValue="false" />
					</tr>
					<tr>
						<og:column name="nullBreakClm"	size="10" />
						<og:column name="commitBatch"	size="10" />
						<og:column name="useNumber"   codeName="BOOLEAN" defaultVal="true" addNoValue="false" />
					</tr>
					<tr>
						<og:column name="omitNames" size="60" maxlength="0" colspan="5" />
					</tr>
					<tr>
						<og:column name="columns" size="60" maxlength="0" colspan="5" />
					</tr>
				</table>
			</td>
		  </tr>
		</table>
	</og:fieldset>

	<og:queryButton type="ENTRY" />
</form>

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