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>
29 {foreach $active_timesheets as $timesheet}
30 <tr valign="top" bgcolor="{cycle values="#f5f5f5,#ffffff"}">
31 <td><a href="timesheet_view.php?id={$timesheet.id}">{$timesheet.name|escape}</a></td>
33 <td>{$timesheet.client_name|escape}</td>
35 <td>{if $timesheet.submit_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td>
36 {if $timesheet.approve_status == null}
39 <td>{if $timesheet.approve_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td>
42 {if $timesheet.has_files}
43 <td><a href="timesheet_files.php?id={$timesheet.id}"><img class="table_icon" alt="{$i18n.label.files}" src="images/icon_files.png"></a></td>
45 <td><a href="timesheet_files.php?id={$timesheet.id}"><img class="table_icon" alt="{$i18n.label.files}" src="images/icon_file.png"></a></td>
48 <td><a href="timesheet_edit.php?id={$timesheet.id}"><img class="table_icon" alt="{$i18n.label.edit}" src="images/icon_edit.png"></a></td>
49 <td><a href="timesheet_delete.php?id={$timesheet.id}"><img class="table_icon" alt="{$i18n.label.delete}" src="images/icon_delete.png"></a></td>
55 <tr><td align="center"><br><form><input type="button" onclick="chLocation('timesheet_add.php');" value="{$i18n.button.add}"></form></td></tr>
58 {if $inactive_timesheets}
59 <table cellspacing="1" cellpadding="3" border="0" width="100%">
61 <tr><td class="sectionHeaderNoBorder">{$i18n.form.timesheets.inactive_timesheets}</td></tr>
63 <td class="tableHeader">{$i18n.label.thing_name}</td>
65 <td class="tableHeader">{$i18n.label.client}</td>
67 <td class="tableHeader">{$i18n.label.submitted}</td>
68 <td class="tableHeader">{$i18n.label.approved}</td>
75 {foreach $inactive_timesheets as $timesheet}
76 <tr valign="top" bgcolor="{cycle values="#f5f5f5,#ffffff"}">
77 <td><a href="timesheet_view.php?id={$timesheet.id}">{$timesheet.name|escape}</a></td>
79 <td>{$timesheet.client_name|escape}</td>
81 <td>{if $timesheet.submit_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td>
82 {if $timesheet.approve_status == null}
85 <td>{if $timesheet.approve_status}{$i18n.label.yes}{else}{$i18n.label.no}{/if}</td>
88 {if $timesheet.has_files}
89 <td><a href="timesheet_files.php?id={$timesheet.id}"><img class="table_icon" alt="{$i18n.label.files}" src="images/icon_files.png"></a></td>
91 <td><a href="timesheet_files.php?id={$timesheet.id}"><img class="table_icon" alt="{$i18n.label.files}" src="images/icon_file.png"></a></td>
94 <td><a href="timesheet_edit.php?id={$timesheet.id}"><img class="table_icon" alt="{$i18n.label.edit}" src="images/icon_edit.png"></a></td>
95 <td><a href="timesheet_delete.php?id={$timesheet.id}"><img class="table_icon" alt="{$i18n.label.delete}" src="images/icon_delete.png"></a></td>
101 <tr><td align="center"><br><form><input type="button" onclick="chLocation('reports.php');" value="{$i18n.button.add}"></form></td></tr>
107 {$forms.timesheetsForm.close}