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> | |
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 $membership_assign && !$useForMember} | |
41 | <tr> | |
42 | <th {$headerStyle}> | |
43 | {ts}Membership Information{/ts} | |
44 | </th> | |
45 | </tr> | |
46 | <tr> | |
47 | <td {$labelStyle}> | |
48 | {ts}Membership Type{/ts} | |
49 | </td> | |
50 | <td {$valueStyle}> | |
51 | {$membership_name} | |
52 | </td> | |
53 | </tr> | |
54 | {if $mem_start_date} | |
55 | <tr> | |
56 | <td {$labelStyle}> | |
57 | {ts}Membership Start Date{/ts} | |
58 | </td> | |
59 | <td {$valueStyle}> | |
60 | {$mem_start_date|crmDate} | |
61 | </td> | |
62 | </tr> | |
63 | {/if} | |
64 | {if $mem_end_date} | |
65 | <tr> | |
66 | <td {$labelStyle}> | |
67 | {ts}Membership End Date{/ts} | |
68 | </td> | |
69 | <td {$valueStyle}> | |
70 | {$mem_end_date|crmDate} | |
71 | </td> | |
72 | </tr> | |
73 | {/if} | |
74 | {/if} | |
75 | ||
76 | ||
77 | {if $amount} | |
78 | <tr> | |
79 | <th {$headerStyle}> | |
80 | {ts}Membership Fee{/ts} | |
81 | </th> | |
82 | </tr> | |
83 | ||
84 | {if !$useForMember and $membership_amount and $is_quick_config} | |
85 | ||
86 | <tr> | |
87 | <td {$labelStyle}> | |
88 | {ts 1=$membership_name}%1 Membership{/ts} | |
89 | </td> | |
90 | <td {$valueStyle}> | |
91 | {$membership_amount|crmMoney} | |
92 | </td> | |
93 | </tr> | |
94 | {if $amount} | |
95 | {if ! $is_separate_payment } | |
96 | <tr> | |
97 | <td {$labelStyle}> | |
98 | {ts}Contribution Amount{/ts} | |
99 | </td> | |
100 | <td {$valueStyle}> | |
101 | {$amount|crmMoney} | |
102 | </td> | |
103 | </tr> | |
104 | {else} | |
105 | <tr> | |
106 | <td {$labelStyle}> | |
107 | {ts}Additional Contribution{/ts} | |
108 | </td> | |
109 | <td {$valueStyle}> | |
110 | {$amount|crmMoney} | |
111 | </td> | |
112 | </tr> | |
113 | {/if} | |
114 | {/if} | |
115 | <tr> | |
116 | <td {$labelStyle}> | |
117 | {ts}Total{/ts} | |
118 | </td> | |
119 | <td {$valueStyle}> | |
120 | {$amount+$membership_amount|crmMoney} | |
121 | </td> | |
122 | </tr> | |
123 | ||
124 | {elseif !$useForMember && $lineItem and $priceSetID and !$is_quick_config} | |
125 | ||
126 | {foreach from=$lineItem item=value key=priceset} | |
127 | <tr> | |
128 | <td colspan="2" {$valueStyle}> | |
129 | <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *} | |
130 | <tr> | |
131 | <th>{ts}Item{/ts}</th> | |
132 | <th>{ts}Qty{/ts}</th> | |
133 | <th>{ts}Each{/ts}</th> | |
134 | <th>{ts}Total{/ts}</th> | |
135 | </tr> | |
136 | {foreach from=$value item=line} | |
137 | <tr> | |
138 | <td> | |
139 | {$line.description|truncate:30:"..."} | |
140 | </td> | |
141 | <td> | |
142 | {$line.qty} | |
143 | </td> | |
144 | <td> | |
145 | {$line.unit_price|crmMoney} | |
146 | </td> | |
147 | <td> | |
148 | {$line.line_total|crmMoney} | |
149 | </td> | |
150 | </tr> | |
151 | {/foreach} | |
152 | </table> | |
153 | </td> | |
154 | </tr> | |
155 | {/foreach} | |
156 | <tr> | |
157 | <td {$labelStyle}> | |
158 | {ts}Total Amount{/ts} | |
159 | </td> | |
160 | <td {$valueStyle}> | |
161 | {$amount|crmMoney} | |
162 | </td> | |
163 | </tr> | |
164 | ||
165 | {else} | |
166 | {if $useForMember && $lineItem and !$is_quick_config} | |
167 | {foreach from=$lineItem item=value key=priceset} | |
168 | <tr> | |
169 | <td colspan="2" {$valueStyle}> | |
170 | <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *} | |
171 | <tr> | |
172 | <th>{ts}Item{/ts}</th> | |
173 | <th>{ts}Fee{/ts}</th> | |
79d001a2 PB |
174 | {if $dataArray} |
175 | <th>{ts}SubTotal{/ts}</th> | |
176 | <th>{ts}Tax Rate{/ts}</th> | |
177 | <th>{ts}Tax Amount{/ts}</th> | |
178 | <th>{ts}Total{/ts}</th> | |
179 | {/if} | |
011aeb62 | 180 | <th>{ts}Membership Start Date{/ts}</th> |
181 | <th>{ts}Membership End Date{/ts}</th> | |
6a488035 TO |
182 | </tr> |
183 | {foreach from=$value item=line} | |
184 | <tr> | |
185 | <td> | |
186 | {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} | |
187 | </td> | |
188 | <td> | |
189 | {$line.line_total|crmMoney} | |
190 | </td> | |
79d001a2 PB |
191 | {if $dataArray} |
192 | <td> | |
193 | {$line.unit_price*$line.qty|crmMoney} | |
194 | </td> | |
7cf82823 PB |
195 | {if $line.tax_rate != "" || $line.tax_amount != ""} |
196 | <td> | |
197 | {$line.tax_rate|string_format:"%.2f"}% | |
198 | </td> | |
199 | <td> | |
200 | {$line.tax_amount|crmMoney} | |
201 | </td> | |
202 | {else} | |
203 | <td></td> | |
204 | <td></td> | |
205 | {/if} | |
79d001a2 | 206 | <td> |
7cf82823 | 207 | {$line.line_total+$line.tax_amount|crmMoney} |
79d001a2 PB |
208 | </td> |
209 | {/if} | |
6a488035 TO |
210 | <td> |
211 | {$line.start_date} | |
212 | </td> | |
011aeb62 | 213 | <td> |
6a488035 TO |
214 | {$line.end_date} |
215 | </td> | |
216 | </tr> | |
217 | {/foreach} | |
218 | </table> | |
219 | </td> | |
220 | </tr> | |
221 | {/foreach} | |
79d001a2 PB |
222 | {if $dataArray} |
223 | <tr> | |
224 | <td {$labelStyle}> | |
d8f8b40f | 225 | {ts}Amount Before Tax:{/ts} |
79d001a2 PB |
226 | </td> |
227 | <td {$valueStyle}> | |
228 | {$amount-$totalTaxAmount|crmMoney} | |
229 | </td> | |
230 | </tr> | |
231 | {foreach from=$dataArray item=value key=priceset} | |
232 | <tr> | |
7cf82823 | 233 | {if $priceset || $priceset == 0} |
66cae705 | 234 | <td> {$taxTerm} {$priceset|string_format:"%.2f"}%</td> |
79d001a2 | 235 | <td> {$value|crmMoney:$currency}</td> |
7cf82823 | 236 | {else} |
03b412ae | 237 | <td> {ts}NO{/ts} {$taxTerm}</td> |
79d001a2 PB |
238 | <td> {$value|crmMoney:$currency}</td> |
239 | {/if} | |
240 | </tr> | |
241 | {/foreach} | |
242 | {/if} | |
243 | {/if} | |
244 | {if $totalTaxAmount} | |
245 | <tr> | |
246 | <td {$labelStyle}> | |
247 | {ts}Total Tax Amount{/ts} | |
248 | </td> | |
249 | <td {$valueStyle}> | |
250 | {$totalTaxAmount|crmMoney:$currency} | |
251 | </td> | |
252 | </tr> | |
6a488035 TO |
253 | {/if} |
254 | <tr> | |
255 | <td {$labelStyle}> | |
256 | {ts}Amount{/ts} | |
257 | </td> | |
258 | <td {$valueStyle}> | |
259 | {$amount|crmMoney} {if $amount_level} - {$amount_level}{/if} | |
260 | </td> | |
261 | </tr> | |
262 | ||
263 | {/if} | |
264 | ||
265 | ||
266 | {elseif $membership_amount} | |
267 | ||
268 | ||
269 | <tr> | |
270 | <th {$headerStyle}> | |
271 | {ts}Membership Fee{/ts} | |
272 | </th> | |
273 | </tr> | |
274 | <tr> | |
275 | <td {$labelStyle}> | |
276 | {ts 1=$membership_name}%1 Membership{/ts} | |
277 | </td> | |
278 | <td {$valueStyle}> | |
279 | {$membership_amount|crmMoney} | |
280 | </td> | |
281 | </tr> | |
282 | ||
283 | ||
284 | {/if} | |
285 | ||
286 | {if $receive_date} | |
287 | <tr> | |
288 | <td {$labelStyle}> | |
289 | {ts}Date{/ts} | |
290 | </td> | |
291 | <td {$valueStyle}> | |
292 | {$receive_date|crmDate} | |
293 | </td> | |
294 | </tr> | |
295 | {/if} | |
296 | ||
297 | {if $is_monetary and $trxn_id} | |
298 | <tr> | |
299 | <td {$labelStyle}> | |
300 | {ts}Transaction #{/ts} | |
301 | </td> | |
302 | <td {$valueStyle}> | |
303 | {$trxn_id} | |
304 | </td> | |
305 | </tr> | |
306 | {/if} | |
307 | ||
308 | {if $membership_trx_id} | |
309 | <tr> | |
310 | <td {$labelStyle}> | |
311 | {ts}Membership Transaction #{/ts} | |
312 | </td> | |
313 | <td {$valueStyle}> | |
314 | {$membership_trx_id} | |
315 | </td> | |
316 | </tr> | |
317 | {/if} | |
318 | {if $is_recur} | |
319 | {if $contributeMode eq 'notify' or $contributeMode eq 'directIPN'} | |
320 | <tr> | |
321 | <td colspan="2" {$labelStyle}> | |
322 | {ts 1=$cancelSubscriptionUrl}This membership will be renewed automatically. You can cancel the auto-renewal option by <a href="%1">visiting this web page</a>.{/ts} | |
323 | </td> | |
324 | </tr> | |
325 | <tr> | |
326 | <td colspan="2" {$labelStyle}> | |
327 | {ts 1=$updateSubscriptionBillingUrl}You can update billing details for this automatically renewed membership by <a href="%1">visiting this web page</a>.{/ts} | |
328 | </td> | |
329 | </tr> | |
330 | {/if} | |
331 | {/if} | |
332 | ||
333 | {if $honor_block_is_active} | |
334 | <tr> | |
335 | <th {$headerStyle}> | |
1421174e | 336 | {$soft_credit_type} |
6a488035 TO |
337 | </th> |
338 | </tr> | |
1421174e | 339 | {foreach from=$honoreeProfile item=value key=label} |
340 | <tr> | |
341 | <td {$labelStyle}> | |
342 | {$label} | |
343 | </td> | |
344 | <td {$valueStyle}> | |
345 | {$value} | |
346 | </td> | |
347 | </tr> | |
348 | {/foreach} | |
6a488035 TO |
349 | {/if} |
350 | ||
351 | {if $pcpBlock} | |
352 | <tr> | |
353 | <th {$headerStyle}> | |
354 | {ts}Personal Campaign Page{/ts} | |
355 | </th> | |
356 | </tr> | |
357 | <tr> | |
358 | <td {$labelStyle}> | |
359 | {ts}Display In Honor Roll{/ts} | |
360 | </td> | |
361 | <td {$valueStyle}> | |
362 | {if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if} | |
363 | </td> | |
364 | </tr> | |
365 | {if $pcp_roll_nickname} | |
366 | <tr> | |
367 | <td {$labelStyle}> | |
368 | {ts}Nickname{/ts} | |
369 | </td> | |
370 | <td {$valueStyle}> | |
371 | {$pcp_roll_nickname} | |
372 | </td> | |
373 | </tr> | |
374 | {/if} | |
375 | {if $pcp_personal_note} | |
376 | <tr> | |
377 | <td {$labelStyle}> | |
378 | {ts}Personal Note{/ts} | |
379 | </td> | |
380 | <td {$valueStyle}> | |
381 | {$pcp_personal_note} | |
382 | </td> | |
383 | </tr> | |
384 | {/if} | |
385 | {/if} | |
386 | ||
387 | {if $onBehalfProfile} | |
388 | <tr> | |
389 | <th {$headerStyle}> | |
390 | {$onBehalfProfile_grouptitle} | |
391 | </th> | |
392 | </tr> | |
393 | {foreach from=$onBehalfProfile item=onBehalfValue key=onBehalfName} | |
394 | <tr> | |
395 | <td {$labelStyle}> | |
396 | {$onBehalfName} | |
397 | </td> | |
398 | <td {$valueStyle}> | |
399 | {$onBehalfValue} | |
400 | </td> | |
401 | </tr> | |
402 | {/foreach} | |
403 | {/if} | |
404 | ||
405 | {if ! ($contributeMode eq 'notify' OR $contributeMode eq 'directIPN') and $is_monetary} | |
406 | {if $is_pay_later} | |
407 | <tr> | |
408 | <th {$headerStyle}> | |
409 | {ts}Registered Email{/ts} | |
410 | </th> | |
411 | </tr> | |
412 | <tr> | |
413 | <td colspan="2" {$valueStyle}> | |
414 | {$email} | |
415 | </td> | |
416 | </tr> | |
417 | {elseif $amount GT 0 OR $membership_amount GT 0} | |
418 | <tr> | |
419 | <th {$headerStyle}> | |
420 | {ts}Billing Name and Address{/ts} | |
421 | </th> | |
422 | </tr> | |
423 | <tr> | |
424 | <td colspan="2" {$valueStyle}> | |
425 | {$billingName}<br /> | |
426 | {$address|nl2br}<br /> | |
427 | {$email} | |
428 | </td> | |
429 | </tr> | |
430 | {/if} | |
431 | {/if} | |
432 | ||
433 | {if $contributeMode eq 'direct' AND !$is_pay_later AND ($amount GT 0 OR $membership_amount GT 0)} | |
434 | <tr> | |
435 | <th {$headerStyle}> | |
436 | {ts}Credit Card Information{/ts} | |
437 | </th> | |
438 | </tr> | |
439 | <tr> | |
440 | <td colspan="2" {$valueStyle}> | |
441 | {$credit_card_type}<br /> | |
442 | {$credit_card_number}<br /> | |
443 | {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}<br /> | |
444 | </td> | |
445 | </tr> | |
446 | {/if} | |
447 | ||
448 | {if $selectPremium} | |
449 | <tr> | |
450 | <th {$headerStyle}> | |
451 | {ts}Premium Information{/ts} | |
452 | </th> | |
453 | </tr> | |
454 | <tr> | |
455 | <td colspan="2" {$labelStyle}> | |
456 | {$product_name} | |
457 | </td> | |
458 | </tr> | |
459 | {if $option} | |
460 | <tr> | |
461 | <td {$labelStyle}> | |
462 | {ts}Option{/ts} | |
463 | </td> | |
464 | <td {$valueStyle}> | |
465 | {$option} | |
466 | </td> | |
467 | </tr> | |
468 | {/if} | |
469 | {if $sku} | |
470 | <tr> | |
471 | <td {$labelStyle}> | |
472 | {ts}SKU{/ts} | |
473 | </td> | |
474 | <td {$valueStyle}> | |
475 | {$sku} | |
476 | </td> | |
477 | </tr> | |
478 | {/if} | |
479 | {if $start_date} | |
480 | <tr> | |
481 | <td {$labelStyle}> | |
482 | {ts}Start Date{/ts} | |
483 | </td> | |
484 | <td {$valueStyle}> | |
485 | {$start_date|crmDate} | |
486 | </td> | |
487 | </tr> | |
488 | {/if} | |
489 | {if $end_date} | |
490 | <tr> | |
491 | <td {$labelStyle}> | |
492 | {ts}End Date{/ts} | |
493 | </td> | |
494 | <td {$valueStyle}> | |
495 | {$end_date|crmDate} | |
496 | </td> | |
497 | </tr> | |
498 | {/if} | |
499 | {if $contact_email OR $contact_phone} | |
500 | <tr> | |
501 | <td colspan="2" {$valueStyle}> | |
502 | <p>{ts}For information about this premium, contact:{/ts}</p> | |
503 | {if $contact_email} | |
504 | <p>{$contact_email}</p> | |
505 | {/if} | |
506 | {if $contact_phone} | |
507 | <p>{$contact_phone}</p> | |
508 | {/if} | |
509 | </td> | |
510 | </tr> | |
511 | {/if} | |
512 | {if $is_deductible AND $price} | |
513 | <tr> | |
514 | <td colspan="2" {$valueStyle}> | |
515 | <p>{ts 1=$price|crmMoney}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> | |
516 | </td> | |
517 | </tr> | |
518 | {/if} | |
519 | {/if} | |
520 | ||
521 | {if $customPre} | |
522 | <tr> | |
523 | <th {$headerStyle}> | |
524 | {$customPre_grouptitle} | |
525 | </th> | |
526 | </tr> | |
527 | {foreach from=$customPre item=customValue key=customName} | |
528 | {if ($trackingFields and ! in_array($customName, $trackingFields)) or ! $trackingFields} | |
529 | <tr> | |
530 | <td {$labelStyle}> | |
531 | {$customName} | |
532 | </td> | |
533 | <td {$valueStyle}> | |
534 | {$customValue} | |
535 | </td> | |
536 | </tr> | |
537 | {/if} | |
538 | {/foreach} | |
539 | {/if} | |
540 | ||
541 | {if $customPost} | |
542 | <tr> | |
543 | <th {$headerStyle}> | |
544 | {$customPost_grouptitle} | |
545 | </th> | |
546 | </tr> | |
547 | {foreach from=$customPost item=customValue key=customName} | |
548 | {if ($trackingFields and ! in_array($customName, $trackingFields)) or ! $trackingFields} | |
549 | <tr> | |
550 | <td {$labelStyle}> | |
551 | {$customName} | |
552 | </td> | |
553 | <td {$valueStyle}> | |
554 | {$customValue} | |
555 | </td> | |
556 | </tr> | |
557 | {/if} | |
558 | {/foreach} | |
559 | {/if} | |
560 | ||
561 | </table> | |
562 | </center> | |
563 | ||
564 | </body> | |
565 | </html> |