1 {include file="time_script.tpl"}
9 {$forms.timeRecordForm.open}
10 <table cellspacing="4" cellpadding="0" border="0">
13 <td align="center" colspan=2">
14 <a href="time.php?date={$selected_date->toString()}">{$i18n.label.day_view}</a> / <a href="week.php?date={$selected_date->toString()}">{$i18n.label.week_view}</a>
23 <td align="right">{$i18n.label.user}:</td>
24 <td>{$forms.timeRecordForm.user.control}</td>
29 <td align="right">{$i18n.label.client}{if $user->isPluginEnabled('cm')} (*){/if}:</td>
30 <td>{$forms.timeRecordForm.client.control}</td>
33 {if $user->isPluginEnabled('iv')}
35 <td align="right"> </td>
36 <td><label>{$forms.timeRecordForm.billable.control}{$i18n.form.time.billable}</label></td>
39 {if ($custom_fields && $custom_fields->fields[0])}
41 <td align="right">{$custom_fields->fields[0]['label']|escape}{if $custom_fields->fields[0]['required']} (*){/if}:</td><td>{$forms.timeRecordForm.cf_1.control}</td>
46 <td align="right">{$i18n.label.project} (*):</td>
47 <td>{$forms.timeRecordForm.project.control}</td>
52 <td align="right">{$i18n.label.task}{if $user->task_required} (*){/if}:</td>
53 <td>{$forms.timeRecordForm.task.control}</td>
58 <td align="right">{$i18n.label.start}:</td>
59 <td>{$forms.timeRecordForm.start.control} <input onclick="setNow('start');" type="button" tabindex="-1" value="{$i18n.button.now}"></td>
64 <td align="right">{$i18n.label.finish}:</td>
65 <td>{$forms.timeRecordForm.finish.control} <input onclick="setNow('finish');" type="button" tabindex="-1" value="{$i18n.button.now}"></td>
70 <td align="right">{$i18n.label.duration}:</td>
71 <td>{$forms.timeRecordForm.duration.control} {if $user->getDecimalMark() == ','}{str_replace('.', ',', $i18n.form.time.duration_format)}{else}{$i18n.form.time.duration_format}{/if}</td>
76 <td align="right">{$i18n.label.file}:</td>
77 <td>{$forms.timeRecordForm.newfile.control}</td>
80 {if $template_dropdown}
82 <td align="right">{$i18n.label.template}:</td>
83 <td>{$forms.timeRecordForm.template.control}</td>
90 <tr><td>{$forms.timeRecordForm.date.control}</td></tr>
98 <td align="right">{$i18n.label.note}:</td>
99 <td align="left">{$forms.timeRecordForm.note.control}</td>
102 <td align="center" colspan="2">{$forms.timeRecordForm.btn_submit.control}</td>
110 <table border="0" cellpadding="3" cellspacing="1" width="100%">
113 <td class="tableHeader">{$i18n.label.client}</td>
116 <td class="tableHeader">{$custom_fields->fields[0]['label']|escape}</td>
119 <td class="tableHeader">{$i18n.label.project}</td>
122 <td class="tableHeader">{$i18n.label.task}</td>
125 <td width="5%" class="tableHeader" align="right">{$i18n.label.start}</td>
128 <td width="5%" class="tableHeader" align="right">{$i18n.label.finish}</td>
130 <td width="5%" class="tableHeader">{$i18n.label.duration}</td>
131 {if $show_note_column}
132 <td class="tableHeader">{$i18n.label.note}</td>
140 {foreach $time_records as $record}
141 <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}" {if !$record.billable} class="not_billable" {/if}>
143 <td valign="top">{$record.client|escape}</td>
146 <td valign="top">{$record.cf_1|escape}</td>
149 <td valign="top">{$record.project|escape}</td>
152 <td valign="top">{$record.task|escape}</td>
155 <td nowrap align="right" valign="top">{if $record.start}{$record.start}{else} {/if}</td>
158 <td nowrap align="right" valign="top">{if $record.finish}{$record.finish}{else} {/if}</td>
160 <td align="right" valign="top">{if ($record.duration == '0:00' && $record.start <> '')}<font color="#ff0000">{$i18n.form.time.uncompleted}</font>{else}{$record.duration}{/if}</td>
161 {if $show_note_column}
162 <td valign="top">{if $record.comment}{$record.comment|escape}{else} {/if}</td>
165 {if $record.has_files}
166 <td valign="top" align="center"><a href="time_files.php?id={$record.id}"><img class="table_icon" alt="{$i18n.label.files}" src="images/icon_files.png"></a></td>
168 <td valign="top" align="center"><a href="time_files.php?id={$record.id}"><img class="table_icon" alt="{$i18n.label.files}" src="images/icon_file.png"></a></td>
171 <td valign="top" align="center">
172 {if $record.approved || $record.timesheet_id || $record.invoice_id}
175 <a href="time_edit.php?id={$record.id}"><img class="table_icon" alt="{$i18n.label.edit}" src="images/icon_edit.png"></a>
176 {if ($record.duration == '0:00' && $record.start <> '')}
177 <input type="hidden" name="record_id" value="{$record.id}">
178 <input type="hidden" name="browser_date" value="">
179 <input type="hidden" name="browser_time" value="">
180 <input type="submit" id="btn_stop" name="btn_stop" onclick="browser_date.value=get_date();browser_time.value=get_time()" value="{$i18n.button.stop}">
184 <td valign="top" align="center">
185 {if $record.approved || $record.timesheet_id || $record.invoice_id}
188 <a href="time_delete.php?id={$record.id}"><img class="table_icon" alt="{$i18n.label.delete}" src="images/icon_delete.png"></a>
192 {if $show_note_row && $record.comment}
194 <td align="right" valign="top">{$i18n.label.note}:</td>
195 <td colspan="{$colspan}" align="left" valign="top">{$record.comment|escape}</td>
205 <table cellpadding="3" cellspacing="1" width="720">
207 <td align="left">{$i18n.label.week_total}: {$week_total}</td>
208 <td align="right">{$i18n.label.day_total}: {$day_total}</td>
210 {if $user->isPluginEnabled('mq')}
212 <td align="left">{$i18n.label.month_total}: {$month_total}</td>
214 <td align="right">{$i18n.form.time.over_balance}: <span style="color: green;">{$balance_remaining}</span></td>
216 <td align="right">{$i18n.form.time.remaining_balance}: <span style="color: red;">{$balance_remaining}</span></td>
220 <td align="left">{$i18n.label.quota}: {$month_quota}</td>
222 <td align="right">{$i18n.form.time.over_quota}: <span style="color: green;">{$quota_remaining}</span></td>
224 <td align="right">{$i18n.form.time.remaining_quota}: <span style="color: red;">{$quota_remaining}</span></td>
230 {$forms.timeRecordForm.close}