<?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" >
	<script type="text/javascript" src="{@SYS.JSP}/common/unrecommend/accessFunctionKey.js" ><!-- --></script>
</og:head>
<jsp:directive.include file="/jsp/custom/result_info.jsp" />
<og:comment
	system	= "GF:エンジンサンプル"
	pgid	= "GF6000"
	title	= "テキストフィールド"
	date	= "2008/10/27"
	author	= "Hiroki.Nakamura"
	text	= ""
	version	= "001"
/>
<!-- ワーニングメッセージです。ここでは、登録完了のメッセージを表示します。 -->
<og:errorMessage command="{@command}" clear="{@clear}" displayMsg="{@displayMsg}" />

<og:columnCheck
	command   = "{@command}"
	columns   = "TABLE_CLM2,VIEW_DATE,HM"
/>

<!-- 取り消しボタンが押された時に必要です。 -->
<og:entry command="{@command}" />

<form name="GE1" method="GET" action="result.jsp" target="RESULT">
<og:writeCheck>
	<og:submit id="ENTRY" value="entry"   lbl="ENTRY"   title="{@LBL.MSG0007}\n{@LBL.MSG0021}"
					onClick="return confirm('{@LBL.MSG0007}\n{@LBL.MSG0021}');alert('OK');" />
	<og:submit value="entry"   lbl="INSERT"  command="DELETE" img="../image/down.png"
					onClick="alert('{@LBL.MSG0007}\n{@LBL.MSG0021}'); return false;" />
	<og:submit value="update"  lbl="DELETE"  title="{@LBL.MSG0014}:{@USER.JNAME}"
					onClick="ENTRY.disabled=true; USERNM.innerHTML=prompt('{@LBL.MSG0014}','{@USER.JNAME}'); return false;" />
</og:writeCheck>

<table summary="layout" onClick="ENTRY.disabled=true;" >
  <tr>
	<td colspan="6"><div id="USERNM"></div></td>
  </tr>
  <tr>
	<og:column name="VIEW_DATE" defaultVal="{@USER.YMD}" writable="false" />
	<og:column name="GUI_TITLE" defaultVal="{@GUI.LNAME}" writable="false" />
	<og:column name="ROLES" writable="false" >
		<img style="cursor:pointer;" src="{@SYS.JSP}/image/multiChoose.gif" onClick="ogOpen('{@SYS.JSP}/custom/multiChoose.jsp?name=ROLES', event,'ROLES','width=500,height=200,resizable=no' );" />
	</og:column>
  </tr>
  <tr>
	<og:column name="AA" must="true" value="TEST" writable="false" />
	<og:column name="EE" writable="false" />
  </tr>
  <tr>
	<og:column name="BB" mustAny="true" value="TEST2" writable="false" />
	<og:column name="CC" mustAny="true" writable="false" />
	<og:column name="DD" mustAny="true" writable="false" />
  </tr>
  <tr>
	<og:column name="YMD"     dbType="YMD"   maxlength="10" defaultVal="{@DATE.YMDF}"     writable="false"/>
	<og:column name="YMDH"    dbType="YMDH"  maxlength="20" defaultVal="{@DATE.YMDHMSF}"  writable="false"/>
	<og:column name="NUMBER"  dbType="S9"  defaultVal="2,000"  writable="false"/>
	<og:column name="PN"      dbType="PN"   maxlength="13" defaultVal="Z06-12345-60"  writable="false"/>
  </tr>
  <tr>
	<og:column name="YMD2"    dbType="X" editor="YMD2"  maxlength="10" defaultVal="{@DATE.YMDF}"  writable="false"/>
	<og:column name="HM"      dbType="X" editor="HM"  maxlength="4" param="2,20,6,true"  writable="false"/>
  </tr>
</table>

<hr />

Tab Index Test<br />
<og:input name="C03" tabindex="3" /><br />
<og:input name="C06" tabindex="6" /><br />
<og:input name="C01" tabindex="1" /><br />
<og:input name="C05" tabindex="5" /><br />
<og:input name="C02" tabindex="2" /><br />
<og:input name="C04" tabindex="4" /><br />

<!-- 必ず 指定のオブジェクトより下に記述してください。 -->
<script type="text/javascript">
//	document.GE1.C01.focus();			// form に名前を付ける場合。
	document.forms[0].C01.focus();		// 最初の form に限定できる場合。
