| 1 | {* |
| 2 | +--------------------------------------------------------------------+ |
| 3 | | Copyright CiviCRM LLC. All rights reserved. | |
| 4 | | | |
| 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 | +--------------------------------------------------------------------+ |
| 9 | *} |
| 10 | {if $context EQ 'Search'} |
| 11 | {include file="CRM/common/pager.tpl" location="top"} |
| 12 | {/if} |
| 13 | |
| 14 | {strip} |
| 15 | <table class="selector row-highlight"> |
| 16 | <thead class="sticky"> |
| 17 | <tr> |
| 18 | {if $context eq 'Search' } |
| 19 | <th scope="col" title="Select Rows">{$form.toggleSelect.html}</th> |
| 20 | {/if} |
| 21 | {foreach from=$columnHeaders item=header} |
| 22 | <th scope="col"> |
| 23 | {if $header.sort} |
| 24 | {assign var='key' value=$header.sort} |
| 25 | {$sort->_response.$key.link} |
| 26 | {else} |
| 27 | {$header.name} |
| 28 | {/if} |
| 29 | </th> |
| 30 | {/foreach} |
| 31 | </tr> |
| 32 | </thead> |
| 33 | |
| 34 | {counter start=0 skip=1 print=false} |
| 35 | {foreach from=$rows item=row} |
| 36 | <tr id="rowid{$row.contact_id}"> |
| 37 | {if $context eq 'Search'} |
| 38 | {assign var=cbName value=$row.checkbox} |
| 39 | <td>{$form.$cbName.html}</td> |
| 40 | {/if} |
| 41 | <td>{$row.contact_type}</td> |
| 42 | <td><a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$row.contact_id`&key=`$qfKey`&context=`$context`"}">{$row.sort_name}</a></td> |
| 43 | <td {if ($row.email_on_hold eq 1) or ($row.contact_opt_out eq 1)}class='font-red'{/if}>{$row.email}</td> |
| 44 | <td>{$row.mailing_name}</td> |
| 45 | <td>{$row.mailing_subject}</td> |
| 46 | <td>{$row.mailing_job_status}</td> |
| 47 | <td class="crm-mailing-end_date">{$row.mailing_job_end_date|crmDate}</td> |
| 48 | <td>{$row.action|replace:'xx':$row.contact_id}</td> |
| 49 | </tr> |
| 50 | {/foreach} |
| 51 | </table> |
| 52 | {/strip} |
| 53 | |
| 54 | |
| 55 | |
| 56 | {if $context EQ 'Search'} |
| 57 | {include file="CRM/common/pager.tpl" location="bottom"} |
| 58 | {/if} |