2 function chLocation(newLocation) { document.location = newLocation; }
5 <table cellspacing="0" cellpadding="7" border="0" width="720">
8 <table cellspacing="1" cellpadding="3" border="0" width="100%">
9 <tr><td colspan="2">{$i18n.form.timesheets.hint}<br></td></tr>
10 <tr><td> </td></tr>
11 {if $inactive_timesheets}
12 <tr><td class="sectionHeaderNoBorder">{$i18n.form.timesheets.active_timesheets}</td></tr>
15 <td class="tableHeader">{$i18n.label.thing_name}</td>
17 <td class="tableHeader">{$i18n.label.client}</td>
19 {if $show_submit_status}
20 <td class="tableHeader">{$i18n.label.submitted}</td>
22 {if $show_approval_status}
23 <td class="tableHeader">{$i18n.label.approved}</td>
25 <td class="tableHeader">{$i18n.label.view}</td>
26 <td class="tableHeader">{$i18n.label.edit}</td>
27 <td class="tableHeader">{$i18n.label.delete}</td>
29 {foreach $active_timesheets as $timesheet}
30 <tr valign="top" bgcolor="{cycle values="#f5f5f5,#ffffff"}">
31 <td>{$timesheet.name|escape}</td>
33 <td>{$timesheet.client_name|escape}</td>
35 {if $show_submit_status}
36 <td>{if $timesheet.submit_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td>
38 {if $show_approval_status}
39 <td>{if $timesheet.approval_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td>
44 <td><a href="timesheet_view.php?id={$timesheet.id}">{$i18n.label.view}</a></td>
45 {if !$user->isClient()}
46 <td><a href="timesheet_edit.php?id={$timesheet.id}">{$i18n.label.edit}</a></td>
47 <td><a href="timesheet_delete.php?id={$timesheet.id}">{$i18n.label.delete}</a></td>
53 {if !$user->isClient()}
55 <tr><td align="center"><br><form><input type="button" onclick="chLocation('reports.php');" value="{$i18n.button.add}"></form></td></tr>