Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
232624b1 | 3 | | CiviCRM version 4.4 | |
6a488035 TO |
4 | +--------------------------------------------------------------------+ |
5 | | Copyright CiviCRM LLC (c) 2004-2013 | | |
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 | *} | |
c27ebe4e | 26 | <h3>Helo?</h3> |
6a488035 TO |
27 | <div class="crm-block crm-content-block crm-activity-view-block"> |
28 | {if $activityTypeDescription} | |
29 | <div id="help">{$activityTypeDescription}</div> | |
30 | {/if} | |
31 | <table class="crm-info-panel"> | |
32 | <tr> | |
33 | <td class="label">{ts}Added By{/ts}</td><td class="view-value">{$values.source_contact}</td> | |
34 | </tr> | |
35 | {if $values.target_contact_value} | |
36 | <tr> | |
37 | <td class="label">{ts}With Contact{/ts}</td><td class="view-value">{$values.target_contact_value}</td> | |
38 | </tr> | |
39 | {/if} | |
40 | {if $values.mailingId} | |
41 | <tr> | |
42 | <td class="label">{ts}With Contact{/ts}</td><td class="view-value"><a href="{$values.mailingId}" title="{ts}View Mailing Report{/ts}">»{ts}Mailing Report{/ts}</a></td> | |
43 | </tr> | |
44 | {/if} | |
45 | <tr> | |
46 | <td class="label">{ts}Subject{/ts}</td><td class="view-value">{$values.subject}</td> | |
47 | </tr> | |
48 | ||
49 | {if $values.campaign} | |
50 | <tr> | |
51 | <td class="label">{ts}Campaign{/ts}</td><td class="view-value">{$values.campaign}</td> | |
52 | </tr> | |
53 | {/if} | |
54 | ||
55 | {if $values.engagement_level AND | |
56 | call_user_func( array( 'CRM_Campaign_BAO_Campaign', 'isCampaignEnable' ) )} | |
57 | <td class="label">{ts}Engagement Level{/ts}</td><td class="view-value">{$values.engagement_level}</td> | |
58 | {/if} | |
59 | ||
60 | <tr> | |
61 | <td class="label">{ts}Date and Time{/ts}</td><td class="view-value">{$values.activity_date_time|crmDate }</td> | |
62 | </tr> | |
63 | {if $values.mailingId} | |
64 | <tr> | |
65 | <td class="label nowrap"> | |
66 | # of opens | |
67 | ||
68 | </td> | |
69 | <td class="view-value">{$openreport|@count} | |
70 | {if $openreport|@count > 0 and $openreport|@count < 50}<br />Open times: | |
71 | {foreach from=$openreport item=opens} | |
72 | {$opens.date} <br /> | |
73 | {/foreach} | |
74 | {/if} | |
75 | </tr> | |
76 | <tr> | |
77 | <td class="label"> | |
78 | # of click-throughs | |
79 | </td> | |
80 | <td class="view-value"> {$clickreport|@count} | |
81 | {if $clickreport|@count > 0 and $clickreport|@count < 50}<br />Click times: | |
82 | {foreach from=$clickreport item=clicks} | |
83 | {$clicks.date}: <a href ='{$clicks.url}'>{$clicks.url|truncate:40:' .... ':true:true}</a> <br /> | |
84 | {/foreach} | |
85 | {/if} | |
86 | ||
87 | </td> | |
88 | </tr> | |
89 | <tr> | |
90 | <td class="label">{ts}Details{/ts}</td> | |
91 | <td class="view-value report"> | |
92 | ||
93 | <fieldset> | |
94 | <legend>{ts}Content / Components{/ts}</legend> | |
95 | {strip} | |
96 | <table class="form-layout-compressed"> | |
97 | {if $mailingReport.mailing.body_text} | |
98 | <tr> | |
99 | <td class="label nowrap">{ts}Text Message{/ts}</td> | |
100 | <td> | |
101 | {$mailingReport.mailing.body_text|mb_truncate:30|escape|nl2br} | |
102 | <br /> | |
103 | {if $values.mailingId} | |
d839d441 | 104 | <strong><a class="crm-popup" href='{$textViewURL}'>» {ts}View complete message{/ts}</a></strong> |
6a488035 TO |
105 | {/if} |
106 | </td> | |
107 | </tr> | |
108 | {/if} | |
109 | ||
110 | {if $mailingReport.mailing.body_html} | |
111 | <tr> | |
112 | <td class="label nowrap">{ts}HTML Message{/ts}</td> | |
113 | <td> | |
114 | {$mailingReport.mailing.body_html|mb_truncate:30|escape|nl2br} | |
115 | <br/> | |
116 | {if $values.mailingId} | |
d839d441 | 117 | <strong><a class="crm-popup" href='{$htmlViewURL}'>» {ts}View complete message{/ts}</a></strong> |
6a488035 TO |
118 | {/if} |
119 | </td> | |
120 | </tr> | |
121 | {/if} | |
122 | ||
123 | {if $mailingReport.mailing.attachment} | |
124 | <tr> | |
125 | <td class="label nowrap">{ts}Attachments{/ts}</td> | |
126 | <td> | |
127 | {$mailingReport.mailing.attachment} | |
128 | </td> | |
129 | </tr> | |
130 | {/if} | |
131 | ||
132 | </table> | |
133 | {/strip} | |
134 | </fieldset> | |
135 | </td> | |
136 | </tr> | |
137 | {else} | |
138 | <tr> | |
139 | <td class="label">{ts}Details{/ts}</td><td class="view-value report">{$values.details|crmStripAlternatives|nl2br}</td> | |
140 | </tr> | |
141 | {/if} | |
142 | {if $values.attachment} | |
143 | <tr> | |
144 | <td class="label">{ts}Attachment(s){/ts}</td><td class="view-value report">{$values.attachment}</td> | |
145 | </tr> | |
146 | {/if} | |
147 | </table> | |
148 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div> | |
149 | </div> | |
150 |