<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/"
      xmlns:xi="http://www.w3.org/2001/XInclude">
  <xi:include href="layout.html" />
  <xi:include href="macros.html" />

      <head>
	<title>時間統計管理 for Trac.11</title>
    <script type="text/javascript" src="${chrome.htdocs_location}js/wikitoolbar.js"></script>
    <script type="text/javascript" py:choose="">
      $(document).ready(function() {
          $("div.description").find("h1,h2,h3,h4,h5,h6").addAnchor("Link to this section");
        });
    </script>
      </head>

      <body>
<form method="post" action="${billing_info.href}"  >
<div id="content" class="billing">
  <a href="$billing_info.usermanual_href" >$billing_info.usermanual_title</a>
  <div id="messages" >
    <py:for each="item in billing_info.messages" >
      <div class="message" >$item</div>
    </py:for>
  </div>

  <table border="0" cellspacing="0" cellpadding="0" class="minorsection">
    <tr>
      <td colspan="2" >
            <div class="minorsection">
	    <div class="label" >統計に含めるステータス:</div>
              <label for="billable">「有償」を含める: </label>
              <input id="billable" name="billable" type="checkbox" checked="true" /> 

            &nbsp;&nbsp;|&nbsp;&nbsp;
              <label for="unbillable">「有償」でないものを含める: </label>
              <input id="unbillable" name="unbillable" type="checkbox"  /> 
            </div>

		  <div class="minorsection">
		    <div class="label" >ステータス:</div>
		    <py:for each="status in statuses" >
		      <label for="$status">${status.capitalize()}: </label>
		      <input id="$status" name="$status" type="checkbox" checked="true" /> 
		    </py:for>
		    <script>
		      <py:for each="status in statuses" >
			   addBillingField("$status", "checkbox", true);
		      </py:for>
		    </script>
		  </div>

      </td>
    </tr><tr class="minorsection">
      <td class="minorsectionleft" valign="top"><label for="startdate" >開始日:</label></td>
      <td class="minorsectionright"><input id="startdate" name="startdate" type="text" /> or:<br />
          <label for="startbilling" >履歴から選択:</label><br />
          <select id="startbilling" name="startbilling" >
            <option value="" ></option>
              <py:for each="item in billing_info.billdates" >
                <option value="$item.value" >$item.text</option>
              </py:for>
          </select>
      </td>
    </tr><tr class="minorsection">
      <td class="minorsectionleft" valign="top"><label for="enddate" >終了日:</label>
      </td>
      <td class="minorsectionright">
          <input id="enddate" name="enddate" type="text" /> or:<br />
          <label for="endbilling" >履歴から選択:</label><br />
          <select id="endbilling" name="endbilling" >
            <option value="" ></option>
              <py:for each="item in billing_info.billdates" >
                <option value="$item.value" >$item.text</option>
              </py:for>
          </select>
      </td>
    </tr>
  </table>
  <ul id="reportlinks">
  <py:for each="key in reports" >
    <li>${reports[key]["title"]}
      <ul>
        <py:for each="report in reports[key]['reports']">
          <li><a href="" onmouseover="linkify(this, '$billing_info.report_base_href/$report.id')"  >
            $report.title
          </a></li>     
       </py:for>
      </ul>
    </li>
  </py:for>

  </ul>
  <input type="submit" name="setbillingtime" value="統計計算時間の設定" onclick="return confirm('新しい統計期間を作成しますか?')" />&nbsp;

</div>
</form>
</body>
</html>