<%@ page contentType="text/html;charset=Shift_JIS" language="java" %>
<%-- 共通ページヘッダ --%>
<%@ include file="/jsp/common/PageHeader.inc" %>
<jsp:useBean id="UserInfo" scope="session" type="jp.gr.java_conf.bugslife.user.UserInfo" />

<html:html locale="true">
<head>
<!-- ユーザ一覧 -->
<title><bean:message key="userList.title.displayname" /></title>
<html:base/>
<LINK rel="stylesheet" href="style.css">
</head>

<body>
<!--======================= メニュー１０ ==============================-->
<%@ include file="/jsp/common/Menu10.inc" %>
<!--======================= メニュー１０ end ==========================-->
<br>
<font size="4"><b><bean:message key="userList.title.displayname" /></b></font>
| <html:link forward="/dispatchList"><bean:message key="userList.msg1.displayname" /></html:link><br><br>

<html:link forward="/dispatchList/all"><bean:message key="userList.msg5.displayname" /></html:link><br>
<html:link forward="/dispatchList/subsystem"><bean:message key="userList.msg6.displayname" /></html:link><br>
<table cellpadding="3" cellspacing="1">
  <tr class="label3"> 
    <td colspan="7">
      <div align="center"><bean:message key="userList.msg3.displayname" /></div>
    </td>
  </tr>
  <tr class="label3"> 
    <td><bean:message key="uno.displayname" /></td>
    <td><bean:message key="uid.displayname" /></td>
    <td><bean:message key="nickname.displayname" /></td>
    <td><bean:message key="userList.msg4.displayname" /></td>
    <td><bean:message key="role.displayname" /></td>
    <%--
    <td>権限</td>
    --%>
    <td></td>
  </tr>
  <logic:iterate id="user" name="allUsers" scope="application" type="UserInfo" >
    <tr class="bak1"> 
      
      <td><bean:write name="user" property="uno" /></td>
      <td>
        <html:link forward="/user/edit" name="user" property="mapping">
          <bean:write name="user" property="uid" />
        </html:link>
      </td>
      <td><bean:write name="user" property="nickname" /></td>
      <td>
      	<bean:write name="user" property="defSubsystemString" />
      	(<bean:write name="user" property="defFunctionNameString" />)
      </td>
      <td><bean:write name="user" property="roleName" /></td>
    <%--
      <td><bean:write name="user" property="permissionString" filter="false" /></td>
    --%>
      <td>
      <% //ディスパッチ可でまだディスパッチ先になっていなければ、表示
      	if ((! DispatchList.isExist(UserInfo.getUno(), user.getUno())) &&
      	   (user.checkEnableDispatch()))	 { %>
        	<html:link forward="/dispatchList/add" name="user" property="mapping">
          		ディスパッチ先に追加
        	</html:link>
      <%   }  %>
      </td>
      
  </tr>
  </logic:iterate>
</table>
<html:link forward="/user/add"><bean:message key="userList.msg2.displayname" /></html:link><br>

<%-- 共通ページフッダ --%>
<%@ include file="/jsp/common/PageFooter.inc" %>
</body>
</html:html>
