<%@ 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 ==========================-->
<font size="4"><b><bean:message key="userEdit.menu1.displayname" /></b></font>
<%    if (EditUser.getUno() != 0) { 
%>
| <html:link forward="/user/update2"><bean:message key="userEdit.menu2.displayname" /></html:link>
| <html:link forward="/user/update3"><bean:message key="userEdit.menu3.displayname" /></html:link>
<%    }
%>

<font color="red"><html:errors/></font>
<html:form action="/userEdit.do?action=update">
  <TABLE cellpadding="3" cellspacing="1">
    <TR> 
      <TD class="label3" colspan="2">
         <%= EditUser.getNicknameString() %><bean:message key="userEdit.msg1.displayname" />
      </TD>
    </TR>
    <TR> 
      <TD class="label2" ><bean:message key="uno.displayname" /></TD>
      <TD class="bak1"><%= EditUser.getUnoString() %></TD>
    </TR>
    <TR> 
<%    if (EditUser.getUno() == 0) { 
%>
        <td class="label2"><font color="red">*</font><bean:message key="uid.displayname" /></td>
        <td class="bak1"> 
          <html:text property="uid" size="16" maxlength="16" />
        </td>
<%    } else {
%>
        <td class="label2"><bean:message key="uid.displayname" /></td>
        <TD class="bak1">
           <%= EditUser.getUid() %>
        </TD>
<%    }
%>
    </TR>
<%  if (EditUser.getUno() == 0) { 
%>
      <tr> 
        <td class="label2"><font color="red">*</font><bean:message key="password.displayname" /></td>
        <td class="bak1"> 
          <html:password property="newPassword" size="16" maxlength="16" />
        </td>
      </tr>
      <tr> 
        <td class="label2"><font color="red">*</font><bean:message key="password2.displayname" /></td>
        <td class="bak1"> 
          <html:password property="newPassword2" size="16" maxlength="16" />
        </td>
      </tr>
<%  } else {
%>
      <tr> 
        <td class="label2"><bean:message key="oldPassword.displayname" /></td>
        <td class="bak1"> 
          <html:password property="oldPassword" size="16" maxlength="16" />
        </td>
      </tr>
      <tr> 
        <td class="label2"><bean:message key="newPassword.displayname" /></td>
        <td class="bak1"> 
          <html:password property="newPassword" size="16" maxlength="16" />
        </td>
      </tr>
      <tr> 
        <td class="label2"><bean:message key="newPassword2.displayname" /></td>
        <td class="bak1"> 
          <html:password property="newPassword2" size="16" maxlength="16" />
        </td>
      </tr>
<%  }
%>
    <TR> 
      <TD class="label2"> 
        <p><font color="red">*</font><bean:message key="userName.displayname" /></p>
      </TD>
      <TD class="bak1"> 
        <html:text property="name" size="16" maxlength="16" />
      </TD>
    </TR>
    <TR> 
      <TD class="label2"><font color="red">*</font><bean:message key="nickname.displayname" /></TD>
      <TD class="bak1"> 
        <html:text property="nickname" size="40" maxlength="40" />
      </TD>
    </TR>
    <TR> 
      <TD class="label2"><font color="red">*</font><bean:message key="email.displayname" /></TD>
      <TD class="bak1"> 
        <html:textarea property="email" cols="32" rows="8" />
      </TD>
    </TR>
    <TR> 
      <TD class="label2"><bean:message key="company.displayname" /></TD>
      <TD class="bak1"> 
        <html:text property="company" size="40" maxlength="40" />
      </TD>
    </TR>
    <TR> 
      <TD class="label2"><bean:message key="section.displayname" /></TD>
      <TD class="bak1"> 
        <html:text property="section" size="40" maxlength="40" />
      </TD>
    </TR>
    <TR> 
      <TD class="label2"><bean:message key="tel.displayname" /></TD>
      <TD class="bak1"> 
        <html:text property="tel" size="20" maxlength="20" />
      </TD>
    </TR>
    <tr> 
      <td class="label2"><bean:message key="memo.displayname" /></td>
      <td class="bak1"> 
        <html:textarea property="memo" cols="40" rows="4" />
      </td>
    </tr>
    <tr> 
      <td class="label2"><font color="red">*</font><bean:message key="language.displayname" /></td>
      <td class="bak1"> 
         <html:select property="language">
         	<html:option value="1"><bean:message key="japanese.displayname" /></html:option>
         	<html:option value="2"><bean:message key="english.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>
