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"}
13 {include file="CRM/common/jsortable.tpl"}
15 <table id="mailing_event">
18 {foreach from=$columnHeaders item=header}
21 {assign var='key' value=$header.sort}
22 {$sort->_response.$key.link}
30 {counter start=0 skip=1 print=false}
31 {foreach from=$rows item=row}
32 <tr class="{cycle values="odd-row,even-row"}">
33 {foreach from=$row item=value}
41 <div class="messages status no-popup">
42 <div class="icon inform-icon"></div>
44 {ts 1=$title}There are currently no %1.{/ts}
48 <div class="action-link">
49 <a href="{$backUrl}">» {$backUrlTitle}</a>
52 {include file="CRM/common/pager.tpl" location="bottom"}
54 {if $pager and ( $pager->_totalPages > 1 )}
56 <script type="text/javascript">
57 var totalPages = {/literal}{$pager->_totalPages}{literal};
59 $("#crm-container .crm-pager input.crm-form-submit").click(function () {
60 submitPagerData(this);
64 function submitPagerData(el) {
66 var jumpTo = cj(el).parent().children('input[type=text]').val();
67 if (parseInt(jumpTo) == "Nan") {
70 if (jumpTo > totalPages) {
74 {foreach from=$pager->_linkData item=val key=k }
75 {if $k neq 'crmPID' && $k neq 'force' && $k neq 'q' }
77 urlParams += '&{/literal}{$k}={$val}{literal}';
82 urlParams += '&crmPID=' + parseInt(jumpTo);
83 var submitUrl = {/literal}'{crmURL p="civicrm/mailing/report/event" q="force=1" h=0 }'{literal};
84 document.location = submitUrl + urlParams;