$sql = "select l.id as id, TIME_FORMAT(l.start, $sql_time_format) as start,".
" TIME_FORMAT(sec_to_time(time_to_sec(l.start) + time_to_sec(l.duration)), $sql_time_format) as finish,".
" TIME_FORMAT(l.duration, '%k:%i') as duration, p.name as project, t.name as task, l.comment,".
- " l.billable, l.timesheet_id, l.invoice_id $client_field from tt_log l $left_joins".
+ " l.billable, l.approved, l.timesheet_id, l.invoice_id $client_field from tt_log l $left_joins".
" where l.date = '$date' and l.user_id = $user_id and l.group_id = $group_id and l.org_id = $org_id and l.status = 1".
" order by l.start, l.id";
$res = $mdb2->query($sql);
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.18.53.4829 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.18.53.4830 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
<a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
<a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
<a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>
<td valign="top">{$record.project|escape}</td>
{/if}
<td align="right" valign="top">{if ($record.duration == '0:00' && $record.start <> '')}<font color="#ff0000">{/if}{$record.duration}{if ($record.duration == '0:00' && $record.start <> '')}</font>{/if}</td>
- <td align="center">{if $record.timesheet_id|| $record.invoice_id} {else}<a href="time_edit.php?id={$record.id}">{$i18n.label.edit}</a>{/if}</td>
+ <td align="center">{if $record.approved || $record.timesheet_id || $record.invoice_id} {else}<a href="time_edit.php?id={$record.id}">{$i18n.label.edit}</a>{/if}</td>
</tr>
{/foreach}
</table>
<td align="right" valign="top">{if ($record.duration == '0:00' && $record.start <> '')}<font color="#ff0000">{$i18n.form.time.uncompleted}</font>{else}{$record.duration}{/if}</td>
<td valign="top">{if $record.comment}{$record.comment|escape}{else} {/if}</td>
<td valign="top" align="center">
- {if $record.timesheet_id || $record.invoice_id}
+ {if $record.approved || $record.timesheet_id || $record.invoice_id}
{else}
<a href="time_edit.php?id={$record.id}">{$i18n.label.edit}</a>