{* +--------------------------------------------------------------------+ | CiviCRM version 4.5 | +--------------------------------------------------------------------+ | Copyright CiviCRM LLC (c) 2004-2014 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | | CiviCRM is free software; you can copy, modify, and distribute it | | under the terms of the GNU Affero General Public License | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | | | CiviCRM is distributed in the hope that it will be useful, but | | WITHOUT ANY WARRANTY; without even the implied warranty of | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | See the GNU Affero General Public License for more details. | | | | You should have received a copy of the GNU Affero General Public | | License and the CiviCRM Licensing Exception along | | with this program; if not, contact CiviCRM LLC | | at info[AT]civicrm[DOT]org. If you have questions about the | | GNU Affero General Public License or the licensing of CiviCRM, | | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ *} {if $section eq 1}
{*include the graph*} {include file="CRM/Report/Form/Layout/Graph.tpl"}
{else}
{include file="CRM/Report/Form/Fields.tpl" componentName='Grant'}
{*include actions*} {include file="CRM/Report/Form/Actions.tpl"} {*include the graph*} {include file="CRM/Report/Form/Layout/Graph.tpl"} {if $printOnly}

{$reportTitle}

{$reportDate}
{/if} {if !empty($totalStatistics)}

{ts}Report Filters{/ts}

{if $totalStatistics.filters} {foreach from=$totalStatistics.filters item=row} {/foreach} {else} ( {ts}All Grants{/ts} ) {/if}
{$row.title} {$row.value}

{ts}Summary Statistics{/ts}

{foreach from=$totalStatistics.total_statistics key=key item=val} {/foreach}
Count Amount
{$val.title} {$val.count} {$val.amount|crmMoney}
{/if} {if !empty($grantStatistics)}

{ts}Statistics Breakdown{/ts}

{foreach from=$grantStatistics item=values key=key} {foreach from=$values.value item=row key=field} {if $row.unassigned_count} {/if} {/foreach} {/foreach}
{$values.title} Number of Grants (%) Total Amount (%)
{$field} {if $row.count}{$row.count} ({$row.percentage}%){/if} {foreach from=$row.currency key=fld item=val} {$val.value|crmMoney:$fld} ({$val.percentage}%)   {/foreach}
{$field} ({ts}Unassigned{/ts}) {if $row.unassigned_count}{$row.unassigned_count} ({$row.unassigned_percentage}%){/if} {foreach from=$row.unassigned_currency key=fld item=val} {$val.value|crmMoney:$fld} ({$val.percentage}%)   {/foreach}
 
{/if}
{if empty($totalStatistics)} {include file="CRM/Report/Form/ErrorMessage.tpl"} {/if}
{/if}