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 | {if $top} | |
b69e578b CW |
11 | {if $printOnly} |
12 | <h1>{$reportTitle}</h1> | |
13 | <div id="report-date">{$reportDate}</div> | |
14 | {/if} | |
1716eef7 | 15 | {if $statistics} |
b69e578b CW |
16 | <table class="report-layout statistics-table"> |
17 | {foreach from=$statistics.groups item=row} | |
18 | <tr> | |
19 | <th class="statistics" scope="row">{$row.title}</th> | |
69a3a43d | 20 | <td>{$row.value|escape}</td> |
b69e578b CW |
21 | </tr> |
22 | {/foreach} | |
23 | {foreach from=$statistics.filters item=row} | |
24 | <tr> | |
25 | <th class="statistics" scope="row">{$row.title}</th> | |
69a3a43d | 26 | <td>{$row.value|escape}</td> |
b69e578b CW |
27 | </tr> |
28 | {/foreach} | |
29 | </table> | |
30 | {/if} | |
6a488035 TO |
31 | {/if} |
32 | ||
33 | {if $bottom and $rows and $statistics} | |
b69e578b CW |
34 | <table class="report-layout"> |
35 | {foreach from=$statistics.counts item=row} | |
36 | <tr> | |
37 | <th class="statistics" scope="row">{$row.title}</th> | |
38 | <td> | |
39 | {if $row.type eq 1024} | |
69a3a43d | 40 | {$row.value|crmMoney|escape} |
b69e578b | 41 | {elseif $row.type eq 2} |
69a3a43d | 42 | {$row.value|escape} |
b69e578b | 43 | {else} |
69a3a43d | 44 | {$row.value|crmNumberFormat|escape} |
b69e578b | 45 | {/if} |
6a488035 | 46 | |
b69e578b CW |
47 | </td> |
48 | </tr> | |
49 | {/foreach} | |
50 | </table> | |
7a961f19 | 51 | {/if} |