2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.7 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2015 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
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. |
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. |
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 +--------------------------------------------------------------------+
26 {* Template for "Sample" custom search component. *}
27 {assign var="showBlock" value="'searchForm'"}
28 {assign var="hideBlock" value="'searchForm_show','searchForm_hide'"}
30 <div class="crm-form-block crm-search-form-block">
32 {include file="CRM/Contact/Form/Search/Custom/MultipleValuesCriteria.tpl"}
37 {include file="CRM/Contact/Form/Search/Custom/EmptyResults.tpl"}
41 {$summary.summary}: {$summary.total}
45 {* Search request has returned 1 or more matching rows. Display results and collapse the search criteria fieldset. *}
46 {assign var="showBlock" value="'searchForm_show'"}
47 {assign var="hideBlock" value="'searchForm'"}
51 {* This section handles form elements for action task select and submit *}
52 {include file="CRM/Contact/Form/Search/ResultTasks.tpl"}
54 {* This section displays the rows along and includes the paging controls *}
57 {include file="CRM/common/pager.tpl" location="top"}
59 {include file="CRM/common/pagerAToZ.tpl"}
62 <table class="selector row-highlight" summary="{ts}Search results listings.{/ts}">
63 <thead class="sticky">
64 <th scope="col" title="Select All Rows">{$form.toggleSelect.html}</th>
65 {foreach from=$columnHeaders item=header}
68 {assign var='key' value=$header.sort}
69 {$sort->_response.$key.link}
78 {counter start=0 skip=1 print=false}
79 {foreach from=$rows item=row}
80 <tr id='rowid{$row.contact_id}' class="{cycle values="odd-row,even-row"}">
81 {assign var=cbName value=$row.checkbox}
82 <td>{$form.$cbName.html}</td>
83 {foreach from=$columnHeaders item=header}
84 {assign var=fName value=$header.sort}
85 {if $fName eq 'sort_name'}
86 <td><a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$row.contact_id`&key=`$qfKey`"}">{$row.sort_name}</a></td>
88 <td>{$row.$fName}</td>
91 <td>{$row.action}</td>
97 {include file="CRM/common/pager.tpl" location="bottom"}
101 {* END Actions/Results section *}