<!-- BEGIN {$smarty.template} -->

<script type="text/javascript" src="js/tasks.js"></script>

<div id="opdetails"> </div>

<table class="stdtable" cellspacing="0">
  <thead>
  <tr>
    <td class="header" colspan="3"> {t}Tasks{/t} </td>
    <td class="headeraction" colspan="5"> [
      {if ($show_create_bill)}
      <a href="add_bill.php?{$search_args}&action={$smarty.const.ACTION_BILL_WITHOPERATIONS}">{t}Create invoice{/t}</a> |
      {/if}
      <a href="operations_pdf.php?{$search_args}">{t}Print{/t}</a>
      ]
    </td>
  </tr>
  </thead>
  <tbody>
  <tr>
    <th> <a href="{$location}{$sort.pr}"{if $porder == $smarty.const.ORDER_OP_PR_ASC} class="sortasc"{elseif $porder == $smarty.const.ORDER_OP_PR_DESC} class="sortdesc"{/if}>{t}Project{/t}</a> </th>
    <th> {t}Project status{/t} </th>
    <th> {t}Task{/t} </th>
    <th class="time"> <a href="{$location}{$sort.start}"{if $porder == $smarty.const.ORDER_OP_TIMESTAMP_START_ASC} class="sortasc"{elseif $porder == $smarty.const.ORDER_OP_TIMESTAMP_START_DESC} class="sortdesc"{/if}>{t}Date{/t}</a> </th>
    <th> <a href="{$location}{$sort.pe}"{if $porder == $smarty.const.ORDER_OP_PE_ASC} class="sortasc"{elseif $porder == $smarty.const.ORDER_OP_PE_DESC} class="sortdesc"{/if}>{t}Person{/t}</a> </th>
    <th> <a href="{$location}{$sort.opcat}"{if $porder == $smarty.const.ORDER_OP_OPCAT_ASC} class="sortasc"{elseif $porder == $smarty.const.ORDER_OP_OPCAT_DESC} class="sortdesc"{/if}>{t}Category{/t}</a> </th>
    <th class="time"> <a href="{$location}{$sort.duration}"{if $porder == $smarty.const.ORDER_OP_DURATION_ASC} class="sortasc"{elseif $porder == $smarty.const.ORDER_OP_DURATION_DESC} class="sortdesc"{/if}>{t}Hours{/t}</a></th>
    <th> {t}Actions{/t} </th>
  </tr>
  </tbody>
  {include file="list_operations.tpl.html"}

  <tr>
    <td class="browse" colspan="3"> {$BROWSE} </td>
    <td class="desc" colspan="2"> {t}Total duration{/t}: {$TOTALHOURS} </td>
    <td class="number" colspan="2"> {t}Subtotal{/t}: {$SUBTOTALHOURS|phpaga_minutes2duration} </td>
    <td> </td>
  </tr>
</table>

<!-- END {$smarty.template} -->
