Merge remote-tracking branch 'upstream/4.3' into 4.3-master-2013-08-28-20-20-34
[civicrm-core.git] / templates / CRM / Member / Form / Search.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.4 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2013 |
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 <div class="crm-form-block crm-search-form-block">
27 <div class="crm-accordion-wrapper crm-member_search_form-accordion {if $rows}collapsed{/if}">
28 <div class="crm-accordion-header crm-master-accordion-header">
29 {ts}Edit Search Criteria{/ts}
30 </div><!-- /.crm-accordion-header -->
31 <div class="crm-accordion-body">
32 {strip}
33 <table class="form-layout">
34 <tr>
35 <td class="font-size12pt" colspan="2">
36 {$form.sort_name.label}&nbsp;&nbsp;{$form.sort_name.html|crmAddClass:'twenty'}&nbsp;&nbsp;&nbsp;{$form.buttons.html}
37 </td>
38 </tr>
39
40 {include file="CRM/Member/Form/Search/Common.tpl"}
41
42 <tr>
43 <td colspan="2">{include file="CRM/common/formButtons.tpl"}</td>
44 </tr>
45 </table>
46 {/strip}
47 </div><!-- /.crm-accordion-body -->
48 </div><!-- /.crm-accordion-wrapper -->
49 </div><!-- /.crm-form-block -->
50 <div class="crm-content-block">
51 {if $rowsEmpty}
52 <div class="crm-results-block crm-results-block-empty">
53 {include file="CRM/Member/Form/Search/EmptyResults.tpl"}
54 </div>
55 {/if}
56
57 {if $rows}
58 <div class="crm-results-block">
59 {* Search request has returned 1 or more matching rows. *}
60
61 {* This section handles form elements for action task select and submit *}
62 <div class="crm-search-tasks">
63 {include file="CRM/common/searchResultTasks.tpl"}
64 </div>
65
66 {* This section displays the rows along and includes the paging controls *}
67 <div id ="memberSearch" class="crm-search-results">
68 {include file="CRM/Member/Form/Selector.tpl" context="Search"}
69 </div>
70 {* END Actions/Results section *}
71 </div>
72 {/if}
73 </div>
74 {literal}
75 <script type="text/javascript">
76 cj(function() {
77 cj().crmAccordions();
78 });
79 </script>
80 {/literal}