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