<%@ 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>
| <font size="4"><b><bean:message key="userEdit.menu2.displayname" /></b></font>
| <html:link forward="/user/update3"><bean:message key="userEdit.menu3.displayname" /></html:link>
<font color="red"><html:errors/></font>
<html:form action="/userEdit2.do?action=update">
  <TABLE cellpadding="3" cellspacing="1">
    <TR> 
      <TD class="label3" colspan="2">
         <%= EditUser.getNicknameString() %> <bean:message key="userEdit2.msg1.displayname" />
      </TD>
    </TR>
    <tr> 
      <td class="label2"><font color="red">*</font><bean:message key="role.displayname" /></td>
      <td class="bak1"> 
         <html:select property="role">
			<html:option value="1">試験者</html:option>
			<html:option value="2">リーダ</html:option>
			<html:option value="4">開発者</html:option>
			<html:option value="6">構成管理</html:option>
			<html:option value="7">管理者</html:option>
			<html:option value="8">ユーザ</html:option>
			<html:option value="99">その他</html:option>
         </html:select>
      </td>
    </tr>
    <tr> 
      <td class="label2"><bean:message key="defSubsystem.displayname" /></td>
      <td class="bak1"> 
         <html:select property="defSubsystem">
           <html:options collection="subsystems" property="code" labelProperty="name"/>
         </html:select>
      </td>
    </tr>
    <tr> 
      <td class="label2"><bean:message key="defFunctionName.displayname" /></td>
      <td class="bak1"> 
         <html:select property="defFunctionName">
           <html:options collection="functions" property="code" labelProperty="name"/>
         </html:select>
      </td>
    </tr>
    <tr> 
      <td class="label2"><bean:message key="defPno.displayname" /></td>
      <td class="bak1"> 
         <html:select property="defPno">
           <html:options collection="processNames" property="code" labelProperty="name"/>
         </html:select>
      </td>
    </tr>
    <tr> 
      <td class="label2"> <bean:message key="defLocation.displayname" /></td>
      <td class="bak1"> 
         <html:select property="defLocation">
           <html:options collection="locations" property="code" labelProperty="name"/>
         </html:select>
      </td>
    </tr>
    <tr> 
      <td class="label2"><bean:message key="permission.displayname" /></td>
      <td class="bak1"> 
        <html:checkbox property="userPermission" />
        <bean:message key="userPermission.displayname" />
        <html:checkbox property="testerPermission" />
        <bean:message key="testerPermission.displayname" />
        <html:checkbox property="developerPermission" />
        <bean:message key="developerPermission.displayname" /><br>
<%    if (EditUser.isForgiven(UserInfo.PROJECT_MANAGER)) { 
%>
        <html:checkbox property="projectManagerPermission" />
        <bean:message key="projectManagerPermission.displayname" />
        <html:checkbox property="systemManagerPermission" />
        <bean:message key="systemManagerPermission.displayname" />
<%    }
%>
      </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>
