<%@ 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>ディスパッチ先一覧</title>
<html:base/>
<LINK rel="stylesheet" href="style.css">
</head>

<body>
<!--======================= メニュー１０ ==============================-->
<%@ include file="/jsp/common/Menu10.inc" %>
<!--======================= メニュー１０ end ==========================-->
<br>
<html:form action="/dispatchList.do?action=update">
<html:link forward="/user">ユーザ一覧</html:link>
| <font size="4"><b>ディスパッチ先</b></font>
<br>
表示順は0〜9999まで。小さいほど先頭に表示されます。
<font color="red"><html:errors/></font>
<table cellpadding="3" cellspacing="1">
  <tr class="label3"> 
    <td colspan="6">
      <div align="center">ディスパッチ先一覧</div>
    </td>
  </tr>
  <tr class="label3"> 
    <td>表示順</td>
    <td>略称</td>
    <td>担当</td>
    <td>役割</td>
    <td>ディスパッチ</td>
    <td>削除</td>
  </tr>
  <logic:iterate id="dispatch" name="dispatchList" scope="session" type="DispatchList" >
    <tr class="bak1"> 
      
      <td><html:text property="dispNo"  name="dispatch" size="5" maxlength="4"/></td>
      <td><bean:write name="dispatch" property="user.nickname" /></td>
      <td>
      	<bean:write name="dispatch" property="user.defSubsystemString" />
      	(<bean:write name="dispatch" property="user.defFunctionNameString" />)
      </td>
      <td><bean:write name="dispatch" property="user.roleName" /></td>
      <td class="bak1c"><bean:write name="dispatch" property="enableDispatchString" /></td>
      <td>
      <% if (UserInfo.getUno() != dispatch.getDispatchUno()) {
      %>
        <html:link forward="/dispatchList/delete" name="dispatch" property="mapping">
          削除
        </html:link>
      <% }
      %>

      </td>
  </tr>
  </logic:iterate>
    <tr> 
      <td colspan="3">
        <html:submit value="表示順を更新する" property="submit" />
      </td>
    </tr>
</table>
</html:form>

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