<%@ page contentType="text/html; charset=utf-8" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<html>
<head>
<title>ダウンロードログ</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="<html:rewrite page='/view/css/webform.css'/>" />
</head>
<body>
<jsp:include page="/view/header.jsp" />
<jsp:include page="/view/menu.jsp" />
<font color="#FF0000">
<html:errors/>
</font>
<html:form action="/LogDownload">
<table>
	<tr>
		<td>オペレータID<html:text property="id" maxlength="20" /></td>
	</tr>
    <tr>
        <td>日付<html:text property="fromDate" maxlength="20" />
        ～<html:text property="toDate" maxlength="20" />
        (YYYY/MM/DD形式)
        </td>
    </tr>
    <tr>
    	<td>
    	取得件数
    		<html:select property="viewCount">
					<html:option value="100">100件取得</html:option>
					<html:option value="200">200件取得</html:option>
					<html:option value="500">500件取得</html:option>
			</html:select>
    	</td>
    </tr>
</table>
<html:submit property="search" value="検索" /> 
<table>
	<tr>
		<th>オペレータID</th>
		<th>ファイル名</th>
		<th>データ数</th>
		<th>ダウンロード日付</th>
		<th>IPアドレス</th>
		<th>セッションID</th>
	</tr>
	<logic:present name="logList">
	<logic:iterate id="data" name="logList">
		<tr>
			<td><bean:write name="data" property="id" /></td>
			<td><bean:write name="data" property="downloadFilename" /></td>
			<td><bean:write name="data" property="downloadCount" /></td>
			<td><bean:write name="data" property="downloadDate" /></td>
			<td><bean:write name="data" property="ipAddress" /></td>
			<td><bean:write name="data" property="sessionId" /></td>
		</tr>	
	</logic:iterate>
	</logic:present>
</table>
<logic:present name="logList">
	<logic:greaterThan name="page" value="0">
	<html:submit property="prev" value="前のページへ" />
	</logic:greaterThan>
	<logic:lessThan name="page" value="${maxPage}">
	<html:submit property="next" value="次のページへ" />
	</logic:lessThan>
</logic:present>
</html:form>
<jsp:include page="/view/footer.jsp" />
</body>
</html>