X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=inline;f=WEB-INF%2Ftemplates%2Freport.tpl;h=f99a3fb9ca5ac873f7186517103721a402f27153;hb=7fbd29498b99eb787c4ba799559603c10cc086e6;hp=eb7ed473ee29558cb346e915e975892e75aa25ef;hpb=9a23a8c0a51b7ec38a96f525484134f3cb85dc7e;p=timetracker.git diff --git a/WEB-INF/templates/report.tpl b/WEB-INF/templates/report.tpl index eb7ed473..f99a3fb9 100644 --- a/WEB-INF/templates/report.tpl +++ b/WEB-INF/templates/report.tpl @@ -7,20 +7,20 @@
{$i18n.form.report.export} XML {$i18n.label.or} CSV | +{$i18n.form.report.export} {if file_exists('WEB-INF/lib/tcpdf')}PDF,{/if} XML {$i18n.label.or} CSV |
{$group_by_header|escape:'html'} | +{$group_by_header|escape} | {if $bean->getAttribute('chduration')}{$i18n.label.duration} | {/if} {if $bean->getAttribute('chcost')}{$i18n.label.cost} | {/if}||||||||||||||||||||
{if $subtotal['name']}{$subtotal['name']|escape:'html'}{else} {/if} | +{if $subtotal['name']}{$subtotal['name']|escape}{else} {/if} | {if $bean->getAttribute('chduration')}{$subtotal['time']} | {/if} {if $bean->getAttribute('chcost')}{if $user->canManageTeam() || $user->isClient()}{$subtotal['cost']}{else}{$subtotal['expenses']}{/if} | {/if}||||||||||||||||||||
{$i18n.label.total} | {if $bean->getAttribute('chduration')}{$totals['time']} | {/if} - {if $bean->getAttribute('chcost')}{$user->currency|escape:'html'} {if $user->canManageTeam() || $user->isClient()}{$totals['cost']}{else}{$totals['expenses']}{/if} | {/if} + {if $bean->getAttribute('chcost')}{$user->currency|escape} {if $user->canManageTeam() || $user->isClient()}{$totals['cost']}{else}{$totals['expenses']}{/if} | {/if}||||||||||||||||||||
{$i18n.label.date} | {if $user->canManageTeam() || $user->isClient()}{$i18n.label.user} | {/if} {if $bean->getAttribute('chclient')}{$i18n.label.client} | {/if} {if $bean->getAttribute('chproject')}{$i18n.label.project} | {/if} {if $bean->getAttribute('chtask')}{$i18n.label.task} | {/if} - {if $bean->getAttribute('chcf_1')}{$custom_fields->fields[0]['label']|escape:'html'} | {/if} + {if $bean->getAttribute('chcf_1')}{$custom_fields->fields[0]['label']|escape} | {/if} {if $bean->getAttribute('chstart')}{$i18n.label.start} | {/if} {if $bean->getAttribute('chfinish')}{$i18n.label.finish} | {/if} {if $bean->getAttribute('chduration')}{$i18n.label.duration} | {/if} {if $bean->getAttribute('chnote')}{$i18n.label.note} | {/if} {if $bean->getAttribute('chcost')}{$i18n.label.cost} | {/if} - {if $bean->getAttribute('chinvoice')}{$i18n.label.invoice} | {/if} + {if $bean->getAttribute('chpaid')}{$i18n.label.paid} | {/if} + {if $bean->getAttribute('chinvoice')}{$i18n.label.invoice} | {/if}|||||||||
{$i18n.label.subtotal} - {if $user->canManageTeam() || $user->isClient()} | {if $group_by == 'user'}{$subtotals[$prev_grouped_by]['name']|escape:'html'} | {/if}{/if} - {if $bean->getAttribute('chclient')}{if $group_by == 'client'}{$subtotals[$prev_grouped_by]['name']|escape:'html'} | {/if}{/if} - {if $bean->getAttribute('chproject')}{if $group_by == 'project'}{$subtotals[$prev_grouped_by]['name']|escape:'html'} | {/if}{/if} - {if $bean->getAttribute('chtask')}{if $group_by == 'task'}{$subtotals[$prev_grouped_by]['name']|escape:'html'} | {/if}{/if} - {if $bean->getAttribute('chcf_1')}{if $group_by == 'cf_1'}{$subtotals[$prev_grouped_by]['name']|escape:'html'} | {/if}{/if} + {if $user->canManageTeam() || $user->isClient()}{if $group_by == 'user'}{$subtotals[$prev_grouped_by]['name']|escape} | {/if}{/if} + {if $bean->getAttribute('chclient')}{if $group_by == 'client'}{$subtotals[$prev_grouped_by]['name']|escape} | {/if}{/if} + {if $bean->getAttribute('chproject')}{if $group_by == 'project'}{$subtotals[$prev_grouped_by]['name']|escape} | {/if}{/if} + {if $bean->getAttribute('chtask')}{if $group_by == 'task'}{$subtotals[$prev_grouped_by]['name']|escape} | {/if}{/if} + {if $bean->getAttribute('chcf_1')}{if $group_by == 'cf_1'}{$subtotals[$prev_grouped_by]['name']|escape} | {/if}{/if} {if $bean->getAttribute('chstart')}{/if} {if $bean->getAttribute('chfinish')} | {/if} {if $bean->getAttribute('chduration')} | {$subtotals[$prev_grouped_by]['time']} | {/if} {if $bean->getAttribute('chnote')}{/if} {if $bean->getAttribute('chcost')} | {if $user->canManageTeam() || $user->isClient()}{$subtotals[$prev_grouped_by]['cost']}{else}{$subtotals[$prev_grouped_by]['expenses']}{/if} | {/if} + {if $bean->getAttribute('chpaid')}{/if} {if $bean->getAttribute('chinvoice')} | {/if} + {if $use_checkboxes} | {/if} | |||||
{$item.date} | - {if $user->canManageTeam() || $user->isClient()}{$item.user|escape:'html'} | {/if} - {if $bean->getAttribute('chclient')}{$item.client|escape:'html'} | {/if} - {if $bean->getAttribute('chproject')}{$item.project|escape:'html'} | {/if} - {if $bean->getAttribute('chtask')}{$item.task|escape:'html'} | {/if} - {if $bean->getAttribute('chcf_1')}{$item.cf_1|escape:'html'} | {/if} + {if $user->canManageTeam() || $user->isClient()}{$item.user|escape} | {/if} + {if $bean->getAttribute('chclient')}{$item.client|escape} | {/if} + {if $bean->getAttribute('chproject')}{$item.project|escape} | {/if} + {if $bean->getAttribute('chtask')}{$item.task|escape} | {/if} + {if $bean->getAttribute('chcf_1')}{$item.cf_1|escape} | {/if} {if $bean->getAttribute('chstart')}{$item.start} | {/if} {if $bean->getAttribute('chfinish')}{$item.finish} | {/if} {if $bean->getAttribute('chduration')}{$item.duration} | {/if} - {if $bean->getAttribute('chnote')}{$item.note|escape:'html'} | {/if} + {if $bean->getAttribute('chnote')}{$item.note|escape} | {/if} {if $bean->getAttribute('chcost')}{if $user->canManageTeam() || $user->isClient()}{$item.cost}{else}{$item.expense}{/if} | {/if} - {if $bean->getAttribute('chinvoice')} -{$item.invoice|escape:'html'} | - {if $use_checkboxes} - {if 1 == $item.type}{/if} - {if 2 == $item.type} | {/if} - {/if} + {if $bean->getAttribute('chpaid')} | {if $item.paid == 1}{$i18n.label.yes}{else}{$i18n.label.no}{/if}{/if} + {if $bean->getAttribute('chinvoice')} | {$item.invoice|escape} | {/if} + {if $use_checkboxes} + {if 1 == $item.type}{/if} + {if 2 == $item.type} | {/if} {/if} |
{$i18n.label.subtotal} - {if $user->canManageTeam() || $user->isClient()} | {if $group_by == 'user'}{$subtotals[$cur_grouped_by]['name']|escape:'html'} | {/if}{/if} - {if $bean->getAttribute('chclient')}{if $group_by == 'client'}{$subtotals[$cur_grouped_by]['name']|escape:'html'} | {/if}{/if} - {if $bean->getAttribute('chproject')}{if $group_by == 'project'}{$subtotals[$cur_grouped_by]['name']|escape:'html'} | {/if}{/if} - {if $bean->getAttribute('chtask')}{if $group_by == 'task'}{$subtotals[$cur_grouped_by]['name']|escape:'html'} | {/if}{/if} - {if $bean->getAttribute('chcf_1')}{if $group_by == 'cf_1'}{$subtotals[$cur_grouped_by]['name']|escape:'html'} | {/if}{/if} + {if $user->canManageTeam() || $user->isClient()}{if $group_by == 'user'}{$subtotals[$cur_grouped_by]['name']|escape} | {/if}{/if} + {if $bean->getAttribute('chclient')}{if $group_by == 'client'}{$subtotals[$cur_grouped_by]['name']|escape} | {/if}{/if} + {if $bean->getAttribute('chproject')}{if $group_by == 'project'}{$subtotals[$cur_grouped_by]['name']|escape} | {/if}{/if} + {if $bean->getAttribute('chtask')}{if $group_by == 'task'}{$subtotals[$cur_grouped_by]['name']|escape} | {/if}{/if} + {if $bean->getAttribute('chcf_1')}{if $group_by == 'cf_1'}{$subtotals[$cur_grouped_by]['name']|escape} | {/if}{/if} {if $bean->getAttribute('chstart')}{/if} {if $bean->getAttribute('chfinish')} | {/if} {if $bean->getAttribute('chduration')} | {$subtotals[$cur_grouped_by]['time']} | {/if} {if $bean->getAttribute('chnote')}{/if} {if $bean->getAttribute('chcost')} | {if $user->canManageTeam() || $user->isClient()}{$subtotals[$cur_grouped_by]['cost']}{else}{$subtotals[$cur_grouped_by]['expenses']}{/if} | {/if} + {if $bean->getAttribute('chpaid')}{/if} {if $bean->getAttribute('chinvoice')} | {/if} + {if $use_checkboxes} | {/if} | {/if} {if $bean->getAttribute('chduration')} | {$totals['time']} | {/if} {if $bean->getAttribute('chnote')}{/if} - {if $bean->getAttribute('chcost')} | {$user->currency|escape:'html'} {if $user->canManageTeam() || $user->isClient()}{$totals['cost']}{else}{$totals['expenses']}{/if} | {/if} + {if $bean->getAttribute('chcost')}{$user->currency|escape} {if $user->canManageTeam() || $user->isClient()}{$totals['cost']}{else}{$totals['expenses']}{/if} | {/if} + {if $bean->getAttribute('chpaid')}{/if} {if $bean->getAttribute('chinvoice')} | {/if} + {if $use_checkboxes} | {/if} {/if} |
|
||
+
|
+