<%@ 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="detail1.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 ==========================-->
<!--故障メニュー-->
<html:form action="/bugDetail1.do?action=submit">
<%  if (bug.getBno() == 0) {   //新規の場合
%>
<font size="4"><b><bean:message key="detail1.tile2.displayname" /></b></font>
<%  } else {                   //新規でない場合
%>
<font size="4"><b><bean:message key="detail1.tile.displayname" /></b></font>
| <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>
| <html:link forward="/bugAssign" name="bug" property="mapping"><bean:message key="bug.assign.displayname" /></html:link>
<%  }
%>
<%  if (bug.getBno() != 0) {   //新規でない場合
%>
<!--======================= BugHeader ==============================-->
<%@ include file="/jsp/common/BugHeader.inc" %>
<!--======================= BugHeader ==============================-->
<%  }
%>
<br>
<font color="red"><html:errors/></font>
  <table border="0" cellpadding="3" cellspacing="2">
	<!-- 識別情報 -->
    <tr> 
      <td colspan="6" class="labelHeader"><bean:message key="detail1.category1.displayname" /></td>
    </tr>
    <tr>
      <td class="label2"><bean:message key="bno.displayname" /></td>
      <td class="bak1"><bean:write name="bug" property="bnoString" /></td>
      <td class="label2"><font color="red">*</font><bean:message key="issuPno.displayname" /></td>
      <td class="bak1"> 
         <html:select property="issuPno">
        <%--   <html:options collection="processNames" property="code" labelProperty="nameLabel"/> --%>
           <html:options collection="processNames" property="code" labelProperty="name"/>
         </html:select>
      </td>
      <td class="label2"><bean:message key="bid.displayname" /></td>
      <td class="bak1"><bean:write name="bug" property="bid" /></td>
    </tr>
    <tr>
      <td class="label2"><font color="red">*</font><bean:message key="title.displayname" /></td>
      <td nowrap class="bak1" colspan="5"> 
        <html:text property="title" size="80" maxlength="80" />
      </td>
    </tr>
    <tr>
      <td class="label2" width="70"><bean:message key="tid.displayname" /></td>
      <td class="bak1" colspan="2"> 
        <html:text property="tid" size="32" maxlength="32" />
      </td>
      <td class="label2" width="70"><bean:message key="scid.displayname" /></td>
      <td class="bak1" colspan="2"> 
        <html:text property="scid" size="32" maxlength="32" />
      </td>
    </tr>
  </table>
  <!-- 発生環境情報 -->
  <table border="0" cellpadding="3" cellspacing="2">
    <tr align="center"> 
      <td colspan="4" class="labelHeader"><bean:message key="detail1.category2.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="name"/>
         </html:select>
      </td>
      <td class="label2"><font color="red">*</font><bean:message key="issuDate.displayname" /></td>
      <td class="bak1"> 
        <html:text property="issuDateString" size="20" maxlength="22" />
      </td>
    </tr>
<!-- 追加行 -->
    <tr> 
      <td class="label2"><bean:message key="severity.displayname" /></td>
      <td class="bak1"> 
         <html:select property="severity">
           <html:options collection="severitys" property="code" labelProperty="name"/>
         </html:select>
      </td>
      <td class="label2"> </td>
      <td class="bak1"> </td>
    </tr>
