<%@ 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="/UserManager">
<table>
	<tr>
		<td>オペレータID<html:text property="operatorId" maxlength="20" /></td>
	</tr>
</table>
<html:submit property="search" value="検索" /> <html:submit property="newUser" value="新規ユーザ" />
<table>
	<tr>
		<th>アクション</th>
		<th>アクション</th>
		<th>オペレータID</th>
		<th>オペレータ名</th>
		<th>ロール</th>
		<th>ロック</th>
		<th>無効化</th>			
	</tr>
	<logic:present name="userList">
	<logic:iterate id="data" name="userList">
		<tr>
			<td><a href="/WebFormManager/EditUser.do?id=${data.operatorId}">編集</a></td>
			<td><a href="/WebFormManager/EditPassword.do?id=${data.operatorId}">パスワード更新</a></td>
			<td><bean:write name="data" property="operatorId" /></td>
			<td><bean:write name="data" property="operatorName" /></td>
			<td><bean:write name="data" property="roleText" /></td>
			<td><bean:write name="data" property="lockFlag" /></td>
			<td><bean:write name="data" property="disabled" /></td>
		</tr>	
	</logic:iterate>
	
	</logic:present>
</table>
<logic:present name="userList">
	<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>