2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.4 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2013 |
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">
52 cj("#popupContainer").hide();
53 cj("#button").click(function(){
54 cj("#popupContainer").dialog({
55 title: "Selected Contacts",
67 var count = 0; var columns=''; var sortColumn = '';
69 cj('#selectedRecords th').each( function( ) {
70 if ( cj(this).attr('class') == 'contact_details' ) {
71 sortColumn += '[' + count + ', "asc" ],';
72 columns += '{"sClass": "contact_details"},';
74 columns += '{ "bSortable": false },';
79 columns = columns.substring(0, columns.length - 1 );
80 sortColumn = sortColumn.substring(0, sortColumn.length - 1 );
81 eval('sortColumn =[' + sortColumn + ']');
82 eval('columns =[' + columns + ']');
84 //load jQuery data table.
85 cj('#selectedRecords').dataTable( {
86 "sPaginationType": "full_numbers",
88 "aaSorting" : sortColumn,
89 "aoColumns" : columns,