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>
22 <td class="tableHeader">{$i18n.label.submitted}</td>
23 <td class="tableHeader">{$i18n.label.approved}</td>
25 <td class="tableHeader">{$i18n.label.view}</td>
27 <td class="tableHeader">{$i18n.label.edit}</td>
30 {foreach $active_timesheets as $timesheet}
31 <tr valign="top" bgcolor="{cycle values="#f5f5f5,#ffffff"}">
32 <td>{$timesheet.name|escape}</td>
34 <td>{$timesheet.client_name|escape}</td>
37 <td>{if $timesheet.submit_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td>
38 {if $timesheet.approval_status == null}
41 <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>
46 <td><a href="timesheet_edit.php?id={$timesheet.id}">{$i18n.label.edit}</a></td>
53 <tr><td align="center"><br><form><input type="button" onclick="chLocation('reports.php');" value="{$i18n.button.add}"></form></td></tr>
57 {if $inactive_timesheets}
58 <table cellspacing="1" cellpadding="3" border="0" width="100%">
60 <tr><td class="sectionHeaderNoBorder">{$i18n.form.timesheets.inactive_timesheets}</td></tr>
62 <td class="tableHeader">{$i18n.label.thing_name}</td>
64 <td class="tableHeader">{$i18n.label.client}</td>
67 <td class="tableHeader">{$i18n.label.submitted}</td>
68 <td class="tableHeader">{$i18n.label.approved}</td>
70 <td class="tableHeader">{$i18n.label.view}</td>
72 <td class="tableHeader">{$i18n.label.edit}</td>
75 {foreach $inactive_timesheets as $timesheet}
76 <tr valign="top" bgcolor="{cycle values="#f5f5f5,#ffffff"}">
77 <td>{$timesheet.name|escape}</td>
79 <td>{$timesheet.client_name|escape}</td>
82 <td>{if $timesheet.submit_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td>
83 {if $timesheet.approval_status == null}
86 <td>{if $timesheet.approval_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td>
89 <td><a href="timesheet_view.php?id={$timesheet.id}">{$i18n.label.view}</a></td>
91 <td><a href="timesheet_edit.php?id={$timesheet.id}">{$i18n.label.edit}</a></td>
98 <tr><td align="center"><br><form><input type="button" onclick="chLocation('reports.php');" value="{$i18n.button.add}"></form></td></tr>
105 {$forms.timesheetsForm.close}