1 {include file="time_script.tpl"}
9 {$forms.timeRecordForm.open}
10 <table cellspacing="4" cellpadding="0" border="0">
11 {if $user->isPluginEnabled('wv')}
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>
21 {if $on_behalf_group_control}
23 <td align="right">{$i18n.label.group}:</td>
24 <td>{$forms.timeRecordForm.onBehalfGroup.control}</td>
27 {if $on_behalf_control}
29 <td align="right">{$i18n.label.user}:</td>
30 <td>{$forms.timeRecordForm.onBehalfUser.control}</td>
33 {if $user->isPluginEnabled('cl')}
35 <td align="right">{$i18n.label.client}{if $user->isPluginEnabled('cm')} (*){/if}:</td>
36 <td>{$forms.timeRecordForm.client.control}</td>
39 {if $user->isPluginEnabled('iv')}
41 <td align="right"> </td>
42 <td><label>{$forms.timeRecordForm.billable.control}{$i18n.form.time.billable}</label></td>
45 {if ($custom_fields && $custom_fields->fields[0])}
47 <td align="right">{$custom_fields->fields[0]['label']|escape}{if $custom_fields->fields[0]['required']} (*){/if}:</td><td>{$forms.timeRecordForm.cf_1.control}</td>
50 {if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
52 <td align="right">{$i18n.label.project} (*):</td>
53 <td>{$forms.timeRecordForm.project.control}</td>
56 {if ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
58 <td align="right">{$i18n.label.task}{if $user->task_required} (*){/if}:</td>
59 <td>{$forms.timeRecordForm.task.control}</td>
62 {if (($smarty.const.TYPE_START_FINISH == $user->record_type) || ($smarty.const.TYPE_ALL == $user->record_type))}
64 <td align="right">{$i18n.label.start}:</td>
65 <td>{$forms.timeRecordForm.start.control} <input onclick="setNow('start');" type="button" tabindex="-1" value="{$i18n.button.now}"></td>
68 <td align="right">{$i18n.label.finish}:</td>
69 <td>{$forms.timeRecordForm.finish.control} <input onclick="setNow('finish');" type="button" tabindex="-1" value="{$i18n.button.now}"></td>
72 {if (($smarty.const.TYPE_DURATION == $user->record_type) || ($smarty.const.TYPE_ALL == $user->record_type))}
74 <td align="right">{$i18n.label.duration}:</td>
75 <td>{$forms.timeRecordForm.duration.control} {if $user->decimal_mark == ','}{str_replace('.', ',', $i18n.form.time.duration_format)}{else}{$i18n.form.time.duration_format}{/if}</td>
82 <tr><td>{$forms.timeRecordForm.date.control}</td></tr>
90 <td align="right">{$i18n.label.note}:</td>
91 <td align="left">{$forms.timeRecordForm.note.control}</td>
94 <td align="center" colspan="2">{$forms.timeRecordForm.btn_submit.control}</td>
102 <table border="0" cellpadding="3" cellspacing="1" width="100%">
104 {if $user->isPluginEnabled('cl')}
105 <td width="20%" class="tableHeader">{$i18n.label.client}</td>
107 {if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
108 <td class="tableHeader">{$i18n.label.project}</td>
110 {if ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
111 <td class="tableHeader">{$i18n.label.task}</td>
113 {if (($smarty.const.TYPE_START_FINISH == $user->record_type) || ($smarty.const.TYPE_ALL == $user->record_type))}
114 <td width="5%" class="tableHeader" align="right">{$i18n.label.start}</td>
115 <td width="5%" class="tableHeader" align="right">{$i18n.label.finish}</td>
117 <td width="5%" class="tableHeader">{$i18n.label.duration}</td>
118 <td class="tableHeader">{$i18n.label.note}</td>
119 <td width="5%" class="tableHeader">{$i18n.label.edit}</td>
121 {foreach $time_records as $record}
122 <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}" {if !$record.billable} class="not_billable" {/if}>
123 {if $user->isPluginEnabled('cl')}
124 <td valign="top">{$record.client|escape}</td>
126 {if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
127 <td valign="top">{$record.project|escape}</td>
129 {if ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
130 <td valign="top">{$record.task|escape}</td>
132 {if (($smarty.const.TYPE_START_FINISH == $user->record_type) || ($smarty.const.TYPE_ALL == $user->record_type))}
133 <td nowrap align="right" valign="top">{if $record.start}{$record.start}{else} {/if}</td>
134 <td nowrap align="right" valign="top">{if $record.finish}{$record.finish}{else} {/if}</td>
136 <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>
137 <td valign="top">{if $record.comment}{$record.comment|escape}{else} {/if}</td>
138 <td valign="top" align="center">
139 {if $record.invoice_id}
142 <a href="time_edit.php?id={$record.id}">{$i18n.label.edit}</a>
143 {if ($record.duration == '0:00' && $record.start <> '')}
144 <input type="hidden" name="record_id" value="{$record.id}">
145 <input type="hidden" name="browser_date" value="">
146 <input type="hidden" name="browser_time" value="">
147 <input type="submit" id="btn_stop" name="btn_stop" onclick="browser_date.value=get_date();browser_time.value=get_time()" value="{$i18n.button.stop}">
159 <table cellpadding="3" cellspacing="1" width="720">
161 <td align="left">{$i18n.label.week_total}: {$week_total}</td>
162 <td align="right">{$i18n.label.day_total}: {$day_total}</td>
164 {if $user->isPluginEnabled('mq')}
166 <td align="left">{$i18n.label.month_total}: {$month_total}</td>
168 <td align="right">{$i18n.form.time.over_quota}: <span style="color: green;">{$quota_remaining}</span></td>
170 <td align="right">{$i18n.form.time.remaining_quota}: <span style="color: red;">{$quota_remaining}</span></td>
176 {$forms.timeRecordForm.close}