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="left">{$i18n.form.timesheets.hint}<br></td></tr>
11 <tr><td align="center">{$i18n.label.user}: {$forms.timesheetsForm.user.control}</td></tr>
15 <table cellspacing="1" cellpadding="3" border="0" width="100%">
16 {if $inactive_timesheets}
17 <tr><td class="sectionHeaderNoBorder">{$i18n.form.timesheets.active_timesheets}</td></tr>
20 <td class="tableHeader">{$i18n.label.thing_name}</td>
22 <td class="tableHeader">{$i18n.label.client}</td>
25 <td class="tableHeader">{$i18n.label.submitted}</td>
26 <td class="tableHeader">{$i18n.label.approved}</td>
28 <td class="tableHeader">{$i18n.label.view}</td>
30 <td class="tableHeader">{$i18n.label.edit}</td>
33 {foreach $active_timesheets as $timesheet}
34 <tr valign="top" bgcolor="{cycle values="#f5f5f5,#ffffff"}">
35 <td>{$timesheet.name|escape}</td>
37 <td>{$timesheet.client_name|escape}</td>
40 <td>{if $timesheet.submit_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td>
41 {if $timesheet.approval_status == null}
44 <td>{if $timesheet.approval_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td>
47 <td><a href="timesheet_view.php?id={$timesheet.id}">{$i18n.label.view}</a></td>
49 <td><a href="timesheet_edit.php?id={$timesheet.id}">{$i18n.label.edit}</a></td>
56 <tr><td align="center"><br><form><input type="button" onclick="chLocation('reports.php');" value="{$i18n.button.add}"></form></td></tr>
60 {if $inactive_timesheets}
61 <table cellspacing="1" cellpadding="3" border="0" width="100%">
63 <tr><td class="sectionHeaderNoBorder">{$i18n.form.timesheets.inactive_timesheets}</td></tr>
65 <td class="tableHeader">{$i18n.label.thing_name}</td>
67 <td class="tableHeader">{$i18n.label.client}</td>
70 <td class="tableHeader">{$i18n.label.submitted}</td>
71 <td class="tableHeader">{$i18n.label.approved}</td>
73 <td class="tableHeader">{$i18n.label.view}</td>
75 <td class="tableHeader">{$i18n.label.edit}</td>
78 {foreach $inactive_timesheets as $timesheet}
79 <tr valign="top" bgcolor="{cycle values="#f5f5f5,#ffffff"}">
80 <td>{$timesheet.name|escape}</td>
82 <td>{$timesheet.client_name|escape}</td>
85 <td>{if $timesheet.submit_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td>
86 {if $timesheet.approval_status == null}
89 <td>{if $timesheet.approval_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td>
92 <td><a href="timesheet_view.php?id={$timesheet.id}">{$i18n.label.view}</a></td>
94 <td><a href="timesheet_edit.php?id={$timesheet.id}">{$i18n.label.edit}</a></td>
101 <tr><td align="center"><br><form><input type="button" onclick="chLocation('reports.php');" value="{$i18n.button.add}"></form></td></tr>
108 {$forms.timesheetsForm.close}