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

<html:html locale="true">
<head>
<title>マイバグ一覧</title>
<html:base/>
<LINK rel="stylesheet" href="style.css">
</head>

<body>
<!--======================= メニュー ==============================-->
<%@ include file="/jsp/common/Menu6.inc" %>
<!--======================= メニュー end ==========================-->
<br>
<table cellpadding="1" cellspacing="2">
  <tr class="label3"> 
    <td colspan="8">
      <div align="center">担当中のバグ</div>
    </td>
  </tr>
  <tr class="label3"> 
    <td>No</td>
    <td>故障</td>
    <td>目標</td>
    <td>優先</td>
    <td>ステータス</td>
    <td>タイトル</td>
  </tr>
  <logic:notPresent name="myBug" scope="session">
	    <tr> 
	       <td colspan="8">
	          <br>
			  <b>現在、抱えているバグはありません (^_^)Vﾌﾞｲ<b>
	          <br>
	      </td>
	  </tr>
  </logic:notPresent>
  <logic:present name="myBug" scope="session">
	  <logic:iterate id="bug" name="myBug" scope="session" type="Bug" >
	    <tr> 
	       <td class="bak1">
	        <div align="center">
	          <html:link forward="/showAll" name="bug" property="mapping">
	            <bean:write name="bug" property="bnoString" />
	          </html:link>
	        </div>
	      </td>
	      <td class="bak1"><bean:write name="bug" property="severityString" /></td>
	      <td class="bak1"><bean:write name="bug" property="milestoneString" /></td>
	      <td class="bak1"><bean:write name="bug" property="priorityString" /></td>
	      <td class="bak1"><bean:write name="bug" property="statusString" /></td>
	      <td class="bak1a"><bean:write name="bug" property="title" /></td>
	  </tr>
	  </logic:iterate>
  </logic:present>
</table>
<p>
<table cellpadding="1" cellspacing="2">
  <tr class="label3"> 
    <td colspan="8">
      <div align="center">自分が関係した未完了のバグ</div>
    </td>
  </tr>
  <tr class="label3"> 
    <td>No</td>
    <td>故障</td>
    <td>目標</td>
    <td>優先</td>
    <td>発生</td> 
    <td>ステータス</td>
    <td>担当</td>
    <td>タイトル</td>
  </tr>
  <logic:iterate id="bug" name="dispatchBug" scope="session" type="Bug" >
    <tr> 
       <td class="bak1">
        <div align="center">
          <html:link forward="/showAll" name="bug" property="mapping">
            <bean:write name="bug" property="bnoString" />
          </html:link>
        </div>
      </td>
      <td class="bak1"><bean:write name="bug" property="severityString" /></td>
      <td class="bak1"><bean:write name="bug" property="milestoneString" /></td>
      <td class="bak1"><bean:write name="bug" property="priorityString" /></td>
      <td class="bak1"><bean:write name="bug" property="issuDateString" /></td>
      <td class="bak1"><bean:write name="bug" property="statusString" /></td>
      <td class="bak1"><%= bug.getRole(UserInfo.getUno()) %></td>
      <td class="bak1a"><bean:write name="bug" property="title" /></td>
  </tr>
  </logic:iterate>
</table>

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