2 function chLocation(newLocation) { document.location = newLocation; }
5 {$forms.timesheetsForm.open}
6 <table cellspacing="0" cellpadding="7" border="0" width="720">
8 <tr><td align="center">{$i18n.label.user}: {$forms.timesheetsForm.user.control}</td></tr>
12 <table cellspacing="1" cellpadding="3" border="0" width="100%">
13 {if $inactive_timesheets}
14 <tr><td class="sectionHeaderNoBorder">{$i18n.form.timesheets.active_timesheets}</td></tr>
17 <td class="tableHeader">{$i18n.label.thing_name}</td>
19 <td class="tableHeader">{$i18n.label.client}</td>
21 <td class="tableHeader">{$i18n.label.submitted}</td>
22 <td class="tableHeader">{$i18n.label.approved}</td>
23 <td class="tableHeader">{$i18n.label.view}</td>
24 <td class="tableHeader">{$i18n.label.edit}</td>
26 {foreach $active_timesheets as $timesheet}
27 <tr valign="top" bgcolor="{cycle values="#f5f5f5,#ffffff"}">
28 <td>{$timesheet.name|escape}</td>
30 <td>{$timesheet.client_name|escape}</td>
32 <td>{if $timesheet.submit_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td>
33 {if $timesheet.approve_status == null}
36 <td>{if $timesheet.approve_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td>
38 <td><a href="timesheet_view.php?id={$timesheet.id}">{$i18n.label.view}</a></td>
39 <td><a href="timesheet_edit.php?id={$timesheet.id}">{$i18n.label.edit}</a></td>
45 <tr><td align="center"><br><form><input type="button" onclick="chLocation('timesheet_add.php');" value="{$i18n.button.add}"></form></td></tr>
48 {if $inactive_timesheets}
49 <table cellspacing="1" cellpadding="3" border="0" width="100%">
51 <tr><td class="sectionHeaderNoBorder">{$i18n.form.timesheets.inactive_timesheets}</td></tr>
53 <td class="tableHeader">{$i18n.label.thing_name}</td>
55 <td class="tableHeader">{$i18n.label.client}</td>
57 <td class="tableHeader">{$i18n.label.submitted}</td>
58 <td class="tableHeader">{$i18n.label.approved}</td>
59 <td class="tableHeader">{$i18n.label.view}</td>
60 <td class="tableHeader">{$i18n.label.edit}</td>
62 {foreach $inactive_timesheets as $timesheet}
63 <tr valign="top" bgcolor="{cycle values="#f5f5f5,#ffffff"}">
64 <td>{$timesheet.name|escape}</td>
66 <td>{$timesheet.client_name|escape}</td>
68 <td>{if $timesheet.submit_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td>
69 {if $timesheet.approve_status == null}
72 <td>{if $timesheet.approve_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td>
74 <td><a href="timesheet_view.php?id={$timesheet.id}">{$i18n.label.view}</a></td>
75 <td><a href="timesheet_edit.php?id={$timesheet.id}">{$i18n.label.edit}</a></td>
81 <tr><td align="center"><br><form><input type="button" onclick="chLocation('reports.php');" value="{$i18n.button.add}"></form></td></tr>
87 {$forms.timesheetsForm.close}