2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.5 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2014 |
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"}
45 <h1>{$reportTitle}</h1>
46 <div id="report-date">{$reportDate}</div>
49 {if !empty($totalStatistics)}
50 <h3>{ts}Report Filters{/ts}</h3>
51 <table class="report-layout statistics-table">
52 {if $totalStatistics.filters}
53 {foreach from=$totalStatistics.filters item=row}
55 <th class="statistics">{$row.title}</th>
60 ( {ts}All Grants{/ts} )
64 <h3>{ts}Summary Statistics{/ts}</h2>
65 <table class="report-layout display">
67 <th class="statistics" scope="row"></th>
68 <th class="statistics right" scope="row">Count</th>
69 <th class="statistics right" scope="row">Amount</th>
71 {foreach from=$totalStatistics.total_statistics key=key item=val}
74 <td class="right">{$val.count}</td>
75 <td class="right">{$val.amount|crmMoney}</td>
81 {if !empty($grantStatistics)}
82 <h3>{ts}Statistics Breakdown{/ts}</h3>
83 <table class="report-layout display">
84 {foreach from=$grantStatistics item=values key=key}
86 <th class="statistics" scope="row">{$values.title}</th>
87 <th class="statistics right" scope="row">Number of Grants (%)</th>
88 <th class="statistics right" scope="row">Total Amount (%)</th>
90 {foreach from=$values.value item=row key=field}
93 <td class="right">{if $row.count}{$row.count} ({$row.percentage}%){/if}</td>
95 {foreach from=$row.currency key=fld item=val}
96 {$val.value|crmMoney:$fld} ({$val.percentage}%)
100 {if $row.unassigned_count}
102 <td>{$field} ({ts}Unassigned{/ts})</td>
103 <td class="right">{if $row.unassigned_count}{$row.unassigned_count} ({$row.unassigned_percentage}%){/if}</td>
105 {foreach from=$row.unassigned_currency key=fld item=val}
106 {$val.value|crmMoney:$fld} ({$val.percentage}%)
112 <tr><td colspan="3" style="border: none;"> </td></tr>
118 {if empty($totalStatistics)}
119 {include file="CRM/Report/Form/ErrorMessage.tpl"}