2 +--------------------------------------------------------------------+
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2019 |
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 {include file="CRM/common/pager.tpl" location="top"}
29 {include file="CRM/common/jsortable.tpl"}
31 <table id="mailing_event">
34 {foreach from=$columnHeaders item=header}
37 {assign var='key' value=$header.sort}
38 {$sort->_response.$key.link}
46 {counter start=0 skip=1 print=false}
47 {foreach from=$rows item=row}
48 <tr class="{cycle values="odd-row,even-row"}">
49 {foreach from=$row item=value}
57 <div class="messages status no-popup">
58 <div class="icon inform-icon"></div>
60 {ts 1=$title}There are currently no %1.{/ts}
64 <div class="action-link">
65 <a href="{$backUrl}">» {$backUrlTitle}</a>
68 {include file="CRM/common/pager.tpl" location="bottom"}
70 {if $pager and ( $pager->_totalPages > 1 )}
72 <script type="text/javascript">
73 var totalPages = {/literal}{$pager->_totalPages}{literal};
75 $("#crm-container .crm-pager input.crm-form-submit").click(function () {
76 submitPagerData(this);
80 function submitPagerData(el) {
82 var jumpTo = cj(el).parent().children('input[type=text]').val();
83 if (parseInt(jumpTo) == "Nan") {
86 if (jumpTo > totalPages) {
90 {foreach from=$pager->_linkData item=val key=k }
91 {if $k neq 'crmPID' && $k neq 'force' && $k neq 'q' }
93 urlParams += '&{/literal}{$k}={$val}{literal}';
98 urlParams += '&crmPID=' + parseInt(jumpTo);
99 var submitUrl = {/literal}'{crmURL p="civicrm/mailing/report/event" q="force=1" h=0 }'{literal};
100 document.location = submitUrl + urlParams;