</script>

<hr />
<og:writeCheck>
	<og:submit value="entry"  lbl="ENTRY"   accesskey="E" />
	<og:submit value="entry"  lbl="DELETE"  accesskey="Z" command="DELETE" />
	<og:input  type="reset"  name="command"  lbl="MSG0011"  td="false" />
	<br />
</og:writeCheck>

3-2-4 TestField <br />
<og:input name="D01" maxlength="3" nextForm="D02" tabindex="10" /> - 
<og:input name="D02" maxlength="2" nextForm="D03" /> - 
<og:input name="D03" maxlength="4" nextForm="E01" />
<br />
<br />

3-2-4 TestField <br />
<og:column name="E01" maxlength="3" nextForm="E02" /> - 
<og:column name="E02" maxlength="2" nextForm="E03" /> - 
<og:column name="E03" maxlength="4" nextForm="command"/>

<hr />
</form>

<form name="GF2" method="GET" action="result.jsp" target="RESULT">

<table>
<tr>
	<td><input type="submit" value="F1   xxxxx" onClick="alert('F1  xxxxx');" accessKey="F1"  /></td>
	<td><input type="submit" value="F2   press" onClick="alert('F2  press');" accessKey="F2"  /></td>
	<td><input type="submit" value="F3   xxxxx" onClick="alert('F3  xxxxx');" accessKey="F3"  /></td>
	<td><input type="submit" value="F4   xxxxx" onClick="alert('F4  xxxxx');" accessKey="F4"  /></td>
	<td><input type="submit" value="F5   xxxxx" onClick="alert('F5  xxxxx');" accessKey="F5"  /></td>
	<td><input type="submit" value="F6   press" onClick="alert('F6  press');" accessKey="F6"  /></td>
</tr>
<tr>
	<td><input type="submit" value="F7   press" onClick="alert('F7  press');" accessKey="F7"  /></td>
	<td><input type="submit" value="F8   press" onClick="alert('F8  press');" accessKey="F8"  /></td>
	<td><input type="submit" value="F9   press" onClick="alert('F9  press');" accessKey="F9"  /></td>
	<td><input type="submit" value="F10  press" onClick="alert('F10 press');" accessKey="F10" /></td>
	<td><input type="submit" value="F11  xxxxx" onClick="alert('F11 xxxxx');" accessKey="F11" /></td>
	<td><input type="submit" value="F12  press" onClick="alert('F12 press');" accessKey="F12" /></td>
</tr>
</table>

</form>

<hr />
<form name="GF3" method="GET" action="result.jsp" target="RESULT">

<table><tr>
<og:column name="CONTENTS" />
</tr>
<tr>
  	<og:column name="COLORPIC" style="width:10px;" />
  	<og:column name="COLORPIC" style="width:10px; display:block; overflow:hidden;" writable="false" defaultVal="#00ff00" />
  	<td>7文字分</td><td><div style="background-color: #ff0000;" >#ff0000</div></td>
  	<og:column name="COLORNO" />
</tr></table>
</form>

<og:query command="NEW" >
	select mod( uniq , 22 ) as COLORNO from GF41 where rownum &lt; 100 order by uniq
</og:query>

<og:view command="NEW" />

<hr />
{@NVL.BB @CC @DD}　<og:text>{@NVL.BB @CC @DD}</og:text> <br />
{@NVL.YMD @YMD2 @DATE.YMDF}　<og:text>{@NVL.YMD @YMD2 @DATE.YMDF}</og:text> <br />

<hr />
<form name="GF4" method="GET" action="result.jsp" target="RESULT">

