2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.3 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2013 |
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 {if $context EQ 'Search'}
27 {include file="CRM/common/pager.tpl" location="top"}
31 <table class="selector">
32 <thead class="sticky">
34 {if !$single and $context eq 'Search' }
35 <th scope="col" title="Select Rows">{$form.toggleSelect.html}</th>
37 {foreach from=$columnHeaders item=header}
41 {assign var='key' value=$header.sort}
42 {$sort->_response.$key.link}
51 {counter start=0 skip=1 print=false}
52 {foreach from=$rows item=row}
53 <tr id='rowid{$row.contact_id}' class="{cycle values="odd-row,even-row"} crm-campaign">
55 {if $context eq 'Search' }
56 {assign var=cbName value=$row.checkbox}
57 <td>{$form.$cbName.html}</td>
59 <td>{$row.contact_type} <a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$row.contact_id`"}">{$row.sort_name}</a></td>
60 <td>{$row.street_number}</td>
61 <td>{$row.street_name}</td>
62 <td>{$row.street_address}</td>
64 <td>{$row.postal_code}</td>
65 <td>{$row.state_province}</td>
66 <td>{$row.country}</td>
76 {if $context EQ 'Search'}
77 <script type="text/javascript">
78 {* this function is called to change the color of selected row(s) *}
79 var fname = "{$form.formName}";
80 on_load_init_checkboxes(fname);
84 {if $context EQ 'Search'}
85 {include file="CRM/common/pager.tpl" location="bottom"}