Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
1188c7a8 | 3 | | Copyright CiviCRM LLC. All rights reserved. | |
6a488035 | 4 | | | |
1188c7a8 TO |
5 | | This work is published under the GNU AGPLv3 license with some | |
6 | | permitted exceptions and without any warranty. For full license | | |
7 | | and copyright information, see https://civicrm.org/licensing | | |
6a488035 TO |
8 | +--------------------------------------------------------------------+ |
9 | *} | |
10 | {if $context EQ 'Search'} | |
11 | {include file="CRM/common/pager.tpl" location="top"} | |
12 | {/if} | |
13 | ||
14 | {strip} | |
16850d34 | 15 | <table class="selector row-highlight"> |
6a488035 TO |
16 | <thead class="sticky"> |
17 | <tr> | |
18 | {if !$single and $context eq 'Search' } | |
19 | <th scope="col" title="Select Rows">{$form.toggleSelect.html}</th> | |
20 | {/if} | |
ad6a7ecc | 21 | <th scope="col"></th> |
6a488035 TO |
22 | {foreach from=$columnHeaders item=header} |
23 | ||
24 | <th scope="col"> | |
25 | {if $header.sort} | |
26 | {assign var='key' value=$header.sort} | |
27 | {$sort->_response.$key.link} | |
28 | {else} | |
29 | {$header.name} | |
30 | {/if} | |
31 | </th> | |
32 | {/foreach} | |
33 | </tr> | |
34 | </thead> | |
35 | ||
36 | {counter start=0 skip=1 print=false} | |
37 | {foreach from=$rows item=row} | |
38 | <tr id='rowid{$row.contact_id}' class="{cycle values="odd-row,even-row"} crm-campaign"> | |
39 | {if !$single } | |
40 | {if $context eq 'Search' } | |
41 | {assign var=cbName value=$row.checkbox} | |
42 | <td>{$form.$cbName.html}</td> | |
43 | {/if} | |
ad6a7ecc MR |
44 | <td>{$row.contact_type}</td> |
45 | <td><a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$row.contact_id`"}">{$row.sort_name}</a></td> | |
46 | <td>{$row.street_number}</td> | |
47 | <td>{$row.street_name}</td> | |
48 | <td>{$row.street_address}</td> | |
49 | <td>{$row.city}</td> | |
50 | <td>{$row.postal_code}</td> | |
51 | <td>{$row.state_province}</td> | |
52 | <td>{$row.country}</td> | |
53 | <td>{$row.email}</td> | |
54 | <td>{$row.phone}</td> | |
6a488035 TO |
55 | {/if} |
56 | </tr> | |
57 | {/foreach} | |
58 | ||
59 | </table> | |
60 | {/strip} | |
61 | ||
6a488035 TO |
62 | {if $context EQ 'Search'} |
63 | {include file="CRM/common/pager.tpl" location="bottom"} | |
64 | {/if} |