<table>
<colgroup class="S9"/>
<colgroup class="X"/>
<colgroup class="S9"/>
<colgroup class="S9"/>
<tr><th>No</th><th>InputTag</th><th>Original</th></tr>
<tr><td>01</td><td><og:input name="A01" maxlength="1"  value="1" /></td><td><input name="A01" size="1"  value="1" /></td></tr>
<tr><td>02</td><td><og:input name="A02" maxlength="2"  value="12" /></td><td><input name="A02" size="2"  value="12" /></td></tr>
<tr><td>03</td><td><og:input name="A03" maxlength="3"  value="123" /></td><td><input name="A03" size="3"  value="123" /></td></tr>
<tr><td>04</td><td><og:input name="A04" maxlength="4"  value="1234" /></td><td><input name="A04" size="4"  value="1234" /></td></tr>
<tr><td>05</td><td><og:input name="A05" maxlength="5"  value="12345" /></td><td><input name="A05" size="5"  value="12345" /></td></tr>
<tr><td>06</td><td><og:input name="A06" maxlength="6"  value="123456" /></td><td><input name="A06" size="6"  value="123456" /></td></tr>
<tr><td>07</td><td><og:input name="A07" maxlength="7"  value="1234567" /></td><td><input name="A07" size="7"  value="1234567" /></td></tr>
<tr><td>08</td><td><og:input name="A08" maxlength="8"  value="12345678" /></td><td><input name="A08" size="8"  value="12345678" /></td></tr>
<tr><td>09</td><td><og:input name="A09" maxlength="9"  value="123456789" /></td><td><input name="A09" size="9"  value="123456789" /></td></tr>
<tr><td>10</td><td><og:input name="A10" maxlength="10" value="1234567890" /></td><td><input name="A10" size="10" value="1234567890" /></td></tr>
<tr><td>11</td><td><og:input name="A11" maxlength="11" value="12345678901" /></td><td><input name="A11" size="11" value="12345678901" /></td></tr>
<tr><td>12</td><td><og:input name="A12" maxlength="12" value="123456789012" /></td><td><input name="A12" size="12" value="123456789012" /></td></tr>
<tr><td>13</td><td><og:input name="A13" maxlength="13" value="1234567890123" /></td><td><input name="A13" size="13" value="1234567890123" /></td></tr>
<tr><td>14</td><td><og:input name="A14" maxlength="14" value="12345678901234" /></td><td><input name="A14" size="14" value="12345678901234" /></td></tr>
<tr><td>15</td><td><og:input name="A15" maxlength="15" value="123456789012345" /></td><td><input name="A15" size="15" value="123456789012345" /></td></tr>
<tr><td>16</td><td><og:input name="A16" maxlength="16" value="1234567890123456" /></td><td><input name="A16" size="16" value="1234567890123456" /></td></tr>
<tr><td>17</td><td><og:input name="A17" maxlength="17" value="12345678901234567" /></td><td><input name="A17" size="17" value="12345678901234567" /></td></tr>
<tr><td>18</td><td><og:input name="A18" maxlength="18" value="123456789012345678" /></td><td><input name="A18" size="18" value="123456789012345678" /></td></tr>
<tr><td>19</td><td><og:input name="A19" maxlength="19" value="1234567890123456789" /></td><td><input name="A19" size="19" value="1234567890123456789" /></td></tr>
<tr><td>20</td><td><og:input name="A20" maxlength="20" value="12345678901234567890" /></td><td><input name="A20" size="20" value="12345678901234567890" /></td></tr>
<tr><td>21</td><td><og:input name="A21" maxlength="21" value="123456789012345678901" /></td><td><input name="A21" size="21" value="123456789012345678901" /></td></tr>
<tr><td>22</td><td><og:input name="A22" maxlength="22" value="1234567890123456789012" /></td><td><input name="A22" size="22" value="1234567890123456789012" /></td></tr>
<tr><td>23</td><td><og:input name="A23" maxlength="23" value="12345678901234567890123" /></td><td><input name="A23" size="23" value="12345678901234567890123" /></td></tr>
<tr><td>24</td><td><og:input name="A24" maxlength="24" value="123456789012345678901234" /></td><td><input name="A24" size="24" value="123456789012345678901234" /></td></tr>
<tr><td>25</td><td><og:input name="A25" maxlength="25" value="1234567890123456789012345" /></td><td><input name="A25" size="25" value="1234567890123456789012345" /></td></tr>
<tr><td>26</td><td><og:input name="A26" maxlength="26" value="12345678901234567890123456" /></td><td><input name="A26" size="26" value="12345678901234567890123456" /></td></tr>
<tr><td>27</td><td><og:input name="A27" maxlength="27" value="123456789012345678901234567" /></td><td><input name="A27" size="27" value="123456789012345678901234567" /></td></tr>
<tr><td>28</td><td><og:input name="A28" maxlength="28" value="1234567890123456789012345678" /></td><td><input name="A28" size="28" value="1234567890123456789012345678" /></td></tr>
<tr><td>29</td><td><og:input name="A29" maxlength="29" value="12345678901234567890123456789" /></td><td><input name="A29" size="29" value="12345678901234567890123456789" /></td></tr>
<tr><td>30</td><td><og:input name="A30" maxlength="30" value="123456789012345678901234567890" /></td><td><input name="A30" size="30" value="123456789012345678901234567890" /></td></tr>
</table>

