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

{section name=details loop=$operations}
<tr class="{cycle values="odd,even"}">
  <td{if ((strlen($operations[details].prj_title) > $smarty.const.PHPAGA_SHOWPRJTITLELENGHT))} onmouseover="return escape('{$operations[details].prj_title|phpaga_popup_sanitizestr}')"{/if}>
    <a href="project.php?id={$operations[details].prj_id}"> {$operations[details].prj_title|wash|trnc:$smarty.const.PHPAGA_SHOWPRJTITLELENGHT:"...":true} </a>
  </td>
  <td> {$operations[details].prjstat_title} </td>
  <td{if ((strlen($operations[details].op_desc) > $smarty.const.PHPAGA_SHOWOPDESCLENGHT))} onmouseover="return escape('{$operations[details].op_desc|wash|phpaga_popup_sanitizestr}')"{/if}>
    {$operations[details].op_desc|wash|trnc:$smarty.const.PHPAGA_SHOWOPDESCLENGHT:"...":true}
  </td>
  <td class="time"> {$operations[details].op_startdate|wash|date_format:$smarty.const.PHPAGA_DATEFORMAT_SHORT} </td>
  <td> <a href="person.php?id={$operations[details].pe_id}">{$operations[details].op_person|wash}</a> </td>
  <td{if ((strlen($operations[details].opcat_title) > $smarty.const.PHPAGA_SHOWOPCATTITLELENGHT))} onmouseover="return escape('{$operations[details].opcat_title|phpaga_popup_sanitizestr}')"{/if}>
    {$operations[details].opcat_title|wash|trnc:$smarty.const.PHPAGA_SHOWOPCATTITLELENGHT:"...":true}
  </td>
  <td class="time"> {$operations[details].op_duration|phpaga_minutes2duration} </td>
  <td class="actions"> {strip}
    <a class="ptr" onclick="viewTaskDetails({$operations[details].op_id}, 'vimg')"><img id="vimg{$operations[details].op_id}" src="img/phpaga/view.png" height="16" width="16" border="0" alt="{t}View{/t}" title="{t}View{/t}"></a>

    {if ($operations[details].op_canedit)}
    <a href="operation.php?id={$operations[details].op_id}"><img src="img/phpaga/edit.png" height="16" width="16" border="0" alt="{t}Edit{/t}" title="{t}Edit{/t}"></a>
    <a class="ptr" onclick="confirm_delete_op({$operations[details].op_id}, '{$operations[details].op_startdate|date_format:$smarty.const.PHPAGA_DATEFORMAT_SHORT}\n{t}Project{/t}: {$operations[details].prj_title}\n{t}Task{/t}: {$operations[details].op_desc|phpaga_jsmessage_sanitizestr}');"><img src="img/phpaga/delete.png" height="16" width="16" border="0" alt="{t}Delete{/t}" title="{t}Delete{/t}"></a>
    {/if}

    {if ($perm_view_invoices && isset($operations[details].bill_id) && is_numeric($operations[details].bill_id)) }
    <a href="bill.php?id={$operations[details].bill_id}"><img src="img/phpaga/bill.png" height="16" width="16" border="0" alt="{t}Invoice{/t}" title="{t}Invoice{/t}"></a>
    {/if}

    {/strip}
  </td>

</tr>
{/section}

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