<%@ 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>アップロード</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">故障</html:link>
| <html:link forward="/bug2/show" name="bug" property="mapping">方針</html:link>
| <html:link forward="/bug3/show" name="bug" property="mapping">解析</html:link>
| <html:link forward="/bug4/show" name="bug" property="mapping">処置</html:link>
| <html:link forward="/bug4/show" name="bug" property="mapping">確認</html:link>
| <html:link forward="/showAll" name="bug" property="mapping">全部</html:link>
| <font size="4"><b>添付</b></font>
| <html:link forward="/bugActivity" name="bug" property="mapping">履歴</html:link>
| <html:link forward="/bugDepndency" name="bug" property="mapping">関連</html:link>
| <html:link forward="/bugAssign" name="bug" property="mapping">担当</html:link>
<!--======================= BugHeader ==============================-->
<%@ include file="/jsp/common/BugHeader.inc" %>
<!--======================= BugHeader ==============================-->
<br>
  <table border="0" cellpadding="3" cellspacing="2">
    <tr> 
      <td class="labelHeader" colspan="7">添付ファイル一覧</td>
    </tr>
    <tr> 
      <td class="label1">No</td>
      <td class="label1">ファイル名</td>
      <td class="label1">size</td>
      <td class="label1">説明</td>
      <td class="label1">添付者</td>
      <td class="label1">添付日</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">削除</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">アップロード</td>
    </tr> 
    <tr> 
      <td class="label2"><font color="red">*</font>ファイル種類：</td>
      <td class="bak1"> 
          <html:radio property="fileType" value="8" />バイナリ
          <html:radio property="fileType" value="1" />テキスト<br>
          <html:radio property="fileType" value="9" />その他(MIME-TYPEを指定してください:
          <html:text property="mimeType" size="30" maxlength="30" />
      </td>
    </tr> 
    <tr> 
      <td class="label2"><font color="red">*</font>説明文：</td>
      <td class="bak1"> 
        <html:text property="info" size="80" maxlength="80" />
      </td>
    </tr>
    <tr>
      <td  class="label2"><font color="red">*</font>ファイル：</td>
      <td class="bak1"> 
        <html:file property="file" size="60" />
      </td>
    </tr>
  </table>
    <html:hidden property="action" value="submit" />
    <html:submit value="添付する" property="submit" />
    <html:reset value="リセットする" />&nbsp;
  </html:form>

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