<%@ 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>ユーザ情報登録変更</title>
<html:base/>
<LINK rel="stylesheet" href="style.css">
</head>
<body>
<!--======================= メニュー１０ ==============================-->
<%@ include file="/jsp/common/Menu10.inc" %>
<!--======================= メニュー１０ end ==========================-->
<font size="4"><b>基本情報</b></font>
<%    if (EditUser.getUno() != 0) { 
%>
| <html:link forward="/user/update2">担当情報</html:link>
| <html:link forward="/user/update3">各種設定</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() %>さんの基本情報
      </TD>
    </TR>
    <TR> 
      <TD class="label2" >ユーザ番号</TD>
      <TD class="bak1"><%= EditUser.getUnoString() %></TD>
    </TR>
    <TR> 
<%    if (EditUser.getUno() == 0) { 
%>
        <td class="label2"><font color="red">*</font>アカウント： </td>
        <td class="bak1"> 
          <html:text property="uid" size="16" maxlength="16" />
        </td>
<%    } else {
%>
        <td class="label2">アカウント </td>
        <TD class="bak1">
           <%= EditUser.getUid() %>
        </TD>
<%    }
%>
    </TR>
<%  if (EditUser.getUno() == 0) { 
%>
      <tr> 
        <td class="label2"><font color="red">*</font>パスワード</td>
        <td class="bak1"> 
          <html:password property="newPassword" size="16" maxlength="16" />
        </td>
      </tr>
      <tr> 
        <td class="label2"><font color="red">*</font>パスワード<br>（再入力）</td>
        <td class="bak1"> 
          <html:password property="newPassword2" size="16" maxlength="16" />
        </td>
      </tr>
<%  } else {
%>
      <tr> 
        <td class="label2">旧パスワード</td>
        <td class="bak1"> 
          <html:password property="oldPassword" size="16" maxlength="16" />
        </td>
      </tr>
      <tr> 
        <td class="label2">新パスワード</td>
        <td class="bak1"> 
          <html:password property="newPassword" size="16" maxlength="16" />
        </td>
      </tr>
      <tr> 
        <td class="label2">新パスワード<br>（再入力）</td>
        <td class="bak1"> 
          <html:password property="newPassword2" size="16" maxlength="16" />
        </td>
      </tr>
<%  }
%>
    <TR> 
      <TD class="label2"> 
        <p><font color="red">*</font>氏　名</p>
      </TD>
      <TD class="bak1"> 
        <html:text property="name" size="16" maxlength="16" />
      </TD>
    </TR>
    <TR> 
      <TD class="label2"><font color="red">*</font>略　称</TD>
      <TD class="bak1"> 
        <html:text property="nickname" size="40" maxlength="40" />
      </TD>
    </TR>
    <TR> 
      <TD class="label2"><font color="red">*</font>メールアドレス</TD>
      <TD class="bak1"> 
        <html:textarea property="email" cols="32" rows="8" />
      </TD>
    </TR>
    <TR> 
      <TD class="label2">会社名</TD>
      <TD class="bak1"> 
        <html:text property="company" size="40" maxlength="40" />
      </TD>
    </TR>
    <TR> 
      <TD class="label2">部署名</TD>
      <TD class="bak1"> 
        <html:text property="section" size="40" maxlength="40" />
      </TD>
    </TR>
    <TR> 
      <TD class="label2">電話番号</TD>
      <TD class="bak1"> 
        <html:text property="tel" size="20" maxlength="20" />
      </TD>
    </TR>
    <tr> 
      <td class="label2">メモ</td>
      <td class="bak1"> 
        <html:textarea property="memo" cols="40" rows="4" />
      </td>
    </tr>
    <tr> 
      <td class="label2"><font color="red">*</font>使用言語</td>
      <td class="bak1"> 
         <html:select property="language">
         	<html:option value="1">日本語(Japanese)</html:option>
         	<html:option value="2">英語(English)</html:option>
         </html:select>
      </td>
    </tr>
    <tr> 
      <td colspan="2">
        <html:submit value="投入する" property="submit" />
        <html:reset value="リセットする" />
        <html:link forward="/user">一覧へ戻る</html:link><br>
      </td>
    </tr>
  </table>
</html:form>

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