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>
25 <td class="tableHeader">{$i18n.label.edit}</td>
28 {foreach $active_timesheets as $timesheet}
29 <tr valign="top" bgcolor="{cycle values="#f5f5f5,#ffffff"}">
30 <td>{$timesheet.name|escape}</td>
32 <td>{$timesheet.client_name|escape}</td>
34 <td>{if $timesheet.submit_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td>
35 {if $timesheet.approval_status == null}
38 <td>{if $timesheet.approval_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td>
40 <td><a href="timesheet_view.php?id={$timesheet.id}">{$i18n.label.view}</a></td>
42 <td><a href="timesheet_edit.php?id={$timesheet.id}">{$i18n.label.edit}</a></td>
49 <tr><td align="center"><br><form><input type="button" onclick="chLocation('timesheet_add.php');" value="{$i18n.button.add}"></form></td></tr>
52 {if $inactive_timesheets}
53 <table cellspacing="1" cellpadding="3" border="0" width="100%">
55 <tr><td class="sectionHeaderNoBorder">{$i18n.form.timesheets.inactive_timesheets}</td></tr>
57 <td class="tableHeader">{$i18n.label.thing_name}</td>
59 <td class="tableHeader">{$i18n.label.client}</td>
61 <td class="tableHeader">{$i18n.label.submitted}</td>
62 <td class="tableHeader">{$i18n.label.approved}</td>
63 <td class="tableHeader">{$i18n.label.view}</td>
65 <td class="tableHeader">{$i18n.label.edit}</td>
68 {foreach $inactive_timesheets as $timesheet}
69 <tr valign="top" bgcolor="{cycle values="#f5f5f5,#ffffff"}">
70 <td>{$timesheet.name|escape}</td>
72 <td>{$timesheet.client_name|escape}</td>
74 <td>{if $timesheet.submit_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td>
75 {if $timesheet.approval_status == null}
78 <td>{if $timesheet.approval_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td>
80 <td><a href="timesheet_view.php?id={$timesheet.id}">{$i18n.label.view}</a></td>
82 <td><a href="timesheet_edit.php?id={$timesheet.id}">{$i18n.label.edit}</a></td>
89 <tr><td align="center"><br><form><input type="button" onclick="chLocation('reports.php');" value="{$i18n.button.add}"></form></td></tr>
95 {$forms.timesheetsForm.close}