<%@ 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" %>
<%@ page import="jp.yoyoyoyo.webformmanager.model.LoginInfo" %>
<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" />
<html:form action="/Detail">
<html:submit property="back" value="戻る" /> 
<%
	LoginInfo info = (LoginInfo)session.getAttribute("loginData");
%>
<% if(info.isRoleWrite()){ %>
<html:submit property="statusChange" value="ステータス更新" />
<% } %>
<table>
	<tr>
		<th>申込番号</th>
		<td><bean:write name="requestData" property="id" /></td>
	</tr>
	<tr>
		<th>ステータス</th>
		<td><bean:write name="requestData" property="statusText" /></td>
	</tr>
	<tr>
		<th>名前（漢字）</th>
		<td><bean:write name="requestData" property="seiKanji" /> <bean:write name="requestData" property="meiKanji" /></td>
	</tr>
	<tr>
		<th>名前（カナ）</th>
		<td><bean:write name="requestData" property="seiKana" /> <bean:write name="requestData" property="meiKana" /></td>
	</tr>
	<tr>
		<th>生年月日</th>
		<td><bean:write name="requestData" property="birthDate" /></td>
	</tr>
	<tr>
		<th>性別</th>
		<td><bean:write name="requestData" property="genderText" /></td>
	</tr>
	<tr>
		<th>郵便番号</th>
		<td><bean:write name="requestData" property="zip1" />-<bean:write name="requestData" property="zip2" /></td>
	</tr>
	<tr>
		<th>住所</th>
		<td><bean:write name="requestData" property="address1" /><bean:write name="requestData" property="address2" /><bean:write name="requestData" property="address3" /><bean:write name="requestData" property="address4" /></td>
	</tr>
	<tr>
		<th>電話番号</th>
		<td><bean:write name="requestData" property="tel1" />-<bean:write name="requestData" property="tel2" />-<bean:write name="requestData" property="tel3" /></td>
	</tr>
	<tr>
		<th>携帯番号</th>
		<td><bean:write name="requestData" property="mTel1" />-<bean:write name="requestData" property="mTel2" />-<bean:write name="requestData" property="mTel3" /></td>
	</tr>
	<tr>
		<th>メールアドレス</th>
		<td><bean:write name="requestData" property="email" /></td>
	</tr>
 	<tr>
		<th>職業</th>
		<td><bean:write name="requestData" property="occupationText" /></td>
	</tr>
	<tr>
		<th>申込日付</th>
		<td><bean:write name="requestData" property="requestDate" /></td>
	</tr>
	<tr>
		<th>IPアドレス</th>
		<td><bean:write name="requestData" property="ipAddress" /></td>
	</tr>
	<tr>
		<th>セッションID</th>
		<td><bean:write name="requestData" property="sessionId" /></td>
	</tr>
</table>
<br />
<p>ステータス</p>
<table>
	<tr>
		<th>旧ステータス</th>
		<th>新ステータス</th>
		<th>コメント</th>
		<th>変更日時</th>
		<th>オペレータID</th>				
	</tr>
	<logic:present name="statusList">
	<logic:iterate id="data" name="statusList">
		<tr>
			<td><bean:write name="data" property="oldStatusText" /></td>
			<td><bean:write name="data" property="newStatusText" /></td>
			<td><bean:write name="data" property="changeComment" /></td>
			<td><bean:write name="data" property="createDate" /></td>
			<td><bean:write name="data" property="operatorId" /></td>
		</tr>
	</logic:iterate>
	</logic:present>
</table>
</html:form>
<jsp:include page="/view/footer.jsp" />
</body>
</html>