<?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:head headType="result">
	<script type="text/javascript" src="{@SYS.JSP}/common/jquery/jquery-ui.js?v={@SYS.BUILD_ID}" ><!-- --></script>
	<script type="text/javascript" src="edit.js?v={@SYS.BUILD_ID}" ><!-- --></script>
</og:head>
<jsp:directive.include file="no_info.jsp" />

<og:readTable
	command		= "NEW"
	fileURL		= "{@SYS.REAL_PATH}report/{@USER.BASE_GAMENID}"
	filename	= "fileDownloadList.txt"
	scope		= "request"
	mainTrans	= "false"
/>

<og:columnEditor column="DEFAULT" label=" " scope="request" />

<og:viewLink command="NEW">
	<og:link column="REPNAME" href="download.jsp" onLink="[ISREP]" markList="Y"
		keys="REPNAME,MODELNAME,TYPE,D_MARK"
		vals="[REPNAME],[MODELNAME],[TYPE],U"
		onClick="location.href=$(this).attr('href')+'&amp;ISCALC='+$('#ISCALC').attr('checked'); return false;" />
	<og:link column="REPNAME" href="download.jsp" onLink="[MODELNAME]" markList="Template"
		keys="REPNAME,MODELNAME,TYPE,D_MARK,gamenId,GAMENID"
		vals="[REPNAME],[MODELNAME],[TYPE],S,{@USER.BASE_GAMENID},{@USER.BASE_GAMENID}"
		onClick="location.href=$(this).attr('href')+'&amp;ISCALC='+$('#ISCALC').attr('checked'); return false;" />
</og:viewLink>

<og:value command="SET" key="DEFAULT_MODELNAME">
<og:userInfo command="GET" key="REPORT_DEFAULT_MODELNAME_{@USER.BASE_GAMENID}" />
</og:value>

<og:viewMarker command="NEW">
	<og:columnMarker column="DEFAULT" onMark="[MODELNAME]" markList="{@DEFAULT_MODELNAME}">
		<span style="font-weight:bold; color:red;">*</span>
	</og:columnMarker>
</og:viewMarker>

<form onSubmit="return oneClick();" method="POST" action="forward.jsp">

<og:submit value="update" command="INSERTONE"  lbl="INSERT" accesskey="I" roles="{@SYS.EDIT_COMMON_ROLES}" />
<og:submit value="update" command="MODIFY"     lbl="MODIFY" accesskey="M" roles="{@SYS.EDIT_COMMON_ROLES}" />
<og:submit value="update" command="REALDELETE" lbl="DELETE" accesskey="D" roles="{@SYS.EDIT_COMMON_ROLES}" onClick="return confirm('{@LBL.GEM0040}');"/>
<og:submit value="default" lbl="SET_DEFAULT_MODEL"  accesskey="F" />

<og:input type="checkbox" name="ISCALC" id="ISCALC" roles="{@SYS.EDIT_COMMON_ROLES}" />

<og:view
	viewFormType= "HTMLCustomTable"
	command		= "NEW"
	selectedType= "radio"
	scope		= "request"
	noMessage	= "true"
	viewFormId	= "dummy">
	<og:thead rowspan="1">
		<tr>
			<td colspan="2">[REPNAME]</td>
			<td>[TYPE]</td>
		</tr>
	</og:thead>
	<og:tbody rowspan="1">
		<tr>
			<td>[DEFAULT]</td>
			<td>[REPNAME]</td>
			<td>[TYPE]</td>
		</tr>
	</og:tbody>
</og:view>

</form>

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