<%-- --%>
    <tr>
      <td class="label2"><bean:message key="location.displayname" /></td>
      <td class="bak1"> 
         <html:select property="location">
           <html:options collection="locations" property="code" labelProperty="name"/>
         </html:select>
      </td>
      <td class="label2"><bean:message key="htmlVersion.displayname" /></td>
      <td class="bak1"> 
         <html:select property="htmlVersion">
           <html:options collection="htmlVersions" property="code" labelProperty="name"/>
         </html:select>
      </td>
    </tr>
    <tr>
      <td class="label2"><bean:message key="browser.displayname" /></td>
      <td class="bak1"> 
         <html:select property="browser">
           <html:options collection="browsers" property="code" labelProperty="name"/>
         </html:select>
      </td>
      <td class="label2"><bean:message key="dbVersion.displayname" /></td>
      <td class="bak1"> 
         <html:select property="dbVersion">
           <html:options collection="dbVersions" property="code" labelProperty="name"/>
         </html:select>
      </td>
    <tr>
      <td class="label2"> <bean:message key="os.displayname" /></td>
      <td class="bak1"> 
         <html:select property="os">
           <html:options collection="oss" property="code" labelProperty="name"/>
         </html:select>
      </td>
      <td class="label2"><bean:message key="appVersion.displayname" /></td>
      <td class="bak1"> 
         <html:select property="appVersion">
           <html:options collection="appVersions" property="code" labelProperty="name"/>
         </html:select>
      </td>
    <tr> 
      <td class="label2"> </td>
      <td class="bak1"> </td>
      <td class="label2"> <bean:message key="specVersion.displayname" /></td>
      <td class="bak1">
         <html:select property="specVersion">
           <html:options collection="specVersions" property="code" labelProperty="name"/>
         </html:select>
      </td>
    </tr> 
<%-- --%>

  </table>
  <!-- 故障内容 -->
  <table border="0" cellpadding="3" cellspacing="2">
    <tr> 
      <td colspan="4" class="labelHeader"> 
        <bean:message key="detail1.category3.displayname" />
      </td>
    </tr> 
    <tr> 
      <td class="label2"><bean:message key="subsystem.displayname" /></td>
      <td class="bak1"> 
         <html:select property="subsystem">
           <html:options collection="subsystems" property="code" labelProperty="name"/>
         </html:select>
      </td>
      <td class="label2"><bean:message key="functionName.displayname" /></td>
      <td class="bak1"> 
         <html:select property="functionName">
           <html:options collection="functions" property="code" labelProperty="name"/>
         </html:select>
      </td>
    </tr> 
    <tr> 
      <td class="label2"><bean:message key="screen.displayname" /></td>
      <td colspan="3" class="bak1"> 
        <html:text property="screen" size="80" maxlength="80" />
      </td>
    </tr> 
    <tr> 
      <td colspan="4" class="bak1"> 
        <html:textarea property="troubleSituation" cols="80" rows="30" />
      </td>
    </tr> 
  </table>
  <p>
	<!-- この障害を<b>新規</b>として申告する(newAuther) -->
    <html:radio property="submitType" value="newAuther" />
    <bean:message key="newAuther.msg1.displayname" />
    <html:select property="requestAuther">
      <html:options collection="dispatchList" property="dispatchUno" labelProperty="user.nickname"/>
    </html:select>
    <bean:message key="newAuther.msg2.displayname" /><br>
    
    <!--ステータスを<b>解析中</b>にしてへディスパッチする。(方針は後で) (analize)-->
    <html:radio property="submitType" value="analize" />
    <bean:message key="analize.msg1.displayname" />
    <html:select property="requestAnalyst">
      <html:options collection="dispatchList" property="dispatchUno" labelProperty="user.nickname"/>
    </html:select>
    <bean:message key="analize.msg2.displayname" /><br>
    
	<!-- この障害を<b>新規</b>として申告する （承認者不明）-->
    <html:radio property="submitType" value="new" />
    <bean:message key="new.msg1.displayname" /><br>
    
    <!-- この障害を<b>未確認</b>として登録しておく -->
    <html:radio property="submitType" value="unconfirmed" />
    <bean:message key="unconfirmed.msg1.displayname" /><br>

<%  if (bug.getBno() != 0) {   //新規でない場合のみ表示
%>
	<!-- ステータスを<b>このまま</b>にして更新する -->
    <html:radio property="submitType" value="same" />
    <bean:message key="same.msg.displayname" /><br>
    <!-- ステータスを<b>このまま</b>にして、ステータス状況を更新する -->
    <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>

<%  if (bug.getBno() != 0) {   //新規でない場合のみ表示
%>

  <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() %>" ><%= text.getEntryUname() %></a>(<%= text.getEntryDateString() %>)
        </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>
