Merge remote-tracking branch 'upstream/4.4' into 4.4-master-2014-02-06-10-43-01
[civicrm-core.git] / templates / CRM / Report / Form / Event / Income.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.4 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2013 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
8 | |
9 | CiviCRM is free software; you can copy, modify, and distribute it |
10 | under the terms of the GNU Affero General Public License |
11 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
12 | |
13 | CiviCRM is distributed in the hope that it will be useful, but |
14 | WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
16 | See the GNU Affero General Public License for more details. |
17 | |
18 | You should have received a copy of the GNU Affero General Public |
19 | License and the CiviCRM Licensing Exception along |
20 | with this program; if not, contact CiviCRM LLC |
21 | at info[AT]civicrm[DOT]org. If you have questions about the |
22 | GNU Affero General Public License or the licensing of CiviCRM, |
23 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
24 +--------------------------------------------------------------------+
25 *}
26 {* this div is being used to apply special css *}
27 {if !$section }
28 <div class="crm-block crm-form-block crm-report-field-form-block">
29 {include file="CRM/Report/Form/Fields.tpl"}
30 </div>
31 {/if}
32
33 <div class="crm-block crm-content-block crm-report-form-block">
34 {include file="CRM/Report/Form/Actions.tpl"}
35 {*Statistics at the Top of the page*}
36 {if !$section }
37 {include file="CRM/Report/Form/Statistics.tpl" top=true}
38 {/if}
39
40 {if $events}
41 <div class="report-pager">
42 {include file="CRM/common/pager.tpl" location="top"}
43 </div>
44 {foreach from=$events item=eventID}
45 <table class="report-layout">
46 {foreach from=$summary.$eventID item=values key=keys}
47 {if $keys == 'Title'}
48 <tr>
49 <th>{$keys}</th>
50 <th colspan="3">{$values}</th>
51 </tr>
52 {else}
53 <tr class="{cycle values="odd-row,even-row"} crm-report crm-report_event_summary" id="crm-report_{$eventID}_summary_{$keys}">
54 <td class="report-contents crm-report_summary_title">{$keys}</td>
55 <td class="report-contents crm-report_summary_details" colspan="3">{$values}</td>
56 </tr>
57 {/if}
58 {/foreach}
59 </table>
60 {foreach from=$rows item=row key=keys}
61 {if $row.$eventID}
62 <table class="report-layout">
63 {if $row}
64 <tr>
65 <th width="34%">{ts 1=$keys}%1 Breakdown{/ts}</th>
66 <th class="reports-header-right">{ts}Total{/ts}</th>
67 <th class="reports-header-right">{ts}% of Total{/ts}</th>
68 <th class="reports-header-right">{ts}Revenue{/ts}</th>
69 </tr>
70 {foreach from=$row.$eventID item=row key=role}
71 <tr class="{cycle values="odd-row,even-row"} crm-report crm-report_{$keys}_{$role}" id="crm-report_{$eventID}_{$keys}_{$role}">
72 <td class="report-contents crm-report_{$keys}_breakdown" width="34%">{$role}</td>
73 <td class="report-contents-right crm-report_{$keys}_total">{$row.total}</td>
74 <td class="report-contents-right crm-report_{$keys}_percentage">{$row.round}</td>
75 <td class="report-contents-right crm-report_{$keys}_revenue">{$row.amount}</td>
76 </tr>
77 {/foreach}
78 {/if}
79 </table>
80 {/if}
81 {/foreach}
82 {/foreach}
83
84 <div class="report-pager">
85 {include file="CRM/common/pager.tpl"}
86 </div>
87 {if !$section }
88 {*Statistics at the bottom of the page*}
89 {include file="CRM/Report/Form/Statistics.tpl" bottom=true}
90 {/if}
91 {/if}
92 {include file="CRM/Report/Form/ErrorMessage.tpl"}
93 </div>