<%@ page contentType="text/html;charset=Shift_JIS" language="java" %>
<%-- 共通ページヘッダ --%>
<%@ include file="/jsp/common/PageHeader.inc" %>
<%-- bean --%>
<jsp:useBean id="bug" scope="session" type="Bug" />
<jsp:useBean id="ccs" scope="session" type="java.util.Collection" />

<html:html locale="true">
<head>
<!-- 担当者一覧 -->
<title><bean:message key="assign.title.displayname" /></title>
<html:base/>
<LINK rel="stylesheet" href="style.css">
<SCRIPT LANGUAGE = "JavaScript" SRC="common.js"></SCRIPT>
</head>

<body>
<!--======================= メニュー ==============================-->
<%@ include file="/jsp/common/Menu2.inc" %>
<!--======================= メニュー end ==========================-->
<br>
<html:link forward="/bug1/show" name="bug" property="mapping"><bean:message key="bug.trouble.displayname" /></html:link>
| <html:link forward="/bug2/show" name="bug" property="mapping"><bean:message key="bug.judge.displayname" /></html:link>
| <html:link forward="/bug3/show" name="bug" property="mapping"><bean:message key="bug.analyze.displayname" /></html:link>
| <html:link forward="/bug4/show" name="bug" property="mapping"><bean:message key="bug.update.displayname" /></html:link>
| <html:link forward="/bug5/show" name="bug" property="mapping"><bean:message key="bug.confirm.displayname" /></html:link>
| <html:link forward="/showAll" name="bug" property="mapping"><bean:message key="bug.all.displayname" /></html:link>
| <html:link forward="/bugAttachment/show" name="bug" property="mapping"><bean:message key="bug.attach.displayname" /></html:link>
| <html:link forward="/bugActivity" name="bug" property="mapping"><bean:message key="bug.history.displayname" /></html:link>
| <html:link forward="/bugDepndency" name="bug" property="mapping"><bean:message key="bug.depend.displayname" /></html:link>
| <font size="4"><b><bean:message key="bug.assign.displayname" /></b></font>
<!--======================= BugHeader ==============================-->
<%@ include file="/jsp/common/BugHeader.inc" %>
<!--======================= BugHeader ==============================-->
<html:form action="/bugAssign.do?action=submit">
<font color="red"><html:errors/></font>
<font color="blue"><bean:write name="bugAssignForm" property="message" /></font>
<table border="0" cellpadding="3" cellspacing="2">
  <tr align="center">
  <!-- 担当者 -->
    <td colspan="5" class="labelHeader"><bean:message key="assign.title2.displayname" /></td>
  </tr>
  <tr>
    <td class="label1"><bean:message key="registDate.displayname" /></td>
    <td class="bak1" colspan="4"><bean:write name="bug" property="registDateString" /></td>
  </tr>
  <tr>
    <!-- 発行者、発行日 -->
    <td class="label1"><bean:message key="issuDate.displayname" /></td>
    <td class="bak1"><bean:write name="bug" property="issuDateString" /></td>
    <td class="label1"><bean:message key="issuer.displayname" /></td>
    <td class="bak1"><bean:write name="bug" property="issuerName" /></td>
    <td class="bak1">
    <%--
      <html:select property="issuer">
         <html:options collection="allUsers2" property="uno" labelProperty="nickname"/>
      </html:select>
    --%>
    </td>
  </tr>
  <tr>
    <!-- 承認者、承認日 -->
    <td class="label1"><bean:message key="authDate.displayname" /></td>
    <td class="bak1"><bean:write name="bug" property="authDateString" /></td>
    <td class="label1"><bean:message key="auther.displayname" /></td>
    <td class="bak1"><bean:write name="bug" property="autherName" /></td>
    <td class="bak1">
    <%--
      <html:select property="auther">
         <html:options collection="allUsers2" property="uno" labelProperty="nickname"/>
      </html:select>
    --%>
    </td>
  </tr>
  <tr>
    <!-- 解析者、解析日 -->
    <td class="label1"><bean:message key="analizeDate.displayname" /></td>
    <td class="bak1"><bean:write name="bug" property="analizeDateString" /></td>
    <td class="label1"><bean:message key="analyst.displayname" /></td>
    <td class="bak1"><bean:write name="bug" property="analystName" /></td>
    <td class="bak1">
    <%--
      <html:select property="analyst">
         <html:options collection="allUsers2" property="uno" labelProperty="nickname"/>
      </html:select>
    --%>
    </td>
  </tr>
  <tr>
    <!-- 修正者、修正日 -->
    <td class="label1"><bean:message key="bugUpdateDate.displayname" /></td>
    <td class="bak1"><bean:write name="bug" property="bugUpdateDateString" /></td>
    <td class="label1"><bean:message key="updater.displayname" /></td>
    <td class="bak1"><bean:write name="bug" property="updaterName" /></td>
    <td class="bak1">
    <%--
      <html:select property="updater">
         <html:options collection="allUsers2" property="uno" labelProperty="nickname"/>
      </html:select>
    --%>
    </td>
  </tr>
  <tr>
    <!-- 確認者、確認日 -->
    <td class="label1"><bean:message key="comfirmDate.displayname" /></td>
    <td class="bak1"><bean:write name="bug" property="comfirmDateString" /></td>
    <td class="label1"><bean:message key="comfirmer.displayname" /></td>
    <td class="bak1"><bean:write name="bug" property="comfirmerName" /></td>
    <td class="bak1">
    <%--
      <html:select property="comfirmer">
         <html:options collection="allUsers2" property="uno" labelProperty="nickname"/>
      </html:select>
    --%>
    </td>
  </tr>
  <tr>
    <!-- 開放者、開放日 -->
    <td class="label1"><bean:message key="releaseDate.displayname" /></td>
    <td class="bak1" colspan="4"><bean:write name="bug" property="releaseDateString" /></td>
  </tr>
</table>

<table border="0" cellpadding="3" cellspacing="2">
  <tr>
    <tr align="center"> 
      <td colspan="4" class="labelHeader"><bean:message key="cc.displayname" /></td>
    </tr>
      <td class="bak1" colspan="3">
         <table border="0" cellpadding="0" cellspacing="0">
         <tr>
           <html:hidden name="bugAssignForm" property="ccRequest" value="" />
           <td rowspan="2">
             <!-- 削除CC -->
             <html:select property="delCcUno" multiple="true" size="10">
               <!-- 削除CC選択肢 -->
               <html:options collection="ccs" property="uno" labelProperty="nickname"/>
             </html:select>
           </td>
           <td>
             <html:button property="addCcRequest" onclick="doSubmit(null,'add')"> 
             <bean:message key="addCc.displayname" />
             </html:button>
           </td>
           <td rowspan="2">
             <!-- 追加CC -->
             <html:select property="addCcUno" multiple="true" size="10">
               <!-- 追加CC選択肢(全ユーザ) -->
               <html:options collection="allUsers" property="uno" labelProperty="nickname"/>
             </html:select>
           </td>
         </tr>
         <tr>
           <td>
             <html:button property="delCcRequest" onclick="doSubmit(null,'del')"> 
             <bean:message key="delCc.displayname" />
             </html:button>
           </td>
         </tr>
         </table>
      </td>
    </tr>
</table>
    <html:hidden name="bug" property="bno" /> 
  <!-- 投入-->
    <html:button property="dummy" onclick="doSubmit()"> 
    <bean:message key="enter.displayname" />
    </html:button>
  <!-- リセット-->
    <html:reset>
    <bean:message key="reset.displayname" />
    </html:reset>
    <br>
  </html:form>

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