Commit | Line | Data |
---|---|---|
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> | |
e74e138c | 24 | {assign var="greeting" value="{contact.email_greeting}"}{if $greeting}<p>{$greeting},</p>{/if} |
6a488035 TO |
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 *} | |
6a488035 TO |
31 | {/if} |
32 | ||
33 | </td> | |
34 | </tr> | |
35 | </table> | |
36 | <table width="500" style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;"> | |
37 | ||
38 | {if $amount} | |
39 | ||
40 | ||
41 | <tr> | |
42 | <th {$headerStyle}> | |
43 | {ts}Contribution Information{/ts} | |
44 | </th> | |
45 | </tr> | |
46 | ||
47 | {if $lineItem and $priceSetID and !$is_quick_config} | |
48 | ||
49 | {foreach from=$lineItem item=value key=priceset} | |
50 | <tr> | |
51 | <td colspan="2" {$valueStyle}> | |
52 | <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *} | |
53 | <tr> | |
54 | <th>{ts}Item{/ts}</th> | |
55 | <th>{ts}Qty{/ts}</th> | |
56 | <th>{ts}Each{/ts}</th> | |
79d001a2 PB |
57 | {if $dataArray} |
58 | <th>{ts}Subtotal{/ts}</th> | |
59 | <th>{ts}Tax Rate{/ts}</th> | |
60 | <th>{ts}Tax Amount{/ts}</th> | |
61 | {/if} | |
6a488035 TO |
62 | <th>{ts}Total{/ts}</th> |
63 | </tr> | |
64 | {foreach from=$value item=line} | |
65 | <tr> | |
66 | <td> | |
67 | {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} | |
68 | </td> | |
69 | <td> | |
70 | {$line.qty} | |
71 | </td> | |
72 | <td> | |
73 | {$line.unit_price|crmMoney:$currency} | |
74 | </td> | |
7cf82823 | 75 | {if $getTaxDetails} |
79d001a2 PB |
76 | <td> |
77 | {$line.unit_price*$line.qty|crmMoney:$currency} | |
78 | </td> | |
7cf82823 PB |
79 | {if $line.tax_rate != "" || $line.tax_amount != ""} |
80 | <td> | |
81 | {$line.tax_rate|string_format:"%.2f"}% | |
82 | </td> | |
83 | <td> | |
84 | {$line.tax_amount|crmMoney:$currency} | |
85 | </td> | |
86 | {else} | |
87 | <td></td> | |
88 | <td></td> | |
89 | {/if} | |
79d001a2 | 90 | {/if} |
6a488035 | 91 | <td> |
7cf82823 | 92 | {$line.line_total+$line.tax_amount|crmMoney:$currency} |
6a488035 TO |
93 | </td> |
94 | </tr> | |
95 | {/foreach} | |
96 | </table> | |
97 | </td> | |
98 | </tr> | |
99 | {/foreach} | |
79d001a2 PB |
100 | {if $dataArray} |
101 | <tr> | |
102 | <td {$labelStyle}> | |
103 | {ts} Amount before Tax : {/ts} | |
104 | </td> | |
105 | <td {$valueStyle}> | |
106 | {$amount-$totalTaxAmount|crmMoney:$currency} | |
107 | </td> | |
108 | </tr> | |
109 | ||
110 | {foreach from=$dataArray item=value key=priceset} | |
111 | <tr> | |
7cf82823 | 112 | {if $priceset || $priceset == 0} |
ebf2b57b | 113 | <td> {$taxTerm} {$priceset|string_format:"%.2f"}%</td> |
79d001a2 | 114 | <td> {$value|crmMoney:$currency}</td> |
7cf82823 | 115 | {else} |
03b412ae | 116 | <td> {ts}No{/ts} {$taxTerm}</td> |
79d001a2 PB |
117 | <td> {$value|crmMoney:$currency}</td> |
118 | {/if} | |
119 | </tr> | |
120 | {/foreach} | |
121 | ||
7cf82823 PB |
122 | {/if} |
123 | {if $totalTaxAmount} | |
79d001a2 PB |
124 | <tr> |
125 | <td {$labelStyle}> | |
126 | {ts}Total Tax{/ts} | |
127 | </td> | |
128 | <td {$valueStyle}> | |
129 | {$totalTaxAmount|crmMoney:$currency} | |
130 | </td> | |
131 | </tr> | |
132 | {/if} | |
6a488035 TO |
133 | <tr> |
134 | <td {$labelStyle}> | |
135 | {ts}Total Amount{/ts} | |
136 | </td> | |
137 | <td {$valueStyle}> | |
138 | {$amount|crmMoney:$currency} | |
139 | </td> | |
140 | </tr> | |
141 | ||
142 | {else} | |
143 | ||
79d001a2 PB |
144 | {if $totalTaxAmount} |
145 | <tr> | |
146 | <td {$labelStyle}> | |
147 | {ts}Total Tax Amount{/ts} | |
148 | </td> | |
149 | <td {$valueStyle}> | |
150 | {$totalTaxAmount|crmMoney:$currency} | |
151 | </td> | |
152 | </tr> | |
153 | {/if} | |
6a488035 TO |
154 | <tr> |
155 | <td {$labelStyle}> | |
156 | {ts}Amount{/ts} | |
157 | </td> | |
158 | <td {$valueStyle}> | |
159 | {$amount|crmMoney:$currency} {if $amount_level} - {$amount_level}{/if} | |
160 | </td> | |
161 | </tr> | |
162 | ||
163 | {/if} | |
164 | ||
165 | {/if} | |
166 | ||
167 | ||
168 | {if $receive_date} | |
169 | <tr> | |
170 | <td {$labelStyle}> | |
171 | {ts}Date{/ts} | |
172 | </td> | |
173 | <td {$valueStyle}> | |
174 | {$receive_date|crmDate} | |
175 | </td> | |
176 | </tr> | |
177 | {/if} | |
178 | ||
179 | {if $is_monetary and $trxn_id} | |
180 | <tr> | |
181 | <td {$labelStyle}> | |
182 | {ts}Transaction #{/ts} | |
183 | </td> | |
184 | <td {$valueStyle}> | |
185 | {$trxn_id} | |
186 | </td> | |
187 | </tr> | |
188 | {/if} | |
189 | ||
f926d56f MWMC |
190 | {if $is_recur} |
191 | <tr> | |
6a488035 | 192 | <td colspan="2" {$labelStyle}> |
f926d56f MWMC |
193 | {ts}This is a recurring contribution.{/ts} |
194 | {if $cancelSubscriptionUrl} | |
195 | {ts 1=$cancelSubscriptionUrl}You can cancel future contributions by <a href="%1">visiting this web page</a>.{/ts} | |
196 | {/if} | |
6a488035 | 197 | </td> |
f926d56f MWMC |
198 | </tr> |
199 | {if $updateSubscriptionBillingUrl} | |
200 | <tr> | |
201 | <td colspan="2" {$labelStyle}> | |
202 | {ts 1=$updateSubscriptionBillingUrl}You can update billing details for this recurring contribution by <a href="%1">visiting this web page</a>.{/ts} | |
203 | </td> | |
204 | </tr> | |
6a488035 | 205 | {/if} |
f926d56f MWMC |
206 | {if $updateSubscriptionUrl} |
207 | <tr> | |
208 | <td colspan="2" {$labelStyle}> | |
209 | {ts 1=$updateSubscriptionUrl}You can update recurring contribution amount or change the number of installments for this recurring contribution by <a href="%1">visiting this web page</a>.{/ts} | |
210 | </td> | |
211 | </tr> | |
212 | {/if} | |
213 | {/if} | |
6a488035 TO |
214 | |
215 | {if $honor_block_is_active} | |
216 | <tr> | |
217 | <th {$headerStyle}> | |
1421174e | 218 | {$soft_credit_type} |
6a488035 TO |
219 | </th> |
220 | </tr> | |
1421174e | 221 | {foreach from=$honoreeProfile item=value key=label} |
222 | <tr> | |
223 | <td {$labelStyle}> | |
224 | {$label} | |
225 | </td> | |
226 | <td {$valueStyle}> | |
227 | {$value} | |
228 | </td> | |
229 | </tr> | |
230 | {/foreach} | |
7305d3e6 | 231 | {elseif $softCreditTypes and $softCredits} |
232 | {foreach from=$softCreditTypes item=softCreditType key=n} | |
233 | <tr> | |
234 | <th {$headerStyle}> | |
235 | {$softCreditType} | |
236 | </th> | |
237 | </tr> | |
238 | {foreach from=$softCredits.$n item=value key=label} | |
239 | <tr> | |
240 | <td {$labelStyle}> | |
241 | {$label} | |
242 | </td> | |
243 | <td {$valueStyle}> | |
244 | {$value} | |
245 | </td> | |
246 | </tr> | |
247 | {/foreach} | |
248 | {/foreach} | |
6a488035 TO |
249 | {/if} |
250 | ||
251 | {if $pcpBlock} | |
252 | <tr> | |
253 | <th {$headerStyle}> | |
254 | {ts}Personal Campaign Page{/ts} | |
255 | </th> | |
256 | </tr> | |
257 | <tr> | |
258 | <td {$labelStyle}> | |
259 | {ts}Display In Honor Roll{/ts} | |
260 | </td> | |
261 | <td {$valueStyle}> | |
262 | {if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if} | |
263 | </td> | |
264 | </tr> | |
265 | {if $pcp_roll_nickname} | |
266 | <tr> | |
267 | <td {$labelStyle}> | |
268 | {ts}Nickname{/ts} | |
269 | </td> | |
270 | <td {$valueStyle}> | |
271 | {$pcp_roll_nickname} | |
272 | </td> | |
273 | </tr> | |
274 | {/if} | |
275 | {if $pcp_personal_note} | |
276 | <tr> | |
277 | <td {$labelStyle}> | |
278 | {ts}Personal Note{/ts} | |
279 | </td> | |
280 | <td {$valueStyle}> | |
281 | {$pcp_personal_note} | |
282 | </td> | |
283 | </tr> | |
284 | {/if} | |
285 | {/if} | |
286 | ||
287 | {if $onBehalfProfile} | |
288 | <tr> | |
289 | <th {$headerStyle}> | |
290 | {$onBehalfProfile_grouptitle} | |
291 | </th> | |
292 | </tr> | |
293 | {foreach from=$onBehalfProfile item=onBehalfValue key=onBehalfName} | |
294 | <tr> | |
295 | <td {$labelStyle}> | |
296 | {$onBehalfName} | |
297 | </td> | |
298 | <td {$valueStyle}> | |
299 | {$onBehalfValue} | |
300 | </td> | |
301 | </tr> | |
302 | {/foreach} | |
303 | {/if} | |
304 | ||
305 | {if $isShare} | |
306 | <tr> | |
307 | <td colspan="2" {$valueStyle}> | |
308 | {capture assign=contributionUrl}{crmURL p='civicrm/contribute/transact' q="reset=1&id=`$contributionPageId`" a=true fe=1 h=1}{/capture} | |
309 | {include file="CRM/common/SocialNetwork.tpl" emailMode=true url=$contributionUrl title=$title pageURL=$contributionUrl} | |
310 | </td> | |
311 | </tr> | |
312 | {/if} | |
313 | ||
314 | {if ! ($contributeMode eq 'notify' OR $contributeMode eq 'directIPN') and $is_monetary} | |
e45f6ab0 | 315 | {if $is_pay_later && !$isBillingAddressRequiredForPayLater} |
6a488035 TO |
316 | <tr> |
317 | <th {$headerStyle}> | |
318 | {ts}Registered Email{/ts} | |
319 | </th> | |
320 | </tr> | |
321 | <tr> | |
322 | <td colspan="2" {$valueStyle}> | |
323 | {$email} | |
324 | </td> | |
325 | </tr> | |
326 | {elseif $amount GT 0} | |
327 | <tr> | |
328 | <th {$headerStyle}> | |
329 | {ts}Billing Name and Address{/ts} | |
330 | </th> | |
331 | </tr> | |
332 | <tr> | |
333 | <td colspan="2" {$valueStyle}> | |
334 | {$billingName}<br /> | |
335 | {$address|nl2br}<br /> | |
336 | {$email} | |
337 | </td> | |
338 | </tr> | |
339 | {/if} | |
340 | {/if} | |
341 | ||
342 | {if $contributeMode eq 'direct' AND !$is_pay_later AND $amount GT 0} | |
343 | <tr> | |
344 | <th {$headerStyle}> | |
345 | {ts}Credit Card Information{/ts} | |
346 | </th> | |
347 | </tr> | |
348 | <tr> | |
349 | <td colspan="2" {$valueStyle}> | |
350 | {$credit_card_type}<br /> | |
351 | {$credit_card_number}<br /> | |
352 | {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}<br /> | |
353 | </td> | |
354 | </tr> | |
355 | {/if} | |
356 | ||
357 | {if $selectPremium} | |
358 | <tr> | |
359 | <th {$headerStyle}> | |
360 | {ts}Premium Information{/ts} | |
361 | </th> | |
362 | </tr> | |
363 | <tr> | |
364 | <td colspan="2" {$labelStyle}> | |
365 | {$product_name} | |
366 | </td> | |
367 | </tr> | |
368 | {if $option} | |
369 | <tr> | |
370 | <td {$labelStyle}> | |
371 | {ts}Option{/ts} | |
372 | </td> | |
373 | <td {$valueStyle}> | |
374 | {$option} | |
375 | </td> | |
376 | </tr> | |
377 | {/if} | |
378 | {if $sku} | |
379 | <tr> | |
380 | <td {$labelStyle}> | |
381 | {ts}SKU{/ts} | |
382 | </td> | |
383 | <td {$valueStyle}> | |
384 | {$sku} | |
385 | </td> | |
386 | </tr> | |
387 | {/if} | |
388 | {if $start_date} | |
389 | <tr> | |
390 | <td {$labelStyle}> | |
391 | {ts}Start Date{/ts} | |
392 | </td> | |
393 | <td {$valueStyle}> | |
394 | {$start_date|crmDate} | |
395 | </td> | |
396 | </tr> | |
397 | {/if} | |
398 | {if $end_date} | |
399 | <tr> | |
400 | <td {$labelStyle}> | |
401 | {ts}End Date{/ts} | |
402 | </td> | |
403 | <td {$valueStyle}> | |
404 | {$end_date|crmDate} | |
405 | </td> | |
406 | </tr> | |
407 | {/if} | |
408 | {if $contact_email OR $contact_phone} | |
409 | <tr> | |
410 | <td colspan="2" {$valueStyle}> | |
411 | <p>{ts}For information about this premium, contact:{/ts}</p> | |
412 | {if $contact_email} | |
413 | <p>{$contact_email}</p> | |
414 | {/if} | |
415 | {if $contact_phone} | |
416 | <p>{$contact_phone}</p> | |
417 | {/if} | |
418 | </td> | |
419 | </tr> | |
420 | {/if} | |
421 | {if $is_deductible AND $price} | |
422 | <tr> | |
423 | <td colspan="2" {$valueStyle}> | |
424 | <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> | |
425 | </td> | |
426 | </tr> | |
427 | {/if} | |
428 | {/if} | |
429 | ||
430 | {if $customPre} | |
431 | <tr> | |
432 | <th {$headerStyle}> | |
433 | {$customPre_grouptitle} | |
434 | </th> | |
435 | </tr> | |
436 | {foreach from=$customPre item=customValue key=customName} | |
437 | {if ($trackingFields and ! in_array($customName, $trackingFields)) or ! $trackingFields} | |
438 | <tr> | |
439 | <td {$labelStyle}> | |
440 | {$customName} | |
441 | </td> | |
442 | <td {$valueStyle}> | |
443 | {$customValue} | |
444 | </td> | |
445 | </tr> | |
446 | {/if} | |
447 | {/foreach} | |
448 | {/if} | |
449 | ||
450 | {if $customPost} | |
451 | <tr> | |
452 | <th {$headerStyle}> | |
453 | {$customPost_grouptitle} | |
454 | </th> | |
455 | </tr> | |
456 | {foreach from=$customPost item=customValue key=customName} | |
457 | {if ($trackingFields and ! in_array($customName, $trackingFields)) or ! $trackingFields} | |
458 | <tr> | |
459 | <td {$labelStyle}> | |
460 | {$customName} | |
461 | </td> | |
462 | <td {$valueStyle}> | |
463 | {$customValue} | |
464 | </td> | |
465 | </tr> | |
466 | {/if} | |
467 | {/foreach} | |
468 | {/if} | |
469 | ||
470 | </table> | |
471 | </center> | |
472 | ||
473 | </body> | |
474 | </html> |