| 1 | {* |
| 2 | +--------------------------------------------------------------------+ |
| 3 | | CiviCRM version 4.7 | |
| 4 | +--------------------------------------------------------------------+ |
| 5 | | Copyright CiviCRM LLC (c) 2004-2015 | |
| 6 | +--------------------------------------------------------------------+ |
| 7 | | This file is a part of CiviCRM. | |
| 8 | | | |
| 9 | | CiviCRM is free software; you can copy, modify, and distribute it | |
| 10 | | under the terms of the GNU Affero General Public License | |
| 11 | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | |
| 12 | | | |
| 13 | | CiviCRM is distributed in the hope that it will be useful, but | |
| 14 | | WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 15 | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
| 16 | | See the GNU Affero General Public License for more details. | |
| 17 | | | |
| 18 | | You should have received a copy of the GNU Affero General Public | |
| 19 | | License and the CiviCRM Licensing Exception along | |
| 20 | | with this program; if not, contact CiviCRM LLC | |
| 21 | | at info[AT]civicrm[DOT]org. If you have questions about the | |
| 22 | | GNU Affero General Public License or the licensing of CiviCRM, | |
| 23 | | see the CiviCRM license FAQ at http://civicrm.org/licensing | |
| 24 | +--------------------------------------------------------------------+ |
| 25 | *} |
| 26 | {* Master tpl for Advanced Search *} |
| 27 | |
| 28 | <div class="crm-form-block crm-search-form-block"> |
| 29 | |
| 30 | {include file="CRM/Contact/Form/Search/Intro.tpl"} |
| 31 | |
| 32 | <div class="crm-accordion-wrapper crm-advanced_search_form-accordion {if !empty($ssID) or $rows}collapsed{/if}"> |
| 33 | <div class="crm-accordion-header crm-master-accordion-header"> |
| 34 | {if !empty($ssID) or $rows} |
| 35 | {if $savedSearch} |
| 36 | {ts 1=$savedSearch.name}Edit %1 Smart Group Criteria{/ts} |
| 37 | {else} |
| 38 | {ts}Edit Search Criteria{/ts} |
| 39 | {/if} |
| 40 | {else} |
| 41 | {if $savedSearch} |
| 42 | {ts 1=$savedSearch.name}Edit %1 Smart Group Criteria{/ts} |
| 43 | {else} |
| 44 | {ts}Search Criteria{/ts} |
| 45 | {/if} |
| 46 | {/if} |
| 47 | {help id='id-advanced-intro'} |
| 48 | </div> |
| 49 | <div class="crm-accordion-body"> |
| 50 | {include file="CRM/Contact/Form/Search/AdvancedCriteria.tpl"} |
| 51 | </div> |
| 52 | </div> |
| 53 | </div> |
| 54 | |
| 55 | {if $rowsEmpty} |
| 56 | <div class="crm-content-block"> |
| 57 | <div class="crm-results-block crm-results-block-empty"> |
| 58 | {include file="CRM/Contact/Form/Search/EmptyResults.tpl"} |
| 59 | </div> |
| 60 | </div> |
| 61 | {/if} |
| 62 | |
| 63 | {if $rows} |
| 64 | <div class="crm-content-block"> |
| 65 | <div class="crm-results-block"> |
| 66 | {* Search request has returned 1 or more matching rows. Display results and collapse the search criteria fieldset. *} |
| 67 | |
| 68 | {* This section handles form elements for action task select and submit *} |
| 69 | <div class="crm-search-tasks"> |
| 70 | {if $taskFile} |
| 71 | {if $taskContext} |
| 72 | {include file=$taskFile context=$taskContext} |
| 73 | {else} |
| 74 | {include file=$taskFile} |
| 75 | {/if} |
| 76 | {else} |
| 77 | {include file="CRM/Contact/Form/Search/ResultTasks.tpl"} |
| 78 | {/if} |
| 79 | </div> |
| 80 | |
| 81 | {* This section displays the rows along and includes the paging controls *} |
| 82 | <div class="crm-search-results"> |
| 83 | {if $resultFile} |
| 84 | {if $resultContext} |
| 85 | {include file=$resultFile context=$resultContext} |
| 86 | {else} |
| 87 | {include file=$resultFile} |
| 88 | {/if} |
| 89 | {else} |
| 90 | {include file="CRM/Contact/Form/Selector.tpl"} |
| 91 | {/if} |
| 92 | </div> |
| 93 | |
| 94 | {* END Actions/Results section *} |
| 95 | </div> |
| 96 | </div> |
| 97 | {/if} |