2 function chLocation(newLocation) { document.location = newLocation; }
5 <table cellspacing="0" cellpadding="7" border="0" width="720">
8 {if $user->can('manage_clients')}
10 {$forms.clientsForm.open} {* clientsForm consists only of one dropdown group control *}
13 <td align="center">{$i18n.label.group}: {$forms.clientsForm.group.control}</td>
16 {$forms.clientsForm.close}
18 <table cellspacing="1" cellpadding="3" border="0" width="100%">
19 {if $inactive_clients}
20 <tr><td class="sectionHeaderNoBorder">{$i18n.form.clients.active_clients}</td></tr>
23 <td width="40%" class="tableHeader">{$i18n.label.person_name}</td>
24 <td width="40%" class="tableHeader">{$i18n.label.address}</td>
25 <td class="tableHeader">{$i18n.label.edit}</td>
26 <td class="tableHeader">{$i18n.label.delete}</td>
28 {foreach $active_clients as $client}
29 <tr valign="top" bgcolor="{cycle values="#f5f5f5,#ffffff"}">
30 <td>{$client.name|escape}</td>
31 <td>{$client.address|escape}</td>
32 <td><a href="client_edit.php?id={$client.id}">{$i18n.label.edit}</a></td>
33 <td><a href="client_delete.php?id={$client.id}">{$i18n.label.delete}</a></td>
39 <tr><td align="center"><br><form><input type="button" onclick="chLocation('client_add.php');" value="{$i18n.button.add}"></form></td></tr>
42 {if $inactive_clients}
43 <table cellspacing="1" cellpadding="3" border="0" width="100%">
44 <tr><td class="sectionHeaderNoBorder">{$i18n.form.clients.inactive_clients}</td></tr>
46 <td width="40%" class="tableHeader">{$i18n.label.person_name}</td>
47 <td width="40%" class="tableHeader">{$i18n.label.address}</td>
48 <td class="tableHeader">{$i18n.label.edit}</td>
49 <td class="tableHeader">{$i18n.label.delete}</td>
51 {foreach $inactive_clients as $client}
52 <tr valign="top" bgcolor="{cycle values="#f5f5f5,#ffffff"}">
53 <td>{$client.name|escape}</td>
54 <td>{$client.address|escape}</td>
55 <td><a href="client_edit.php?id={$client.id}">{$i18n.label.edit}</a></td>
56 <td><a href="client_delete.php?id={$client.id}">{$i18n.label.delete}</a></td>
62 <tr><td align="center"><br><form><input type="button" onclick="chLocation('client_add.php');" value="{$i18n.button.add}"></form></td></tr>
66 <table cellspacing="1" cellpadding="3" border="0" width="100%">
68 <td class="tableHeader">{$i18n.label.thing_name}</td>
69 <td class="tableHeader">{$i18n.label.address}</td>
72 {foreach $active_clients as $client}
73 <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
74 <td>{$client.name|escape}</td>
75 <td>{$client.address|escape}</td>