2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
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 |
8 +--------------------------------------------------------------------+
10 {include file="CRM/common/pager.tpl" location="top"}
12 {include file="CRM/common/pagerAToZ.tpl"}
13 <a href="#" class="crm-selection-reset crm-hover-button"><i class="crm-i fa-times-circle-o" aria-hidden="true"></i> {ts}Reset all selections{/ts}</a>
15 <table summary="{ts}Search results listings.{/ts}" class="selector row-highlight">
16 <thead class="sticky">
18 <th scope="col" title="Select All Rows">{$form.toggleSelect.html}</th>
19 {if $context eq 'smog'}
24 {foreach from=$columnHeaders item=header}
27 {assign var='key' value=$header.sort}
28 {$sort->_response.$key.link}
37 {counter start=0 skip=1 print=false}
40 {foreach from=$rows item=row}
41 <tr id='rowid{$row.contact_id}' class="{cycle values='odd-row,even-row'}">
42 {assign var=cbName value=$row.checkbox}
43 <td>{$form.$cbName.html}</td>
44 {if $context eq 'smog'}
45 {if $row.status eq 'Pending'}<td class="status-pending"}>
46 {elseif $row.status eq 'Removed'}<td class="status-removed">
50 <td>{$row.contact_type}</td>
51 <td><a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$row.contact_id`&key=`$qfKey`&context=`$context`"}">{$row.sort_name}</a></td>
52 {foreach from=$row item=value key=key}
53 {if ($key neq "checkbox") and ($key neq "action") and ($key neq "contact_type") and ($key neq "contact_type_orig") and ($key neq "status") and ($key neq "sort_name") and ($key neq "contact_id")}
55 {if $key EQ "household_income_total" }
57 {elseif strpos( $key, '_date' ) !== false }
66 <td>{$row.action|replace:'xx':$row.contact_id}</td>
70 {foreach from=$rows item=row}
71 <tr id="rowid{$row.contact_id}" class="{cycle values='odd-row,even-row'}">
72 {assign var=cbName value=$row.checkbox}
73 <td>{$form.$cbName.html}</td>
74 {if $context eq 'smog'}
75 {if $row.status eq 'Pending'}<td class="status-pending"}>
76 {elseif $row.status eq 'Removed'}<td class="status-removed">
80 <td>{$row.contact_type}</td>
81 <td><a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$row.contact_id`&key=`$qfKey`&context=`$context`"}">{if $row.is_deleted}<del>{/if}{$row.sort_name}{if $row.is_deleted}</del>{/if}</a></td>
82 {if $action eq 512 or $action eq 256}
83 {if !empty($columnHeaders.street_address)}
84 <td><span title="{$row.street_address|escape}">{$row.street_address|mb_truncate:22:"...":true}{privacyFlag field=do_not_mail condition=$row.do_not_mail}</span></td>
86 {if !empty($columnHeaders.city)}
89 {if !empty($columnHeaders.state_province)}
90 <td>{$row.state_province}</td>
92 {if !empty($columnHeaders.postal_code)}
93 <td>{$row.postal_code}</td>
95 {if !empty($columnHeaders.country)}
96 <td>{$row.country}</td>
100 <span title="{$row.email|escape}">
101 {$row.email|mb_truncate:17:"...":true}
102 {privacyFlag field=do_not_email condition=$row.do_not_email}
103 {privacyFlag field=on_hold condition=$row.on_hold}
110 {privacyFlag field=do_not_phone condition=$row.do_not_phone}
111 {privacyFlag field=do_not_sms condition=$row.do_not_sms}
115 {foreach from=$row item=value key=key}
116 {if ($key neq "checkbox") and ($key neq "action") and ($key neq "contact_type") and ($key neq "status") and ($key neq "sort_name") and ($key neq "contact_id") and ($key neq "contact_type_orig")}
117 <td>{$value} </td>
121 <td style='width:125px;'>{$row.action|replace:'xx':$row.contact_id}</td>
127 <script type="text/javascript">
130 // Clear any old selection that may be lingering in quickform
131 $("input.select-row, input.select-rows", 'form.crm-search-form').prop('checked', false).closest('tr').removeClass('crm-row-selected');
132 // Retrieve stored checkboxes
133 var cids = {/literal}{$selectedContactIds|@json_encode}{literal};
134 if (cids.length > 0) {
135 $('#mark_x_' + cids.join(',#mark_x_') + ',input[name=radio_ts][value=ts_sel]').prop('checked', true);
140 {include file="CRM/common/pager.tpl" location="bottom"}