2 function chLocation(newLocation) { document.location = newLocation; }
5 <table class="mobile-table">
8 {if ($user->canManageTeam())}
9 <table class="mobile-table-details">
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>
18 {foreach $active_clients as $client}
19 <tr valign="top" bgcolor="{cycle values="#f5f5f5,#dedee5"}">
20 <td>{$client.name|escape:'html'}</td>
21 <td>{$client.address|escape:'html'}</td>
22 <td><a href="client_edit.php?id={$client.id}">{$i18n.label.edit}</a></td>
28 <tr><td align="center"><br><form><input type="button" onclick="chLocation('client_add.php');" value="{$i18n.button.add_client}"></form></td></tr>
31 {if $inactive_clients}
32 <table cellspacing="1" cellpadding="3" border="0" width="100%">
33 <tr><td class="sectionHeaderNoBorder">{$i18n.form.clients.inactive_clients}</td></tr>
35 <td width="40%" class="tableHeader">{$i18n.label.person_name}</td>
36 <td width="40%" class="tableHeader">{$i18n.label.address}</td>
37 <td class="tableHeader">{$i18n.label.edit}</td>
39 {foreach $inactive_clients as $client}
40 <tr valign="top" bgcolor="{cycle values="#f5f5f5,#dedee5"}">
41 <td>{$client.name|escape:'html'}</td>
42 <td>{$client.address|escape:'html'}</td>
43 <td><a href="client_edit.php?id={$client.id}">{$i18n.label.edit}</a></td>
49 <tr><td align="center"><br><form><input type="button" onclick="chLocation('client_add.php');" value="{$i18n.button.add_client}"></form></td></tr>