Merge remote-tracking branch 'upstream/4.3' into 4.3-master-2013-05-21-13-15-18
[civicrm-core.git] / CRM / Upgrade / 3.4.5.msg_template / message_templates / contribution_online_receipt_html.tpl
CommitLineData
6a488035
TO
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<center>
14 <table width="500" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
15
16 <!-- BEGIN HEADER -->
17 <!-- You can add table row(s) here with logo or other header elements -->
18 <!-- END HEADER -->
19
20 <!-- BEGIN CONTENT -->
21
22 <tr>
23 <td>
24
25 {if $receipt_text}
26 <p>{$receipt_text|htmlize}</p>
27 {/if}
28
29 {if $is_pay_later}
30 <p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *}
31 {else}
32 <p>{ts}Please print this confirmation for your records.{/ts}</p>
33 {/if}
34
35 </td>
36 </tr>
37 </table>
38 <table width="500" style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;">
39
40 {if $amount}
41
42
43 <tr>
44 <th {$headerStyle}>
45 {ts}Contribution Information{/ts}
46 </th>
47 </tr>
48
49 {if $lineItem and $priceSetID}
50
51 {foreach from=$lineItem item=value key=priceset}
52 <tr>
53 <td colspan="2" {$valueStyle}>
54 <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
55 <tr>
56 <th>{ts}Item{/ts}</th>
57 <th>{ts}Qty{/ts}</th>
58 <th>{ts}Each{/ts}</th>
59 <th>{ts}Total{/ts}</th>
60 </tr>
61 {foreach from=$value item=line}
62 <tr>
63 <td>
64 {if $line.html_type eq 'Text'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description}<div>{$line.description|truncate:30:"..."}</div>{/if}
65 </td>
66 <td>
67 {$line.qty}
68 </td>
69 <td>
70 {$line.unit_price|crmMoney:$currency}
71 </td>
72 <td>
73 {$line.line_total|crmMoney:$currency}
74 </td>
75 </tr>
76 {/foreach}
77 </table>
78 </td>
79 </tr>
80 {/foreach}
81 <tr>
82 <td {$labelStyle}>
83 {ts}Total Amount{/ts}
84 </td>
85 <td {$valueStyle}>
86 {$amount|crmMoney:$currency}
87 </td>
88 </tr>
89
90 {else}
91
92 <tr>
93 <td {$labelStyle}>
94 {ts}Amount{/ts}
95 </td>
96 <td {$valueStyle}>
97 {$amount|crmMoney:$currency} {if $amount_level} - {$amount_level}{/if}
98 </td>
99 </tr>
100
101 {/if}
102
103
104 {/if}
105
106
107 {if $receive_date}
108 <tr>
109 <td {$labelStyle}>
110 {ts}Date{/ts}
111 </td>
112 <td {$valueStyle}>
113 {$receive_date|crmDate}
114 </td>
115 </tr>
116 {/if}
117
118 {if $is_monetary and $trxn_id}
119 <tr>
120 <td {$labelStyle}>
121 {ts}Transaction #{/ts}
122 </td>
123 <td {$valueStyle}>
124 {$trxn_id}
125 </td>
126 </tr>
127 {/if}
128
129 {if $is_recur}
130 {if $contributeMode eq 'notify'}
131 <tr>
132 <td {$labelStyle}>
133 {ts 1=$cancelSubscriptionUrl}This is a recurring contribution. You can modify or cancel future contributions by <a href="%1">logging in to your account</a>.{/ts}
134 </td>
135 </tr>
136 {elseif $contributeMode eq 'directIPN' and $receiptFromEmail}
137 <tr>
138 <td {$labelStyle}>
139 {ts 1=$receiptFromEmail}This is a recurring contribution. To modify or cancel future contributions please contact us at %1.{/ts}
140 </td>
141 </tr>
142 {/if}
143 {/if}
144
145 {if $honor_block_is_active}
146 <tr>
147 <th {$headerStyle}>
148 {$honor_type}
149 </th>
150 </tr>
151 <tr>
152 <td colspan="2" {$labelStyle}>
153 {$honor_prefix} {$honor_first_name} {$honor_last_name}
154 </td>
155 </tr>
156 {if $honor_email}
157 <tr>
158 <td {$labelStyle}>
159 {ts}Honoree Email{/ts}
160 </td>
161 <td {$valueStyle}>
162 {$honor_email}
163 </td>
164 </tr>
165 {/if}
166 {/if}
167
168 {if $pcpBlock}
169 <tr>
170 <th {$headerStyle}>
171 {ts}Personal Campaign Page{/ts}
172 </th>
173 </tr>
174 <tr>
175 <td {$labelStyle}>
176 {ts}Display In Honor Roll{/ts}
177 </td>
178 <td {$valueStyle}>
179 {if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}
180 </td>
181 </tr>
182 {if $pcp_roll_nickname}
183 <tr>
184 <td {$labelStyle}>
185 {ts}Nickname{/ts}
186 </td>
187 <td {$valueStyle}>
188 {$pcp_roll_nickname}
189 </td>
190 </tr>
191 {/if}
192 {if $pcp_personal_note}
193 <tr>
194 <td {$labelStyle}>
195 {ts}Personal Note{/ts}
196 </td>
197 <td {$valueStyle}>
198 {$pcp_personal_note}
199 </td>
200 </tr>
201 {/if}
202 {/if}
203
204 {if $onBehalfProfile}
205 <tr>
206 <th {$headerStyle}>
207 {$onBehalfProfile_grouptitle}
208 </th>
209 </tr>
210 {foreach from=$onBehalfProfile item=onBehalfValue key=onBehalfName}
211 <tr>
212 <td {$labelStyle}>
213 {$onBehalfName}
214 </td>
215 <td {$valueStyle}>
216 {$onBehalfValue}
217 </td>
218 </tr>
219 {/foreach}
220 {/if}
221
222 {if ! ($contributeMode eq 'notify' OR $contributeMode eq 'directIPN') and $is_monetary}
223 {if $is_pay_later}
224 <tr>
225 <th {$headerStyle}>
226 {ts}Registered Email{/ts}
227 </th>
228 </tr>
229 <tr>
230 <td colspan="2" {$valueStyle}>
231 {$email}
232 </td>
233 </tr>
234 {elseif $amount GT 0}
235 <tr>
236 <th {$headerStyle}>
237 {ts}Billing Name and Address{/ts}
238 </th>
239 </tr>
240 <tr>
241 <td colspan="2" {$valueStyle}>
242 {$billingName}<br />
243 {$address|nl2br}<br />
244 {$email}
245 </td>
246 </tr>
247 {/if}
248 {/if}
249
250 {if $contributeMode eq 'direct' AND !$is_pay_later AND $amount GT 0}
251 <tr>
252 <th {$headerStyle}>
253 {ts}Credit Card Information{/ts}
254 </th>
255 </tr>
256 <tr>
257 <td colspan="2" {$valueStyle}>
258 {$credit_card_type}<br />
259 {$credit_card_number}<br />
260 {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}<br />
261 </td>
262 </tr>
263 {/if}
264
265 {if $selectPremium}
266 <tr>
267 <th {$headerStyle}>
268 {ts}Premium Information{/ts}
269 </th>
270 </tr>
271 <tr>
272 <td colspan="2" {$labelStyle}>
273 {$product_name}
274 </td>
275 </tr>
276 {if $option}
277 <tr>
278 <td {$labelStyle}>
279 {ts}Option{/ts}
280 </td>
281 <td {$valueStyle}>
282 {$option}
283 </td>
284 </tr>
285 {/if}
286 {if $sku}
287 <tr>
288 <td {$labelStyle}>
289 {ts}SKU{/ts}
290 </td>
291 <td {$valueStyle}>
292 {$sku}
293 </td>
294 </tr>
295 {/if}
296 {if $start_date}
297 <tr>
298 <td {$labelStyle}>
299 {ts}Start Date{/ts}
300 </td>
301 <td {$valueStyle}>
302 {$start_date|crmDate}
303 </td>
304 </tr>
305 {/if}
306 {if $end_date}
307 <tr>
308 <td {$labelStyle}>
309 {ts}End Date{/ts}
310 </td>
311 <td {$valueStyle}>
312 {$end_date|crmDate}
313 </td>
314 </tr>
315 {/if}
316 {if $contact_email OR $contact_phone}
317 <tr>
318 <td colspan="2" {$valueStyle}>
319 <p>{ts}For information about this premium, contact:{/ts}</p>
320 {if $contact_email}
321 <p>{$contact_email}</p>
322 {/if}
323 {if $contact_phone}
324 <p>{$contact_phone}</p>
325 {/if}
326 </td>
327 </tr>
328 {/if}
329 {if $is_deductible AND $price}
330 <tr>
331 <td colspan="2" {$valueStyle}>
332 <p>{ts 1=$price|crmMoney:$currency}The value of this premium is %1. This may affect the amount of the tax deduction you can claim. Consult your tax advisor for more information.{/ts}</p>
333 </td>
334 </tr>
335 {/if}
336 {/if}
337
338 {if $customPre}
339 <tr>
340 <th {$headerStyle}>
341 {$customPre_grouptitle}
342 </th>
343 </tr>
344 {foreach from=$customPre item=customValue key=customName}
345 {if ($trackingFields and ! in_array($customName, $trackingFields)) or ! $trackingFields}
346 <tr>
347 <td {$labelStyle}>
348 {$customName}
349 </td>
350 <td {$valueStyle}>
351 {$customValue}
352 </td>
353 </tr>
354 {/if}
355 {/foreach}
356 {/if}
357
358 {if $customPost}
359 <tr>
360 <th {$headerStyle}>
361 {$customPost_grouptitle}
362 </th>
363 </tr>
364 {foreach from=$customPost item=customValue key=customName}
365 {if ($trackingFields and ! in_array($customName, $trackingFields)) or ! $trackingFields}
366 <tr>
367 <td {$labelStyle}>
368 {$customName}
369 </td>
370 <td {$valueStyle}>
371 {$customValue}
372 </td>
373 </tr>
374 {/if}
375 {/foreach}
376 {/if}
377
378 </table>
379</center>
380
381</body>
382</html>