{* +--------------------------------------------------------------------+ | 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 | +--------------------------------------------------------------------+ *} {* Form elements for displaying and running action tasks on search results *} {capture assign=advSearchURL} {if $context EQ 'smog'}{crmURL p='civicrm/group/search/advanced' q="gid=`$group.id`&reset=1&force=1"} {elseif $context EQ 'amtg'}{crmURL p='civicrm/contact/search/advanced' q="context=amtg&amtgID=`$group.id`&reset=1&force=1"} {else}{crmURL p='civicrm/contact/search/advanced' q="reset=1"} {/if}{/capture} {capture assign=searchBuilderURL}{crmURL p='civicrm/contact/search/builder' q="reset=1"}{/capture}
{if $action eq 256} » {ts}Advanced Search{/ts}
{if $context eq 'search'} {* Only show Search Builder link for basic search. *} » {ts}Search Builder{/ts}
{/if} {if $context eq 'smog'} {help id="id-smog-criteria" group_id=$group.id group_title=$group.title ssID=$ssID ssMappingID=$ssMappingID permissionedForGroup=$permissionedForGroup} {elseif $context eq 'amtg'} {help id="id-amtg-criteria" group_title=$group.title} {else} {help id="id-basic-criteria"} {/if} {elseif $action eq 512} » {ts}Search Builder{/ts}
{elseif $action eq 8192} » {ts}Advanced Search{/ts}
{/if}
{* Search criteria are passed to tpl in the $qill array *}
{if $savedSearch.name}{$savedSearch.name} ({ts}smart group{/ts}) - {/if} {ts count=$pager->_totalItems plural='%count Contacts'}%count Contact{/ts} {if $qill} {include file="CRM/common/displaySearchCriteria.tpl"} {/if}
{ts}Select Records{/ts}: {assign var="checked" value=$selectedContactIds|@count} {$form.radio_ts.ts_all.html} {if $pager->_totalItems > 1}   {$form.radio_ts.ts_sel.html} {/if}
{* Hide export button in 'Add Members to Group' context. *} {if $context NEQ 'amtg'} {$form.task.html} {/if} {if $action eq 512} {$form._qf_Advanced_next_action.html} {elseif $action eq 8192} {$form._qf_Builder_next_action.html}   {elseif $action eq 16384} {$form._qf_Custom_next_action.html}   {else} {$form._qf_Basic_next_action.html} {/if}