Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
1188c7a8 | 3 | | Copyright CiviCRM LLC. All rights reserved. | |
6a488035 | 4 | | | |
1188c7a8 TO |
5 | | This work is published under the GNU AGPLv3 license with some | |
6 | | permitted exceptions and without any warranty. For full license | | |
7 | | and copyright information, see https://civicrm.org/licensing | | |
6a488035 TO |
8 | +--------------------------------------------------------------------+ |
9 | *} | |
10 | {* this div is being used to apply special css *} | |
11 | {if !$section } | |
12 | <div class="crm-block crm-form-block crm-report-field-form-block"> | |
13 | {include file="CRM/Report/Form/Fields.tpl"} | |
14 | </div> | |
15 | {/if} | |
16 | ||
17 | <div class="crm-block crm-content-block crm-report-form-block"> | |
18 | {include file="CRM/Report/Form/Actions.tpl"} | |
19 | {*Statistics at the Top of the page*} | |
20 | {if !$section } | |
21 | {include file="CRM/Report/Form/Statistics.tpl" top=true} | |
22 | {/if} | |
23 | ||
24 | {if $events} | |
25 | <div class="report-pager"> | |
d8249fcb | 26 | {include file="CRM/common/pager.tpl" location="top"} |
6a488035 TO |
27 | </div> |
28 | {foreach from=$events item=eventID} | |
29 | <table class="report-layout"> | |
30 | {foreach from=$summary.$eventID item=values key=keys} | |
31 | {if $keys == 'Title'} | |
32 | <tr> | |
33 | <th>{$keys}</th> | |
34 | <th colspan="3">{$values}</th> | |
35 | </tr> | |
36 | {else} | |
37 | <tr class="{cycle values="odd-row,even-row"} crm-report crm-report_event_summary" id="crm-report_{$eventID}_summary_{$keys}"> | |
38 | <td class="report-contents crm-report_summary_title">{$keys}</td> | |
39 | <td class="report-contents crm-report_summary_details" colspan="3">{$values}</td> | |
40 | </tr> | |
41 | {/if} | |
42 | {/foreach} | |
43 | </table> | |
44 | {foreach from=$rows item=row key=keys} | |
45 | {if $row.$eventID} | |
46 | <table class="report-layout"> | |
47 | {if $row} | |
48 | <tr> | |
49 | <th width="34%">{ts 1=$keys}%1 Breakdown{/ts}</th> | |
50 | <th class="reports-header-right">{ts}Total{/ts}</th> | |
51 | <th class="reports-header-right">{ts}% of Total{/ts}</th> | |
52 | <th class="reports-header-right">{ts}Revenue{/ts}</th> | |
53 | </tr> | |
54 | {foreach from=$row.$eventID item=row key=role} | |
55 | <tr class="{cycle values="odd-row,even-row"} crm-report crm-report_{$keys}_{$role}" id="crm-report_{$eventID}_{$keys}_{$role}"> | |
56 | <td class="report-contents crm-report_{$keys}_breakdown" width="34%">{$role}</td> | |
57 | <td class="report-contents-right crm-report_{$keys}_total">{$row.total}</td> | |
58 | <td class="report-contents-right crm-report_{$keys}_percentage">{$row.round}</td> | |
7baf6261 | 59 | <td class="report-contents-right crm-report_{$keys}_revenue">{$row.amount}</td> |
6a488035 TO |
60 | </tr> |
61 | {/foreach} | |
62 | {/if} | |
63 | </table> | |
64 | {/if} | |
65 | {/foreach} | |
66 | {/foreach} | |
67 | ||
68 | <div class="report-pager"> | |
d8249fcb | 69 | {include file="CRM/common/pager.tpl"} |
6a488035 TO |
70 | </div> |
71 | {if !$section } | |
72 | {*Statistics at the bottom of the page*} | |
73 | {include file="CRM/Report/Form/Statistics.tpl" bottom=true} | |
74 | {/if} | |
75 | {/if} | |
76 | {include file="CRM/Report/Form/ErrorMessage.tpl"} | |
232624b1 | 77 | </div> |