Merge remote-tracking branch 'upstream/4.4' into 4.4-master-2014-02-03-14-48-25
[civicrm-core.git] / xml / templates / message_templates / payment_or_refund_notification_html.tpl
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
5 <title></title>
6 </head>
7 <body>
8
9 {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
10 {capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
11 {capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
12
13 <p>Dear {$contactDisplayName}</p>
14 <center>
15 <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
16
17 <!-- BEGIN HEADER -->
18 <!-- You can add table row(s) here with logo or other header elements -->
19 <!-- END HEADER -->
20
21 <!-- BEGIN CONTENT -->
22
23 <tr>
24 <td>
25 {if $paymentConfig.confirm_email_text}
26 <p>{$paymentConfig.confirm_email_text|htmlize}</p>
27 {elseif $isRefund}
28 <p>{ts}A refund has been issued based on changes in your registration selections.{/ts}</p>
29 {else}
30 <p>{ts}A payment has been received.{/ts}</p>
31 {/if}
32 <p>{ts}Please print this confirmation for your records.{/ts}</p>
33 </td>
34 </tr>
35
36 {if $isRefund}
37 <tr>
38 <th {$headerStyle}>{ts}Refund Details{/ts}</th>
39 </tr>
40 <tr>
41 <td {$labelStyle}>
42 {ts}Total Fees{/ts}
43 </td>
44 <td {$valueStyle}>
45 {$totalAmount|crmMoney}
46 </td>
47 <td {$labelStyle}>
48 {ts}You Paid{/ts}
49 </td>
50 <td {$valueStyle}>
51 {$totalPaid|crmMoney}
52 </td>
53 <td {$labelStyle}>
54 {ts}Refund Amount{/ts}
55 </td>
56 <td {$valueStyle}>
57 {$refundAmount|crmMoney}
58 <td>
59 </tr>
60 {else}
61 <tr>
62 <th {$headerStyle}>{ts}Payment Details{/ts}</th>
63 </tr>
64 <tr>
65 <td {$labelStyle}>
66 {ts}{if $component eq 'event'}Total Fees{/if}{/ts}
67 </td>
68 <td {$valueStyle}>
69 {$totalAmount|crmMoney}
70 </td>
71 <td {$labelStyle}>
72 {ts}This Payment Amount{/ts}
73 </td>
74 <td {$valueStyle}>
75 {$paymentAmount|crmMoney}
76 </td>
77 <td {$labelStyle}>
78 {ts}Balance Owed{/ts}
79 </td>
80 <td>
81 {$amountOwed|crmMoney}
82 </td> {* This will be zero after final payment. *}
83 {if $paymentsComplete}
84 <td colspan='2' {$valueStyle}>
85 {ts}Thank-you. This completes your payment for {if $component eq 'event'}{$event.event_title}{/if}.{/ts}
86 </td>
87 {/if}
88 </tr>
89 {/if}
90 {if $receive_date}
91 <tr>
92 <td {$labelStyle}>
93 {ts}Transaction Date{/ts}
94 </td>
95 <td {$valueStyle}>
96 {$receive_date|crmDate}
97 </td>
98 </tr>
99 {/if}
100 {if $trxn_id}
101 <tr>
102 <td {$labelStyle}>
103 {ts}Transaction #{/ts}
104 </td>
105 <td {$valueStyle}>
106 {$trxn_id}
107 </td>
108 </tr>
109 {/if}
110 {if $paidBy}
111 <tr>
112 <td {$labelStyle}>
113 {ts}Paid By{/ts}
114 </td>
115 <td {$valueStyle}>
116 {$paidBy}
117 </td>
118 </tr>
119 {/if}
120 {if $checkNumber}
121 <tr>
122 <td {$labelStyle}>
123 {ts}Check Number{/ts}
124 </td>
125 <td {$valueStyle}>
126 {$checkNumber}
127 </td>
128 </tr>
129 {/if}
130 <tr>
131 <td>
132 <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
133 {if $contributeMode ne 'notify' and !$isAmountzero}
134 <tr>
135 <th {$headerStyle}>
136 {ts}Billing Name and Address{/ts}
137 </th>
138 </tr>
139 <tr>
140 <td colspan="2" {$valueStyle}>
141 {$billingName}<br />
142 {$address|nl2br}
143 </td>
144 </tr>
145 {/if}
146 {if $contributeMode eq'direct' and !$isAmountzero}
147 <tr>
148 <th {$headerStyle}>
149 {ts}Credit Card Information{/ts}
150 </th>
151 </tr>
152 <tr>
153 <td colspan="2" {$valueStyle}>
154 {$credit_card_type}<br />
155 {$credit_card_number}<br />
156 {ts}Expires:{/ts} {$credit_card_exp_date|truncate:7:''|crmDate}
157 </td>
158 </tr>
159 {/if}
160 {if $component eq 'event'}
161 <tr>
162 <th {$headerStyle}>
163 {ts}Event Information and Location{/ts}
164 </th>
165 </tr>
166 <tr>
167 <td colspan="2" {$valueStyle}>
168 {$event.event_title}<br />
169 {$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}
170 </td>
171 </tr>
172
173 {if $event.participant_role neq 'Attendee' and $defaultRole}
174 <tr>
175 <td {$labelStyle}>
176 {ts}Participant Role{/ts}
177 </td>
178 <td {$valueStyle}>
179 {$event.participant_role}
180 </td>
181 </tr>
182 {/if}
183
184 {if $isShowLocation}
185 <tr>
186 <td colspan="2" {$valueStyle}>
187 {if $location.address.1.name}
188 {$location.address.1.name}<br />
189 {/if}
190 {if $location.address.1.street_address}
191 {$location.address.1.street_address}<br />
192 {/if}
193 {if $location.address.1.supplemental_address_1}
194 {$location.address.1.supplemental_address_1}<br />
195 {/if}
196 {if $location.address.1.supplemental_address_2}
197 {$location.address.1.supplemental_address_2}<br />
198 {/if}
199 {if $location.address.1.city}
200 {$location.address.1.city} {$location.address.1.postal_code}{if $location.address.1.postal_code_suffix} - {$location.address.1.postal_code_suffix}{/if}<br />
201 {/if}
202 </td>
203 </tr>
204 {/if}
205
206 {if $location.phone.1.phone || $location.email.1.email}
207 <tr>
208 <td colspan="2" {$labelStyle}>
209 {ts}Event Contacts:{/ts}
210 </td>
211 </tr>
212 {foreach from=$location.phone item=phone}
213 {if $phone.phone}
214 <tr>
215 <td {$labelStyle}>
216 {if $phone.phone_type}
217 {$phone.phone_type_display}
218 {else}
219 {ts}Phone{/ts}
220 {/if}
221 </td>
222 <td {$valueStyle}>
223 {$phone.phone} {if $phone.phone_ext}&nbsp;{ts}ext.{/ts} {$phone.phone_ext}{/if}
224 </td>
225 </tr>
226 {/if}
227 {/foreach}
228 {foreach from=$location.email item=eventEmail}
229 {if $eventEmail.email}
230 <tr>
231 <td {$labelStyle}>
232 {ts}Email{/ts}
233 </td>
234 <td {$valueStyle}>
235 {$eventEmail.email}
236 </td>
237 </tr>
238 {/if}
239 {/foreach}
240 {/if} {*phone block close*}
241 {/if}
242 </table>
243 </td>
244 </tr>
245
246 </table>
247 </center>
248
249 </body>
250 </html>