<?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="init" />
<og:comment
	system   = "GE:エンジンサンプル"
	pgid     = "GE1002"
	title    = "Admin管理"
	date     = "2007/12/12"
	author   = "K.HASEGAWA"
	text     = "ZZZZ"
	version  = "001"
/>

<body>

<!-- logs フォルダを、スキャンして、ファイルをピックアップします。 -->
<og:fileQuery
	command		= "NEW"
	scope		= "request"
	from		= "{@SYS.TOMCAT_LOGS}"
	fromBase	= "{@SYS.TOMCAT_LOGS}/"
	addFrom		= "false"
	multi		= "true"
	fileType	= "FILE"
	orderBy		= "LASTMODIFIED"
	desc		= "true"
	useLocal	= "true"
	debug		= "{@debug}"
>
	<og:fileWhere
		isLarger	= "1"
		lastModified= "{@DATE.YMD M -3}"
	/>
</og:fileQuery>

<!--tomcat/logs ファイルへのリンク  -->
<og:viewLink command="NEW">
	<og:link column="NAME" href="download.jsp" target="_blank" useGamenId="false"
		keys="PARENT,NAME" vals="{@REQ.ContextPath}/logs,[NAME]" >[NAME]</og:link>
</og:viewLink>

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

<og:view
	viewFormType	= "HTMLTable"
	command			= "NEW"
	scope			= "request"
	noDisplay		= "LEVEL,FILE_TYPE,PARENT,RWH"
	writable		= "false"
	startNo			= "{@startNo}"
	pageSize		= "{@pageSize}"
/>

<!-- zipﾌｧｲﾙの出力先 -->
<og:value command="SET" key="TEMP" value="{@SYS.REAL_PATH}{@SYS.FILE_URL}{@USER.ID}" />

<og:file action="zip" file1="{@SYS.TOMCAT_LOGS}"   file2="{@TEMP}/tomcat_log.zip" />
<og:link href="{@SYS.CONTEXT_URL}{@SYS.FILE_URL}{@USER.ID}/tomcat_log.zip" target="_blank" useGamenId="false" >
	<img src="{@SYS.JSP_IMG}/floppy.gif" alt="Excel Open" />ZIP:{@SYS.TOMCAT_LOGS}
</og:link>

<br />
<br />

<!-- **************************************************************************************** -->

<og:fileQuery
	command		= "NEW"
	scope		= "request"
	from		= "{@SYS.REAL_PATH}/log"
	fromBase	= "{@SYS.REAL_PATH}/log/"
	addFrom		= "false"
	multi		= "true"
	fileType	= "FILE"
	orderBy		= "LASTMODIFIED"
	desc		= "true"
	useLocal	= "true"
	debug		= "{@debug}"
>
	<og:fileWhere
		isLarger	= "1"
		lastModified= "{@DATE.YMD M -3}"
	/>
</og:fileQuery>

<!--jsp/log ファイルへのリンク  -->
<og:viewLink command="NEW">
	<og:link column="NAME" href="download.jsp" target="_blank" useGamenId="false"
		keys="PARENT,NAME" vals="{@REQ.ContextPath}/log,[NAME]" >[NAME]</og:link>
</og:viewLink>

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

<og:view
	viewFormType	= "HTMLTable"
	command			= "NEW"
	scope			= "request"
	noDisplay		= "LEVEL,FILE_TYPE,PARENT,RWH"
	writable		= "false"
	startNo			= "{@startNo}"
	pageSize		= "{@pageSize}"
/>

<og:file action="zip" file1="{@SYS.REAL_PATH}/log" file2="{@TEMP}/jsp_log.zip" />
<og:link href="{@SYS.CONTEXT_URL}{@SYS.FILE_URL}{@USER.ID}/jsp_log.zip" target="_blank" useGamenId="false" >
	<img src="{@SYS.JSP_IMG}/floppy.gif" alt="Excel Open" />ZIP:{@SYS.REAL_PATH}/log
</og:link>

<!-- **************************************************************************************** -->

</body>

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