<?xml version="1.0" encoding="UTF-8" ?>
<jsp:root
	xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:og="hybs-taglib.tld"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:fn="http://java.sun.com/jsp/jstl/functions"
	version="2.0">
<jsp:directive.page language="java" contentType="text/html; charset=UTF-8" />

<og:equals val1="{@command}" val2="NEW">
	<og:fileUD typeDownload="true" />
	<og:userInfo command="SET" key="VIEW_CLM_NAMES" value="{@DB.VIEW_CLM_NAMES}" />
	<og:userInfo command="SET" key="VIEW_EDITABLE" value="{@DB.VIEW_EDITABLE}" />
</og:equals>

<b><og:message lbl="CONFIG_CLMSEQ" /></b><br />

<og:equals val1="{@USER.VIEW_EDITABLE}" val2="true">
<form onSubmit="return oneClick();" method="POST" action="saveDisp.jsp">

<og:submit value="saveDisp" command="MODIFY" lbl="SAVE" accesskey="S" />

<og:value command="SET" key="USER_VIEW_CLMS_KEY" value="H_USRVWCLMS_{@USER.BASE_GAMENID}" />
<og:equals val1="{@USER.@USER_VIEW_CLMS_KEY}" nullCheck="true">
	<og:value command="SET" key="USER_VIEW_CLMS" value="{@USER.VIEW_CLM_NAMES}" />
</og:equals>
<og:equals val1="{@USER.@USER_VIEW_CLMS_KEY}" nullCheck="true" notEquals="true">
	<og:value command="SET" key="USER_VIEW_CLMS" value="{@USER.@USER_VIEW_CLMS_KEY}" />

	<og:submit value="saveDisp" command="MODIFY" lbl="CLRCONF" accesskey="S" onClick="$('#dispClms').val('')" />
	<span style="font-weight:bold; color:red;"><og:text>{@LBL.INCONF}</og:text></span>

</og:equals>

<div id="clmLayer" style="margin-top: 5px; width: 2048px;">
<c:forTokens items = "${USER_VIEW_CLMS}" delims = "|" var = "clmGroup" varStatus = "status">

	<table class="clmGroup" style="float:left;"><tr>
		<c:forTokens items = "${clmGroup}" delims = "," var = "clmInfo" varStatus = "status2">
			<c:set var="clm" value="${ (fn:startsWith(clmInfo,'!')) ? (fn:substringAfter(clmInfo,'!')) : clmInfo }" />
			<c:set var="checked" value="${ (fn:startsWith(clmInfo,'!')) ? 0 : 1 }" />

			<c:if test="${!(status.first) &amp;&amp; (status2.first)}">
				<td class="row_h" style="width:5px; background-color:blue;">&amp;nbsp;</td>
			</c:if>

			<td class="row_h sortItem" name="${clm}">
				<og:message lbl="${clm}" />
				<br />
				<og:column name="x" editor="CHBOX" td="false" value="${checked}" />
			</td>
		</c:forTokens>
	</tr></table>
</c:forTokens>
</div>

<og:input type="hidden" name="saveKey" id="saveKey" value="{@USER_VIEW_CLMS_KEY}" td="false" />
<og:input type="hidden" name="dispClms" id="dispClms" value="{@USER_VIEW_CLMS}" td="false" />

</form>
</og:equals>
<og:equals val1="{@USER.VIEW_EDITABLE}" val2="true" notEquals="true">
<b style="color:read;"><og:message lbl="GEE0003" /></b>
</og:equals>

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