<?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	= "MAIL01"
	title	= "定型文マスタ管理"
	date	= "2009/04/01"
	author	= "S.Li"
	text	= ""
	version	= "001"
/>
<og:input type="button" lbl="BACK" onClick="JavaScript:window.close();" />
<og:query command="{@command}" debug="false" maxRowCount="{@maxRowCount}" scope="request">
		SELECT	 PTN_ID
				,TITLE
				,CONTENT
				,FROM_ID
				,TO_ID
				,CC_ID
				,BCC_ID
				,SYSTEM_ID
		FROM	GE31
	<og:where>
		<og:and value = "PTN_ID		=	'{@PTN_ID}'"	/>	<!-- 定型文ID -->
		<og:and value = "SYSTEM_ID 	=	'{@SYSTEM_ID}'" />	<!-- システムID -->
		<og:and value = "NVL(FGJ,'0')	!=	'9'"			/>	<!-- 状態フラグ -->
	</og:where>
</og:query>

<!-- entryタグのcommandとcolumnSetのコマンドが同じ場合のみ、動作します。 -->
<og:view
	viewFormType = "HTMLFormatTextField" 
	command      = "{@command}" 
	 scope       = "request"
	noMessage    = "true"
>
<table summary="layout">
	<tr>[PTN_ID]</tr>
	<tr>[FROM_ID]</tr>
	<tr>[TO_ID]</tr>
	<tr>[CC_ID]</tr>
	<tr>[BCC_ID]</tr>
	<tr>[TITLE]</tr>
	<tr><td>[#CONTENT]</td>
		    <td><div style="border:black solid 1px;width:580px">
				<pre style="width:580px;word-wrap: break-word;">[!CONTENT]</pre></div>
			</td>
	</tr>
</table>
</og:view>

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