| 1 | {* |
| 2 | +--------------------------------------------------------------------+ |
| 3 | | CiviCRM version 4.7 | |
| 4 | +--------------------------------------------------------------------+ |
| 5 | | Copyright CiviCRM LLC (c) 2004-2015 | |
| 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 | {if $context EQ 'Search'} |
| 27 | {include file="CRM/common/pager.tpl" location="top"} |
| 28 | {/if} |
| 29 | |
| 30 | {strip} |
| 31 | <table class="selector row-highlight"> |
| 32 | <thead class="sticky"> |
| 33 | <tr> |
| 34 | {if $context eq 'Search' } |
| 35 | <th scope="col" title="Select Rows">{$form.toggleSelect.html}</th> |
| 36 | {/if} |
| 37 | {foreach from=$columnHeaders item=header} |
| 38 | <th scope="col"> |
| 39 | {if $header.sort} |
| 40 | {assign var='key' value=$header.sort} |
| 41 | {$sort->_response.$key.link} |
| 42 | {else} |
| 43 | {$header.name} |
| 44 | {/if} |
| 45 | </th> |
| 46 | {/foreach} |
| 47 | </tr> |
| 48 | </thead> |
| 49 | |
| 50 | {counter start=0 skip=1 print=false} |
| 51 | {foreach from=$rows item=row} |
| 52 | <tr id="rowid{$row.contact_id}"> |
| 53 | {if $context eq 'Search'} |
| 54 | {assign var=cbName value=$row.checkbox} |
| 55 | <td>{$form.$cbName.html}</td> |
| 56 | {/if} |
| 57 | <td>{$row.contact_type}</td> |
| 58 | <td><a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$row.contact_id`&key=`$qfKey`&context=`$context`"}">{$row.sort_name}</a></td> |
| 59 | <td {if ($row.email_on_hold eq 1) or ($row.contact_opt_out eq 1)}class='font-red'{/if}>{$row.email}</td> |
| 60 | <td>{$row.mailing_name}</td> |
| 61 | <td>{$row.mailing_subject}</td> |
| 62 | <td>{$row.mailing_job_status}</td> |
| 63 | <td class="crm-mailing-end_date">{$row.mailing_job_end_date|crmDate}</td> |
| 64 | <td>{$row.action|replace:'xx':$row.contact_id}</td> |
| 65 | </tr> |
| 66 | {/foreach} |
| 67 | </table> |
| 68 | {/strip} |
| 69 | |
| 70 | |
| 71 | |
| 72 | {if $context EQ 'Search'} |
| 73 | {include file="CRM/common/pager.tpl" location="bottom"} |
| 74 | {/if} |