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>
27 {foreach $active_timesheets as $timesheet}
28 <tr valign="top" bgcolor="{cycle values="#f5f5f5,#ffffff"}">
29 <td>{$timesheet.name|escape}</td>
31 <td>{$timesheet.client_name|escape}</td>
33 <td>{if $timesheet.submit_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td>
34 {if $timesheet.approve_status == null}
37 <td>{if $timesheet.approve_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td>
39 <td><a href="timesheet_view.php?id={$timesheet.id}">{$i18n.label.view}</a></td>
40 <td><a href="timesheet_edit.php?id={$timesheet.id}"><img class="table_icon" alt="{$i18n.label.edit}" src="images/icon_edit.png"></a></td>
41 <td><a href="timesheet_delete.php?id={$timesheet.id}"><img class="table_icon" alt="{$i18n.label.delete}" src="images/icon_delete.png"></a></td>
47 <tr><td align="center"><br><form><input type="button" onclick="chLocation('timesheet_add.php');" value="{$i18n.button.add}"></form></td></tr>
50 {if $inactive_timesheets}
51 <table cellspacing="1" cellpadding="3" border="0" width="100%">
53 <tr><td class="sectionHeaderNoBorder">{$i18n.form.timesheets.inactive_timesheets}</td></tr>
55 <td class="tableHeader">{$i18n.label.thing_name}</td>
57 <td class="tableHeader">{$i18n.label.client}</td>
59 <td class="tableHeader">{$i18n.label.submitted}</td>
60 <td class="tableHeader">{$i18n.label.approved}</td>
61 <td class="tableHeader">{$i18n.label.view}</td>
65 {foreach $inactive_timesheets as $timesheet}
66 <tr valign="top" bgcolor="{cycle values="#f5f5f5,#ffffff"}">
67 <td>{$timesheet.name|escape}</td>
69 <td>{$timesheet.client_name|escape}</td>
71 <td>{if $timesheet.submit_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td>
72 {if $timesheet.approve_status == null}
75 <td>{if $timesheet.approve_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td>
77 <td><a href="timesheet_view.php?id={$timesheet.id}">{$i18n.label.view}</a></td>
78 <td><a href="timesheet_edit.php?id={$timesheet.id}"><img class="table_icon" alt="{$i18n.label.edit}" src="images/icon_edit.png"></a></td>
79 <td><a href="timesheet_delete.php?id={$timesheet.id}"><img class="table_icon" alt="{$i18n.label.delete}" src="images/icon_delete.png"></a></td>
85 <tr><td align="center"><br><form><input type="button" onclick="chLocation('reports.php');" value="{$i18n.button.add}"></form></td></tr>
91 {$forms.timesheetsForm.close}