2 function chLocation(newLocation) { document.location = newLocation; }
5 {$forms.timesheetsForm.open}
6 <table cellspacing="0" cellpadding="7" border="0" width="720">
7 <tr><td align="left">{$i18n.form.timesheets.hint}<br></td></tr>
9 <tr><td align="center">{$i18n.label.user}: {$forms.timesheetsForm.user.control}</td></tr>
13 <table cellspacing="1" cellpadding="3" border="0" width="100%">
14 {if $inactive_timesheets}
15 <tr><td class="sectionHeaderNoBorder">{$i18n.form.timesheets.active_timesheets}</td></tr>
18 <td class="tableHeader">{$i18n.label.thing_name}</td>
20 <td class="tableHeader">{$i18n.label.client}</td>
22 {if $show_submit_status}
23 <td class="tableHeader">{$i18n.label.submitted}</td>
25 {if $show_approval_status}
26 <td class="tableHeader">{$i18n.label.approved}</td>
28 <td class="tableHeader">{$i18n.label.view}</td>
29 <td class="tableHeader">{$i18n.label.edit}</td>
31 {foreach $active_timesheets as $timesheet}
32 <tr valign="top" bgcolor="{cycle values="#f5f5f5,#ffffff"}">
33 <td>{$timesheet.name|escape}</td>
35 <td>{$timesheet.client_name|escape}</td>
37 {if $show_submit_status}
38 <td>{if $timesheet.submit_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td>
40 {if $show_approval_status}
41 <td>{if $timesheet.approval_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td>
43 <td><a href="timesheet_view.php?id={$timesheet.id}">{$i18n.label.view}</a></td>
44 {if !$user->isClient()}
45 <td><a href="timesheet_edit.php?id={$timesheet.id}">{$i18n.label.edit}</a></td>
50 {if !$user->isClient()}
52 <tr><td align="center"><br><form><input type="button" onclick="chLocation('reports.php');" value="{$i18n.button.add}"></form></td></tr>
56 {if $inactive_timesheets}
57 <table cellspacing="1" cellpadding="3" border="0" width="100%">
59 <tr><td class="sectionHeaderNoBorder">{$i18n.form.timesheets.inactive_timesheets}</td></tr>
61 <td class="tableHeader">{$i18n.label.thing_name}</td>
63 <td class="tableHeader">{$i18n.label.client}</td>
65 {if $show_submit_status}
66 <td class="tableHeader">{$i18n.label.submitted}</td>
68 {if $show_approval_status}
69 <td class="tableHeader">{$i18n.label.approved}</td>
71 <td class="tableHeader">{$i18n.label.view}</td>
72 <td class="tableHeader">{$i18n.label.edit}</td>
74 {foreach $inactive_timesheets as $timesheet}
75 <tr valign="top" bgcolor="{cycle values="#f5f5f5,#ffffff"}">
76 <td>{$timesheet.name|escape}</td>
78 <td>{$timesheet.client_name|escape}</td>
80 {if $show_submit_status}
81 <td>{if $timesheet.submit_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td>
83 {if $show_approval_status}
84 <td>{if $timesheet.approval_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td>
86 <td><a href="timesheet_view.php?id={$timesheet.id}">{$i18n.label.view}</a></td>
87 {if !$user->isClient()}
88 <td><a href="timesheet_edit.php?id={$timesheet.id}">{$i18n.label.edit}</a></td>
93 {if !$user->isClient()}
95 <tr><td align="center"><br><form><input type="button" onclick="chLocation('reports.php');" value="{$i18n.button.add}"></form></td></tr>
102 {$forms.timesheetsForm.close}