{* +--------------------------------------------------------------------+ | 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"}
{elseif $section eq 2}
{*include the table layout*} {include file="CRM/Report/Form/Layout/Table.tpl"}
{else}
{if !$printOnly} {* NO print section starts *}
{* criteria section starts *}
{ts}Report Criteria{/ts}
{* search section starts *} {if $colGroups} {if $componentName eq 'Grant'}

{ts}Include these Statistics{/ts}

{else}

Display Columns

{/if} {foreach from=$colGroups item=grpFields key=dnc} {assign var="count" value="0"} {* Wrap custom field sets in collapsed accordion pane. *} {if $grpFields.group_title} {/if} {/foreach} {foreach from=$caseDetailExtra key=field item=fieldDetail} {/foreach}
{$fieldDetail.title} {$form.case_detail_extra.$field.html}
{/if} {if $groupByElements}

Group by Columns

{assign var="count" value="0"} {foreach from=$groupByElements item=gbElem key=dnc} {assign var="count" value=`$count+1`} {if $count is div by 4} {/if} {/foreach} {if $count is not div by 4} {/if}
{$form.group_bys[$gbElem].html} {if $form.group_bys_freq[$gbElem].html}:
  {$form.group_bys_freq[$gbElem].label} {$form.group_bys_freq[$gbElem].html} {/if}
{/if} {if $form.options.html || $form.options.html}

Other Options

{if $form.blank_column_end} {/if}
{$form.options.html}{$form.blank_column_end.label}  {$form.blank_column_end.html}
{/if} {if $filters}

Set Filters

{assign var="counter" value=1} {foreach from=$filters item=table key=tableName} {assign var="filterCount" value=$table|@count} {* Wrap custom field sets in collapsed accordion pane. *} {if $colGroups.$tableName.group_title and $filterCount gte 1} {* we should close table that contains other filter elements before we start building custom group accordian *} {if $counter eq 1}
{assign var="counter" value=0} {/if} {assign var=closed value=1"} {*-- ie table tags are closed-- *} {else} {assign var=closed value=0"} {*-- ie table tags are not closed-- *} {/if} {/foreach} {if $closed eq 0 }{/if} {/if} {literal} {/literal}
{$form.buttons.html}
{* search div section ends *}
{* criteria section ends *} {if $instanceForm OR $instanceFormError} {* settings section starts *}
{if $mode eq 'template'}{ts}Create Report{/ts}{else}{ts}Report Settings{/ts}{/if}
{include file="CRM/Report/Form/Instance.tpl"} {assign var=save value="_qf_"|cat:$form.formName|cat:"_submit_save"}
{$form.$save.html}
{if $updateReportButton}
{$form.$save.html}
{/if} {/if} {* settings section ends *} {/if} {* NO print section ends *}
{*include actions*} {include file="CRM/Report/Form/Actions.tpl"} {*Statistics at the Top of the page*} {include file="CRM/Report/Form/Statistics.tpl" top=true} {*include the graph*} {include file="CRM/Report/Form/Layout/Graph.tpl"} {*include the table layout*} {include file="CRM/Report/Form/Layout/Table.tpl"}
{*Statistics at the bottom of the page*} {include file="CRM/Report/Form/Statistics.tpl" bottom=true} {include file="CRM/Report/Form/ErrorMessage.tpl"}
{/if}
{literal} {/literal}