<%@ 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="/Status">
<table>
	<tr>
		<td>申込番号<html:text property="id" maxlength="20" /></td>
	</tr>
    <tr>
        <td>姓（漢字）<html:text property="seiKanji" maxlength="20" />
        名（漢字）<html:text property="meiKanji" maxlength="20" /></td>
    </tr>
    <tr>
        <td>姓（カナ）<html:text property="seiKana" maxlength="20" />
        名（カナ）<html:text property="meiKana" maxlength="20" /></td> 
    </tr>
    <tr>
        <td>郵便番号<html:text property="zip" maxlength="7" />(#######形式)
        メールアドレス<html:text property="email" 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="検索" /> <html:reset property="clear" value="クリア" />
<table>
	<tr>
		<th>アクション</th>
		<th>申込番号</th>
		<th>名前（漢字）</th>
		<th>名前（カナ）</th>
		<th>生年月日</th>
		<th>性別</th>
		<th>郵便番号</th>
		<th>住所</th>
		<th>電話番号</th>	
		<th>携帯電話番号</th>
		<th>メールアドレス</th>
		<th>職業</th>
		<th>申込日時</th>	
		<th>IPアドレス</th>
		<th>セッションID</th>				
	</tr>
	<logic:present name="statusList">
	<logic:iterate id="data" name="statusList">
		<tr>
			<td><a href="/WebFormManager/Detail.do?id=${data.id}">詳細</a></td>
			<td><bean:write name="data" property="id" /></td>
			<td><bean:write name="data" property="seiKanji" /> <bean:write name="data" property="meiKanji" /></td>
			<td><bean:write name="data" property="seiKana" /> <bean:write name="data" property="meiKana" /></td>
			<td><bean:write name="data" property="birthDate" /></td>
			<td><bean:write name="data" property="genderText" /></td>
			<td><bean:write name="data" property="zip1" />-<bean:write name="data" property="zip2" /></td>
			<td><bean:write name="data" property="address1" /><bean:write name="data" property="address2" /><bean:write name="data" property="address3" /><bean:write name="data" property="address4" /></td>
			<td><bean:write name="data" property="tel1" />-<bean:write name="data" property="tel2" />-<bean:write name="data" property="tel3" /></td>
			<td><bean:write name="data" property="mTel1" />-<bean:write name="data" property="mTel2" />-<bean:write name="data" property="mTel3" /></td>
			<td><bean:write name="data" property="email" /></td>
			<td><bean:write name="data" property="occupationText" /></td>
			<td><bean:write name="data" property="requestDate" /></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="statusList">
	<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>