{if $show_client}
<td class="tableHeader">{$i18n.label.client}</td>
{/if}
-{if $not_client}
<td class="tableHeader">{$i18n.label.submitted}</td>
<td class="tableHeader">{$i18n.label.approved}</td>
-{/if}
<td class="tableHeader">{$i18n.label.view}</td>
-{if $can_edit}
<td class="tableHeader">{$i18n.label.edit}</td>
-{/if}
</tr>
{foreach $active_timesheets as $timesheet}
<tr valign="top" bgcolor="{cycle values="#f5f5f5,#ffffff"}">
{if $show_client}
<td>{$timesheet.client_name|escape}</td>
{/if}
- {if $not_client}
<td>{if $timesheet.submit_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td>
- {if $timesheet.approval_status == null}
+ {if $timesheet.approve_status == null}
<td></td>
- {else}
- <td>{if $timesheet.approval_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td>
- {/if}
+ {else}
+ <td>{if $timesheet.approve_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td>
{/if}
<td><a href="timesheet_view.php?id={$timesheet.id}">{$i18n.label.view}</a></td>
- {if $can_edit}
<td><a href="timesheet_edit.php?id={$timesheet.id}">{$i18n.label.edit}</a></td>
- {/if}
</tr>
{/foreach}
</table>
-{if $not_client}
+
<table width="100%">
- <tr><td align="center"><br><form><input type="button" onclick="chLocation('reports.php');" value="{$i18n.button.add}"></form></td></tr>
+ <tr><td align="center"><br><form><input type="button" onclick="chLocation('timesheet_add.php');" value="{$i18n.button.add}"></form></td></tr>
</table>
-{/if}
{if $inactive_timesheets}
<table cellspacing="1" cellpadding="3" border="0" width="100%">
{if $show_client}
<td class="tableHeader">{$i18n.label.client}</td>
{/if}
- {if $not_client}
<td class="tableHeader">{$i18n.label.submitted}</td>
<td class="tableHeader">{$i18n.label.approved}</td>
- {/if}
<td class="tableHeader">{$i18n.label.view}</td>
- {if $can_edit}
<td class="tableHeader">{$i18n.label.edit}</td>
- {/if}
</tr>
{foreach $inactive_timesheets as $timesheet}
<tr valign="top" bgcolor="{cycle values="#f5f5f5,#ffffff"}">
{if $show_client}
<td>{$timesheet.client_name|escape}</td>
{/if}
- {if $not_client}
<td>{if $timesheet.submit_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td>
- {if $timesheet.approval_status == null}
+ {if $timesheet.approve_status == null}
<td></td>
- {else}
- <td>{if $timesheet.approval_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td>
- {/if}
+ {else}
+ <td>{if $timesheet.approve_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td>
{/if}
<td><a href="timesheet_view.php?id={$timesheet.id}">{$i18n.label.view}</a></td>
- {if $can_edit}
<td><a href="timesheet_edit.php?id={$timesheet.id}">{$i18n.label.edit}</a></td>
- {/if}
</tr>
{/foreach}
</table>
- {if $not_client}
+
<table width="100%">
<tr><td align="center"><br><form><input type="button" onclick="chLocation('reports.php');" value="{$i18n.button.add}"></form></td></tr>
</table>
- {/if}
{/if}
</td>
</tr>