<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
<style type="text/css">
<!--
TABLE.normal TH {text-align:left;}
-->
</style>
</head>

<body>
<form method="POST" action="bpm!createUser.action">
<input type="hidden" name="opt" value="createUser" />
<input name="groupId" /> <input type="submit" onclick="this.form.action='bpm!createGroup.action';" value="建组"/>
<table border=1>
 	<caption>用户列表</caption>
	<tr>
		<td>选择</td>
		<td>ID</td>
		<td>Family Name</td>
		<td>Given Name</td>
		<td>Business Email</td>
	</tr>
	<c:forEach var="user" items="${users}">
	<tr>
		<td><input type="checkbox" name="userIds" value="${user.id}"/></td>
		<td>${user.id}</td>
		<td>${user.familyName}</td>
		<td>${user.givenName}</td>
		<td>${user.businessEmail}</td>
	</tr>
	</c:forEach>
</table>
<br>


<table class="normal">
<tr>
<th>userId:</th><td><input name="userDto.userId"/></td>
</tr>
<tr>
<th>familyName:</th><td><input name="userDto.familyName"/></td>
</tr>
<tr>
<th>givenName:</th><td><input name="userDto.givenName"/></td>
</tr>
<tr>
<th>businessEmail:</th><td><input name="userDto.businessEmail"/></td>
</tr>
<tr>
<td colspan=2><button type="submit">保存</button></td>
</tr>
</table>
</form>

<ol>
<li><a href="${pageContext.request.contextPath}/pages/demo/jbpm/index.jsp">首页</a></li>
</ol>
</body>
</html>