2 function chLocation(newLocation) { document.location = newLocation; }
5 <table cellspacing="0" cellpadding="7" border="0" width="720">
8 {if ($user->canManageTeam())}
9 <table cellspacing="1" cellpadding="3" border="0" width="100%">
10 {if $inactive_clients}
11 <tr><td class="sectionHeaderNoBorder">{$i18n.form.clients.active_clients}</td></tr>
14 <td width="40%" class="tableHeader">{$i18n.label.person_name}</td>
15 <td width="40%" class="tableHeader">{$i18n.label.address}</td>
16 <td class="tableHeader">{$i18n.label.edit}</td>
17 <td class="tableHeader">{$i18n.label.delete}</td>
19 {foreach $active_clients as $client}
20 <tr valign="top" bgcolor="{cycle values="#f5f5f5,#ffffff"}">
21 <td>{$client.name|escape}</td>
22 <td>{$client.address|escape}</td>
23 <td><a href="client_edit.php?id={$client.id}">{$i18n.label.edit}</a></td>
24 <td><a href="client_delete.php?id={$client.id}">{$i18n.label.delete}</a></td>
30 <tr><td align="center"><br><form><input type="button" onclick="chLocation('client_add.php');" value="{$i18n.button.add}"></form></td></tr>
33 {if $inactive_clients}
34 <table cellspacing="1" cellpadding="3" border="0" width="100%">
35 <tr><td class="sectionHeaderNoBorder">{$i18n.form.clients.inactive_clients}</td></tr>
37 <td width="40%" class="tableHeader">{$i18n.label.person_name}</td>
38 <td width="40%" class="tableHeader">{$i18n.label.address}</td>
39 <td class="tableHeader">{$i18n.label.edit}</td>
40 <td class="tableHeader">{$i18n.label.delete}</td>
42 {foreach $inactive_clients as $client}
43 <tr valign="top" bgcolor="{cycle values="#f5f5f5,#ffffff"}">
44 <td>{$client.name|escape}</td>
45 <td>{$client.address|escape}</td>
46 <td><a href="client_edit.php?id={$client.id}">{$i18n.label.edit}</a></td>
47 <td><a href="client_delete.php?id={$client.id}">{$i18n.label.delete}</a></td>
53 <tr><td align="center"><br><form><input type="button" onclick="chLocation('client_add.php');" value="{$i18n.button.add}"></form></td></tr>