<%@ 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="attach.title.displayname" /></title>
<html:base/>
<LINK rel="stylesheet" href="style.css">
</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>
| <font size="4"><b><bean:message key="bug.attach.displayname" /></b></font>
| <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>
<!--======================= BugHeader ==============================-->
<%@ include file="/jsp/common/BugHeader.inc" %>
<!--======================= BugHeader ==============================-->
<br>
  <table border="0" cellpadding="3" cellspacing="2">
    <tr> 
    <!-- 添付ファイル一覧 -->
      <td class="labelHeader" colspan="7"><bean:message key="attach.title.displayname" /></td>
    </tr>
    <tr> 
      <td class="label1"><bean:message key="no.displayname" /></td>
      <td class="label1"><bean:message key="filename.displayname" /></td>
      <td class="label1"><bean:message key="size.displayname" /></td>
      <td class="label1"><bean:message key="description.displayname" /></td>
      <td class="label1"><bean:message key="attach.user.displayname" /></td>
      <td class="label1"><bean:message key="attach.date.displayname" /></td>
      <td class="label1">　</td>
    </tr>
    <logic:iterate id="attach" name="bug" property="attachments" type="Attachment" >
      <tr> 
        <td class="bak1">
          <bean:write name="attach" property="ano" />
        </td>
        <td class="bak1a">
          <html:link forward="/bugAttachment/download" name="attach" property="mapping">
            <bean:write name="attach" property="fileName" />
          </html:link>
        </td>
        <td class="bak1">
          <bean:write name="attach" property="sizeString" />
        </td>
        <td class="bak1a">
          <bean:write name="attach" property="info" />
        </td>
        <td class="bak1">
          <bean:write name="attach" property="updateUname" />
        </td>
        <td class="bak1">
          <bean:write name="attach" property="updateDateString" />
        </td>
        <td class="bak1">
          <html:link forward="/bugAttachment/delete" name="attach" property="mapping">
          <bean:message key="delete.displayname" />
          </html:link>
        </td>
      </tr>
    </logic:iterate>
  </table>
  <br>
  <html:form action="bugAttachment.do?action=submit" enctype="multipart/form-data">
  <font color="red"><html:errors/></font>
  <font color="blue"><bean:write name="bugAttachmentForm" property="message" /></font>
  <table border="0" cellpadding="3" cellspacing="2">
    <tr>
    <!-- アップロード -->
      <td class="labelHeader" colspan="2"><bean:message key="upload.displayname" /></td>
    </tr> 
    <tr> 
      <td class="label2"><font color="red">*</font><bean:message key="fileType.displayname" /></td>
      <td class="bak1"> 
          <html:radio property="fileType" value="8" /><bean:message key="fileType.binary.displayname" />
          <html:radio property="fileType" value="1" /><bean:message key="fileType.text.displayname" /><br>
          <html:radio property="fileType" value="9" /><bean:message key="fileType.other.displayname" />
          <html:text property="mimeType" size="30" maxlength="30" />
      </td>
    </tr> 
    <tr> 
      <td class="label2"><font color="red">*</font><bean:message key="description.displayname" /></td>
      <td class="bak1"> 
        <html:text property="info" size="80" maxlength="80" />
      </td>
    </tr>
    <tr>
      <td  class="label2"><font color="red">*</font><bean:message key="file.displayname" /></td>
      <td class="bak1"> 
        <html:file property="file" size="60" />
      </td>
    </tr>
  </table>
    <html:hidden property="action" value="submit" />
  <!-- 投入-->
    <html:submit property="submit">
    <bean:message key="attach.upload.displayname" />
    </html:submit>
  <!-- リセット-->
    <html:reset>
    <bean:message key="reset.displayname" />
    </html:reset>
  </html:form>

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