<hr />

<table>
<colgroup class="X"/>
<colgroup class="X"/>
<colgroup class="X"/>
<colgroup class="X"/>

<tr><th>No</th><th>ColumnTag</th><th>Original</th></tr>
<tr><td>01</td><td><og:column name="B01" value="W" /></td><td><input name="B01" size="1"  value="W" /></td></tr>
<tr><td>02</td><td><og:column name="B02" value="WW" /></td><td><input name="B02" size="2"  value="WW" /></td></tr>
<tr><td>03</td><td><og:column name="B03" value="WWW" /></td><td><input name="B03" size="3"  value="WWW" /></td></tr>
<tr><td>04</td><td><og:column name="B04" value="WWWW" /></td><td><input name="B04" size="4"  value="WWWW" /></td></tr>
<tr><td>05</td><td><og:column name="B05" value="WWWWW" /></td><td><input name="B05" size="5"  value="WWWWW" /></td></tr>
<tr><td>06</td><td><og:column name="B06" value="WWWWWW" /></td><td><input name="B06" size="6"  value="WWWWWW" /></td></tr>
<tr><td>07</td><td><og:column name="B07" value="WWWWWWW" /></td><td><input name="B07" size="7"  value="WWWWWWW" /></td></tr>
<tr><td>08</td><td><og:column name="B08" value="WWWWWWWW" /></td><td><input name="B08" size="8"  value="WWWWWWWW" /></td></tr>
<tr><td>09</td><td><og:column name="B09" value="WWWWWWWWW" /></td><td><input name="B09" size="9"  value="WWWWWWWWW" /></td></tr>
<tr><td>10</td><td><og:column name="B10" value="WWWWWWWWWW" /></td><td><input name="B10" size="10" value="WWWWWWWWWW" /></td></tr>
<tr><td>11</td><td><og:column name="B11" value="WWWWWWWWWWW" /></td><td><input name="B11" size="11" value="WWWWWWWWWWW" /></td></tr>
<tr><td>12</td><td><og:column name="B12" value="WWWWWWWWWWWW" /></td><td><input name="B12" size="12" value="WWWWWWWWWWWW" /></td></tr>
<tr><td>13</td><td><og:column name="B13" value="WWWWWWWWWWWWW" /></td><td><input name="B13" size="13" value="WWWWWWWWWWWWW" /></td></tr>
<tr><td>14</td><td><og:column name="B14" value="WWWWWWWWWWWWWW" /></td><td><input name="B14" size="14" value="WWWWWWWWWWWWWW" /></td></tr>
<tr><td>15</td><td><og:column name="B15" value="WWWWWWWWWWWWWWW" /></td><td><input name="B15" size="15" value="WWWWWWWWWWWWWWW" /></td></tr>
<tr><td>16</td><td><og:column name="B16" value="WWWWWWWWWWWWWWWW" /></td><td><input name="B16" size="16" value="WWWWWWWWWWWWWWWW" /></td></tr>
<tr><td>17</td><td><og:column name="B17" value="WWWWWWWWWWWWWWWWW" /></td><td><input name="B17" size="17" value="WWWWWWWWWWWWWWWWW" /></td></tr>
<tr><td>18</td><td><og:column name="B18" value="WWWWWWWWWWWWWWWWWW" /></td><td><input name="B18" size="18" value="WWWWWWWWWWWWWWWWWW" /></td></tr>
<tr><td>19</td><td><og:column name="B19" value="WWWWWWWWWWWWWWWWWWW" /></td><td><input name="B19" size="19" value="WWWWWWWWWWWWWWWWWWW" /></td></tr>
<tr><td>20</td><td><og:column name="B20" value="WWWWWWWWWWWWWWWWWWWW" /></td><td><input name="B20" size="20" value="WWWWWWWWWWWWWWWWWWWW" /></td></tr>
<tr><td>21</td><td><og:column name="B21" value="WWWWWWWWWWWWWWWWWWWWW" /></td><td><input name="B21" size="21" value="WWWWWWWWWWWWWWWWWWWWW" /></td></tr>
<tr><td>22</td><td><og:column name="B22" value="WWWWWWWWWWWWWWWWWWWWWW" /></td><td><input name="B22" size="22" value="WWWWWWWWWWWWWWWWWWWWWW" /></td></tr>
<tr><td>23</td><td><og:column name="B23" value="WWWWWWWWWWWWWWWWWWWWWWW" /></td><td><input name="B23" size="23" value="WWWWWWWWWWWWWWWWWWWWWWW" /></td></tr>
<tr><td>24</td><td><og:column name="B24" value="WWWWWWWWWWWWWWWWWWWWWWWW" /></td><td><input name="B24" size="24" value="WWWWWWWWWWWWWWWWWWWWWWWW" /></td></tr>
<tr><td>25</td><td><og:column name="B25" value="WWWWWWWWWWWWWWWWWWWWWWWWW" /></td><td><input name="B25" size="25" value="WWWWWWWWWWWWWWWWWWWWWWWWW" /></td></tr>
<tr><td>26</td><td><og:column name="B26" value="WWWWWWWWWWWWWWWWWWWWWWWWWW" /></td><td><input name="B26" size="26" value="WWWWWWWWWWWWWWWWWWWWWWWWWW" /></td></tr>
<tr><td>27</td><td><og:column name="B27" value="WWWWWWWWWWWWWWWWWWWWWWWWWWW" /></td><td><input name="B27" size="27" value="WWWWWWWWWWWWWWWWWWWWWWWWWWW" /></td></tr>
<tr><td>28</td><td><og:column name="B28" value="WWWWWWWWWWWWWWWWWWWWWWWWWWWW" /></td><td><input name="B28" size="28" value="WWWWWWWWWWWWWWWWWWWWWWWWWWWW" /></td></tr>
<tr><td>29</td><td><og:column name="B29" value="WWWWWWWWWWWWWWWWWWWWWWWWWWWWW" /></td><td><input name="B29" size="29" value="WWWWWWWWWWWWWWWWWWWWWWWWWWWWW" /></td></tr>
<tr><td>30</td><td><og:column name="B30" value="WWWWWWWWWWWWWWWWWWWWWWWWWWWWWW" /></td><td><input name="B30" size="30" value="WWWWWWWWWWWWWWWWWWWWWWWWWWWWWW" /></td></tr>
</table>
</form>

