2 function chLocation(newLocation) { document.location = newLocation; }
5 <table cellspacing="0" cellpadding="7" border="0" width="720">
8 {if $user->can('manage_invoices') || $user->can('view_own_invoices')}
9 <table cellspacing="1" cellpadding="3" border="0" width="100%">
10 <tr><td colspan="2">{$i18n.form.timesheets.hint}<br></td></tr>
12 <td class="tableHeader">{$i18n.label.thing_name}</td>
13 {if $user->isPluginEnabled('cl')}
14 <td class="tableHeader">{$i18n.label.client}</td>
16 <td class="tableHeader">{$i18n.label.submitted}</td>
17 <td class="tableHeader">{$i18n.label.approved}</td>
18 <td class="tableHeader">{$i18n.label.view}</td>
20 {foreach $timesheets as $timesheet}
21 <tr valign="top" bgcolor="{cycle values="#f5f5f5,#ffffff"}">
22 <td>{$invoice.name|escape}</td>
23 <td>{$invoice.client_name|escape}</td>
24 <td>{$invoice.date}</td>
25 {if $user->isPluginEnabled('ps')}
26 <td>{if $invoice.paid}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td>
28 <td><a href="invoice_view.php?id={$invoice.id}">{$i18n.label.view}</a></td>
29 {if !$user->isClient()}
30 <td><a href="invoice_delete.php?id={$invoice.id}">{$i18n.label.delete}</a></td>
36 {if !$user->isClient()}
38 <tr><td align="center"><br><form><input type="button" onclick="chLocation('reports.php');" value="{$i18n.button.add}"></form></td></tr>