{* +--------------------------------------------------------------------+ | CiviCRM version 4.6 | +--------------------------------------------------------------------+ | 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 | +--------------------------------------------------------------------+ *} {* Report form criteria section *} {if $colGroups}
{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}
{/if} {if $groupByElements}
{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 $orderByOptions}
{section name=rowLoop start=1 loop=6} {assign var=index value=$smarty.section.rowLoop.index} {/section}
  {ts}Column{/ts} {ts}Order{/ts} {ts}Section Header / Group By{/ts} {ts}Page Break{/ts}
{if $index GT 1} {ts}hide field or section{/ts} {/if} {$form.order_bys.$index.column.html} {$form.order_bys.$index.order.html} {$form.order_bys.$index.section.html} {$form.order_bys.$index.pageBreak.html}
{/if} {if $otherOptions}
{assign var="optionCount" value=0} {foreach from=$otherOptions item=optionField key=optionName} {assign var="optionCount" value=`$optionCount+1`} {if $optionCount is div by 2} {/if} {/foreach} {if $optionCount is not div by 2} {/if}
{if $form.$optionName.label}{$form.$optionName.label} {/if}{$form.$optionName.html}
{/if} {if $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}