Merge remote-tracking branch 'upstream/4.3' into 4.3-master-2013-05-24-02-32-04
[civicrm-core.git] / templates / CRM / Profile / Page / Listings.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.3 |
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{* make sure there are some fields in the selector *}
27{if ! empty( $columnHeaders ) || $isReset }
28
29{if $search}
30<div class="crm-block crm-form-block">
31 {include file="$searchTPL"}
32</div>
33{/if}
34<div class="crm-block crm-content-block">
35{* show profile listings criteria ($qill) *}
36{if $rows}
37
38 {if $qill}
39 <div class="crm-search-tasks">
40 <div id="search-status">
41 {ts}Displaying contacts where:{/ts}
42 {include file="CRM/common/displaySearchCriteria.tpl"}
43 {if $mapURL}<a href="{$mapURL}">&raquo; {ts}Map these contacts{/ts}</a>{/if}
44 </div>
45 </div>
46 {/if}
47
48
49 <div class="crm-search-results">
50 {include file="CRM/common/pager.tpl" location="top"}
51 {* Search criteria are passed to tpl in the $qill array *}
52
53
54 {strip}
55 <table>
56 <tr class="columnheader">
57 {foreach from=$columnHeaders item=header}
58 <th scope="col">
59 {if $header.sort}
60 {assign var='key' value=$header.sort}
61 {$sort->_response.$key.link}
62 {else}
63 {$header.name}
64 {/if}
65 </th>
66 {/foreach}
67 </tr>
68
69 {counter start=0 skip=1 print=false}
70 {foreach from=$rows item=row name=listings}
71 <tr id="row-{$smarty.foreach.listings.iteration}" class="{cycle values="odd-row,even-row"}">
72 {foreach from=$row item=value}
73 <td>{$value}</td>
74 {/foreach}
75 </tr>
76 {/foreach}
77 </table>
78 {/strip}
79 {include file="CRM/common/pager.tpl" location="bottom"}
80 </div>
81{elseif ! $isReset}
82 {include file="CRM/Contact/Form/Search/EmptyResults.tpl" context="Profile"}
83{/if}
84
85
86{else}
87 <div class="messages status no-popup">
88 <div class="icon inform-icon"></div>
89 {ts}No fields in this Profile have been configured to display as a result column in the search results table. Ask the site administrator to check the Profile setup.{/ts}
90 </div>
91{/if}
92</div>