2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.6 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2015 |
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 <div class="messages status float-right no-popup">
27 {ts}Total Recipients:{/ts} <strong>{$count|crmNumberFormat}</strong>
29 {if $action eq 256 & $ssid eq null}
30 <div class="status float-right">
31 <div id="popupContainer">
32 <table id="selectedRecords" class="display crm-copy-fields">
34 <tr class="columnheader">
35 <th class="contact_details">Name</th>
40 {foreach from=$value item='row'}
41 <tr class="{cycle values="odd-row,even-row"}">
42 <td class="name">{$row}</td>
48 <a href="#" id="button"title="Contacts selected in the Find Contacts page"> {ts}View Selected Contacts{/ts}</a>
51 <script type="text/javascript">
54 $("#popupContainer").hide();
55 $("#button").click(function() {
56 $("#popupContainer").dialog({
57 title: {/literal}"{ts escape='js'}Selected Contacts{/ts}"{literal},
63 var count = 0; var columns=''; var sortColumn = '';
65 $('#selectedRecords th').each( function( ) {
66 if ( $(this).attr('class') == 'contact_details' ) {
67 sortColumn += '[' + count + ', "asc" ],';
68 columns += '{"sClass": "contact_details"},';
70 columns += '{ "bSortable": false },';
75 columns = columns.substring(0, columns.length - 1 );
76 sortColumn = sortColumn.substring(0, sortColumn.length - 1 );
77 eval('sortColumn =[' + sortColumn + ']');
78 eval('columns =[' + columns + ']');
80 //load jQuery data table.
81 $('#selectedRecords').dataTable( {
82 "sPaginationType": "full_numbers",
84 "aaSorting" : sortColumn,
85 "aoColumns" : columns,