<form name="GF5" method="GET" action="result.jsp" target="RESULT">

<table border="2">
<tr><th>AAAAAAAAA</th><th>BBBBBBBBBBBBBBBBB</th><th>CCCCCCCCCCC</th></tr>
<tr>
<td class="VARCHAR2" align="center">*</td>
<td class="VARCHAR2" style="text-align:center;" >*</td>
<td class="BIT" >*</td>
</tr></table>
<hr />

<og:switch key="{@VIEW_DATE}">
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
	<og:case match="2010.*"><og:column name="B01" value="W" /></og:case>
	<og:case match="2011.*"><og:column name="B02" value="WW" /></og:case>
	<og:case match="2012.*"><og:column name="B03" value="WWW" /></og:case>
BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
	<og:case isNull="true">VIEW_DATE IS NULL</og:case>
	<og:case isDefault="true">
<table>
<tr><th>No</th><th>ColumnTag</th><th>Original</th></tr>
<tr><td>01</td><td><og:column name="B01" value="W" /></td><td><input name="B01" size="1"  value="W" /></td></tr>
<tr><td>02</td><td><og:column name="B02" value="WW" /></td><td><input name="B02" size="2"  value="WW" /></td></tr>
<tr><td>03</td><td><og:column name="B03" value="WWW" /></td><td><input name="B03" size="3"  value="WWW" /></td></tr>
<tr><td>04</td><td><og:column name="B04" value="WWWW" /></td><td><input name="B04" size="4"  value="WWWW" /></td></tr>
<tr><td>05</td><td><og:column name="B05" value="WWWWW" /></td><td><input name="B05" size="5"  value="WWWWW" /></td></tr>
</table>
	</og:case>
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
</og:switch>
</form>

<hr/>
<og:column name="CONTENTS2" editor="RICHTEXT" param="250,600"/>
<hr />
<jsp:directive.include file="/jsp/common/htmlend.jsp" />
</jsp:root>
