2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.7 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2017 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
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. |
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. |
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 +--------------------------------------------------------------------+
27 <div class="crm-block crm-content-block crm-report-layoutGraph-form-block">
29 {include file="CRM/Report/Form/Layout/Graph.tpl"}
32 <div class="crm-block crm-form-block crm-report-field-form-block">
33 {include file="CRM/Report/Form/Fields.tpl" componentName='Grant'}
36 <div class="crm-block crm-content-block crm-report-form-block">
38 {include file="CRM/Report/Form/Actions.tpl"}
41 {include file="CRM/Report/Form/Layout/Graph.tpl"}
44 <h1>{$reportTitle}</h1>
45 <div id="report-date">{$reportDate}</div>
48 {if !empty($totalStatistics)}
49 <h3>{ts}Report Filters{/ts}</h3>
50 <table class="report-layout statistics-table">
51 {if $totalStatistics.filters}
52 {foreach from=$totalStatistics.filters item=row}
54 <th class="statistics">{$row.title}</th>
59 ( {ts}All Grants{/ts} )
63 <h3>{ts}Summary Statistics{/ts}</h2>
64 <table class="report-layout display">
66 <th class="statistics" scope="row"></th>
67 <th class="statistics right" scope="row">Count</th>
68 <th class="statistics right" scope="row">Amount</th>
70 {foreach from=$totalStatistics.total_statistics key=key item=val}
73 <td class="right">{$val.count}</td>
74 <td class="right">{$val.amount|crmMoney}</td>
80 {if !empty($grantStatistics)}
81 <h3>{ts}Statistics Breakdown{/ts}</h3>
82 <table class="report-layout display">
83 {foreach from=$grantStatistics item=values key=key}
85 <th class="statistics" scope="row">{$values.title}</th>
86 <th class="statistics right" scope="row">Number of Grants (%)</th>
87 <th class="statistics right" scope="row">Total Amount (%)</th>
89 {foreach from=$values.value item=row key=field}
92 <td class="right">{if $row.count}{$row.count} ({$row.percentage}%){/if}</td>
94 {foreach from=$row.currency key=fld item=val}
95 {$val.value|crmMoney:$fld} ({$val.percentage}%)
99 {if $row.unassigned_count}
101 <td>{$field} ({ts}Unassigned{/ts})</td>
102 <td class="right">{if $row.unassigned_count}{$row.unassigned_count} ({$row.unassigned_percentage}%){/if}</td>
104 {foreach from=$row.unassigned_currency key=fld item=val}
105 {$val.value|crmMoney:$fld} ({$val.percentage}%)
111 <tr><td colspan="3" style="border: none;"> </td></tr>
117 {if empty($totalStatistics)}
118 {include file="CRM/Report/Form/ErrorMessage.tpl"}