Merge pull request #12995 from eileenmcnaughton/activity_extract2
[civicrm-core.git] / templates / CRM / Mailing / Page / Report.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 5 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2019 |
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 <fieldset>
27 <legend>{ts}Delivery Summary{/ts}</legend>
28 {if $report.jobs.0.start_date}
29 {strip}
30 <table class="crm-info-panel">
31 <tr><td class="label"><a href="{$report.event_totals.links.queue}">{ts}Intended Recipients{/ts}</a></td>
32 <td>{$report.event_totals.queue}</td>
33 <td>{$report.event_totals.actionlinks.queue}</td></tr>
34 <tr><td class="label"><a href="{$report.event_totals.links.delivered}">{ts}Successful Deliveries{/ts}</a></td>
35 <td>{$report.event_totals.delivered} ({$report.event_totals.delivered_rate|string_format:"%0.2f"}%)</td>
36 <td>{$report.event_totals.actionlinks.delivered}</td></tr>
37 {if $report.mailing.open_tracking}
38 <tr><td class="label"><a href="{$report.event_totals.links.opened}&distinct=1">{ts}Unique Opens{/ts}</a></td>
39 <td>{$report.event_totals.opened} ({$report.event_totals.opened_rate|string_format:"%0.2f"}%)</td>
40 <td>{$report.event_totals.actionlinks.opened}</td></tr>
41 <tr><td class="label"><a href="{$report.event_totals.links.opened}">{ts}Total Opens{/ts}</a></td>
42 <td>{$report.event_totals.total_opened}</td>
43 <td>{$report.event_totals.actionlinks.opened}</td></tr>
44 {/if}
45 {if $report.mailing.url_tracking}
46 <tr><td class="label"><a href="{$report.event_totals.links.clicks}">{ts}Click-throughs{/ts}</a></td>
47 <td>{$report.event_totals.url} ({$report.event_totals.clickthrough_rate|string_format:"%0.2f"}%)</td>
48 <td>{$report.event_totals.actionlinks.clicks}</td></tr>
49 {/if}
50 <tr><td class="label"><a href="{$report.event_totals.links.forward}">{ts}Forwards{/ts}</a></td>
51 <td>{$report.event_totals.forward}</td>
52 <td>{$report.event_totals.actionlinks.forward}</td></tr>
53 <tr><td class="label"><a href="{$report.event_totals.links.reply}">{ts}Replies{/ts}</a></td>
54 <td>{$report.event_totals.reply}</td>
55 <td>{$report.event_totals.actionlinks.reply}</td></tr>
56 <tr><td class="label"><a href="{$report.event_totals.links.bounce}">{ts}Bounces{/ts}</a></td>
57 <td>{$report.event_totals.bounce} ({$report.event_totals.bounce_rate|string_format:"%0.2f"}%)</td>
58 <td>{$report.event_totals.actionlinks.bounce}</td></tr>
59 <tr><td class="label"><a href="{$report.event_totals.links.unsubscribe}">{ts}Unsubscribe Requests{/ts}</a></td>
60 <td>{$report.event_totals.unsubscribe} ({$report.event_totals.unsubscribe_rate|string_format:"%0.2f"}%)</td>
61 <td>{$report.event_totals.actionlinks.unsubscribe}</td></tr>
62 <tr><td class="label"><a href="{$report.event_totals.links.optout}">{ts}Opt-out Requests{/ts}</a></td>
63 <td>{$report.event_totals.optout} ({$report.event_totals.optout_rate|string_format:"%0.2f"}%)</td>
64 <td>{$report.event_totals.actionlinks.optout}</td></tr>
65 <tr><td class="label">{ts}Scheduled Date{/ts}</td>
66 <td colspan=2>{$report.jobs.0.scheduled_date}</td></tr>
67 <tr><td class="label">{ts}Status{/ts}</td>
68 <td colspan=2>{$report.jobs.0.status}</td></tr>
69 <tr><td class="label">{ts}Start Date{/ts}</td>
70 <td colspan=2>{$report.jobs.0.start_date}</td></tr>
71 <tr><td class="label">{ts}End Date{/ts}</td>
72 <td colspan=2>{$report.jobs.0.end_date}</td></tr>
73 </table>
74 {/strip}
75 {else}
76 <div class="messages status no-popup">
77 {ts}<strong>Delivery has not yet begun for this mailing.</strong> If the scheduled delivery date and time is past, ask the system administrator or technical support contact for your site to verify that the automated mailer task ('cron job') is running - and how frequently.{/ts} {docURL page="user/advanced-configuration/email-system-configuration"}
78 </div>
79 {/if}
80 </fieldset>
81
82 <fieldset>
83 <legend>{ts}Recipients{/ts}</legend>
84 {if $report.group.include|@count}
85 <span class="label">{ts}Included{/ts}</span>
86 {strip}
87 <table class="crm-info-panel">
88 {foreach from=$report.group.include item=group}
89 <tr class="{cycle values="odd-row,even-row"}">
90 <td>
91 {if $group.mailing}
92 {ts 1=$group.link 2=$group.name}Recipients of <a href="%1">%2</a>{/ts}
93 {else}
94 {ts 1=$group.link 2=$group.name}Members of <a href="%1">%2</a>{/ts}
95 {/if}
96 </td>
97 </tr>
98 {/foreach}
99 </table>
100 {/strip}
101 {/if}
102
103 {if $report.group.exclude|@count}
104 <span class="label">{ts}Excluded{/ts}</span>
105 {strip}
106 <table class="crm-info-panel">
107 {foreach from=$report.group.exclude item=group}
108 <tr class="{cycle values="odd-row,even-row"}">
109 <td>
110 {if $group.mailing}
111 {ts 1=$group.link 2=$group.name}Recipients of <a href="%1">%2</a>{/ts}
112 {else}
113 {ts 1=$group.link 2=$group.name}Members of <a href="%1">%2</a>{/ts}
114 {/if}
115 </td>
116 </tr>
117 {/foreach}
118 </table>
119 {/strip}
120 {/if}
121
122 {if $report.group.base|@count}
123 <span class="label">{ts}Unsubscription Groups{/ts}</span>
124 {strip}
125 <table class="crm-info-panel">
126 {foreach from=$report.group.base item=group}
127 <tr class="{cycle values="odd-row,even-row"}">
128 <td>
129 {if $group.mailing}
130 {ts 1=$group.link 2=$group.name}Recipients of <a href="%1">%2</a>{/ts}
131 {else}
132 {ts 1=$group.link 2=$group.name}Members of <a href="%1">%2</a>{/ts}
133 {/if}
134 </td>
135 </tr>
136 {/foreach}
137 </table>
138 {/strip}
139 {/if}
140 </fieldset>
141
142 {if $report.mailing.url_tracking && $report.click_through|@count > 0}
143 <fieldset>
144 <legend>{ts}Click-through Summary{/ts}</legend>
145 {strip}
146 <table class="crm-info-panel">
147 <tr>
148 <th><a href="{$report.event_totals.links.clicks}">{ts}Clicks{/ts}</a></th>
149 <th><a href="{$report.event_totals.links.clicks_unique}">{ts}Unique Clicks{/ts}</a></th>
150 <th>{ts}Success Rate{/ts}</th>
151 <th>{ts}URL{/ts}</th>
152 <th>{ts}Report{/ts}</th></tr>
153 {foreach from=$report.click_through item=row}
154 <tr class="{cycle values="odd-row,even-row"}">
155 <td>{if $row.clicks > 0}<a href="{$row.link}">{$row.clicks}</a>{else}{$row.clicks}{/if}</td>
156 <td>{if $row.unique > 0}<a href="{$row.link_unique}">{$row.unique}</a>{else}{$row.unique}{/if}</td>
157 <td>{$row.rate|string_format:"%0.2f"}%</td>
158 <td><a href="{$row.url}">{$row.url}</a></td>
159 <td><a href="{$row.report}">Report</a></td>
160 </tr>
161 {/foreach}
162 </table>
163 {/strip}
164 </fieldset>
165 {/if}
166
167 <fieldset>
168 <legend>{ts}Content / Components{/ts}</legend>
169 {strip}
170 <table class="crm-info-panel">
171 {if $report.mailing.body_text}
172 <tr>
173 <td class="label nowrap">{ts}Text Message{/ts}</td>
174 <td>
175 {$report.mailing.body_text|mb_truncate:30|escape|nl2br}
176 <br />
177 <strong><a class="crm-popup" href='{$textViewURL}'>&raquo; {ts}View complete message{/ts}</a></strong>
178 </td>
179 </tr>
180 {/if}
181
182 {if $report.mailing.body_html}
183 <tr>
184 <td class="label nowrap">{ts}HTML Message{/ts}</td>
185 <td>
186 {$report.mailing.body_html|mb_truncate:30|escape|nl2br}
187 <br/>
188 <strong><a class="crm-popup" href='{$htmlViewURL}'>&raquo; {ts}View complete message{/ts}</a></strong>
189 </td>
190 </tr>
191 {/if}
192
193 {if $report.mailing.attachment}
194 <tr>
195 <td class="label nowrap">{ts}Attachments{/ts}</td>
196 <td>
197 {$report.mailing.attachment}
198 </td>
199 </tr>
200 {/if}
201
202 {foreach from=$report.component item=component}
203 <tr><td class="label">{$component.type}</td><td><a href="{$component.link}">{$component.name}</a></td></tr>
204 {/foreach}
205 </table>
206 {/strip}
207 </fieldset>
208
209 <fieldset>
210 <legend>
211 {ts}Mailing Settings{/ts}
212 </legend>
213 {strip}
214 <table class="crm-info-panel">
215 <tr><td class="label">{ts}Mailing Name{/ts}</td><td>{$report.mailing.name}</td></tr>
216 <tr><td class="label">{ts}Subject{/ts}</td><td>{$report.mailing.subject}</td></tr>
217 <tr><td class="label">{ts}From{/ts}</td><td>{$report.mailing.from_name} &lt;{$report.mailing.from_email}&gt;</td></tr>
218 <tr><td class="label">{ts}Reply-to email{/ts}</td><td>{$report.mailing.replyto_email|htmlentities}</td></tr>
219
220 <tr><td class="label">{ts}Forward replies{/ts}</td><td>{if $report.mailing.forward_replies}{ts}On{/ts}{else}{ts}Off{/ts}{/if}</td></tr>
221 <tr><td class="label">{ts}Auto-respond to replies{/ts}</td><td>{if $report.mailing.auto_responder}{ts}On{/ts}{else}{ts}Off{/ts}{/if}</td></tr>
222
223 <tr><td class="label">{ts}Open tracking{/ts}</td><td>{if $report.mailing.open_tracking}{ts}On{/ts}{else}{ts}Off{/ts}{/if}</td></tr>
224 <tr><td class="label">{ts}URL Click-through tracking{/ts}</td><td>{if $report.mailing.url_tracking}{ts}On{/ts}{else}{ts}Off{/ts}{/if}</td></tr>
225 {if $public_url}<td class="label">{ts}Public url{/ts}</td><td><a href="{$public_url}"> {$public_url}</a></td></tr>{/if}
226 {if $report.mailing.campaign}
227 <tr><td class="label">{ts}Campaign{/ts}</td><td>{$report.mailing.campaign}</td></tr>
228 {/if}
229
230 </table>
231 {/strip}
232 </fieldset>
233 <div class="action-link">
234 <a href="{$backUrl}" >&raquo; {$backUrlTitle}</a>
235 </div>
236
237
238
239
240