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

<html:html locale="true">
<head>
<title><bean:message key="detail3.tile.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>
| <font size="4"><b><bean:message key="detail3.tile.displayname" /></b></font>
| <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>
| <html:link forward="/bugAssign" name="bug" property="mapping"><bean:message key="bug.assign.displayname" /></html:link>
<font color="red"><html:errors/></font>
<!--======================= BugHeader ==============================-->
<%@ include file="/jsp/common/BugHeader.inc" %>
<!--======================= BugHeader ==============================-->
<html:form action="/bugDetail3.do?action=submit">
  <table border="0" cellpadding="3" cellspacing="2">
  	<!-- 故障原因 -->
    <tr> 
      <td class="labelHeader" colspan="4"><bean:message key="detail3.category1.displayname" /></td>
    </tr> 
    <tr> 
      <td class="label2"><bean:message key="resolution.displayname" /></td>
      <td class="bak1"> 
        <html:select property="resolution">
           <html:options collection="resolutions" property="code" labelProperty="nameLabel"/>
         </html:select>
      </td>
      <td class="label2"><bean:message key="scid.displayname" /></td>
      <td class="bak1"> 
        <html:text property="scid" size="14" maxlength="12" />
      </td>
    </tr>
    <!-- 解析内容 -->
    <tr> 
      <td class="bak1"colspan="4"> 
        <html:textarea property="addText" cols="80" rows="10" />
      </td>
    </tr> 
    <tr> 
      <td class="label2"><bean:message key="releaseSchDate.displayname" /></td>
      <td class="bak1"colspan="3">
        <html:text property="releaseSchDateString" size="20" maxlength="20" />
      </td>
    </tr>
  </table>
  <!-- エラー分析 -->
  <table border="0" cellpadding="3" cellspacing="2">
    <tr> 
      <td colspan="4" class="labelHeader"><bean:message key="detail3.category2.displayname" /></td>
    </tr>
    <tr> 
      <td class="label2"><bean:message key="issuPno.displayname" /></td>
      <td class="bak1">
        <bean:write name="bug" property="issuPnoName" />
      </td>
      <td class="label2"><bean:message key="errorPoint.displayname" /></td>
      <td class="bak1">
        <html:select property="errorPoint">
          <html:options collection="errorPoints" property="code" labelProperty="name"/>
         </html:select>
      </td>
    </tr>
    <tr>
      <td class="label2"><bean:message key="trainPno.displayname" /></td>
      <td class="bak1"> 
        <html:select property="trainPno">
            <html:options collection="processNames" property="code" labelProperty="name"/>
         </html:select>
      </td>
      <td class="label2"><bean:message key="errorType.displayname" /></td>
      <td class="bak1"> 
        <html:select property="errorType">
           <html:options collection="errorTypes" property="code" labelProperty="name"/>
         </html:select>
      </td>
    </tr>
    <tr> 
      <td class="label2"><bean:message key="shouldFindPno.displayname" /></td>
      <td class="bak1"> 
        <html:select property="shouldFindPno">
           <html:options collection="processNames" property="code" labelProperty="name"/>
         </html:select>
      </td>
      <td class="label2"><bean:message key="errorCause.displayname" /></td>
      <td class="bak1"> 
        <html:select property="errorCause">
           <html:options collection="errorCauses" property="code" labelProperty="name"/>
         </html:select>
      </td>
    </tr>
    <tr> 
      <td class="label2"><bean:message key="errorDelayReason.displayname" /></td>
      <td class="bak1" colspan="3"> 
        <html:select property="errorDelayReason">
           <html:options collection="errorDelayReasons" property="code" labelProperty="name"/>
         </html:select>
      </td>
    </tr>
  </table>
  <p> 
  <!-- 自分で修正する(repairedSelf) -->
    <html:radio property="submitType" value="repairedSelf" />
    <bean:message key="repairedSelf.msg.displayname" /><br>
  <!-- ステータスを修正中にしてディスパッチ(requestUpdater) -->
    <html:radio property="submitType" value="repaired" />
    <bean:message key="requestUpdater.msg1.displayname" />
    <html:select property="requestUpdater">
      <html:options collection="dispatchList" property="dispatchUno" labelProperty="user.nickname"/>
    </html:select>
    <bean:message key="requestUpdater.msg2.displayname" /><br>
  <!-- ステータスを解析中にしてディスパッチ(investigation) -->
    <html:radio property="submitType" value="investigation" />
    <bean:message key="investigation.msg1.displayname" />
    <html:select property="requestAnalyst">
      <html:options collection="dispatchList" property="dispatchUno" labelProperty="user.nickname"/>
    </html:select>
    <bean:message key="investigation.msg2.displayname" /><br>
  <!-- ステータスを<b>このまま</b>にして更新する(same) -->
    <html:radio property="submitType" value="same" />
    <bean:message key="same.msg.displayname" /><br>
  <!-- ステータスを<b>このまま</b>にして、ステータス状況をにする(statusWhitebord) -->
    <html:radio property="submitType" value="statusWhitebord" />
    <bean:message key="statusWhitebord.msg1.displayname" /><br>
    <html:text property="requestStatusWhitebord" size="80" maxlength="80" />
    <bean:message key="statusWhitebord.msg2.displayname" /><br>
    <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>
    <!-- メールを送信しない -->
    <html:checkbox property="dontSendMail" />
    <bean:message key="dontSendMail.displayname" />
    <br>
  </html:form>
  <a name="content"></a>
  <table border="0" cellpadding="3" cellspacing="2">
    <logic:iterate id="text" name="bug" property="allAddText" type="AddText" >
      <tr> 
        <td class="bak1">
          【<bean:write name="text" property="textTypeString" />】<a href="mailto:<%= text.getEntryUmail() %>" ><bean:write name="text" property="entryUname" /></a>(<bean:write name="text" property="entryDateString" />)
        </td>
      </tr> 
      <tr> 
        <td>
          <blockquote><bean:write name="text" property="contentString" filter="false"/></blockquote>
        </td> 
      </tr> 
    </logic:iterate>
  </table>

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