<%--
MosP - Mind Open Source Project    http://www.mosp.jp/
Copyright (C) MIND Co., Ltd.       http://www.e-mind.co.jp/

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
--%>
<%@ page
language     = "java"
pageEncoding = "Windows-31J"
buffer       = "256kb"
autoFlush    = "false"
errorPage    = "/jsp/common/error.jsp"
%><%@ page
import = "jp.mosp.common.common.MospConst"
import = "jp.mosp.common.common.HtmlUtility"
import = "jp.mosp.common.CommonConst"
import = "jp.mosp.common.common.BaseVo"
import = "jp.mosp.kintai.report.vo.OutPutMasterListVo"
%><%
OutPutMasterListVo vo = (OutPutMasterListVo)request.getAttribute(MospConst.ATT_VO);
String[][] aryOutPutMaster		= vo.getAryOutPutMaster();
%>
<%=HtmlUtility.getHeader(vo)%>
<%= HtmlUtility.getSubTitle(vo)%>
<div class="Body" id="outPutMasterList">
	<%=HtmlUtility.getMessages(vo)%>
	<div class="Search">
		<table>
			<tr>
				<td id="tdCode">
					<span><%= vo.NAM_CODE %><%=CommonConst.STR_TITLE_SEPARATOR%></span>
					<input type="text" class="CodeTextBox" id="<%= OutPutMasterListVo.PRM_TXT_CODE %>" name="<%= OutPutMasterListVo.PRM_TXT_CODE %>" value="<%= BaseVo.escapeHTML(vo.getTxtCode()) %>" />
				</td>
				<td id="tdName">
					<span><%= vo.NAM_NAME %><%=CommonConst.STR_TITLE_SEPARATOR%></span>
					<input type="text" class="TextBox" id="<%= OutPutMasterListVo.PRM_TXT_NAME %>" name="<%= OutPutMasterListVo.PRM_TXT_NAME %>" value="<%= BaseVo.escapeHTML(vo.getTxtName()) %>" />
				</td>
				<td id="tdScope">
					<span><%= vo.NAM_SCOPE %><%=CommonConst.STR_TITLE_SEPARATOR%></span>
					<select class="Select" id="<%= OutPutMasterListVo.PRM_PLT_SCOPE %>" name="<%= OutPutMasterListVo.PRM_PLT_SCOPE %>">
						<option value=""></option>
						<%= HtmlUtility.getSelectOption(vo.aryPltScope, vo.getPltScope()) %>
					</select>
				</td>
				<td class="ButtonTd">
					<button type="button" onclick="doSubmitKey(document.form, 'S1221', '')"><%= CommonConst.NAM_SEARCH %></button>
				</td>
			</tr>
		</table>
	</div>
	<%=HtmlUtility.getListInfo(vo)%>
	<div class="List">
		<table id="list">
			<thead>
				<tr>
					<th id="thCode" 	onclick="doSubmitKey(document.form, 'S1223', '<%= vo.KEY_CODE %>', '')"	>&nbsp;<%= vo.NAM_CODE%> &nbsp;<%=vo.getSortMark(vo.KEY_CODE)%> </th>
					<th id="thName" 	onclick="doSubmitKey(document.form, 'S1223', '<%= vo.KEY_NAME %>', '')"	>&nbsp;<%= vo.NAM_NAME%> &nbsp;<%=vo.getSortMark(vo.KEY_NAME)%> </th>					
					<th id="thScope"	onclick="doSubmitKey(document.form, 'S1223', '<%= vo.KEY_SCOPE %>', '')">&nbsp;<%= vo.NAM_SCOPE%>&nbsp;<%=vo.getSortMark(vo.KEY_SCOPE)%></th>					
					<th id="thIndex"	onclick="doSubmitKey(document.form, 'S1223', '<%= vo.KEY_INDEX %>', '')">&nbsp;<%= vo.NAM_INDEX%>&nbsp;<%=vo.getSortMark(vo.KEY_INDEX)%></th>					
				</tr>
			</thead>
			<tbody>
<%
for (int i = vo.getStart(); i <= vo.getEnd(); i++) {
%>
				<tr>
					<td><%= aryOutPutMaster[i][0] %></td>
					<td><%= aryOutPutMaster[i][1] %></td>
					<td><%= aryOutPutMaster[i][2] %></td>
					<td><%= aryOutPutMaster[i][3] %></td>
				</tr>
<%
}
%>
			</tbody>
		</table>
	</div>
</div>
<%= HtmlUtility.getFooter(vo) %>
