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_client_invoices')}
9 <table cellspacing="1" cellpadding="3" border="0" width="100%">
11 <td class="tableHeader">{$i18n.label.invoice}</td>
12 <td class="tableHeader">{$i18n.label.client}</td>
13 <td class="tableHeader">{$i18n.label.date}</td>
14 {if $user->isPluginEnabled('ps')}
15 <td class="tableHeader">{$i18n.label.paid}</td>
17 {if !$user->isClient()}
21 {foreach $invoices as $invoice}
22 <tr valign="top" bgcolor="{cycle values="#f5f5f5,#ffffff"}">
23 <td><a href="invoice_view.php?id={$invoice.id}">{$invoice.name|escape}</a></td>
24 <td>{$invoice.client_name|escape}</td>
25 <td>{$invoice.date}</td>
26 {if $user->isPluginEnabled('ps')}
27 <td>{if $invoice.paid}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td>
29 {if !$user->isClient()}
30 <td><a href="invoice_delete.php?id={$invoice.id}"><img class="table_icon" alt="{$i18n.label.delete}" src="images/icon_delete.png"></a></td>
36 {if !$user->isClient()}
38 <tr><td align="center"><br><form><input type="button" onclick="chLocation('invoice_add.php');" value="{$i18n.button.add}"></form></td></tr>