- <td valign="top">{$record.$day_header_0.duration}</td>
- <td valign="top">{$record.$day_header_1.duration}</td>
- <td valign="top">{$record.$day_header_2.duration}</td>
- <td valign="top">{$record.$day_header_3.duration}</td>
- <td valign="top">{$record.$day_header_4.duration}</td>
- <td valign="top">{$record.$day_header_5.duration}</td>
- <td valign="top">{$record.$day_header_6.duration}</td>
+ {if ($smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
+ <td valign="top">{$record.task|escape}</td>
+ {/if}
+ {if (($smarty.const.TYPE_START_FINISH == $user->record_type) || ($smarty.const.TYPE_ALL == $user->record_type))}
+ <td nowrap align="right" valign="top">{if $record.start}{$record.start}{else} {/if}</td>
+ <td nowrap align="right" valign="top">{if $record.finish}{$record.finish}{else} {/if}</td>
+ {/if}
+ <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>
+ <td valign="top">{if $record.comment}{$record.comment|escape}{else} {/if}</td>
+ <td valign="top" align="center">
+ {if $record.invoice_id}
+
+ {else}
+ <a href="time_edit.php?id={$record.id}">{$i18n.label.edit}</a>
+ {if ($record.duration == '0:00' && $record.start <> '')}
+ <input type="hidden" name="record_id" value="{$record.id}">
+ <input type="hidden" name="browser_date" value="">
+ <input type="hidden" name="browser_time" value="">
+ <input type="submit" id="btn_stop" name="btn_stop" onclick="browser_date.value=get_date();browser_time.value=get_time()" value="{$i18n.button.stop}">
+ {/if}
+ {/if}
+ </td>