{* +--------------------------------------------------------------------+ | CiviCRM version 4.6 | +--------------------------------------------------------------------+ | Copyright CiviCRM LLC (c) 2004-2015 | +--------------------------------------------------------------------+ | 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 | +--------------------------------------------------------------------+ *}
{crmRegion name=profile-search-`$ufGroupName`} {* make sure there are some fields in the selector *} {if ! empty( $columnHeaders ) || $isReset } {if $search}
{include file="$searchTPL"}
{/if}
{* show profile listings criteria ($qill) *} {if $rows} {if $qill}
{ts}Displaying contacts where:{/ts} {include file="CRM/common/displaySearchCriteria.tpl"} {if $mapURL}» {ts}Map these contacts{/ts}{/if}
{/if}
{include file="CRM/common/pager.tpl" location="top"} {* Search criteria are passed to tpl in the $qill array *} {strip} {foreach from=$columnHeaders item=header} {/foreach} {counter start=0 skip=1 print=false} {foreach from=$rows item=row name=listings} {foreach from=$row key=index item=value} {if $columnHeaders.$index.field_name} {else} {/if} {/foreach} {/foreach}
{if $header.sort} {assign var='key' value=$header.sort} {$sort->_response.$key.link} {else} {$header.name} {/if}
{$value}{$value}
{/strip} {include file="CRM/common/pager.tpl" location="bottom"}
{elseif ! $isReset} {include file="CRM/Contact/Form/Search/EmptyResults.tpl" context="Profile"} {/if} {else}
{ts}No fields in this Profile have been configured to display as a result column in the search results table. Ask the site administrator to check the Profile setup.{/ts}
{/if}
{/crmRegion}
{* crm-profile-name-NAME *}