<%@ 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>
| <html:link forward="/bugAttachment/show" name="bug" property="mapping">添付</html:link>
| <font size="4"><b>履歴</b></font>
| <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="5">変更履歴</td>
    </tr>
    <tr> 
      <td class="label1">誰が</td>
      <td class="label1">何を</td>
      <td class="label1">新しい値</td>
      <td class="label1">古い値</td>
      <td class="label1">いつ</td>
    </tr>
<%
     String date = "";
     String udate = "";
     String uname = "";
%>
    <logic:iterate id="activity" name="bug" property="bugActivitys" type="BugActivity" >
      <tr> 
<%
     if (date.equals(activity.getUpdateDateString())) {
	     uname = "";
	     udate = "";
	 } else {
	     uname = activity.getUpdateUname();
	     udate = activity.getUpdateDateString();
	     date = activity.getUpdateDateString();
	 }
%>
        <td class="bak1">
<%--          <bean:write name="activity" property="updateUname" /> --%>
          <%= uname %>
        </td>
        <td class="bak1">
          <bean:write name="activity" property="name" />
        </td>
        <td class="bak1">
          <bean:write name="activity" property="newValue" />
        </td>
        <td class="bak1">
          <bean:write name="activity" property="oldValue" />
        </td>
        <td class="bak1">
<%--          <bean:write name="activity" property="updateDateString" /> --%>
          <%= udate %>
        </td>
      </tr>
    </logic:iterate>
  </table>

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