{* +--------------------------------------------------------------------+ | 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 | +--------------------------------------------------------------------+ *} {if ! empty( $fields )} {if $groupId }
{ts}Edit Search Criteria{/ts}
{else}
{/if} {foreach from=$fields item=field key=fieldName} {if $field.skipDisplay} {continue} {/if} {assign var=n value=$field.name} {assign var="operator_name" value=$n|cat:'_operator'} {if $field.is_search_range} {assign var=from value=$field.name|cat:'_from'} {assign var=to value=$field.name|cat:'_to'} {if $field.data_type neq 'Date'} {else} {/if} {else} {if $n eq 'addressee' or $n eq 'email_greeting' or $n eq 'postal_greeting'} {elseif $n eq 'group'} {else} {/if} {/if} {/foreach} {if $proximity_search} {/if}
{$form.$from.label} {$form.$from.html}  {$form.$to.label}  {$form.$to.html}
{$form.$from.label} {include file="CRM/common/jcalendar.tpl" elementName=$from}   {$form.$to.label}  {include file="CRM/common/jcalendar.tpl" elementName=$to}
{$form.$n.label} {include file="CRM/Profile/Form/GreetingType.tpl"} *}
{$form.$n.html}{* quickform add closing
{if ( $field.data_type eq 'Date' or ( ( ( $n eq 'birth_date' ) or ( $n eq 'deceased_date' ) ) ) ) } {include file="CRM/common/jcalendar.tpl" elementName=$n} {elseif $n|substr:0:5 eq 'phone'} {assign var="phone_ext_field" value=$n|replace:'phone':'phone_ext'} {$form.$n.html} {if $form.$phone_ext_field.html}  {$form.$phone_ext_field.html} {/if} {else} {$form.$n.html} {/if} {if $field.html_type eq 'Autocomplete-Select' and $field.data_type eq 'ContactReference'} {include file="CRM/Custom/Form/ContactReference.tpl" element_name = $n} {/if} {if !empty($form.$operator_name)} {$form.$operator_name.html} {assign var="add_multivalue_js" value=true} {/if}
{include file="CRM/Contact/Form/Task/ProximityCommon.tpl"}
{include file="CRM/common/formButtons.tpl"}
{if $groupId}
{/if} {elseif $statusMessage}
{$statusMessage}
{else} {* empty fields *}
{ts}No fields in this Profile have been configured as searchable. Ask the site administrator to check the Profile setup.{/ts}
{/if} {literal} {/literal} {if !empty($add_multivalue_js)} {include file="CRM/Custom/Form/MultiValueSearch.js.tpl"} {/if}