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

<html:html locale="true">
<head>
<!-- ユーザ情報登録変更(各種設定) -->
<title><bean:message key="userEdit.title.displayname" /></title>
<html:base/>
<LINK rel="stylesheet" href="style.css">
</head>
<body>
<!--======================= メニュー１０ ==============================-->
<%@ include file="/jsp/common/Menu10.inc" %>
<!--======================= メニュー１０ end ==========================-->
<html:link forward="/user/edit" name="EditUser" property="mapping"><bean:message key="userEdit.menu1.displayname" /></html:link>
| <html:link forward="/user/update2"><bean:message key="userEdit.menu2.displayname" /></html:link>
| <font size="4"><b><bean:message key="userEdit.menu3.displayname" /></b></font>
<font color="red"><html:errors/></font>
<html:form action="/userEdit3.do?action=update">
  <TABLE cellpadding="3" cellspacing="1">
    <TR>
      <TD class="label3" colspan="2">
         <%= EditUser.getNicknameString() %><bean:message key="userEdit3.msg1.displayname" />
      </TD>
    </TR>
    <tr> 
      <td class="label2"><bean:message key="subscriprion.displayname" /></td>
      <td class="bak1"> 
        <html:checkbox property="subscriprion0" />
        <bean:message key="subscriprion0.displayname" />
        <html:checkbox property="subscriprion1" />
        <bean:message key="subscriprion1.displayname" />
        <html:checkbox property="subscriprion2" />
        <bean:message key="subscriprion2.displayname" /><br>
        <html:checkbox property="subscriprion3" />
        <bean:message key="subscriprion3.displayname" />
        <html:checkbox property="subscriprion4" />
        <bean:message key="subscriprion4.displayname" />
        <html:checkbox property="subscriprion5" />
        <bean:message key="subscriprion5.displayname" />
      </td>
    </tr>
    <tr> 
      <td class="label2"><bean:message key="mailSubsystem.displayname" /></td>
      <td class="bak1"> 
         <html:select property="mailSubsystem">
           <html:options collection="subsystems" property="code" labelProperty="name"/>
         </html:select>
      </td>
    </tr>
    <tr> 
      <td class="label2"><bean:message key="mailFunctionName.displayname" /></td>
      <td class="bak1"> 
         <html:select property="mailFunctionName">
           <html:options collection="functions" property="code" labelProperty="name"/>
         </html:select>
      </td>
    </tr>
    <tr> 
      <td class="label2"><bean:message key="enableDispatch.displayname" /></td>
      <td class="bak1"> 
         <html:select property="enableDispatch">
         	<html:option value="1"><bean:message key="enableDispatch.enable.displayname" /></html:option>
         	<html:option value="0"><bean:message key="enableDispatch.disable.displayname" /></html:option>
         </html:select>
      </td>
    </tr>
<%    if (EditUser.isForgiven(UserInfo.PROJECT_MANAGER)) { 
%>
    <tr> 
      <td class="label2"><bean:message key="enableLogin.displayname" /></td>
      <td class="bak1"> 
         <html:select property="enableLogin">
         	<html:option value="1"><bean:message key="enableLogin.enable.displayname" /></html:option>
         	<html:option value="0"><bean:message key="enableLogin.disable.displayname" /></html:option>
         </html:select>
      </td>
    </tr>
<%    }
%>
    <tr> 
      <td colspan="2">
	  <!-- 投入-->
	    <html:submit property="dummy" onclick="doSubmit()"> 
	    <bean:message key="enter.displayname" />
	    </html:submit>
	  <!-- リセット-->
	    <html:reset>
	    <bean:message key="reset.displayname" />
	    </html:reset>
	  <!-- 一覧へ戻る-->
        <html:link forward="/user">
        <bean:message key="userEdit.back.displayname" />
        </html:link><br>
      </td>
    </tr>
  </table>
</html:form>

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