Merge pull request #3464 from totten/master-file-search
[civicrm-core.git] / templates / CRM / Contact / Form / Search / Basic.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
819d0d41 3 | CiviCRM version 4.5 |
6a488035 4 +--------------------------------------------------------------------+
819d0d41 5 | Copyright CiviCRM LLC (c) 2004-2014 |
6a488035
TO
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
27{* Main template for basic search (Find Contacts) *}
28{include file="CRM/Contact/Form/Search/Intro.tpl"}
29<div class="crm-form-block crm-search-form-block">
30{* This section handles form elements for search criteria *}
31 <div id="searchForm">
32 {include file="CRM/Contact/Form/Search/BasicCriteria.tpl"}
33 </div>
34</div>
35<div class="crm-content-block">
36{if $rowsEmpty}
37 <div class="crm-results-block crm-results-block-empty">
38 {include file="CRM/Contact/Form/Search/EmptyResults.tpl"}
39 </div>
40{elseif $rows}
41 <div class="crm-results-block">
42 {* Search request has returned 1 or more matching rows. *}
43 {* This section handles form elements for action task select and submit *}
44 <div class="crm-search-tasks">
45 {if $taskFile}
46 {if $taskContext}
47 {include file=$taskFile context=$taskContext}
48 {else}
49 {include file=$taskFile}
50 {/if}
51 {else}
52 {include file="CRM/Contact/Form/Search/ResultTasks.tpl"}
53 {/if}
54 </div>
55
56 {* This section displays the rows along and includes the paging controls *}
57 <div class="crm-search-results">
58 {if $resultFile}
59 {if $resultContext}
60 {include file=$resultFile context=$resultContext}
61 {else}
62 {include file=$resultFile}
63 {/if}
64 {else}
65 {include file="CRM/Contact/Form/Selector.tpl"}
66 {/if}
67 </div>
68
69 {* END Actions/Results section *}
70 </div>
71{else}
72 <div class="spacer">&nbsp;</div>
73{/if}
232624b1 74</div>
033c24be 75{*include file="CRM/common/searchJs.tpl"*}